Questions tagged [securityexception]

SecurityException indicates a security violation and is thrown when a security error is detected.

329 questions
0
votes
1 answer

SecurityException even though permission is set

I´m trying to keep the screen on of the device with my app. PowerManager manager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); PowerManager.WakeLock wl = manager.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK |…
Marian Klühspies
  • 15,824
  • 16
  • 93
  • 136
0
votes
1 answer

JMockIt security exception signer information does not match

When running JMockIt and trying to mock an instance in testng that is loaded from a signed jar I get an error along the lines of (in this case of a jetty server): FAILED CONFIGURATION: @BeforeClass startServer java.lang.SecurityException: class…
Mallox
  • 1,469
  • 12
  • 13
0
votes
4 answers

HTML Java applet integration

I know this has been asked multiple times already, and I have already tried to use all of the solutions that I could find, but I wasn't able to get any success. I have a JApplet that works successfully (I've pasted the heirarchy below, as I don't…
Vasu
  • 1,090
  • 3
  • 18
  • 35
0
votes
1 answer

.NET application with Office PIA and SecurityException

I have a c# application that uses the Office PIAs to enable the application to export data to an Excel file. This works great on my development machine and other desktop machines. When I run the application on a Terminal Server (which has Office…
Aaron
  • 367
  • 1
  • 7
  • 16
0
votes
0 answers

Why I can catch the java.lang.SecurityException with root in android launcher app

I build a launcher app , my phone had already be rooted,and my app had already got the root permission,but the log showed me these " java.lang.SecurityException: bindGagetId appWidgetId=322…
Nyle
  • 79
  • 2
0
votes
1 answer

I made an instance of CipherSpi class for a project and I get "JCE cannot authenticate the provider"

I'm making a project, and in the project it's part of our work to remake a cipher algorithm and others and then to use them using the JCA (java criptographic architecture) rules. I have made a provider that provides multiple classes. All seems to be…
brunoais
  • 6,258
  • 8
  • 39
  • 59
0
votes
2 answers

SecurityException in Geocoder

I am getting a java.lang.SecurityException: Not allowed to bind to service Intent { act=com.android.location.service.GeocodeProvider pkg=com.google.android.location } while trying to do fetch geocode on my JellyBean device. Geocoder geocoder = new…
Alok
  • 453
  • 1
  • 4
  • 17
0
votes
2 answers

Javaassists and Java Web Start: class sign doesn't match the others classes sign is the same package

i'm using javaassists to modify the behaviour of a class in runtime. When i run the app in my computer all works fine. But this app is launched by the users with Java Web Start, so that the .jar of the app must be signed. When the class is modified…
Telcontar
  • 4,794
  • 7
  • 31
  • 39
0
votes
3 answers

Security Exception using MySQL and Entity Framework on godaddy

We are getting a SecurityException when using Entity framework on godaddy. The entity has been configured against a MySQL store. (v. 6.1.2) A bit of weirdness with the exception though... Looking at the exception stack it seems to imply that if…
Aalano
  • 29
  • 1
  • 4
0
votes
2 answers

java.lang.SecurityException: Permission Denial: starting Intent com.android.calendar/.DayActivity

In my app I use the following code to open standard android calendar on the DayView: Intent intent2 = new Intent(); intent2.setComponent(new ComponentName("com.android.calendar",…
Aleks G
  • 56,435
  • 29
  • 168
  • 265
0
votes
1 answer

SecurityException in Java method SecureClassLoader.defineClass()

The Javadoc for this method includes: Throws: SecurityException - if an attempt is made to add this class to a package that contains classes that were signed by a different set of certificates than this class, or if the class name begins with…
Curious
  • 2,783
  • 3
  • 29
  • 45
0
votes
2 answers

External Images to greyscale

I am working on a small project on my university and I met a problem with applying grayscale to externally loaded images from Google's Picasa servers in my banner. I try to create a greyscale canvas of any image loaded but when trying to get image…
0
votes
1 answer

getting user home folder from JWS signed jar

I'm trying to get the user home folder from a jar launched via JWS. The jar is signed and my JNLP has a line like this but I when trying: System.getProperty("homeFolder"); I get a security…
0
votes
1 answer

"Prohibited package name: java.util" on Class.forName("java.util...") in applet

I have an applet that references 2 signed jars: myapplet.jar jackson-all-1.9.9.jar When starting the applet the second time (first time is without errors), I get this: Exception in thread "thread…
Evgeniy Berezovsky
  • 18,571
  • 13
  • 82
  • 156
0
votes
1 answer

Starting a no launcher activity from another package

I try to start an activity from another package, but it has not LAUNCHER category Intent i = new Intent(); i.setComponent(new ComponentName(maxVerPackageName, maxVerClassName)); i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); …
hamid toosi
  • 95
  • 1
  • 10
1 2 3
21
22