Questions tagged [securityexception]

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

329 questions
0
votes
2 answers

Getting Security Exception SQLCE 4, Code First CTP 5 & Shared Hosting

I've been trying to setup a webpage with MVC3 Razor, SQLCE 4 and Code First, the last two downloaded from Nuget, so it is EF Code First CTP5. I've had a lot of trouble, but I manage to move forward by following this answer However now I am getting…
0
votes
2 answers

Exceptions handler for getenv()

How can I handle NullPointerException and SecurityException for that kind of line code: public final static String PROJECT_DIR = System.getenv().get("HOME") + "/Projects/MyTestProject"; It will be sufficient to just wrap it with try/catch? If so…
JackTheKnife
  • 3,795
  • 8
  • 57
  • 117
0
votes
1 answer

How can I update the File System after creating a folder programmatically?

I already created a folder in android grammatically but it doesn't show in File Explorer while device connected through USB cable. Below is a piece of source code that i used to scan File system but it doesn't work. It giving error permission denial…
Shail
  • 3
  • 3
0
votes
1 answer

Running a signed midlet on the emulator produces a SecurityException

I have a signed midlet (VeriSign Class 3), which runs perfectly in several Nokia devices. When I try to run it on the JME SDK 3.0 emulator it produces a java.lang.SecurityException: Application not authorized to access the restricted API. It has all…
mdelolmo
  • 6,417
  • 3
  • 40
  • 58
0
votes
0 answers

I got a error message 'No active admin owned by uid 10086 for policy #3'

I'm trying to develop an app that user can lock the screen by clicking a button using Android Studio. I found quite many questions and posting about this kind of application. So I followed one of them, but I got an error message and the app was…
0
votes
1 answer

Turning off the screen in android

Hi, for a project I'm working on I have to turn off the screen of the android device. After searching on here I came to use this code: public static final int REQUEST_ADMIN_ENABLE = 12345; ComponentName dPAComponent; DevicePolicyManager…
0
votes
1 answer

Registering ContentObserver for Android CallLog causes crash

Recently my app keeps crashing when registering a contentObserver for the Android CallLog (in onCreate of a Service). This is the way I register it: getContentResolver().registerContentObserver(CallLog.Calls.CONTENT_URI, true, new MyObserver(new…
P Kuijpers
  • 1,593
  • 15
  • 27
0
votes
1 answer

Android Crash in PlayStore Console

We found lot's of crash logs in PlayStore Console, but don't have any idea what is this about and can't reproduce it. java.lang.SecurityException: at android.os.Parcel.readException (Parcel.java:1689) at…
Daa
  • 31
  • 7
0
votes
1 answer

Security Exception after using encryption decryption library "robovm-rt-1.13.0"

I am using "robovm-rt-1.13.0" (an encryption-decryption library) in my android project. After encrypting when I try to build the project, I get the following error: Error:Execution failed for task…
Matrix
  • 147
  • 1
  • 7
0
votes
1 answer

Android Open Mobile API Release Difficulties

I am using the "org.simalliance.openmobileapi.jar" file from SDK. I copied it to my libs folder and added the dependency like this Case #1: working fine (in debug mode) In app Gradle file I have: provided…
0
votes
1 answer

ASP.Net website using forms authentication throws security exception on postback

I have used a custom role-based security with forms authentication for my ASP.net web application. The roles, users are fetched from sql server. The framework is targeted for version 4.0. I have used the code from…
0
votes
2 answers

asp.Net post back security error

My web application presents a very strange error: Server Error in '/' Application. -------------------------------------------------------------------------------- Security Exception Description: The application attempted to…
Machta
  • 1,656
  • 2
  • 16
  • 28
0
votes
2 answers

What's the difference insecurity a browser and a web client?

I have an ASP.Net page that does some file IO work. When I request it from a web browser, namely chrome, it succeeds, but when I request it from a WebClient instance in my application it gives me a 'System.Security.SecurityException'. Are there…
Jordan
  • 9,642
  • 10
  • 71
  • 141
0
votes
1 answer

Exception Details: System.Security.SecurityException: A specified logon session does not exist. It may already have been terminated

I deployed a test web app to virtual Windows server 2008 std. IIS does not have certificates features assigned to this app nor to any apps deployed on this server so none of the solutions I've found relate to my issue. All other apps on same…
Doreen
  • 714
  • 2
  • 14
  • 36
0
votes
2 answers

JAVA: SecurityException on ThreadGroup.getParent()

I have some pretty boilerplate Java code that does a while loop with a tg.getParent() to get the root thread group. This has been working for several months on four different environments (one Windows and three Linux). Recently we added a fifth…
Jeremy Goodell
  • 18,225
  • 5
  • 35
  • 52