Rakesh Ray

Ranch Hand
+ Follow
since Jul 25, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Rakesh Ray

Any expert advise?
18 years ago
Hi, I have an applet that uses OBJECT tag and I do have sun java plug in installed on MY PC ( ver 1.4.2_07) and I am seeing this message in my java console while opening applet. More specific, while trying to cache jar files...
Amazingly this only happens with https URL. If I use http I do not see these message..



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 com.f1j.View.<clinit>([DashoPro-V2.1-070100])

at com.dcx.international.ipf.frcst.worksheet.applet.FViewManager.<init>(FViewManager.java:28)

at com.dcx.international.ipf.frcst.worksheet.applet.FViewLayout2.<init>(FViewLayout2.java:20)

at com.dcx.international.ipf.frcst.worksheet.applet.WkshtImpl.init(WkshtImpl.java:122)

at com.dcx.international.ipf.frcst.worksheet.applet.WkshtApplet.init(WkshtApplet.java:43)

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

at java.lang.Thread.run(Unknown Source)
18 years ago
Any one Please give some idea?
19 years ago
Hi, there.
I am using OBJECT tag for an applet.
Typicaly it will look like as follows.. ( Part of a code is as follows)

<OBJECT classid='clsid:8AD9C840-044E-11D1-B3E9-00805F499D93' width='984' height='570' name='Worksheet' codebase='http://java.sun.com/products/plugin/autodl/jinstall-1_3-windows.i586.cab#Version=1,3,0,0'>
<param name='CODE' value='com.proj.int.ipf.fr.wsheet.applet.WkshtApplet'>
<param name='CODEBASE' value='/ccispapp/classes'>
<param name='cache_option' value='Plugin'>
<param name='cache_archive' value='a.jar,b.jar'>
<param name='cache_version' value='8.0.0.0,1.0.0.0'>
</OBJECT>

As seen in the code there are two jar files a.jar and b.jar.
Ideally both of the jar files should be available under code base that is /ccisp/classes in this case.

Is there any way to load a.jar from codebase and b.jar from another location or path?
19 years ago
Thnaks for the reply.
Could you also plese tell me what do I have to put in jnlp file so that it can update itself automatically!!
Thanks again.
19 years ago
CAn you please tell me more abou that IE bug.
We are going to use https!!!
19 years ago
Hi,
If I deploy jnlp file on my web server and tell users to log in to webserver and click on jnlp all the time.. Is it going to behave same as copying the file on the pc( manuall) and clicking it?
19 years ago
Hi, I sent a a.jnlp file to my users and then everything was okay untill I had to update a.jnlp file. Do I have to email the file again to my users?
19 years ago
Hi, I tried to install JRE 1.4.2 on my PC and found that webstart does not get installed along with it!!
Is this true?

If I am launching my app using webstart for the first time I can not assume it, stalled on user's PC. ( Thinking that Sun java is almost standard on every one's PC as MS jvm is not going to be supported starting 2008).

My user's do not like anything to be installed ONLINE while running the application.
19 years ago
Even if we sign the applet it is still applet and it has to run into sandbox. Only advantage of signing is that it can have access local PC e.g. read file, print etc..
So answer to to your first question is yes.

I did not get what was ment by the second question.
19 years ago
I think Garrett mentioned good stuff.
But this can be achieved by signing an applet and use OBJECT tag in the HTML.
What is so uniq about JNLP?

I think user can work offline and that is the biggest advantage!!
19 years ago
Hi, David.

Can you please tell me exactly how to do this?
Or any weblink that can educate me.
Thanks.
20 years ago
Hi, there.

Can the same servlet deployed on two separate application server on separate machines share the common memory area?

If I write a simple servlet that increaments a static variable and prints it in the browser and deploye it on two saperate application servers as mentioned above.
Is it possible that irrespective of which Appl. server I am going to hit I will see the same static variable?
20 years ago
Hi, javax.servlet.http.HttpUtils.parseQueryString seems to be depricated.
Does anyone know what to use instead?
20 years ago
Hello, One Question reagrding applet jar file downaload error...
My applet uses OBJECT tag and catche_archive, cache_version etc.. stuff to cache the JAR file in the plug-in cache.
While Downloading a jar file while opening the applet, I am getting following erro with jvm1.4.1 installed on the PC.
Same applet works fine if I remove 1.4 and installed jvm1.3 on my PC!!!
Am I missing anything?

java.util.zip.ZipException: invalid entry crc-32 (expected 0x9104e3f5 but got 0x6714f80f)
at java.util.zip.ZipOutputStream.closeEntry(Unknown Source)
at java.util.zip.ZipOutputStream.finish(Unknown Source)
at java.util.zip.DeflaterOutputStream.close(Unknown Source)
at java.util.zip.ZipOutputStream.close(Unknown Source)
at sun.plugin.cache.CachedJarLoader.decompress(Unknown Source)
at sun.plugin.cache.CachedJarLoader.access$500(Unknown Source)
at sun.plugin.cache.CachedJarLoader$5.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin.cache.Cache.privileged(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 sun.plugin.security.PluginClassLoader.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)
20 years ago