Questions tagged [securityexception]

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

329 questions
3
votes
1 answer

CRM 2015 OnLine - Request for the permission SecurityPermission failed

I'm trying to generate a PDF in memory to send it to a WS. This PDF should be created in memory (Stream) and in the Microsoft CRM "cloud" in a plugin code. Is this possible? In the plugin (already coded and deployed) I have this lines, the 3th…
3
votes
2 answers

How to implement a SocketImplFactory using systems default sockets

I have a small problem with implementing a own SocketImplFactory in Java. My goal is to write a factory which offers me a way to close all open sockets with one simple method call. So I only want to have a kind of "proxy factory" which stores all…
Jakob Auer
  • 131
  • 1
  • 9
3
votes
2 answers

java.lang.SecurityException: signer information does not match signer information of other classes in the same package

We have renewed security certificates in our java applications and suddenly we have started receiving below mentioned exception: java.lang.SecurityException: class "org.hibernate.cfg.Configuration"'s signer information does not match signer…
user613114
  • 2,731
  • 11
  • 47
  • 73
3
votes
5 answers

Why you can not create class in java.lang?

Say I am creating a class LangTest.java in the following way: package java.lang; public class LangTest { public static void show() { System.out.println("In langTest.show()"); } } In another class I am even calling the method…
Plymouth Rock
  • 472
  • 2
  • 6
  • 20
3
votes
0 answers

Invalid signature file digest for Manifest main attributes

I'm using Intellij Idea 13 and I followed the instruction on how to create an executable jar. After that I got my jar and my manifest but everytime I double-click the jar file I get ''A Java Exception Occured'' and when I try to launch it using…
3
votes
4 answers

Android - can't enable BroadcastReceiver

I got back to the widget development after upgrading to the latest SDK and all of the sudden my widget is failing on startup with this message: ERROR/AndroidRuntime(5296): java.lang.RuntimeException: Unable to start receiver…
Bostone
  • 36,858
  • 39
  • 167
  • 227
3
votes
3 answers

How can i check if user sign's out from games services default view?

I integrated google games services in my game, including Leaderboards and achievements. If the user opens the leaderboard or achievement activity, he has the possibility to sign out from the settings in the right upper corner. How can I check if the…
3
votes
2 answers

Executing SPWebApplication.Update with System account throws SecurityException

I`m doing some web.config modifications with SPWebConfigModification class. When adding them to WebApplication and calling Update to it, it throws me SecurityException, although I run code with elevated privilages (and open new instance of…
Janis Veinbergs
  • 6,907
  • 5
  • 48
  • 78
3
votes
0 answers

How can I check if startActivity() will fail with SecurityException due to lack of permission?

I want to support adding Contacts with the Contact Picker. It appears that the READ_CONTACTS permission is required in certain phones and not others - see Do contact picker queries require the read_contacts permission depending on the android…
amit
  • 1,373
  • 2
  • 16
  • 29
3
votes
3 answers

Android SecurityException CALL_PHONE eventhough I declare it in Manifest file

In my app I need in some situation to launch a call programmatically. It works most of the time, but I can see that sometime it doesn't, specially on 2.3.7 version. Maybe that specific permission removed and is illegal at that version? I can't find…
Bush
  • 2,433
  • 5
  • 34
  • 57
2
votes
2 answers

MySql.Data in GAC, still SecurityException

I have a problem with MySql.Data in a partial trusted environment. I've added MySql.Data to the GAC (by installing it with the MSI from the mysql.com site). As you can see here: >gacutil /l | grep -i mysql MySql.Data, Version=6.5.4.0,…
2
votes
1 answer

Android SecurityException ACCESS_WIFI_STATE

I am building an Android app that uses wifi. I have properly declared these uses permissions in the manifest, however for some reason the app is throwing a SecurityException that causes the app to force-close. I traced the cause of the security…
YoYoMa
  • 243
  • 1
  • 4
  • 12
2
votes
1 answer

Throwing SecurityException for failed authentication?

Is it advisable for my own DAO class to throw a SecurityException in its constructor if it fails to authenticate to the data store? The Java documentation says that SecurityException is to be used by SecurityManager, which suggests to me that it's…
HolySamosa
  • 9,011
  • 14
  • 69
  • 102
2
votes
1 answer

SecurityException after Permission has been used

I am having a serious issue with my app. I use the permission android.permission.ACCESS_COARSE_LOCATION in a broadcast receiver and it runs perfectly. However after a certain amount of time (this seems to be random) the app crashes with the…
SeanSWatkins
  • 413
  • 4
  • 9
2
votes
1 answer

NotificationManager.notify() throwing securityException only on android 11 and 12

On my alarm clock app, I have 180 crashes (impacted 42 users) of java.lang.SecurityException caused by NotificationManager.notify(). Since I have around 50K active users I guess it happens only under specific circumstances. This is how I init my…