With plugin 1.4.2_02 and downloading my applet by http the applet works without a problem
With plugin 1.4.2_02 and downloading my applet by https the applet works however it works extremely slow and it continuiously produces the following error that you've all seen many times before:
Connecting https://somesite/org/apache/log4j/Logger.class with no proxy
Connecting https://somesite/org/apache/log4j/Logger.class with cookie ".LocaleInfo=us; rememberUn=true; login=blah; oinfo=dHlwZT0zJnN0YXR1cz1GUkVF; sid=3S2i.UtTOH21UXwEts_hR0mLtXboWjSOVB63u360GfKl2wcpnuuj8vj7qVOkMg_.DU16Q_1J8AU8oq6Hg.Ad7PbtzKggVlhL; lastlist=/01N"
sun.plugin.cache.DownloadException
at sun.plugin.cache.CachedFileLoader.load(Unknown Source)
at sun.plugin.cache.FileCache.get(Unknown Source)
at sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.connectWithCache(Unknown Source)
at sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.getInputStream(Unknown Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(Unknown Source)
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.apache.commons.logging.impl.LogFactoryImpl$1.run(LogFactoryImpl.java:466)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.commons.logging.impl.LogFactoryImpl.loadClass(LogFactoryImpl.java:454)
at org.apache.commons.logging.impl.LogFactoryImpl.isLog4JAvailable(LogFactoryImpl.java:501)
at org.apache.commons.logging.impl.LogFactoryImpl.getLogClassName(LogFactoryImpl.java:364)
at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:401)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:525)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:272)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:414)
at org.apache.axis.components.logger.LogFactory.getLog(LogFactory.java:76)
at org.apache.axis.AxisEngine.<clinit>(AxisEngine.java:86)
at org.apache.axis.client.Service.getAxisClient(Service.java:143)
at org.apache.axis.client.Service.<init>(Service.java:152)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin.com.MethodDispatcher.invoke(Unknown Source)
at sun.plugin.com.DispatchImpl.invoke(Unknown Source)
With plugin 1.4.2_03 and downloading the applet by http the applet doesn't work and I get this error:
“java.security.AccessControlException: access denied (java.io.FilePermission client-config.wsdd read)” - I could supply the full stack trace if anyone is curious
With plugin 1.4.2_03 and downloading the applet by https the applet doesn't work and I get the same errors I got in with under https with 1.4.2_02, and the error I got with 1.4.2_03 with http
I've tried changing the policy file, but that hasn't helped. I created a file and inside of it I gave full permission to the codebase, and in the java.security file I added a pointer to the file.
Here's something that I find really interesting. For the java plugin 1.4.2_03 I went into the control panel and set the java runtime environment to the 1.4.2_03 in my Program Files directly. Without me doing anything that also set the settings for the java plugin 1.4.2_02.
The policy file that is being read according to the console system properties didn't even exist, so put my policy file in that location, and it still didn't help.
Does anyone have any suggestions for me? Any assistance would be very much appreciated.
lou fox wrote:
One clarification: I had it working with java plugin 1.4.2_02, but I upgraded to 1.4.2_03 because of the Versign certificate issue. Also note that I extracted all of the jar files, and created a single jar.
lou fox wrote:
I know there has been alot of messages on applets and axis but I haven't seen the question/answer that I'm looking for. I'm trying use axis within an applet with java plugin 1.4.2_03. Before I add the stack trace, I would like to note that this is over https; over http I don't have a single problem. May I also mention that I signed the jar file that composes the applet, but I haven't edited my policy file. If the solution lies in the policy file, can I set the policy file as part of the applet, or do I have to edit the end user's policy file as well? And if it fix does lie in the policy file, does anyone have an example policy file?
sun.plugin.cache.DownloadException
at sun.plugin.cache.CachedFileLoader.load(Unknown Source)
at sun.plugin.cache.FileCache.get(Unknown Source)
at sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.connectWithCache(Unknown Source)
at sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.getInputStream(Unknown Source)
at java.net.HttpURLConnection.getResponseCode(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(Unknown Source)
at sun.applet.AppletClassLoader.getBytes(Unknown Source)
at sun.applet.AppletClassLoader.access$100(Unknown Source)
at sun.applet.AppletClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.apache.commons.logging.impl.LogFactoryImpl$1.run(LogFactoryImpl.java:466)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.commons.logging.impl.LogFactoryImpl.loadClass(LogFactoryImpl.java:454)
at org.apache.commons.logging.impl.LogFactoryImpl.isLog4JAvailable(LogFactoryImpl.java:501)
at org.apache.commons.logging.impl.LogFactoryImpl.getLogClassName(LogFactoryImpl.java:364)
at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryImpl.java:401)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:525)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:272)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:414)
at org.apache.axis.components.logger.LogFactory.getLog(LogFactory.java:76)
at org.apache.axis.handlers.BasicHandler.<clinit>(BasicHandler.java:81)
at org.apache.axis.client.Service.getAxisClient(Service.java:143)
at org.apache.axis.client.Service.<init>(Service.java:152)
at com.sforce.soap.partner.SforceServiceLocator.<init>(SforceServiceLocator.java:10)
at com.bluewolf.sforce.WebPeerImpl.login(WebPeerImpl.java:87) at com.bluewolf.sforce.WebPeerProxy.login(WebPeerProxy.java:91) at com.bluewolf.applet.Main.getDefaultSession(Main.java:84) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at sun.plugin.com.MethodDispatcher.invoke(Unknown Source) at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source) at sun.plugin.com.DispatchImpl$2.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at sun.plugin.com.DispatchImpl.invoke(Unknown Source)
