Memory Heap error permanent fix for GWT4NB




Inbox
X





Reply to all
Forward
Reply by chat
Filter messages like this
Print
Add to Contacts list
Delete this message
Report phishing
Report not phishing
Show original
Show in fixed width font
Show in variable width font
Message text garbled?
Why is this spam/nonspam?
AcidCow to Google
show details Feb 11
Reply


[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 ...)

After being annoyed with this problem I ended up patching the GWT4NB
plugin module to allow for a Max heap of 512Mb...  I did the same for
google hosted mode browser thingy - since the hosted mode was also
running out of memory.  This is now a permanent fix so I no longer
have to go and change the ant build file each time I load the project.

you can download the module from here:
https://secure.lancet.co.za/PathPortal/org-netbeans-modules-gwt4nb_PATCHED_MEMORY_ISSUE.nbm
 - You'll need to uninstall your previous GWT4NB and install this one
afterwards.

otherwise if you'd rather do it yourself...
then download the GWT4NB module and open it in winrar/some other
archiver...
find the .jar file (\netbeans\modules\org-netbeans-modules-gwt4nb.jar)
and extract and open that in winrar...
find the build-gwt.xml file (org\netbeans\modules\gwt4nb\resources
\build-gwt.xml)...
then make the following changes (note the 512m in both cases and
compare to your build file):
1)Fixes memory issue on compile (maxmemory="512m"):

 <java classpath="${javac.classpath}:${src.dir}" failonerror="true"
classname="com.google.gwt.dev.GWTCompiler" fork="true"
maxmemory="512m">

2)Fixes memory issue when loading into google's hosted mode
application (-Xmx512m):

 <property name="gwtshell.jvmargs.base" value="-Xmx512m -Xdebug -
Xnoagent -Djava.compiler=none -Xrunjdwp:transport=dt_socket,address=$
{jpda.address.gwt}"/>

...Once you've made the necessary changes, save and overwrite the
build-gwt.xml file in the jar archive...
then overwrite the jar archive in the nbm archive.




On Sun, Feb 22, 2009 at 12:10 AM, SaveTheHero <[email protected]> wrote:

>
> I am using GWT 1.5.3, NetBeans 6.5, GWT4NB 2.5.0
>
> Loading module 'com.google.gwt.sample.showcase.Showcase'
>   [ERROR] Unable to load class
> 'com.google.gwt.sample.showcase.generator.ShowcaseGenerator'
> java.lang.ClassNotFoundException:
> com.google.gwt.sample.showcase.generator.ShowcaseGenerator
>
>
> And the Showcase-compile can't build project without classes in bin
> folder.
>
> Please help!
>
> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<google-web-toolkit%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/Google-Web-Toolkit?hl=en
> -~----------~----~----~----~------~----~------~--~---
>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to