RMI Security Exception

Hi I have followed the sun java RMI trail (tutorial).
However my server side application is giving me a security exception. I think it s because of the grant code sections:
grant {
    permission java.net.SocketPermission "*:1024-65535",
        "connect,accept";
    permission java.net.SocketPermission "*:80", "connect";
};My problem is that I can't understand were to put this code segment, and I read the same page over and over again, and could not find were is says were to put it!!
As I said I think it is from this, but maybe it is from other parts! not sure! ... Maybe you need to run the server side from a web server??
The links of the tutorial I am following is the following (from sun java website itself):
http://java.sun.com/docs/books/tutorial/rmi/
and the following link is were there is the grant permission code:
http://java.sun.com/docs/books/tutorial/rmi/running.html
Thanks for any sugestions!

I still have the exception:
ComputeEngine exception: access denied (java.net.SocketPermission host resolve)
java.security.AccessControlException: access denied (java.net.SocketPermission host resolve)I followed the tutorial step by step, reading and writing the provided code so far. So this is what I have now at the moment:
I create a permision file and I called it java.policy. In this file I have the following code:
grant {
    permission java.net.SocketPermission "*:1024-65535",
        "connect,accept";
    permission java.net.SocketPermission "*:80", "connect";
};Then I have the following code sugested by WirajR in the engine class, which is the server side application:
static{
    System.setProperty("security.policy", "java.policy");
}I compiled everything, and no errors are given. But when i run just the server side, I still recieve the above error. When I debuged the application it stops on the following line:
Naming.rebind(name, engine);Were name is a string containing the following text :
"//host/Compute"and engine is the class to be exposed over RMI.
I am betting my problem is with name!! ... maybe
or else my permission file has invalid data.
Also wanted to add that security seems to have been taken care of in that tutorial by the following lines of code:
if (System.getSecurityManager() == null) {
   System.setSecurityManager(new RMISecurityManager());
}Aren't these to set the security policy?

