SecurityException indicates a security violation and is thrown when a security error is detected.
Questions tagged [securityexception]
329 questions
2
votes
1 answer
SecurityException: Permission Denial
Background
I'm working on an Android app that controls the screen rotation. The app is available on the Google Play store. To control the screen rotation, the app disables system auto rotation and changes the values of USER_ROTATION. The source code…

Sam
- 40,644
- 36
- 176
- 219
2
votes
1 answer
ExceptionInInitializerError on DriverManager with MS SQL Server
I'm trying to connect to a MS SQL Server DB using JDBC and on this line:
String connectionUrl = "jdbc:" + url + ";user=dummy;password=dummy;";
conn = DriverManager.getConnection(connectionUrl);
I'm getting this massive wall-of-text of an…

BlueMoon93
- 2,910
- 22
- 39
2
votes
1 answer
(Fluent) NHibernate Security Exception - ReflectionPermission
I've upgraded an ASP.Net Web application to the latest build of Fluent NHibernate (1.0.0.636) and the newest version of NHibernate (v2.1.2.4000). I've checked a couple of times that the application is running in Full trust. But I keep getting the…

Peter Eysermans
- 479
- 3
- 13
2
votes
0 answers
ListView - Unrelated security exception on addFooterView() method
Im trying to add a footer view for a ListView in Android and i followed this answer however no matter what I try the moment i add the line:
poiLv.addFooterView(loadMore);
the activity fails with a security exception:
09-22 17:21:53.761:…

eldjon
- 2,800
- 2
- 20
- 23
2
votes
2 answers
SecurityException after adding ELMAH to WCF project
I'm having a problem with a WCF (.Net 3.5) site using ELMAH on IIS 7.5. This is the exception message:
System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0,…

serialhobbyist
- 4,768
- 5
- 43
- 65
2
votes
0 answers
html5 canvas becomes write only after drawing svg inside on ios safari
Will describe app at first.
I have drawing area. I can add to it different images and apply few filters to them(brightness, hue-rotate, etc.). After editing is ready I should save result to server as image.
During investigation I found few possible…

jaromudr
- 151
- 8
2
votes
2 answers
WCF Security Exception caused by Directory.Delete()
I am encountering a strange issue: I call a WCF-Operation from my client. The operation deletes all files in a specified directory and finally deletes their parent directory too.
ACtually, this works. No exception is thrown and the files within the…

Mads
- 1,146
- 2
- 9
- 30
2
votes
1 answer
Webstart application: SecurityException: setContextClassLoader
I have a webstart application which connects to a web service. The manifest has:
Permissions: all-permissions
And the jnlp has:
However when the connection to the web service is created I get a…

assylias
- 321,522
- 82
- 660
- 783
2
votes
3 answers
How to overcome `Prohibited package name` exception?
Is it possible to turn off / override java.lang.SecurityException: Prohibited package name?
I need to extend AffineTransform class which was implemented with some lack of functionality, and I need to access members m00, m01, ... which are defined as…

Suzan Cioc
- 29,281
- 63
- 213
- 385
2
votes
1 answer
Some users gets Security Exception: Attempted to to open a sandboxed jar as a Trusted-Library
We use applet on our application login page. Applet contains 2 classes. Jar is signed (ca certificate). Manifest file contains: "Trusted-Library: true.
It works for most of the users but some of them have problems with applet because JVM report…

KEBAN
- 21
- 1
- 1
- 3
2
votes
0 answers
Letting EJB A (Glassfish A) communicate over IIOP to EJB B (Glassfish B) results in SecurityException
I want to let Alice (EJB A; Glassfish A) communicate with Bob (EJB B; Glassfish B). Both EJBs are deployed on distinct Glassfish (Glassfish A and Glassfish B) servers. The communication shall be over IIOP. However, my experiments result in a…

Sebastian
- 76
- 9
2
votes
2 answers
Error: class "javax.persistence.PersistenceUtil"'s signer information does not match
When trying to run my program with Tomcat Apache, I get the following error:
SEVERE: Mapped exception to response: 500 (Internal Server Error)
java.lang.SecurityException: class "javax.persistence.PersistenceUtil"'s signer information does not…

AllieCat
- 3,890
- 10
- 31
- 45
2
votes
2 answers
SecurityException: Request for the permission of type AspNetHostingPermission failed
Setting up a new developing workstation, when I run the ASP.NET (MVC) application from Visual Studio 2008 I get a SecurityException. Any ideas what might be the problem?
I am accessing the data files over SMB (it's a shared mounted as Z:) and I've…

Pablo Fernandez
- 279,434
- 135
- 377
- 622
2
votes
1 answer
java.lang.SecurityException: Permission Denial: not allowed to send broadcast android.hardware.usb.action.USB_STATE
I am trying to make an apk to install in a device and manage usb state.
apk sends broadcast to device like...
Intent intent = new Intent(ACTION_USB_STATE);
sendBroadcast(intent);
In AndroidManifest.xml I stated permission part..

HJJ
- 21
- 1
- 2
2
votes
1 answer
NCron default logger writes to Event Log, throws SecurityException
Simple NCron service:
class Program
{
static void Main(string[] args)
{
var schedService = new SchedulingService();
schedService.At("* * * * *").Run(); // run every minute
schedService.Start();
…

epalm
- 4,283
- 4
- 43
- 65