File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Problems in applet 2 applet commnication on Java 5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Problems in applet 2 applet commnication on Java 5" Watch "Problems in applet 2 applet commnication on Java 5" New topic
Author

Problems in applet 2 applet commnication on Java 5

yogesh sood
Ranch Hand

Joined: Aug 31, 2000
Posts: 108
Hi,

im trying to upgrade application from JRE1.3.1_01 to JRe1.5 now we have one class which act as session and implemented as singlton it does have some static variables and some instance varible.

Its applet driven app.. so when user login first time from login applet we load the session class object into memory, and through out application we load several applet. Now in JRE 1.3.1_01 we never found any problem in accessing session object loaded from one applet to another but in JRE 1.5 although we get the reference to singleton object in other applet but access to all its member are blocked (i get null pointer exception).
Session class itself have ref to some other classes as its member variable so when accesing those member varibles it turns out to be null

No idea what to do...


If its green its biology if its stinkks its chemistry if it has numbers it is Maths and if it doesn't work its TECHNOLOGY
yogesh sood
Ranch Hand

Joined: Aug 31, 2000
Posts: 108
i found that JSClassLoader loaded again when i try to access the same session object again frm some other applet
yogesh sood
Ranch Hand

Joined: Aug 31, 2000
Posts: 108
Problem solved !! Archive Parameter of all applets were not same, and in JRE1.5 applet loading bug is fixed
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Problems in applet 2 applet commnication on Java 5