JDK 1.5 Javascript problem

Hi all.

I have a java Applet that call Javascript code using the MAYSCRIPT flag.

In the code I use JSObject to access the html page.

In the java code I call a Javascript code that open a window and populate it.

All goes very well with JRE 1.4.2.

Now I try to migrate all to JRE 1.5.0_1.

The window doesn't appear and no error is reached. It's strange because I believe a new version maintain all the old features (particularly this one).

More particular is that this window doesn't appear every time, but only one shot.

So, If I use my applet at time x it goes, but when I use it at time y it doesn't go.

I became crazy because no error is shown. Why? I don't use popup-blocker software.

Anyone has ideas (before I start debugging and defragmenting my huge applet)?

Thanks in advance.

Bye, Anteo.

[880 byte] By [anteoa] at [2007-10-1 5:17:59]
# 1
The problem was caused by a new exception raised by the JDK1.5 code. Memory goes full because garbage collector doesn't go well.Anteo.
anteoa at 2007-7-9 13:11:32 > top of Java-index,Administration Tools,Sun Connection...
# 2
Hi Anteo,Any idea on what the exception was? Also what did you do to correct/workaround this issue.ThanksVishal
vishalka at 2007-7-9 13:11:32 > top of Java-index,Administration Tools,Sun Connection...
# 3

I solved doing a different Focus manage.

The memory goes full because at a point the focus policy (default) loose the main window. I don't know why, but forcing my main window be the FocusRoot all seems going good and the memory use goes normal.

Now I've another similar problem (focus is not managed well with tablepanel enabled on the fly). Now I think the new focus system with JDK1.5 is really full of non compatibilities with older JDK! Good luck to all programmers extending the compatibility with this new release!

:-)

Bye, Anteo.

anteoa at 2007-7-9 13:11:32 > top of Java-index,Administration Tools,Sun Connection...