Java applet problems

getgoosed

Joined: 2004-10-24
Posts: 19
Posted: Sun, 2004-10-24 02:24

Looked at the site, seen some people with the same probs, but was unable to resolve with their fixes so I decided to repost a question.

With the image upload with the remote gallery applet, or big applet, everytime you click on it to use it, it only says downloading applet, please wait, but no progress no matter how long you wait. Java console returnes and error, which i will post at the bottom of this message.

Was wondering if anyone could help me get this going. Thanx

Server system
apache2, debian linux
Client - Winxp & Firefox

Java Console Error
java.lang.NullPointerException

at sun.plugin.net.proxy.PluginProxyManager.getProxyInfo(Unknown Source)

at sun.plugin.net.protocol.http.HttpURLConnection.connectSetup(Unknown Source)

at sun.plugin.net.protocol.http.HttpURLConnection.connect(Unknown Source)

at sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(Unknown Source)

at sun.plugin.net.protocol.http.HttpUtils.followRedirects(Unknown Source)

at sun.plugin.cache.CachedJarLoader.download(Unknown Source)

at sun.plugin.cache.CachedJarLoader.load(Unknown Source)

at sun.plugin.cache.JarCache.get(Unknown Source)

at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(Unknown Source)

at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)

at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)

at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)

at sun.misc.URLClassPath$3.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at sun.misc.URLClassPath.getLoader(Unknown Source)

at sun.misc.URLClassPath.getLoader(Unknown Source)

at sun.misc.URLClassPath.getResource(Unknown Source)

at java.net.URLClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(Unknown Source)

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 sun.applet.AppletClassLoader.loadCode(Unknown Source)

at sun.applet.AppletPanel.createApplet(Unknown Source)

at sun.plugin.AppletViewer.createApplet(Unknown Source)

at sun.applet.AppletPanel.runLoader(Unknown Source)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

java.lang.NullPointerException

at sun.plugin.net.proxy.PluginProxyManager.getProxyInfo(Unknown Source)

at sun.plugin.net.protocol.http.HttpURLConnection.connectSetup(Unknown Source)

at sun.plugin.net.protocol.http.HttpURLConnection.connect(Unknown Source)

at sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(Unknown Source)

at sun.plugin.net.protocol.http.HttpUtils.followRedirects(Unknown Source)

at sun.plugin.cache.CachedJarLoader.download(Unknown Source)

at sun.plugin.cache.CachedJarLoader.load(Unknown Source)

at sun.plugin.cache.JarCache.get(Unknown Source)

at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(Unknown Source)

at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)

at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)

at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)

at sun.misc.URLClassPath$3.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at sun.misc.URLClassPath.getLoader(Unknown Source)

at sun.misc.URLClassPath.getLoader(Unknown Source)

at sun.misc.URLClassPath.getResource(Unknown Source)

at java.net.URLClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(Unknown Source)

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 sun.applet.AppletClassLoader.loadCode(Unknown Source)

at sun.applet.AppletPanel.createApplet(Unknown Source)

at sun.plugin.AppletViewer.createApplet(Unknown Source)

at sun.applet.AppletPanel.runLoader(Unknown Source)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Sun, 2004-10-24 19:59

[Moving to Gallery remote forum]

 
das_sripati
das_sripati's picture

Joined: 2006-06-30
Posts: 2
Posted: Fri, 2006-06-30 13:00

Make sure that the version of the plug-in (eg. installed in c:\Program Files\Java\Jre1.4.2_05) uses the corresponding JRE version.

To do this go to Control Panel->Java Plug In->Advanced->Java Runtime Environment and check it matches to your Plug In version. In my case, the Jre1.4.2_05 Plug In was running, but the different JRE was selected in Control Panel. Then select the right version, for this case you have to select Jre1.4.2_05 then problem will disappear.

If still it is displaying the issue install a heigher version of j2sdk/jdk in your system it will automaticall set details of jre settings for the browser and run successfully.

Hope this'll help you.

Regard
Sripati Das,
India(Orissa)

 
rubydoo

Joined: 2006-09-27
Posts: 1
Posted: Wed, 2006-09-27 19:05

I have tried and tried to get applets to work on my puter but I have same problem that getgoosed mentioned. Here is what my Java consol shows:

Java Plug-in 1.5.0_08
Using JRE version 1.5.0_08 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\Owner

load: class http://webzoom.freewebs.com/rubydoo62/XMAS1COOKIE/ansnow.class not found.
java.lang.ClassNotFoundException: http:..webzoom.freewebs.com.rubydoo62.XMAS1COOKIE.ansnow.class
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 sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
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)
... 10 more

 
das_sripati
das_sripati's picture

Joined: 2006-06-30
Posts: 2
Posted: Thu, 2006-09-28 12:59

