java.lang.OutOfMemoryError: Java heap space

Oracle Community | midani | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Java out of memory when trying to parse a XML file

    Stack Overflow | 2 years ago
    java.lang.OutOfMemoryError: Java heap space

    Root Cause Analysis

    1. java.lang.OutOfMemoryError

      Java heap space

      at com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl.getNodeObject()
    2. Java RT
      DeepNodeListImpl.getLength
      1. com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl.getNodeObject(DeferredDocumentImpl.java:953)
      2. com.sun.org.apache.xerces.internal.dom.DeferredElementNSImpl.synchronizeData(DeferredElementNSImpl.java:120)
      3. com.sun.org.apache.xerces.internal.dom.ElementNSImpl.getLocalName(ElementNSImpl.java:334)
      4. com.sun.org.apache.xerces.internal.dom.DeepNodeListImpl.nextMatchingElementAfter(DeepNodeListImpl.java:218)
      5. com.sun.org.apache.xerces.internal.dom.DeepNodeListImpl.item(DeepNodeListImpl.java:143)
      6. com.sun.org.apache.xerces.internal.dom.DeepNodeListImpl.getLength(DeepNodeListImpl.java:114)
      6 frames
    3. com.sun.enterprise
      WebServiceEjbEndpointRegistry.registerEjbWebServiceEndpoint
      1. com.sun.enterprise.webservice.WsUtil.addImportsAndIncludes(WsUtil.java:561)
      2. com.sun.enterprise.webservice.WsUtil.procesSchemaImports(WsUtil.java:590)
      3. com.sun.enterprise.webservice.WsUtil.parseRelativeImports(WsUtil.java:533)
      4. com.sun.enterprise.webservice.WsUtil.getWsdlsAndSchemas(WsUtil.java:1918)
      5. com.sun.enterprise.webservice.WsUtil.addFileAndDecendents(WsUtil.java:1971)
      6. com.sun.enterprise.webservice.WsUtil.getWsdlsAndSchemas(WsUtil.java:1931)
      7. com.sun.enterprise.webservice.WsUtil.addFileAndDecendents(WsUtil.java:1971)
      8. com.sun.enterprise.webservice.WsUtil.getWsdlsAndSchemas(WsUtil.java:1931)
      9. com.sun.enterprise.webservice.WsUtil.addFileAndDecendents(WsUtil.java:1971)
      10. com.sun.enterprise.webservice.WsUtil.getWsdlsAndSchemas(WsUtil.java:1931)
      11. com.sun.enterprise.webservice.WsUtil.addFileAndDecendents(WsUtil.java:1971)
      12. com.sun.enterprise.webservice.WsUtil.getWsdlsAndSchemas(WsUtil.java:1931)
      13. com.sun.enterprise.webservice.WsUtil.addFileAndDecendents(WsUtil.java:1971)
      14. com.sun.enterprise.webservice.WsUtil.getWsdlsAndSchemas(WsUtil.java:1931)
      15. com.sun.enterprise.webservice.WsUtil.addFileAndDecendents(WsUtil.java:1971)
      16. com.sun.enterprise.webservice.WsUtil.getWsdlsAndSchemas(WsUtil.java:1931)
      17. com.sun.enterprise.webservice.WsUtil.addFileAndDecendents(WsUtil.java:1971)
      18. com.sun.enterprise.webservice.WsUtil.getWsdlsAndSchemas(WsUtil.java:1931)
      19. com.sun.enterprise.webservice.WsUtil.getWsdlsAndSchemas(WsUtil.java:1889)
      20. com.sun.enterprise.webservice.EjbRuntimeEndpointInfo.prepareInvocation(EjbRuntimeEndpointInfo.java:269)
      21. com.sun.enterprise.webservice.EjbRuntimeEndpointInfo.initRuntimeInfo(EjbRuntimeEndpointInfo.java:344)
      22. com.sun.enterprise.webservice.WebServiceEjbEndpointRegistry.registerEjbWebServiceEndpoint(WebServiceEjbEndpointRegistry.java:122)
      22 frames
    4. Embedded GlassFish Web
      StatelessSessionContainer.initializeWebService
      1. com.sun.ejb.containers.StatelessSessionContainer.initializeWebService(StatelessSessionContainer.java:340)
      1 frame
    5. com.sun.enterprise
      AbstractLoader.load
      1. com.sun.enterprise.server.AbstractLoader.loadEjbs(AbstractLoader.java:611)
      2. com.sun.enterprise.server.EJBModuleLoader.doLoad(EJBModuleLoader.java:171)
      3. com.sun.enterprise.server.AbstractLoader.load(AbstractLoader.java:240)
      3 frames