Inter Applet Communication across frames - Help Needed

I am trying inter applet communication across frames. For this to happen I am using an intermidiate

class which registers two applets and whenever any applet needs reference of other applet it gets it

through this class.

The page is an important part of a navigation link. So it is loaded many times while traversing through

the site.

Every time I load this page the applet does not paint itself (shows grey or background) and the browser

stops responding. The machine needs to be restarted. This also happens when we keep that page idle for

a long time (say 2 hours - session does not time out but applet hangs). I have used another thread object

which is for utility and accesses the applet in the other frame every 10 seconds or so.

When the applet hangs it does ot throw any exception or JVM error. This happens on certain machines

evrytime and never on some machines. The applet hangs only in Microsoft IE 5 & 5.5 and never in Netscape

4.x.

What could be the problem?

Can anyone help me with this problem? Its a deadline project and I can't get through.

Thanks & Regards,

Rahul

[1206 byte] By [rahul_asanikar] at [2007-9-26 3:00:05]
# 1
have you tried activating the java console so you can see what the applet is doing?
dnoyeB at 2007-6-29 10:56:43 > top of Java-index,Archived Forums,Java Programming...
# 2

Hi,

I have already taken care of that. The Java Console doesn't show any exception or error. We have tried with the JavaLog file also. But the same thing happens.

incidentally we found out that it doesn't hang on WinNT Workstation 4.0 and Windows 2000. Could you just try answering that?

rahul_asanikar at 2007-6-29 10:56:43 > top of Java-index,Archived Forums,Java Programming...
# 3

Try making the register and getter methods of the intermediate class static synchronized. Then register the applets in their start() methods and unregister them in their stop() methods. Call the getter method of the intermediate class wherever you need access to another applet and never cache the instance you get. You may have to also synchronize all your start() and stop() methods to the intermediate class, as well as all methods that perform interapplet communication.

Tell me what happenned ...

igarn at 2007-6-29 10:56:43 > top of Java-index,Archived Forums,Java Programming...
# 4
Which console did you activate? The one in IE or the swing plugin console? and which JVM is your program actually invoking?assuming your using IE..
dnoyeB at 2007-6-29 10:56:43 > top of Java-index,Archived Forums,Java Programming...