Similar Messages

  • Stocks RMI example not working - Security Exception

    Hi,
    I was trying to run the "Stocks" RMI example that comes with
    Weblogic server(see
    http://www.weblogic.com/docs45/classdocs/API_rmi.html#clientside)
    I compiled and configured the appropriate files, and tried to
    load the sample applet (StockApplet.java) loaded on the
    StockApplet.html page (using Microsoft IE browser).
    However, the applet generated the following exception :
    java.lang.ExceptionInInitializerError: com/ms/security/SecurityExceptionEx
         at weblogic/common/internal/TengahClassLoaders.registerURL (TengahClassLoaders.java:51)
         at weblogic/rjvm/RJVMImpl.loadFromCluster (RJVMImpl.java:1106)
         at weblogic/jndi/WLInitialContextFactoryDelegate.newContext (WLInitialContextFactoryDelegate.java:247)
         at weblogic/jndi/WLInitialContextFactoryDelegate.getInitialContext (WLInitialContextFactoryDelegate.java:205)
         at weblogic/jndi/Environment.getContext (Environment.java:122)
         at weblogic/jndi/Environment.getInitialContext (Environment.java:105)
         at weblogic/rmi/Naming.getContext (Naming.java:225)
         at weblogic/rmi/Naming.lookup (Naming.java:67)
         at examples/rmi/stock/StockApplet.init (StockApplet.java:127)
         at com/ms/applet/AppletPanel.securedCall0 (AppletPanel.java)
         at com/ms/applet/AppletPanel.securedCall (AppletPanel.java)
         at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
         at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
         at com/ms/applet/AppletPanel.run (AppletPanel.java)
         at java/lang/Thread.run (Thread.java)
    As you can see this looks like some sort of security exception. (StockApplet.java:127)
    in the above exception is the line where StockApplet calls Naming.lookup(). So
    I'm guessing it has something to do with it getting the Weblogic's RMI support
    classes to the local VM and deserializing and installing them, which generates
    a security exception.
    What needs to be done to make the example work properly?
    Thanks,
    Leonid Portnoy
    (In addition, two more types of exceptions are generated, which might be related
    to the cause of the above exception. These exceptions are :
    com.ms.security.SecurityExceptionEx[weblogic/rjvm/JVMID.setLocalID]: cannot connect
    to "testserver"
         at com/ms/security/permissions/NetIOPermission.check (NetIOPermission.java)
         at com/ms/security/PolicyEngine.deepCheck (PolicyEngine.java)
         at com/ms/security/PolicyEngine.checkPermission (PolicyEngine.java)
         at com/ms/security/StandardSecurityManager.chk (StandardSecurityManager.java)
         at com/ms/security/StandardSecurityManager.chkex (StandardSecurityManager.java)
         at com/ms/security/StandardSecurityManager.checkConnect (StandardSecurityManager.java)
         at java/net/InetAddress.getLocalHost (InetAddress.java)
         at weblogic/rjvm/JVMID.setLocalID (JVMID.java:59)
         at weblogic/rjvm/JVMID.localID (JVMID.java:43)
         at weblogic/rjvm/LocalRJVM.getID (LocalRJVM.java:143)
         at weblogic/rmi/extensions/BasicServerObjectReference.<init> (BasicServerObjectReference.java:44)
         at weblogic/rmi/extensions/BasicServerObjectAdapter.<init> (BasicServerObjectAdapter.java:43)
         at weblogic/rmi/extensions/BasicRequestHandler.<init> (BasicRequestHandler.java:30)
         at weblogic/rmi/extensions/BasicRequestDispatcher.<init> (BasicRequestDispatcher.java:42)
         at weblogic/rmi/internal/OIDManager.initializeDGCServer (OIDManager.java:267)
         at weblogic/rmi/internal/OIDManager.getReplacement (OIDManager.java:176)
         at weblogic/rmi/internal/OIDManager.replaceObject (OIDManager.java:84)
         at weblogic/rmi/server/UnicastRemoteObject.exportObject (UnicastRemoteObject.java:25)
         at examples/rmi/stock/StockApplet.init (StockApplet.java:110)
         at com/ms/applet/AppletPanel.securedCall0 (AppletPanel.java)
         at com/ms/applet/AppletPanel.securedCall (AppletPanel.java)
         at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
         at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
         at com/ms/applet/AppletPanel.run (AppletPanel.java)
         at java/lang/Thread.run (Thread.java)
    and
    com.ms.security.SecurityExceptionEx[weblogic/jndi/Environment.getProperty]: Unable
    to access system property: weblogic.jndi.provider.rjvm
         at com/ms/security/permissions/PropertyPermission.check (PropertyPermission.java)
         at com/ms/security/PolicyEngine.shallowCheck (PolicyEngine.java)
         at com/ms/security/PolicyEngine.checkCallersPermission (PolicyEngine.java)
         at com/ms/security/StandardSecurityManager.chk (StandardSecurityManager.java)
         at com/ms/security/StandardSecurityManager.checkPropertyAccess (StandardSecurityManager.java)
         at java/lang/System.getProperty (System.java)
         at weblogic/jndi/Environment.getProperty (Environment.java:598)
         at weblogic/jndi/Environment.getProviderRJVM (Environment.java:691)
         at weblogic/jndi/WLInitialContextFactoryDelegate.getInitialContext (WLInitialContextFactoryDelegate.java:166)
         at weblogic/jndi/Environment.getContext (Environment.java:122)
         at weblogic/jndi/Environment.getInitialContext (Environment.java:105)
         at weblogic/rmi/Naming.getContext (Naming.java:225)
         at weblogic/rmi/Naming.lookup (Naming.java:67)
         at examples/rmi/stock/StockApplet.init (StockApplet.java:127)
         at com/ms/applet/AppletPanel.securedCall0 (AppletPanel.java)
         at com/ms/applet/AppletPanel.securedCall (AppletPanel.java)
         at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
         at com/ms/applet/AppletPanel.processSentEvent (AppletPanel.java)
         at com/ms/applet/AppletPanel.run (AppletPanel.java)
         at java/lang/Thread.run (Thread.java)

    Can you post the Stock Applet and other source files...
    Jamal
    ([email protected])

  • Untrusted Connection - when I try to add a security exception, NOTHING happens

    A game company Web site I go to all the time has just started giving me Untrusted Connection messages. I was able to visit it with no problems as recently as a few hours ago, but now I just get a page that says "You have asked Firefox to connect securely to [site], but we can't confirm that your connection is secure" and goes on to explain about security certificates and so on.
    When I click "I understand the risks" then "Add exception", an "Add Security Exception" dialog box comes up as expected. However, when I click "Confirm Security Exception" on that dialog box (with or without clicking "Get Certificate" first), LITERALLY NOTHING happens. I don't mean I get an error message, or some result I'm not expecting, or even that the dialog box disappears. When I say nothing happens, I mean quite literally NOTHING happens. The button is not greyed out, yet clicking it has absolutely no effect. This leaves me with no means of closing the dialog box except clicking "Cancel", and therefore no means of accessing the site.
    I've seen similar problems mentioned on this site, but mostly they either have the button greyed out (mine isn't) or they get a conflicting message saying the certificate is fine and doesn't need replacing (I don't). I have not seen anyone else post about my version, where everything looks normal and internally consistent yet the "Confirm Security Exception" button is non-functional.
    This is not the first time I've had this problem, but it's the most annoying in that this time, it's affecting a site I normally visit several times a day rather than one I don't care that much about. As far as I recall, in my hands the "Confirm Security Exception" button has NEVER functioned, with the problem even surviving a near-total replacement of the hardware including the hard drive Firefox lives on.

    Make sure that you do not run Firefox in (permanent) Private Browsing mode (Never Remember History).
    *https://support.mozilla.org/kb/Private+Browsing
    *Tools > Options > Privacy > Firefox will: "Use custom settings for history"
    *Deselect: [ ] "Always use private browsing mode"
    Check out why the site is untrusted (click "Technical Details to expand that section) and if this is caused by a missing intermediate certificate then see if you can install this intermediate certificate from another source.
    You can retrieve the certificate and check details like who issued certificates and expiration dates of certificates.
    *Click the link at the bottom of the error page: "I Understand the Risks"
    Let Firefox retrieve the certificate: "Add Exception" -> "Get Certificate".
    *Click the "View..." button and inspect the certificate and check who is the issuer of the certificate.
    You can see more Details like intermediate certificates that are used in the Details pane.
    If "I Understand the Risks" is missing then this page may be opened in an (i)frame and in that case try the right-click context menu and use "This Frame: Open Frame in New Tab".
    Note that some firewalls monitor secure (https) connections and send their own certificate instead of the website's certificate.

  • How can I get Firefox to load pages properly and stop asking me to add every single page I visit as a "security exception"?

    I just downloaded the newest version of Firefox today because it is required for some of the websites I need for my college courses. However, every single website I go to (even the Mozilla site, Google, etc.) says that there's an "untrusted connection." On some sites I have an option between "Get me out of here!" or to add this particular site as a security exception. As you can probably imagine, this is very time consuming and frustrating. I have uninstalled the program (clean uninstall) and reinstalled it. I have reset Firefox, and nothing helps. The problem persists in Safe Mode as well. Along with this issue, every website I manage to get access to is all kinds of messed up. Modules are missing, or the whole page is blank. It can sit there for an hour and nothing loads. I have a good internet connection and fast processor. I was using Chrome before, and Internet Explorer with no issue. About two years ago I used Mozilla Firefox on this same computer and had no issues. I have a 64-bit system, which is the only issue I can think might be causing this problem. I have gone through and tried changing just about every setting, and nothing has helped. I am at my wit's end because I have homework to do and can't because of this problem.

    Glad it is fixed. Thanks for posting back, (even if we are not sure exactly what happened).

  • I failed to Confirm Security Exception for a site confirmed to be trusted, but apparently only supported by Internet Explorer, and am now barred from the site, so how do I access it?

    I have been successfully accessing a secure site using a Citrix plugin. The security certificate for the site was renewed on 17 September and is valid, but is apparently supported by Explorer. When I accessed it today, Firefox reported it as Insecure. I attempted to bypass the Firefox block, but must have failed to Confirm Security Exception, so that my access is now denied as I 'have said this is not a trusted site' (error 183). Is there any way I can now access the site.

    Thank you for your reply.
    My problem isn't removing my log-in name and password for a site.
    The problem is I already had the log-in name and password saved by FF, but I was required by the site to change the password. FF did not recognize that it had changed and refuses to prompt me to save the new password.
    After several attempts to force the prompt, I deleted the site from the Saved Password list, hoping that the next time I entered my log-in name and password on that site FF would ask if I wanted to save both. That did not happen even after exiting FF and relaunching it.
    So, right now FF will not save my log-in name and password for a site that it used track for me. Given the complexity of the new password, I really do not want to manually enter it every time I use the site.
    Regards.

  • How do I delete a Security Exception from the list of items where 'Confirm Security Exception' has been selected?

    I looked at all the previous solutions, some of which were the same., but they didn't answer my question.
    Firefox 17.01
    Ubuntu 12.04
    If I go to
    Edit --> Preferences --> Advanced --> Encryption
    it looks like 'View Certificates' is the likeliest place to look for the Security Exceptions resulting from me clicking 'Confirm Security Exception'.
    I have looked at the five tabs on the next dialog box 'Certificate Manager', and the most likely looks like the 'Servers' tab.
    On this tab, I can see that there is a button to 'Add Exception...', but nowhere to 'Show Exceptions', and the 'Add Exception...' button only provides means to add a new exception.

    Correct: you can find the exceptions under the '''Servers''' tab. Unlike other entries, your custom exceptions should have the '''Server''' column filled out; this should make them easier to locate. Select an entry, then click the '''Delete...''' button.

  • Security exceptions not configurable after release 31 (bug number 1042889 is not fixed)

    We are running Firefox 31 32 and 33 on different machines on windows/XP (updated until end of support).
    Our router has an expired certificate. On the machines updated to Firefox 32 or above the security popup screen does not show. Instead we just get the corresponding error message, when trying to access the router's homepage.
    I looked at the support thread "Secure Connection Failed- can not confirm security exception (since update to 31)" .
    The posted solutions do NOT work!
    Chrome and even IE work fine.
    Please take a look at what was changed and reverse it.
    Or add a possibility to configure exceptions to the always accessible options tab "security", Having only 262 users with the same problem, means all others having the problem just moved to other browsers.
    For someone using Firefox since the beginning and liking it this will be a hard step, so I raise the issue again.
    No, buying a new router is NOT an option, because it manages our network storage and printers and the rule is "never fix a running system".

    hello, the fix of the bug number you have referred to has already landed in firefox 31.2.0 esr and will land in the regular firefox release channel in case there is an update to firefox 33 or else in version 34.

  • Unable to run a form(FOrms 5.0) on Web. Security exception E

    Hi,
    I am trying to run a simple form developed in Forms 5.0 over our
    intranet.
    Environment: On NT I am using Oracle 8.0.5, Developer/2000
    Server and Internet Information Server 4.0.
    I have created a simple form and deployed on the server.
    (created the virtual directories for Java related directories as
    per some documentation available with me). Made a small html
    document containing the Applet definition to run this form. When
    I tried to execute this, it gives the following security
    exception error.
    ==============================================
    com.ms.security.SecurityExceptionEx
    [oracle/forms/uiClient/v1_4/engine/Runform.initClipboard]:
    Clipboard access denied.
    at com/ms/security/permissions/UIPermission.check
    at com/ms/security/PolicyEngine.deepCheck
    at com/ms/security/PolicyEngine.checkPermission
    at com/ms/security/StandardSecurityManager.chk
    at
    com/ms/security/StandardSecurityManager.checkSystemClipboardAcces
    s
    at com/ms/awt/WToolkit.getSystemClipboard
    at
    oracle/forms/uiClient/v1_4/engine/Runform.initClipboard
    at oracle/forms/uiClient/v1_4/engine/Runform.startRunform
    at oracle/forms/uiClient/v1_4/engine/Runform.run
    at java/lang/Thread.run
    com.ms.security.SecurityExceptionEx
    [oracle/forms/uiClient/v1_4/engine/Runform.initClipboard]:
    Clipboard access denied.:Clipboard access denied.
    Microsoft (R) VM for Java, 4.0 Release 4.79.0.2435
    ==============================================
    ? help
    c clear
    f run finalizers
    g garbage collect
    m memory usage
    q quit
    t thread list
    ==============================================
    Can any body help me, where I might have gone wrong, either in
    the development or deployment.
    I am also, running Oracle Application server 4.0.7 on the
    server, but I am not using the cartridge based deployment of
    forms, beca, I could not find way to create Forms
    application/Cartridge in it. If any one about it please help me.
    Early response is highly appreciated.
    Thanking you in advance ..// Manohar Reddy //
    null

    Hi Mobeen,
    That is one thing that I wanted to know. How do I make Forms
    Server to run as Service. Please explain me the
    procedure/operation.
    I am using IIS 4.0.
    Do you have any Idea, how to implement the Cartridge version of
    the Forms on OAS 4.0
    Thanks for the information though ..// Manohar //
    mobeen (guest) wrote:
    : hi
    : well u can run forms server asa service on NT then even if u
    log
    : out i wont terminate.
    : which web server r u running
    : mobeen
    : Manohar Reddy (guest) wrote:
    : : Thank you Mobeen for your time..
    : : I was able solve the problem.
    : : The problem was, my Forms Server(F50srv32.exe) was
    terminating,
    : : whenever I log out of that box. Now, I need to know, I to
    make
    : : that Process to run continuously, like a servece.
    : : Another issue, which mentioned, in my y'days mail is, How to
    : run
    : : these forms as the CARTRIDGE method ? ..
    : : Does any bdy can help me ..// Manohar //
    : : Mobeen (guest) wrote:
    : : : Hi
    : : : i guesss u have not exported Dev2k.x509 for Developer/2000.
    : : : copy Dev2k.x059 file to ur harddisk from the media
    : : : then
    : : : use javakey -c Developer/2000 true
    : : : javekey -ic Developer/2000 Dev2k.x509
    : : : it would generate identitydb.obj place that file in
    : : /user/profile
    : : : directory.
    : : : plus u have to set forms60_mapping and forms60_output
    : Registry
    : : : Variables
    : : : i hope that would sovle ur problem
    : : : mobeen
    : : : Manohar Reddy (guest) wrote:
    : : : : Hi,
    : : : : I am trying to run a simple form developed in Forms 5.0
    : over
    : : : our
    : : : : intranet.
    : : : : Environment: On NT I am using Oracle 8.0.5,
    Developer/2000
    : : : : Server and Internet Information Server 4.0.
    : : : : I have created a simple form and deployed on the server.
    : : : : (created the virtual directories for Java related
    : directories
    : : : as
    : : : : per some documentation available with me). Made a small
    : html
    : : : : document containing the Applet definition to run this
    form.
    : : : When
    : : : : I tried to execute this, it gives the following security
    : : : : exception error.
    : : : : ==============================================
    : : : : com.ms.security.SecurityExceptionEx
    [oracle/forms/uiClient/v1_4/engine/Runform.initClipboard]:
    : : : : Clipboard access denied.
    : : : : at com/ms/security/permissions/UIPermission.check
    : : : : at com/ms/security/PolicyEngine.deepCheck
    : : : : at com/ms/security/PolicyEngine.checkPermission
    : : : : at com/ms/security/StandardSecurityManager.chk
    : : : : at
    com/ms/security/StandardSecurityManager.checkSystemClipboardAcces
    : : : : s
    : : : : at com/ms/awt/WToolkit.getSystemClipboard
    : : : : at
    : : : : oracle/forms/uiClient/v1_4/engine/Runform.initClipboard
    : : : : at
    oracle/forms/uiClient/v1_4/engine/Runform.startRunform
    : : : : at oracle/forms/uiClient/v1_4/engine/Runform.run
    : : : : at java/lang/Thread.run
    : : : : com.ms.security.SecurityExceptionEx
    [oracle/forms/uiClient/v1_4/engine/Runform.initClipboard]:
    : : : : Clipboard access denied.:Clipboard access denied.
    : : : : Microsoft (R) VM for Java, 4.0 Release 4.79.0.2435
    : : : : ==============================================
    : : : : ? help
    : : : : c clear
    : : : : f run finalizers
    : : : : g garbage collect
    : : : : m memory usage
    : : : : q quit
    : : : : t thread list
    : : : : ==============================================
    : : : : Can any body help me, where I might have gone wrong,
    either
    : : in
    : : : : the development or deployment.
    : : : : I am also, running Oracle Application server 4.0.7 on the
    : : : : server, but I am not using the cartridge based deployment
    : of
    : : : : forms, beca, I could not find way to create Forms
    : : : : application/Cartridge in it. If any one about it please
    : help
    : : : me.
    : : : : Early response is highly appreciated.
    : : : : Thanking you in advance ..// Manohar Reddy //
    null

  • All of my previous security exceptions disappeared when I upgraded Firefox and I have NO list of what they were; how do I get them back?

    I was pestered to death by Firefox to upgrade to 12.0. I am really sorry I did. I lost all my Security Exceptions. Tools > Options > Security > Exceptions All of my previous security exceptions disappeared when I upgraded Firefox. They are gone and I have NO list of what they were. Is there ant way to bring them back?

    The security exceptions that allow other sites to install software?
    Which version did you have before -- 3.6.x or Firefox 11?
    I don't know whether you regularly back up your computer, but if you have a backup of your Firefox profile folder, then that data should be in there. If you can locate a backup copy of permissions.sqlite, you could use a utility to extract the list. (Or find a volunteer here to assist you with that.)
    By the way, did your pop-up exceptions and image exceptions carry over? You can check those under Tools > Options > Content.

  • Signed applet throws security exceptions

    Since nobody seems to be reading the Signe Applet forum, I decided to try here:
    Hi all
    I have problems with signed applet (self-made cert), and after reading this forum I see this is more or less common.
    The problem that I am having is, that I can not use doPrivilege() and similar tricks, because applet needs to be Java 1.1 compatible.
    So, signing will have to work.
    Applet is signed using 1.5.0_06 jarsigner. Jarsigner verifies it OK.
    It works on JVM 1.5.0_06 but not on 1.4.2_08.
    Please help me make if work under any JVM.
    The error I get is:
    Java(TM) Plug-in: Version 1.4.2_08
    Using JRE version 1.4.2_08 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\miha
    Proxy Configuration: Automatic Proxy Configuration
         URL: http://orion.nil.si/proxy.pac
    c:   clear console window
    f:   finalize objects on finalization queue
    g:   garbage collect
    h:   display this help message
    l:   dump classloader list
    m:   print memory usage
    o:   trigger logging
    p:   reload proxy configuration
    q:   hide console
    r:   reload policy configuration
    s:   dump system properties
    t:   dump thread list
    v:   dump thread stack
    x:   clear classloader cache
    0-5: set trace level to <n>
    java.security.AccessControlException: access denied (java.net.SocketPermission host.domain.dom resolve)
    TelnetWrapper PROXY: java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:0 connect,resolve)
    java.lang.NullPointerException
         at net.propero.rdp.ISO.connect(ISO.java:123)
         at net.propero.rdp.MCS.connect(MCS.java:84)
         at net.propero.rdp.Secure.connect(Secure.java:153)
         at net.propero.rdp.Secure.connect(Secure.java:171)
         at net.propero.rdp.Rdp.connect(Rdp.java:498)
         at net.propero.rdp.Rdesktop.main_nonstatic(Rdesktop.java:615)
         at net.propero.rdp.applet.RdpThread.run(RdpApplet.java:222)
    FATAL: java.lang.NullPointerException: nullWhat is funny, is that I have two applets, and one works and the other one doesn't. It is like this:
    Applet A (signed) needs to connect to host1, fails and tries to connect through proxy using my proxy library (also signed - different JAR). Everything works.
    Applet B (signed) needs to connect to host1, fails and tries to connect through proxy using the same proxy library. It gets a security exception.
    All JARs are signed using the same key/certificate.
    Both applets try to connect to the same "host1".
    Both applets try to use the same proxy - which is different from "host1".
    The one thing that might make a difference, is that in the working applet, everything is within one thread, and in the broken applet, the proxy object is in the main applet thread, and this applet may open many windows, that all utilize the same proxy object - only they can't.
    When I tried to move the proxy object down to the child threads, I get the following exception:
    Exception in thread "Thread-1952" java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.misc)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPackageAccess(Unknown Source)
         at sun.applet.AppletSecurity.checkPackageAccess(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         at net.propero.rdp.Rdesktop.main_nonstatic(Rdesktop.java:567)
         at net.propero.rdp.applet.RdpThread.run(RdpApplet.java:211)It seems that I can only create the proxy object in the Applet.init() method, to avoid this exception.
    So to, summarize: I would prefer just one object for all threads that I will create, but then my applet behaves like it is not signed (at least under JVM 1.4.2_08). Java 1.5.0_06 doesn't have any problems with this.
    Regards, Miha Vitorovic

    The one thing that might make a difference, is that in the working applet, everything is within one thread, and in the broken applet, the proxy object is in the main applet thread, and this applet may open many windows, that all utilize the same proxy object - only they can't.
    When I tried to move the proxy object down to the child threads, I get the following exception:
    Exception in thread "Thread-1952" java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.misc)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPackageAccess(Unknown Source)
         at sun.applet.AppletSecurity.checkPackageAccess(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
         at net.propero.rdp.Rdesktop.main_nonstatic(Rdesktop.java:567)
         at net.propero.rdp.applet.RdpThread.run(RdpApplet.java:211)It seems that I can only create the proxy object in the Applet.init() method, to avoid this exception.
    So to, summarize: I would prefer just one object for all threads that I will create, but then my applet behaves like it is not signed (at least under JVM 1.4.2_08). Java 1.5.0_06 doesn't have any problems with this.
    Regards, Miha Vitorovic

  • Firefox can't store permanent security exceptions.

    I'm using Firefox 3.16.12 (user-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3)
    When I try to add security exception for self-signed certificate - I have the same problem as it seen on this video: http://www.youtube.com/watch?v=WatBXY5CxO0
    Temporary exceptions are stored without any problems.

    Found solution for this problem here: http://forums.mozillazine.org/viewtopic.php?f=38&t=1160375&start=0&st=0&sk=t&sd=a
    It seems, that something was wrong with cert_override.txt , cert8.db from profile folder. Deleting those file helps.

  • HOW DO I GET RID OF THIS MESSAGE - ADD SECURITY EXCEPTION you are about to over ride how Thunderbird identifies this site. Location pop.shaw.ca.110 no e-mail

    I KEEP GETTING A BOX WITH THIS MESSAGE - ADD SECURITY EXCEPTION
    you are about to over ride how Thunderbird identifies this site
    LOCATION: pop.shaw.ca.110
    then it asks for a security certificate
    I DO NOT KNOW HOW TO FIX OR BETTER YET GET RID OF THIS MESSAGE

    You're supposed to take a screenshot. The link has instructions about how to do that.
    Then attach the resulting image to your post by using the 'Browse' button right above the 'Post Reply' button.

  • Help! JDOM SAXParserFactory causing Security exception in Microsoft Java VM

    Hiya all, I'm really hoping you can offer me a hand with this problem.
    I'm having a problem with SAXParserFactory causing a security exception in
    Microsoft Internet Explorer, using JDOM b7.
    here is the error string it spits out:
    String...com.ms.security.SecurityExceptionEx[javax/xml/parsers/SAXParserFact
    ory.newInstance]: Unable to access system property:
    javax.xml.parsers.SAXParserFactory
    at com/ms/security/permissions/PropertyPermission.check
    (PropertyPermission.java)
    at com/ms/security/PolicyEngine.shallowCheck (PolicyEngine.java)
    at com/ms/security/PolicyEngine.checkCallersPermission (PolicyEngine.java)
    at com/ms/security/StandardSecurityManager.chk
    (StandardSecurityManager.java)
    at com/ms/security/StandardSecurityManager.checkPropertyAccess
    (StandardSecurityManager.java)
    at java/lang/System.getProperty (System.java)
    at javax/xml/parsers/SAXParserFactory.newInstance
    (SAXParserFactory.java:139)
    at java/lang/reflect/Method.invoke (Method.java)
    at org/jdom/input/SAXBuilder.createParser (SAXBuilder.java)
    at org/jdom/input/SAXBuilder.build (SAXBuilder.java)
    at org/jdom/input/SAXBuilder.build (SAXBuilder.java)
    at aim/AIMPanel.parseXML (AIMPanel.java:673)
    at aim/AIMPanel.serverCall (AIMPanel.java:486)
    at aim/LogicalAIM.<init> (LogicalAIM.java:62)
    at aim/AIMPanel.customInitialize (AIMPanel.java:1595)
    at shout3d/Shout3DPanel.n (Shout3DPanel.java)
    at shout3d/Shout3DPanel.run (Shout3DPanel.java)
    at java/lang/Thread.run (Thread.java)
    Using Microsoft's 5.0.0.3802 VM, this error results in a NullPointer
    Exception further down, causing the app to quit.
    in 5.0.0.3310, it reports the error but continues to run.
    in 5.0.0.3234, no errors are reported at all.
    Do you guys have any idea what's going on and why, and what I might be able
    to do to correct this?
    Any help is greatly appreciated...
    -J

    The factory classes (DocumentBuilderFactory and SAXParserFactory) use a Systems Property to determine which parser to use. Since applets do not have access to the Systems properties, a security exception is usually thrown.
    I have not done work with Applets that use JAXP, however I would bet if you search this forum you will find other who have had this problem along with a possible work around.
    Hope this helps.

  • Mistakenly applied security exception to web site

    I downloaded JAVA and started getting a lot of security errors. I mistakenly clicked "Get me out of here!" on one of these error messages, so now I can't access that site. Is it possible to reverse or remove a security exception?

    You may refer this : http://windows.microsoft.com/en-AU/internet-explorer/manage-add-ons#ie=ie-11
    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.

  • Should a signed applet ever throw a security exception?

    hi,
    I've had a few times when a signed applet seems to throw a security exception (at the moment am trying to figure out a SocketException being thrown).
    I thought if the applet was signed, and when the browser asks if you want to grant it permissions you press Yes (which I do), then there should not be any security issues?
    thanks,
    asjf

    A signed applet has to assert which permissions it wants. The client JVM then asks the user if they will give those permissions to the signer. If the applet tries to do something for which it hasn't been granted permission a security exception is thrown.

Maybe you are looking for

  • Two Apple accounts on one computer

    My husband and I each had our own computers with our own Apple ID's and iTune accounts. Those computers are no longer in use. Our plan was to share one computer.  Can you put two different iTune accounts each with their own Apple ID on one computer?

  • Has anyone created a PICTURE BOOK in iBooks Author?

    I am coming up against an issue that I wish I had known about before investing my time in iBooks Author and that is the the apparant inability to create our picture book and not give away the plot of the entire book on the second page in the TOC that

  • Invoking PageTemplate Bug?

    Hi folks,    I'm using jdev 11.1.2.4.0 by with that i h've been created fusion web app. it comprise  of model-viewcontroller projects. In VC i h've been created a custom pagetemplate.jsf then i try to invoke that in all my .jsf. it's fine. but i'm tr

  • Recon acct showing diff in GL view.

    Vendor is having reconciliation account say 1000 For the payment document posted, in General Ledger View the account is showing different say 1001. Whereas for all the other payment documents for the vendor, the GL view is showing 1000 as mapped in t

  • How to prevent user from changing a field on a Form.

    I have a form and a report on the same page. The form is used to set criteria for the report. So after the criteria is entered on the form a button is clicked, which passes the criteria to the report. The form also displays some additional data based