0 Replies Latest reply: Feb 20, 2011 11:17 PM by 840612 RSS

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

    840612
      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)

      Edited by: 837609 on Feb 20, 2011 9:17 PM