XStream
  1. XStream
  2. XSTR-484

java.lang.OutOfMemoryError: Java heap space

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • JDK version and platform:
      Jdk 1.5.8

      Description

      I am getting the following error while transforming to Xml (its a fairly large Xml)

      java.lang.OutOfMemoryError: Java heap space
      at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:99)
      at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:518)
      at java.lang.StringBuffer.append(StringBuffer.java:307)
      at java.io.StringWriter.write(StringWriter.java:72)
      at java.io.PrintWriter.write(PrintWriter.java:354)
      at com.thoughtworks.xstream.core.util.QuickWriter.flush(QuickWriter.java:59)
      at com.thoughtworks.xstream.core.util.QuickWriter.write(QuickWriter.java:27)
      at com.thoughtworks.xstream.io.xml.PrettyPrintWriter.endNode(PrettyPrintWriter.java:152)
      at com.thoughtworks.xstream.io.WriterWrapper.endNode(WriterWrapper.java:21)
      at com.thoughtworks.xstream.io.path.PathTrackingWriter.endNode(PathTrackingWriter.java:29)
      at com.thoughtworks.xstream.converters.reflection.ReflectionConverter$1.writeField(ReflectionConverter.java:80)
      at com.thoughtworks.xstream.converters.reflection.ReflectionConverter$1.visit(ReflectionConverter.java:59)
      at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:114)
      at com.thoughtworks.xstream.converters.reflection.ReflectionConverter.marshal(ReflectionConverter.java:44)
      at com.thoughtworks.xstream.core.ReferenceByXPathMarshaller.convertAnother(ReferenceByXPathMarshaller.java:36)
      at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:68)
      at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:47)
      at com.thoughtworks.xstream.core.ReferenceByXPathMarshaller.convertAnother(ReferenceByXPathMarshaller.java:36)
      at com.thoughtworks.xstream.converters.reflection.ReflectionConverter$1.writeField(ReflectionConverter.java:78)
      at com.thoughtworks.xstream.converters.reflection.ReflectionConverter$1.visit(ReflectionConverter.java:59)
      at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:114)
      at com.thoughtworks.xstream.converters.reflection.ReflectionConverter.marshal(ReflectionConverter.java:44)
      at com.thoughtworks.xstream.core.ReferenceByXPathMarshaller.convertAnother(ReferenceByXPathMarshaller.java:36)
      at com.thoughtworks.xstream.converters.reflection.ReflectionConverter$1.writeField(ReflectionConverter.java:78)
      at com.thoughtworks.xstream.converters.reflection.ReflectionConverter$1.visit(ReflectionConverter.java:59)
      at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:114)
      at com.thoughtworks.xstream.converters.reflection.ReflectionConverter.marshal(ReflectionConverter.java:44)
      at com.thoughtworks.xstream.core.ReferenceByXPathMarshaller.convertAnother(ReferenceByXPathMarshaller.java:36)
      at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:46)
      at com.thoughtworks.xstream.core.ReferenceByXPathMarshallingStrategy.marshal(ReferenceByXPathMarshallingStrategy.java:17)
      at com.thoughtworks.xstream.XStream.marshal(XStream.java:461)
      at com.thoughtworks.xstream.XStream.marshal(XStream.java:451)

      Please suggest.

        People

        • Assignee:
          Jörg Schaible
          Reporter:
          Dhrumil Bhagat
        • Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: