Results 1 to 2 of 2
  1. #1
    Sagar tandale is offline Member
    Join Date
    Feb 2011
    Posts
    1
    Rep Power
    0

    Default Applet is not working properly on windows 7 with java update 23

    I am using applet in web application to serve as Image Viewer.

    Problem Description :

    1.Client machine configuration: Windows 7, java update 23 , IE8

    2.When my web application is not secure (i.e. accessible via HTTP), applet is
    able to download image from server.

    3.But when my web application is secure (i.e. accessible via HTTPS), applet
    is unable to download image from server.

    4.When applet try to download image using HTTPS, somehow it takes it as
    crossdomain access.

    5.When Client machine has Windows vista or Windows xp OS no such problem
    is there, applet works fine.

    Note : Applet method to download image is called from javascript.

    6.Java log console -

    network: Cache entry not found [url: https://fd2235dbc95c49be9064433f8030d9f5.cloudapp.net/ExtractForm.aspx?nPageID=366&Sessionid=22000255&UC CName=healthcaresolution, version: null]
    network: Connecting https://fd2235dbc95c49be9064433f8030d9f5.cloudapp.net/ExtractForm.aspx?nPageID=366&Sessionid=22000255&UC CName=healthcaresolution with proxy=DIRECT
    network: Cache entry not found [url: http://65.52.203.213/crossdomain.xml, version: null]
    network: Connecting http://65.52.203.213/crossdomain.xml with proxy=DIRECT
    network: Connecting http://65.52.203.213:80/ with proxy=DIRECT
    java.security.PrivilegedActionException: java.net.ConnectException: Connection refused: connect
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.net.CrossDomainXML.check(Unknown Source)
    at com.sun.deploy.net.CrossDomainXML.check(Unknown Source)
    at sun.plugin2.applet.Applet2SecurityManager.checkCon nect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect (Unknown Source)
    at sun.net.NetworkClient.doConnect(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.protocol.https.HttpsClient.<init>(Unkn own Source)
    at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
    at sun.net.www.protocol.https.AbstractDelegateHttpsUR LConnection.getNewHttpClient(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.plainC onnect(Unknown Source)
    at sun.net.www.protocol.https.AbstractDelegateHttpsUR LConnection.connect(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getInp utStream(Unknown Source)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl. getInputStream(Unknown Source)
    at com.newgen.formApplet.ngfrmbld.<init>(ngfrmbld.jav a:278)
    at com.newgen.formApplet.FormApplet.jbInit(FormApplet .java:411)
    at com.newgen.formApplet.FormApplet.FileUrl(FormApple t.java:309)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at sun.plugin.javascript.JSInvoke.invoke(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source)
    at sun.plugin2.liveconnect.JavaClass$MethodInfo.invok e(Unknown Source)
    at sun.plugin2.liveconnect.JavaClass$MemberBundle.inv oke(Unknown Source)
    at sun.plugin2.liveconnect.JavaClass.invoke0(Unknown Source)
    at sun.plugin2.liveconnect.JavaClass.invoke(Unknown Source)
    at sun.plugin2.main.client.LiveConnectSupport$PerAppl etInfo$DefaultInvocationDelegate.invoke(Unknown Source)
    at sun.plugin2.main.client.LiveConnectSupport$PerAppl etInfo$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.plugin2.main.client.LiveConnectSupport$PerAppl etInfo.doObjectOp(Unknown Source)
    at sun.plugin2.main.client.LiveConnectSupport$PerAppl etInfo$LiveConnectWorker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(Unknown Source)
    at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at sun.net.NetworkClient.doConnect(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.http.HttpClient.<init>(Unknown Source)
    at sun.net.www.http.HttpClient.New(Unknown Source)
    at sun.net.www.http.HttpClient.New(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getNew HttpClient(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.plainC onnect(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.connec t(Unknown Source)
    at com.sun.deploy.net.CrossDomainXML$2.run(Unknown Source)
    ... 39 more
    java.security.AccessControlException: access denied (java.net.SocketPermission 65.52.203.213:443 connect,resolve)
    at java.security.AccessControlContext.checkPermission (Unknown Source)
    at java.security.AccessController.checkPermission(Unk nown Source)
    at java.lang.SecurityManager.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkConnect(Unknown Source)
    at sun.plugin2.applet.Applet2SecurityManager.checkCon nect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect (Unknown Source)
    at sun.net.NetworkClient.doConnect(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.http.HttpClient.openServer(Unknown Source)
    at sun.net.www.protocol.https.HttpsClient.<init>(Unkn own Source)
    at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
    at sun.net.www.protocol.https.AbstractDelegateHttpsUR LConnection.getNewHttpClient(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.plainC onnect(Unknown Source)
    at sun.net.www.protocol.https.AbstractDelegateHttpsUR LConnection.connect(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getInp utStream(Unknown Source)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl. getInputStream(Unknown Source)
    at com.newgen.formApplet.ngfrmbld.<init>(ngfrmbld.jav a:278)
    at com.newgen.formApplet.FormApplet.jbInit(FormApplet .java:411)
    at com.newgen.formApplet.FormApplet.FileUrl(FormApple t.java:309)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at sun.plugin.javascript.JSInvoke.invoke(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at sun.plugin.javascript.JSClassLoader.invoke(Unknown Source)
    at sun.plugin2.liveconnect.JavaClass$MethodInfo.invok e(Unknown Source)
    at sun.plugin2.liveconnect.JavaClass$MemberBundle.inv oke(Unknown Source)
    at sun.plugin2.liveconnect.JavaClass.invoke0(Unknown Source)
    at sun.plugin2.liveconnect.JavaClass.invoke(Unknown Source)
    at sun.plugin2.main.client.LiveConnectSupport$PerAppl etInfo$DefaultInvocationDelegate.invoke(Unknown Source)
    at sun.plugin2.main.client.LiveConnectSupport$PerAppl etInfo$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.plugin2.main.client.LiveConnectSupport$PerAppl etInfo.doObjectOp(Unknown Source)
    at sun.plugin2.main.client.LiveConnectSupport$PerAppl etInfo$LiveConnectWorker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Last edited by Sagar tandale; 02-21-2011 at 05:06 AM.

  2. #2
    Martin053 is offline Member
    Join Date
    Feb 2011
    Posts
    1
    Rep Power
    0

    Default

    Are you sure you're using update 23 and not 24 already? Cause with our upload applet we received the same kind of error after updating to 24:
    ava.security.AccessControlException: access denied (java.net.SocketPermission ...:80 connect,resolve)
    . Going back to 23 resolved the problem. But we just upgraded to 24 to allow the applet to work in IE9 RC (see: Internet Explorer 9 Release Candidate Error: “We were unable to return you to {your webpage}, Internet Explorer has stopped trying to restore this website. It appears that the website continues to have a problem.” for explanation).

    Emptying java.policy also fixed the problem (granting all access to anyone). But of course that's not a great solution for any internet-connected pc! ;-)

    UPDATE: Check the following discussion for info on the "AccessControlException" which a lot of people get after upgrading to 24:
    http://forums.oracle.com/forums/thre...77273&tstart=0
    Last edited by Martin053; 02-19-2011 at 08:48 AM.

Similar Threads

  1. Replies: 0
    Last Post: 01-03-2011, 03:24 PM
  2. date is not working properly
    By newnewgen in forum New To Java
    Replies: 1
    Last Post: 10-12-2010, 09:04 AM
  3. Replies: 1
    Last Post: 08-19-2010, 12:47 PM
  4. Replies: 9
    Last Post: 05-21-2010, 10:46 AM
  5. Replies: 0
    Last Post: 02-06-2008, 02:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •