chetan verma

Greenhorn
+ Follow
since Jan 20, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by chetan verma

in continuation of my previous problem.

I restarted tomcat and now the exception in other machines has changed:
Java Console shows:-

java.lang.NullPointerException

at sun.net.www.protocol.http.HttpURLConnection.doTunneling(Unknown Source)

at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.setProxiedClient(Unknown Source)

at sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.superConnect(Unknown Source)

at sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.connect(Unknown Source)

at sun.net.www.protocol.https.PluginDelegateHttpsURLConnection.getInputStream(Unknown Source)

at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source)

at java.net.HttpURLConnection.getResponseCode(Unknown Source)

at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(Unknown Source)

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 sun.net.www.protocol.http.HttpURLConnection.getHeaderField(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 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)

Any help or idea appreciated..!!

Thanks...
18 years ago
Hi ulf..
i mentioned it before that the applet is loading on the same machine.

as far as knew, the .class extension may/maynot be used in <applet code="">

anyways, i checked and changed code="HelloWorld" and the same error has occured. the applet is loading successfully on the same machine.. but not on other,, the message in java console is same as before with 1 change:

java.lang.ClassNotFoundException: HelloWorld

NOTE: May be some kind of security issue is there, if u see the console msg carefully it says: Caused by: java.io.IOException: Authentication failure

any idea wat does dat mean??

My aim is not to run this HelloWorld applet.. its actually a test applet i made juct to check whether simple applets are loading properly or not..

As for JDK. im using j2sdk1.4.2_08
18 years ago
Hi,
I am using Tomcat 4.1 as the server. i have a simple java applet HelloWorld.java . have kept the class file and html calling applet in proper loction. am using https.
Problem: the applet is accessible from the same machine(i.e. machine where tomcat is installed) url:https://<DNS>:8443/chat/index.html , where index.html has the applet tag. note: DNS is registered

but when i try to open the url from any other machine, the html page loads but NOT the applet. i cant reaaly find the problem..browser says:Applet not inited. neeed urgent help!!

Below is the message in Java Console:-
load: class HelloWorld.class not found.

java.lang.ClassNotFoundException: HelloWorld.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: Authentication failure

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

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

at java.net.HttpURLConnection.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)

... 10 more

URGENT HELP NEEDED !!
18 years ago