Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    java.lang.OutOfMemoryError: Java heap space

    Hi,

    after I had updated to smartGWTEE 2.5 2011-04-16 night build.
    I get an exception
    Code:
    === 2011-04-16 19:23:12,382 [l0-3] ERROR IDACall - Top-level servlet error: 
    java.lang.OutOfMemoryError: Java heap space
    	at java.util.Arrays.copyOf(Arrays.java:2882)
    	at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
    	at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)
    	at java.lang.StringBuffer.append(StringBuffer.java:224)
    	at java.io.StringWriter.write(StringWriter.java:84)
    	at com.isomorphic.js.JSTranslater.convertMap(JSTranslater.java:969)
    	at com.isomorphic.js.JSTranslater.convert(JSTranslater.java:623)
    	at com.isomorphic.js.JSTranslater.convertIterator(JSTranslater.java:1110)
    	at com.isomorphic.js.JSTranslater.convertCollection(JSTranslater.java:1063)
    	at com.isomorphic.js.JSTranslater.convert(JSTranslater.java:575)
    	at com.isomorphic.js.JSTranslater.convert(JSTranslater.java:511)
    	at com.isomorphic.js.JSTranslater.convert(JSTranslater.java:502)
    	at com.isomorphic.js.JSTranslater.convertMap(JSTranslater.java:950)
    	at com.isomorphic.js.JSTranslater.convert(JSTranslater.java:573)
    	at com.isomorphic.js.JSTranslater.convertIterator(JSTranslater.java:1110)
    	at com.isomorphic.js.JSTranslater.convertCollection(JSTranslater.java:1063)
    	at com.isomorphic.js.JSTranslater.convert(JSTranslater.java:575)
    	at com.isomorphic.js.JSTranslater.convert(JSTranslater.java:511)
    	at com.isomorphic.js.JSTranslater.toJS(JSTranslater.java:473)
    	at com.isomorphic.rpc.RPCManager.completeResponse(RPCManager.java:1143)
    	at com.isomorphic.rpc.RPCManager.send(RPCManager.java:582)
    	at com.isomorphic.servlet.IDACall.processRPCTransaction(IDACall.java:130)
    	at com.isomorphic.servlet.IDACall.processRequest(IDACall.java:95)
    	at com.isomorphic.servlet.IDACall.doPost(IDACall.java:54)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    	at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:152)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
    	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1097)
    	at com.isomorphic.servlet.CompressionFilter.doFilter(CompressionFilter.java:259)
    	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088)
    	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
    Uncaught JavaScript exception [_12.results is undefined] in http://127.0.0.1:8888/helloworld/sc/modules/ISC_DataBinding.js, line 1209
    My application was working with night build 2011-04-04.

    I put the following code to the server side
    Code:
    long heapMaxSize = Runtime.getRuntime().maxMemory();
    and tested that I have one gigabyte of heap max size.

    Cheers,
    Martin

    #2
    This actually looks like something's horribly wrong with your IDE and you should restart it and possibly the whole machine. But if you think it's a real error, the starting point is to point the full server logs for the request.

    Comment

    Working...
    X