• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Applet not inited - http 401 on .jar files

 
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,
I have a complex applet which is contained in a jar file, and also relies on a few other jar files as libraries (for 3D stuff). All these are in the same directory as the HTML file, and up until a few days ago the applet was working great.
Now when I try and load it in the browser I get Applet nto inited and the following sort of message in the console for each jar file, starting with the main one that contains the applet itself...

The weird thing is the applet still works on some PC's, but not on mine and also doesn't work for some other people. I'm guessing this is some kind of security problem, but I don't really know where to start looking! Any pointers greatly appreciated, has anyone had this problem before?

cheers
[ February 11, 2004: Message edited by: Ben Wood ]
 
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ben
From the exception it seems from some PCs it doesn't find the jar file...
try to make sure that on the PC where the applet doesn't work, the url-
http(myserver)/etc/myapplet.jar is reachable. if that url is reachable directly via the browser the JVM in the browser should find it...because it doesn't make much sense that on some PCs it finds the jar and on some it doesn't as it is hosted on the server side.
Also, make sure that your proxy configuration on the browsers that you are using is not causing this issue..
Regards
Maulin
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
any updates Ben?
We would like to keep learning from people's experiences so please post your resolution about the problem you had..
Regards
Maulin
 
Ben Wood
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Maulin,
We eventually tracked this down to using certain types of paths in our applet code. The applet itself is a 3D viewer for data, and we were loading files that had been generated on the server immediately before the applet was initialised. Our mistake was to use a drive-mapping like...
R:\\datafiles\data.dat
I'm not sure why we even did this in certain places in the code. It was fixed by altering the path to point at the server like this...
\\\\myserver\\datafiles\\data.dat
...presumably the reason it worked for some PC's but not others was that over time, drive mappings had changed on people's PC's. A foolish piece of bad practice really
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi Ben
Yes, those drive mappings kills sometimes. I faced similar issue recently.
Thanks for letting us know.
Regards
Maulin
reply
    Bookmark Topic Watch Topic
  • New Topic