Questions tagged [securityexception]

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

329 questions
0
votes
3 answers

Android Calendar Check Permission

I'm currently implementing the calendar provider however i've stumbled upon a minor error that i'd like to prevent. ContentResolver contentResolver = getContentResolver(); ContentValues contentValues = new ContentValues(); .... Uri uri =…
WonderfulWonder
  • 515
  • 1
  • 8
  • 20
0
votes
2 answers

Silverlight Requests, Failures & Fiddler

I've got a Silverlight application that makes a cross-domain request. The clientaccesspolicy.xml file exists on the server I am making a request to and is correctly configured. I know that it is correctly configured because when I use the…
Anthony Compton
  • 5,271
  • 3
  • 29
  • 38
0
votes
0 answers

Android - Permission Denial (scanLibrary?!)

I am trying to develop a simple app that scan documents. I am using scanlibrary, provided by jhansireddy (https://github.com/jhansireddy/AndroidScannerDemo). I've integrated the library with my actual project, i had done the gradle build. When I…
user3655773
  • 31
  • 1
  • 4
0
votes
1 answer

Silverlight - ClientAccessPolicy.xml Syntax

I'm trying to communicate with an Apache web server in a cross-domain way. I have a clientaccesspolicy.xml file set up on the root of the domain and it is successfully retrieved by the Silverlight client when attempting to make a GET request to a…
Anthony Compton
  • 5,271
  • 3
  • 29
  • 38
0
votes
0 answers

GPS consent not given in android application

I was designing an android application which just prints the current location coordinates (latitude and longitude) using GPS. Here is my code: public class GPSActivity extends AppCompatActivity { @Override protected void onCreate(Bundle…
Aditya
  • 1,172
  • 11
  • 32
0
votes
1 answer

After throwing a Security Exception, redirect to Login page

I'm using WebForms and Asp.Net Routing. When trying to implement security on a members folder, I'm following the directions here : http://blogs.msdn.com/b/mikeormond/archive/2008/06/21/asp-net-routing-and-authorization.aspx private IHttpHandler…
0
votes
0 answers

java.lang.ExceptionInInitializerError Exception in JasperReports

I have installed iReports plugin to NetBeans IDE 8.0.2 and I have tried this code: package Frames; import java.io.InputStream; import java.util.*; import net.sf.jasperreports.engine.*; import net.sf.jasperreports.engine.design.*; import…
0
votes
1 answer

DotNetFiddle throws "System.Security.SecurityException"

As there's no PSFiddle available at present, I wondered if I could use DotNetFiddle for this purpose by wrapping the PS code in C#. I used the below code: using System; using System.Collections.ObjectModel; using System.Management.Automation; …
JohnLBevan
  • 22,735
  • 13
  • 96
  • 178
0
votes
0 answers

Security settings blocking path of File (java)

//String s = nameOfFile String filePath = System.getProperty("user.dir") + File.separator + ".." + File.separator + s; File location = new File(filePath); OutputStream print = new FileOutputStream(location); …
Michael Zakariaie
  • 165
  • 1
  • 1
  • 10
0
votes
2 answers

DownloadManager addCompletedDownload() method not working, gives SecurityException

I am using an url to download and read bytes of data using InputStream, the data thus fetched I am writing using a FileOutputStream in form of a pdf. Then I am using…
akash89
  • 881
  • 3
  • 12
  • 31
0
votes
0 answers

Issue in Hiding a application from another Application in Android

What i am trying to do is hiding a installed application from another application like this : PackageManager p = getPackageManager(); ComponentName componentName = new…
Kapil Rajput
  • 11,429
  • 9
  • 50
  • 65
0
votes
4 answers

Java - SecurityException in Method "printDuplicates"

I'm a newcomer to Java trying to submit a working project, in this instance printDuplicates. The instructions are as follows: Write a method named printDuplicates that accepts as its parameter a Scanner for an input file containing a series of…
J. Smith
  • 17
  • 1
  • 3
0
votes
2 answers

How to handle java.lang.SecurityException: Requires READ_PHONE_STATE for android.text.format.DateFormat.getDateFormat?

My app was sent a stack trace for device Y625-U21 (HWY625-U), the app doesn't ask for READ_PHONE_STATE because the docs say nothing about using this permission for getting dateFormat. We have tested the app in various devices and this doesn't…
0
votes
2 answers

Java Applet SecurityException Prohibited package name: java

I'm very new to Java and i want to create a Java Applet. My .jar File is signed and the Package with .class ... is in the folder java (--> java.lal.class). But I got only this error: SecurityException Prhibited package name: java Java Code: package…
Doc_Schobs
  • 11
  • 3
0
votes
0 answers

Android permission error when getting getAccountsByType

Hi i am trying to get an existing account i've recently created using: AccountManager am = AccountManager.get(activity); Account[] acc = am.getAccountsByType( activity.getResources().getString(R.string.ACCOUNT_TYPE)); and my…