PDA

View Full Version : [CLOSED] Compiling problem : GXT1.2.3 & GWT 1.6



antoinereveillon
17 Apr 2009, 2:44 AM
Hi all,

I would like to know if any of you are having problem while compiling GXT apps with GWT1.6 ? In hosted mode, I don't have any problems but when I try to compile my application, I always have a stackoverflow error :


[ERROR] Unexpected internal compiler error
java.lang.StackOverflowError: null
at sun.misc.SoftCache.get(Unknown Source)
at java.io.ObjectStreamClass.lookup(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at java.util.ArrayList.writeObject(Unknown Source)
at sun.reflect.GeneratedMethodAccessor100.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)

I know that ArrayList may cause Stack Overflow Error but with GWT 1.5 it works fine. So I'm asking me if this problem is due to a migration to GWT1.6 ? Will the problem be solved with gxt 2.0 ? or is it only a problem of my program ? if yes, do you have any idea where I should begin to search ?

Thanks in advance,
Antoine.

Yukideluxe
17 Apr 2009, 3:32 AM
Hey!
I've just put in other post that I've had this problem and where I found the solution.

You can find the solution here http://code.google.com/p/google-web-toolkit/issues/detail?id=3510 The problem is for GWT 1.6 i had to use the patch provided by the user scottb (Comment 21)

Hope it works for you! :D

antoinereveillon
17 Apr 2009, 6:38 AM
Thanks a lot Yukideluxe !

I've installed this patch and it works now !! fantastic !

The problem was effectively due to firefox compilation step, I tried with only IE6 compilation and it worked.

So now I'm able to compile it for firefox & Ie !

Hope we will soon have news about the gxt 2.0 version coz I really would like to try the chart widget.


Thank you again.
Antoine.

micgala
19 Apr 2009, 11:28 PM
Hi Antoine.

GXT 2.0 was released already (at least a milestone 1 version).

You can get it from the download area.

Regards,
Michel.

The_Jackal
19 May 2009, 7:35 PM
2.0 is not released - though a milestone build has been (Ext GWT 2.0 M1 SDK).

Note that you can use charts without 2.0 - using OFCGWT (http://code.google.com/p/ofcgwt/) which is a GWT wrapper for OFC (Open flash Charts 2).

sven
20 May 2009, 3:14 AM
Also note, that this is no issue in GXT 1.2. You just have to increase your stacksize.

ronaldmathies
17 Jun 2009, 9:20 PM
Like said before:

http://code.google.com/p/google-web-toolkit/issues/detail?id=3510

Comment 21 describes a patch for GWT 1.6.4 which prefents this problem. Don't put this patch in your WEB-INF/lib but somewhere else and add it to your project. Make sure it comes before the GTW libraries (just put it at the top of your classpath).