axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Deshayes (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-1925) Error: java.lang.OutOfMemoryError
Date Wed, 31 Jan 2007 06:18:05 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-1925?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12468888
] 

Eric Deshayes commented on AXIS2-1925:
--------------------------------------

The problem is a loop on the import of the schemas.
The wsdl import a schema:
<xsd:import namespace="http://www.it.ojp.gov/jxdm/3.0.3" schemaLocation="jxdm/3.0.3/jxdm.xsd"
/>
that schema imports another schema
<xsd:import namespace="http://www.it.ojp.gov/jxdm/3.0.3/proxy/nibrs_misc/1.0.1" schemaLocation="proxy/nibrs_misc/1.0.1/nibrs_misc.xsd"/>
and that latest schema imports itself and the schema it has been imported from:
  <xsd:import namespace="http://www.it.ojp.gov/jxdm/nibrs_misc/1.0.1" schemaLocation="../../../../nibrs_misc/1.0.1/nibrs_misc.xsd"/>
  <xsd:import namespace="http://www.it.ojp.gov/jxdm/3.0.3" schemaLocation="../../../jxdm.xsd"/>

Actually, the reason of that is that the defined complex type is a simplecontent that extends
itself. 
  <xsd:complexType name="EthnicityCodeType">
    <xsd:simpleContent>
      <xsd:extension base="nibrs:EthnicityCodeType">
        <xsd:attributeGroup ref="j:SuperTypeMetadata"/>
      </xsd:extension>
    </xsd:simpleContent>
  </xsd:complexType>

The code generation seems to work.
I am not sure about the validity of that schema.

> Error: java.lang.OutOfMemoryError
> ---------------------------------
>
>                 Key: AXIS2-1925
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1925
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb, codegen
>    Affects Versions: 1.1
>         Environment: Tomcat 5.0.28, Windows XP, JVM 1.4.2_10-b03
>            Reporter: Danny Lin
>
> Please see defect Axis2-1920 (http://issues.apache.org/jira/browse/AXIS2-1920) for more
details.
> Use the same schema as attached to Axis2-1920, modify the build.xml so that WSDL2JAVA
is using adb (i.e. databinding="adb") WSDL2JAVA appears to generate classes and an AAR file
is created. However, when the AAR is deployed a Java OutOfMemoryError occurs. If I trim down
the schema some, and change the databinding to databinding="none", it doesn't resolve the
problem, instead, I got a stack overflow error.
> 2006-12-27 22:11:54,990 DEBUG main org.apache.axiom.om.impl.builder.StAXOMBuilder - END_ELEMENT:
module:module
> 2006-12-27 22:11:55,006 DEBUG main org.apache.axis2.i18n.ProjectResourceBundle - org.apache.axis2.i18n.resource::handleGetObject(addingnewmodule)
> 2006-12-27 22:11:55,006 DEBUG main org.apache.axis2.deployment.DeploymentEngine - adding
new module
> 2006-12-27 22:11:55,006 DEBUG main org.apache.axis2.i18n.ProjectResourceBundle - org.apache.axis2.i18n.resource::handleGetObject(deployeingmodule)
> 2006-12-27 22:11:55,021 INFO main org.apache.axis2.deployment.DeploymentEngine - Deploying
module : soapmonitor-1.1
> 2006-12-27 22:11:55,052 DEBUG main org.apache.axis2.deployment.WarBasedAxisConfigurator
- loaded repository from /WEB-INF folder (unpacked war)
> 2006-12-27 22:11:55,068 DEBUG main org.apache.axiom.om.util.StAXUtils - XMLStreamReader
is com.ctc.wstx.sr.ValidatingStreamReader
> 2006-12-27 22:11:55,084 DEBUG main org.apache.axiom.om.impl.builder.StAXOMBuilder - START_ELEMENT:
{http://schemas.xmlsoap.org/wsdl/}definitions:definitions
> 2006-12-27 22:12:00,959 DEBUG main org.apache.axis2.i18n.ProjectResourceBundle - org.apache.axis2.i18n.resource::handleGetObject(invalidservice)
> 2006-12-27 22:12:00,974 INFO main org.apache.axis2.deployment.DeploymentEngine - Invalid
service  InmateMatchService.aar due to java.lang.StackOverflowError
>  
> 2006-12-27 22:12:00,990 DEBUG main org.apache.axiom.om.util.StAXUtils - XMLStreamReader
is com.ctc.wstx.sr.ValidatingStreamReader
> 2006-12-27 22:12:00,990 DEBUG main org.apache.axiom.om.impl.builder.StAXOMBuilder - START_ELEMENT:
service:service
> 2006-12-27 22:12:00,990 DEBUG main org.apache.axiom.om.impl.builder.StAXOMBuilder - CHARACTERS:
[
>     ]

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message