Hi Rubydoo,

It seems that your applet class is not found in your specified path to run. I don't know how you are giving your applet class path. I would like to see your HTML code for proper solution. Please use following code for applet class path in your HTML file code and let me know if you are still facing the same problem.

<applet CODE="ansnow.class" width="400" height="250" CODEBASE='http://webzoom.freewebs.com/rubydoo62/XMAS1COOKIE'>

Thanks & Regards
Sripati

 
simant_sd

Joined: 2007-11-29
Posts: 1
Posted: Thu, 2007-11-29 09:59

Hi Sripati,

My Name is Simant. Actually I am working on Network platform but as well as I'm a Application Support Executive for Sonyericsson(Sweden). I do not have much knowledge about Java Platform but Just giving monitoring of java application like: Log4j, JBoss Applications.
Please give me answer of below error:

2007-11-29 09:05:19,996 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
2007-11-29 09:05:19,996 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
2007-11-29 09:05:19,996 ERROR [STDERR] at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:197)
2007-11-29 09:05:19,996 ERROR [STDERR] at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:309)
2007-11-29 09:05:19,996 ERROR [STDERR] at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:387)
2007-11-29 09:05:19,996 ERROR [STDERR] at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673)
2007-11-29 09:05:19,996 ERROR [STDERR] at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:615)
2007-11-29 09:05:19,996 ERROR [STDERR] at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786)
2007-11-29 09:05:19,996 ERROR [STDERR] at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)
2007-11-29 09:05:19,996 ERROR [STDERR] at java.lang.Thread.run(Unknown Source)
2007-11-29 09:05:27,325 INFO [STDOUT] *******geTRealPath::D:\Primus\ES40\jboss\server\default\deploy\advisor.ear\advisor.war\
2007-11-29 09:05:27,325 INFO [STDOUT] DEBUG::ClientUtil::{CompanyID=2, user=[Ljava.lang.String;@1f39002, RuleID=219, Path=[Ljava.lang.String;@17385be, Template=[Ljava.lang.String;@151a3a5, RuleControlID=2}
2007-11-29 09:05:27,325 INFO [STDOUT] SetConnectionProperty:: url: jdbc:microsoft:sqlserver://seldsql501:5233;NETADDRESS=000000000000;HOSTPROCESS=0;SENDSTRINGPARAMETERSASUNICODE=true;LOGINTIMEOUT=0;DATABASENAME=css_kces;PROGRAMNAME=;SELECTMETHOD=cursor;WSID=
2007-11-29 09:05:27,497 INFO [STDOUT] DEBUG::RequestExecutor::Process Start::103::Thu Nov 29 09:05:27 CET 2007

My Question is why is giving error and what is the minning of this error?

Presently I have own application portal and everyday (Asia pacific) user are getting error when they are opening a own application so that time exception had raised.

Please give my solution of this mail. Or you can drop to your mail at my official mail id:

Please don't mind for above line.

My Best,
Simant Daharwal

 
pravinz11

Joined: 2008-11-12
Posts: 1
Posted: Wed, 2008-11-12 14:02

Hi,

I am also getting a similar exception as shown below when I try to load an applet after installing jre6 in my machine.
Applet works fine when I remove Jre6 and continue with earlier version of 1.4.2.
My company's firewall does not create any issue when the version is 1.4.2.So I think
that should not be a problem.Also I have tried testing the applet stuff after
stopping the windows messenger process but it did not help either.

Please suggest.

Java Plug-in 1.6.0_10
Using JRE version 1.6.0_10 Java HotSpot(TM) Client VM
User home directory = D:\Documents and Settings\thapr02

--------------------------------------------------------------------------------
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
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>

--------------------------------------------------------------------------------

java.lang.NoClassDefFoundError: gias/olf_file
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.getDeclaredMethod(Unknown Source)
at java.awt.Component.isCoalesceEventsOverriden(Unknown Source)
at java.awt.Component.access$300(Unknown Source)
at java.awt.Component$3.run(Unknown Source)
at java.awt.Component$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Component.checkCoalescing(Unknown Source)
at java.awt.Component.<init>(Unknown Source)
at java.awt.Container.<init>(Unknown Source)
at java.awt.Panel.<init>(Unknown Source)
at java.awt.Panel.<init>(Unknown Source)
at java.applet.Applet.<init>(Unknown Source)
at gias.step4calicenses.<init>(step4calicenses.java:90)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: gias.olf_file
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 24 more

-------------------------------------------------------------------------------------

I think there is some problem with the jre version.
HTML code for applet is :

<applet name="lic_install" archive=\"gias/sign_lic_install.jar\" codebase="irj/portalapps/licensing/applet" code="gias/step4calicenses.class">

Please suggest.