Announcement

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

    GC error

    Hello,

    Using 3.1 current version of smart gwt.
    I have a series of tabs with a list grid in each tab.

    Throwing the following error from within eclipse while running in development mode.

    Ideas?
    Thanks
    Marc,

    11:02:30.414 [ERROR] [winter] 11:02:28.769:XRP4:WARN:ResultSet:isc_ResultSet_9 (created by: isc_ListGrid_8):Bad data returned, ignoring: "<BR>com.isomorphic.servlet.IDACall top-level exception<BR>
    <PRE>
    java.lang.OutOfMemoryError: GC overhead limit exceeded
    at java.lang.StringBuffer.toString(StringBuffer.java:585)
    at com.thoughtworks.xstream.io.xml.XmlFriendlyReplacer.unescapeName(XmlFriendlyReplacer.java:92)
    at com.thoughtworks.xstream.io.xml.AbstractXmlReader.unescapeXmlName(AbstractXmlReader.java:42)
    at com.thoughtworks.xstream.io.xml.AbstractPullReader.getNodeName(AbstractPullReader.java:199)
    at com.thoughtworks.xstream.io.ReaderWrapper.getNodeName(ReaderWrapper.java:44)
    at com.thoughtworks.xstream.io.path.PathTrackingReader.moveDown(PathTrackingReader.java:38)
    at com.attivio.util.serialization.AttivioDocumentConverter.unmarshalFields(AttivioDocumentConverter.java:238)
    at com.attivio.util.serialization.AttivioDocumentConverter.unmarshalDoc(AttivioDocumentConverter.java:166)
    at com.attivio.util.serialization.ResponseDocumentConverter.unmarshalDoc(ResponseDocumentConverter.java:89)
    at com.attivio.util.serialization.ResponseDocumentConverter.unmarshal(ResponseDocumentConverter.java:74)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:81)
    at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:55)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:75)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:59)
    at com.attivio.util.serialization.ResponseDocListConverter.unmarshal(ResponseDocListConverter.java:50)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:81)
    at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:55)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:75)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:59)
    at com.attivio.util.serialization.AbstractConverter.readSubObject(AbstractConverter.java:414)
    at com.attivio.util.serialization.QueryResponseConverter.unmarshal(QueryResponseConverter.java:101)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:81)
    at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:55)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:75)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:59)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:142)
    at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
    at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:931)
    at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:917)
    at com.thoughtworks.xstream.XStream.fromXML(XStream.java:861)
    at com.attivio.util.XStreamSerializer.deserialize(XStreamSerializer.java:118)
    at com.attivio.transport.HttpClientTransport.deserialize(HttpClientTransport.java:405)
    </PRE>
    "

    com.smartgwt.client.core.JsObject$SGWT_WARN: 11:02:28.769:XRP4:WARN:ResultSet:isc_ResultSet_9 (created by: isc_ListGrid_8):Bad data returned, ignoring: "<BR>com.isomorphic.servlet.IDACall top-level exception<BR>
    <PRE>
    java.lang.OutOfMemoryError: GC overhead limit exceeded
    at java.lang.StringBuffer.toString(StringBuffer.java:585)
    at com.thoughtworks.xstream.io.xml.XmlFriendlyReplacer.unescapeName(XmlFriendlyReplacer.java:92)
    at com.thoughtworks.xstream.io.xml.AbstractXmlReader.unescapeXmlName(AbstractXmlReader.java:42)
    at com.thoughtworks.xstream.io.xml.AbstractPullReader.getNodeName(AbstractPullReader.java:199)
    at com.thoughtworks.xstream.io.ReaderWrapper.getNodeName(ReaderWrapper.java:44)
    at com.thoughtworks.xstream.io.path.PathTrackingReader.moveDown(PathTrackingReader.java:38)
    at com.attivio.util.serialization.AttivioDocumentConverter.unmarshalFields(AttivioDocumentConverter.java:238)
    at com.attivio.util.serialization.AttivioDocumentConverter.unmarshalDoc(AttivioDocumentConverter.java:166)
    at com.attivio.util.serialization.ResponseDocumentConverter.unmarshalDoc(ResponseDocumentConverter.java:89)
    at com.attivio.util.serialization.ResponseDocumentConverter.unmarshal(ResponseDocumentConverter.java:74)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:81)
    at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:55)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:75)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:59)
    at com.attivio.util.serialization.ResponseDocListConverter.unmarshal(ResponseDocListConverter.java:50)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:81)
    at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:55)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:75)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:59)
    at com.attivio.util.serialization.AbstractConverter.readSubObject(AbstractConverter.java:414)
    at com.attivio.util.serialization.QueryResponseConverter.unmarshal(QueryResponseConverter.java:101)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:81)
    at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:55)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:75)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:59)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:142)
    at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
    at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:931)
    at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:917)
    at com.thoughtworks.xstream.XStream.fromXML(XStream.java:861)
    at com.attivio.util.XStreamSerializer.deserialize(XStreamSerializer.java:118)
    at com.attivio.transport.HttpClientTransport.deserialize(HttpClientTransport.java:405)
    </PRE>
    "
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105)
    at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
    at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
    at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:293)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:547)
    at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:364)
    at java.lang.Thread.run(Thread.java:662)

    #2
    This looks like you are using XStream to serialize data to XML and you've got a recursive data structure.

    If you're using the SmartGWT Server you would not generally serialize things to XML, but rather return Java Objects directly. See the QuickStart Guide, Server Framework chapter, for details.

    Comment


      #3
      SmartGWT-4.0d "GC overhead limit exceeded"

      My application compiles just fine with SmartGWT-3.0. When I replaced the two jar files with the jar files from SmartGWT-4.0d, I get the following error:

      gwtc:
      [java] Compiling module com.offthewall.taurus.Taurus
      [java] Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded
      [java] at java.io.ObjectStreamClass.newInstance(ObjectStreamClass.java:954)
      [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1755)
      [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
      [java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
      [java] at java.util.ArrayList.readObject(ArrayList.java:733)
      [java] at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      [java] at java.lang.reflect.Method.invoke(Method.java:601)
      [java] at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1004)
      [java] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)
      [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
      [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
      [java] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
      [java] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
      [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
      [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
      [java] at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
      [java] at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
      [java] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
      [java] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)
      [java] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)
      [java] at com.google.gwt.dev.jjs.ast.JMethod.readBody(JMethod.java:446)
      [java] at com.google.gwt.dev.jjs.ast.JDeclaredType.readMethodBodies(JDeclaredType.java:305)
      [java] at com.google.gwt.dev.jjs.ast.JProgram.deserializeTypes(JProgram.java:205)
      [java] at com.google.gwt.dev.javac.CompilationUnit.getTypes(CompilationUnit.java:322)
      [java] at com.google.gwt.dev.jjs.impl.UnifyAst.assimilateUnit(UnifyAst.java:672)
      [java] at com.google.gwt.dev.jjs.impl.UnifyAst.searchForTypeByBinary(UnifyAst.java:970)
      [java] at com.google.gwt.dev.jjs.impl.UnifyAst.translate(UnifyAst.java:1033)
      [java] at com.google.gwt.dev.jjs.impl.UnifyAst.translate(UnifyAst.java:1024)
      [java] at com.google.gwt.dev.jjs.impl.UnifyAst.resolveType(UnifyAst.java:940)
      [java] at com.google.gwt.dev.jjs.impl.UnifyAst.assimilateUnit(UnifyAst.java:678)
      [java] at com.google.gwt.dev.jjs.impl.UnifyAst.searchForTypeByBinary(UnifyAst.java:970)

      Comment


        #4
        This is a crash in the GWT compiler, so it looks like you have a problem with GWT, not SmartGWT per se.

        You should try clearing your GWT unitcache, and try upgrading GWT. If that doesn't fix it, you probably want to post on the GWT forums.

        Comment


          #5
          Hi all,

          I am facing the same problem. Anyone managed to solve this problem?

          Any help is highly appreciated.

          Comment

          Working...
          X