Questions tagged [securityexception]

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

329 questions
4
votes
10 answers

Calling WCF Service from Silverlight

Im calling a locally hosted wcf service from silverlight and I get the exception below. Iv created a clientaccesspolicy.xml, which is situated in the route of my host.
Dan
  • 29,100
  • 43
  • 148
  • 207
4
votes
1 answer

Android SecurityException on PDF Send Intent

I'm getting the following exception during an ACTION_SEND intent with a data type application/pdf: java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.SEND typ=application/pdf flg=0x3080000…
ashughes
  • 7,155
  • 9
  • 48
  • 54
3
votes
1 answer

Persistable URI Permissions for a Document Provider

Not sure if what I'm trying to do is possible or not. I have a "proxy" document provider meaning a document provider that exports aliases for other content using the SAF. I have a dialog fragment that allows a user to set up the alias by…
3
votes
0 answers

java.lang.SecurityException: Permission Denial: opening provider androidx.core.content.FileProvider

So I've been making these 2 apps and I want app 1 to be able to send pdf files to app 2. They're both signed with different keys as app 1 should be usable by any other apps as well. The way I want it to work is as follows. App 2 sends a…
3
votes
1 answer

No persistable permission grants found for UID 10208 [ Security Exception ]

I am using Storage Access Framework for Image Picker in my app. Below is the code val types = arrayOf("image/png", "image/jpeg", "image/jpg") val intent = Intents.createDocumentIntent(types, true) if (canDeviceHandle(intent))…
3
votes
2 answers

Getting java.lang.SecurityException: Unsupported path. But I am asking for permissions

I am downloading files using DownloadManager to a directory, that isn't apart of my "local packages" directory, i.e. outside /storage/emulated/0/Android/data/myPackageName/, but part of another directory's package, more specifically, obb directory,…
ordep mgb
  • 63
  • 1
  • 7
3
votes
1 answer

Java preferences: Could not lock User prefs. Lock file access denied

I'm running a Java Spark server on a Linux machine, and I'm trying to store user preferences and I'm having two major problems: While i can get/set preferences on runtime, The preferences are getting deleted each time I kill the program and run it…
OmriSoudry
  • 361
  • 3
  • 13
3
votes
0 answers

Use same AccountType to store credentials in the AccountManager across several apps with different signing certificate

We are developing a library which handles authentication for several apps with different signing certificates. This library, exposes several methods to call our server (create users, delete them, update data, etc). The library also takes care of…
juanmeanwhile
  • 2,594
  • 2
  • 24
  • 26
3
votes
1 answer

getting a securityexception despite having granted permission

I'm getting a java.lang.SecurityException for my app not having been granted android.permission.WRITE_SETTINGS. even though I have added it into my manifests xml file
CarbonZonda
  • 167
  • 2
  • 11
3
votes
1 answer

Get "No permission to write APN settings" error on android 6

My application works fine on Android 5.0 and below, but when I tried to run it on a device with Android 6.0 or higher, I got this error: Writing exception to parcel java.lang.SecurityException: No…
3
votes
1 answer

ES-v5.0.1 throw java.lang.SecurityException while snapshot

Elasticsearch version:v5.0.1 Plugins installed: [repository-hdfs] JVM version: java version "1.8.0_92" Java(TM) SE Runtime Environment (build 1.8.0_92-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.92-b14, mixed mode) OS version: CentOS release…
ervin
  • 31
  • 3
3
votes
3 answers

Java: Using Gson in an Applet causes SecurityException

I'm trying to use Google Gson in my Java Applet, but when I do I get Exception in thread "Thread-19" java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) at…
jonescb
  • 22,013
  • 7
  • 46
  • 42
3
votes
2 answers

Delete SUN_MICR.RSA, SUN_MICR.SF solves manifest signature file entry problem

When I tried repacking all the jars into one jar, and run that one big jar, I got following exception java.lang.SecurityException: no manifiest section for signature file entry javax/activation/MimeType.class After googling I found a working…
Drigs
  • 69
  • 6
3
votes
1 answer

Silverlight can't talk to HTTPS web service?

I've got a Silverlight app that talks to an HTTPS web service. On most machines it works fine, however, on some machines it fails consistently. On the machines it fails on, I receive a SecurityException when making a WebClient request to the HTTPS…
3
votes
1 answer

PickContact requires android.permission.READ_CONTACTS, or grantUriPermission()

Some info first: I first created the app in Cordova: see Cordova permissions requires android.permission.READ_CONTACTS, or grantUriPermission() Now i created the app as a native Android app using Android Studio Builder, it has the same error. I'm…