Questions tagged [securityexception]

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

329 questions
5
votes
3 answers

External Storage Permission Issue with MediaProvider / Ring Tones

Some of my users have reported to Google Play the following error when trying to select a ringtone in my app. (there's more to it, but it's not relevant) java.lang.SecurityException: Permission Denial: reading…
Reed
  • 14,703
  • 8
  • 66
  • 110
5
votes
2 answers

ConfigurationErrorsException/SecurityException/FileIOPermission reading application .config file during NLog instantiation

I'm getting a weird exception when trying to initialize NLog instance as a static class member (update: this is happening in a desktop app which is targeting .NET 4.0). The problem is, I'm getting it only on one specific client machine, and can't…
lxa
  • 3,234
  • 2
  • 30
  • 31
5
votes
1 answer

java.lang.SecurityException: class "XYZ"'s signer information does not match signer information of other classes in the same package

I have an applet which runs in a browser and is called from Javascript. There are 2 classes: PortalLauncher and ParamSplitter and these are in the default package. Javascript calls a method in PortalLauncher which in turn calls a function in…
paul
  • 13,312
  • 23
  • 81
  • 144
5
votes
1 answer

SecurityException - Dapper on shared hosting

For my current project I use Dapper. Everything perfect. Then I needed to deploy it on shared hosting. The result can be seen here (copied YSOD): Description: The application attempted to perform an operation not allowed by the security policy. …
stej
  • 28,745
  • 11
  • 71
  • 104
4
votes
1 answer

.NET DLR and SecurityException's

What are the mandatory PermissionSet items that the DLR requires in order to function correctly? We've enabled the DLR in our sandboxed scripting environment. But some code like the following... dynamic foo = someobject foo.FooBar(); ... just…
nbevans
  • 7,739
  • 3
  • 27
  • 32
4
votes
2 answers

In what scenarios exactly will a SecurityException be thrown in .NET?

The short answer has been given already. I'm looking for the long answer. Subquestions: Will a full trust application ever throw a SecurityException? If yes, in what circumstances? What are "CRL security settings", where are they, and how much do I…
Ansis Māliņš
  • 1,684
  • 15
  • 35
4
votes
3 answers

GWT: XSRF: Sporadic missing X-GWT-Permutation header

My application receives occasional XSRF Attack errors raised by GWT when RemoteServiceServlet.checkPermutationStrongName() fails to find a X-GWT-Permutation HTTP Header in the HttpServletRequest. When the error occurs, the following line appears in…
manstis
  • 123
  • 1
  • 7
4
votes
4 answers

Impersonation in .Net crashes when reading registry keys (LinkLabel SecurityException)

My app needs to impersonate a service account, which I do through a native-call to LogonUser. However, it appears that random components in the .Net library try to access registry keys the account doesn't have access to, causing a SecurityException…
BlueRaja - Danny Pflughoeft
  • 84,206
  • 33
  • 197
  • 283
4
votes
2 answers

openInputStream cause SecurityException:Permission Denial (Android N+)

I need help with this problem since I'm new to Android. My app support JellyBean (16) up to Oreo (26). I have an UploadService that requires openInputStream() to upload data because the new behavior in Nougat. This code works fine in Marshmallow…
4
votes
1 answer

C# fully trusted assembly with SecuritySafeCritical funciton still throwing SecurityExceptions

I'm trying to create a sandboxed AppDomain for loading extensions/plugins. I have a MarshalByRefObject that in instantiate inside the appdomain to load the dll. I'm getting SecurityExceptions when trying to load the dll and I can't figure out how…
David Hogue
  • 1,791
  • 1
  • 14
  • 23
4
votes
1 answer

How to avoid Java security exception due to mixed code

I have an applet which is present in a signed jar. This applet uses another 3rd party jar file which is unsigned. On launching the applet I get the Mixed code warning which I want to avoid. To solve this issue, I added "Trusted-Library: true" to the…
raghvendra
  • 285
  • 5
  • 18
4
votes
0 answers

When "SecurityException: Incorrect signature" can happen?

I have an app that uses PhoneNumberUtil from libphonenumber.jar of google. All works fine except that I got this stack from a remote crash log. Caused by: java.lang.SecurityException: Incorrect signature at…
idog
  • 863
  • 9
  • 18
4
votes
3 answers

Permission Denial: not allowed to send broadcast android.intent.action.AIRPLANE_MODE

I am trying to programmatically set the aeroplane mode on. Settings.System.putInt(context.getContentResolver(), Settings.Global.AIRPLANE_MODE_ON, 1); Intent aeroPlaneIntent = new…
Mule
  • 75
  • 1
  • 3
  • 9
4
votes
1 answer

javafx running application outside Netbeans IDE

I'm having trouble running a javaFX application through the .jar in the "dist folder" later that I have clean and build project by NetBeans. C:\NetBeansProjects\Gestore\dist>java -jar Gestore.jar log4j:ERROR Could not read configuration file…
pask23
  • 714
  • 11
  • 20
4
votes
2 answers

addAccountExplicitly throws IllegalStateException caused by Securityexception

Using this code throws that exception and doesn't add created account into account manager. AccountManager am = AccountManager.get(activity); Account acc = new…
DarkKnightCZ
  • 123
  • 2
  • 7