GWT-Ext2.0 problems when compiling / running with Netbeans 6 IDE

9 views
Skip to first unread message

Bill

unread,
Apr 7, 2008, 12:30:25 PM4/7/08
to Google Web Toolkit
Relatively new to GWTapps, have been developing 'pure' GWTapps for 2~3
weeks, using GWT UI Widgets and GWT JSON RPC calls. Works fine, no
problem. Lots of DIY code involved.

Using Netbeans6 IDE with GWT plug-in. Works a dream. J2SE jdk1.5.0_10
because we have some legacy code here.

1] Today, tried to use the new GWT-Ext2, using the samples get some
serious problems
Setup:
Netbeans6 IDE
ext-2.0.2.zip
gwtext-2.0.3.zip
gwtextux.zip

2] as a test, get back to basics, i try the ExtJS applications using
Netbeans6 IDE
ext-2.0.2.zip
gwtext.jar
json-lib-2.2.1-jdk15.jar
which works fine, even the Async JSON calls to some arbitrary JSP
file using json-lib JAR.

- I really want to use the 1] solution because we want to use the
GWTCompiler for Java -> Javascript facility.
I have seen many errors today but one keeps coming back.

As follows :-

Compiling permutations
Analyzing permutation #1
[ERROR] Unexpected internal compiler error
java.lang.OutOfMemoryError: Java heap space
[ERROR] Out of memory; to increase the amount of memory, use
the -Xmx flag at startup (java -Xmx128M ...)
[ERROR] Build failed
C:\\java\\gwt1.5\\gwt-windows-0.0.2030\\Acs3\\testExt\\nbproject\
\build-gwt.xml:13: Java returned: 1

As you can imagine I have spent the whole day trying to set java
heap / memory vmargs for my IDE and the application.

. I have tried the ${NETBEANS HOME}\\etc\\netbeans.conf file,
adding -Xms32m -Xmx512m into that.

. Tried the PROJECT - Properties - Build - Compiling Xmx1024m etc.
( obviously this is an error because javac does not have -Xmx, it
is java command )

. Tried to increase the heap size specifically for Netbeans processes
( ie forking )
by manually changing the PROJECT - nbproject - build.gwt file
line where we run the com.google.gwt.dev.GWTCompiler
to include initialMemorySize="64m" maximumMemorySize="1024m"

eg.

<java classpath="${javac.classpath}:${src.dir}" failonerror="true"
initialMemorySize="64m" maximumMemorySize="1024m"
classname="com.google.gwt.dev.GWTCompiler" fork="true">
<arg value="-out"/>
<arg path="${build.web.dir}/"/>
<arg value="-style"/>
<arg value="${gwt.compiler.output.style}"/>
<arg value="-logLevel"/>
<arg value="${gwt.compiler.logLevel}"/>
<arg value="${gwt.module}"/>
</java>

If anyone has seen this problem before or can offer me a step by step
solution it would be most appreciated,
thanks in advance.

Bill.

Sanjiv Jivan

unread,
Apr 7, 2008, 5:01:39 PM4/7/08
to Google-We...@googlegroups.com
Bill,
Can you post GWT-Ext related questions here : http://www.gwt-ext.com/forum

This might help :
http://www.gwt-ext.com/forum/viewtopic.php?f=5&t=755

Sanjiv

Scooter

unread,
Apr 7, 2008, 9:20:39 PM4/7/08
to Google Web Toolkit
add maxmemory="256m" to the line that through the exception for heap
space problem.

You can also add -Xmx256m to the other lines in the build script that
have -X options. You will need to do this every time you restart
netbeans. This is a netbeans issue where they don't provide a property
file or parameter setting to increase memory.

The netbeans integration does work very well. I even do incremental
updates of code changes that I am debugging which really helps speed
up development because I don't need to restart or reload debug mode.

Thanks

Scooter Willis

pohl

unread,
Apr 9, 2008, 11:16:20 AM4/9/08
to Google Web Toolkit
For reference, here is the relevant issue in the GWT4NB bug database:

https://gwt4nb.dev.java.net/issues/show_bug.cgi?id=36


Wiliam_Walas

unread,
Apr 16, 2008, 1:03:15 PM4/16/08
to Google Web Toolkit
Good morning,

I'v read your post i've the same problem, I didn't find any answer.
I'm using gwtext 2.0.3.

if you know what's the source of this problems answer me please I'll
be thankfull.

Thank you by advance.

Oualaa.
Reply all
Reply to author
Forward
0 new messages