XFire

"java.lang.OutOfMemoryError: Java heap space" caused by circular dependencies in wsdl and xsd.

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: 1.1-RC1
  • Fix Version/s: 1.1
  • Component/s: Generator
  • Labels:
    None
  • Environment:
    JDK1.5 on WIN XP PRO
  • Number of attachments :
    0

Description

"java.lang.OutOfMemoryError: Java heap space" occured why generating the client proxy and server stuff from WSDL that has <wsdl:import namespace="http://www.rakis.com/webservices/47/RakisRuntime/external-wsdl/> which inturns has other XSD and wsdl import created 2 circular dependencies in it.

I also tried against AXIS2's WSDL2JAVA tool and got the StackOverflowError.

Mika Gockel explained this issue related to WS-I conformance XFire to support doc/lit over rpc/lit encoding.

Thanks,

--danny

ps. you can follow the URL to get all the WSDL and XSD documents.

Activity

Hide
Dan Diephouse added a comment -

That link doesn't work. I tried this one and it worked fine with RC1 though:

http://www.rakis.com/webservices/47/definitions/admin-main.wsdl

Show
Dan Diephouse added a comment - That link doesn't work. I tried this one and it worked fine with RC1 though: http://www.rakis.com/webservices/47/definitions/admin-main.wsdl
Hide
Dan Diephouse added a comment -

Nevermind, I see what is happening now... It might be a problem with JAXB. I'll get back to you soon.

Show
Dan Diephouse added a comment - Nevermind, I see what is happening now... It might be a problem with JAXB. I'll get back to you soon.
Hide
Dan Diephouse added a comment -

This was a problem in XmlSchema and will be fixed XFire's next release. In the meantime you can replace your xmlschema jar with this one:

http://cvs.apache.org/maven-snapshot-repository/org/apache/ws/commons/XmlSchema/SNAPSHOT/XmlSchema-20060504.201612-2.jar

Thanks and let us know if anything else goes wrong

Show
Dan Diephouse added a comment - This was a problem in XmlSchema and will be fixed XFire's next release. In the meantime you can replace your xmlschema jar with this one: http://cvs.apache.org/maven-snapshot-repository/org/apache/ws/commons/XmlSchema/SNAPSHOT/XmlSchema-20060504.201612-2.jar Thanks and let us know if anything else goes wrong
Hide
Dan Diephouse added a comment -

From the list:

And got NullpointerException:

Retrieving document at
'http://www.rakis.com/webservices/47/definitions/runtime-main.wsdl',
relative to 'C:\work\securedfunding.com\trunk'.
Retrieving schema wsdl:imported from
'http://www.rakis.com/webservices/47/definitions/runtime-message-types.x
sd', relative to
'http://www.rakis.com/webservices/47/definitions/runtime-main.wsdl'.
Retrieving schema at
'http://www.rakis.com/webservices/47/definitions/runtime-data-types.xsd'
, relative to
'http://www.rakis.com/webservices/47/definitions/runtime-message-types.x
sd'.
Retrieving schema at
'http://www.rakis.com/webservices/47/definitions/runtime-message-types.x
sd', relative to
'http://www.rakis.com/webservices/47/definitions/runtime-data-types.xsd'
.
Retrieving schema at
'http://www.rakis.com/webservices/47/definitions/common-data-types.xsd',
relative to
'http://www.rakis.com/webservices/47/definitions/runtime-data-types.xsd'
.
Retrieving schema at
'http://www.rakis.com/webservices/47/definitions/common-data-types.xsd',
relative to
'http://www.rakis.com/webservices/47/definitions/runtime-message-types.x
sd'.
Retrieving schema wsdl:imported from
'http://www.rakis.com/webservices/47/definitions/runtime-header-types.xs
d', relative to
'http://www.rakis.com/webservices/47/definitions/runtime-main.wsdl'.
Retrieving schema at
'http://www.rakis.com/webservices/47/definitions/common-data-types.xsd',
relative to
'http://www.rakis.com/webservices/47/definitions/runtime-header-types.xs
d'.
May 4, 2006 1:44:51 PM
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder processImports
INFO: Adding wsdl definition
http://www.rakis.com/webservices/47/definitions/runtime-main.wsdl with
baseURI of C:\work\securedfunding.com\trunk
May 4, 2006 1:44:51 PM
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder processImports
INFO: Adding wsdl definition
http://www.rakis.com/webservices/47/definitions/runtime-message-types.xs
d with baseURI of
http://www.rakis.com/webservices/47/definitions/runtime-main.wsdl
May 4, 2006 1:44:51 PM
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder processImports
INFO: Adding wsdl definition
http://www.rakis.com/webservices/47/definitions/runtime-header-types.xsd
with baseURI of
http://www.rakis.com/webservices/47/definitions/runtime-main.wsdl
org.apache.ws.commons.schema.XmlSchemaElement@185572aorg.apache.ws.commo
ns.schema.XmlSchemaElement@11daa0eorg.apache.ws.commons.schema.XmlSchema
Element@879860org.apache.ws.commons.schema.XmlSchemaElement@24de7dorg.ap
ache.ws.commons.schema.X
mlSchemaElement@8b058borg.apache.ws.commons.schema.XmlSchemaElement@1192
059org.apache.ws.commons.schema.XmlSchemaElement@9ac0f5org.apache.ws.com
mons.schema.XmlSchemaElement@1f21c50org.apache.ws.commons.schema.XmlSche
maElement@20f237org.apac
he.ws.commons.schema.XmlSchemaElement@fe315d[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error executing ant tasks

Embedded error: java.lang.NullPointerException
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error executing
ant tasks
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:559)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
ycle(DefaultLifecycleExecutor.java:475)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:454)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:140)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error
executing ant tasks
at
org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntM
ojo.java:109)
at
org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:83)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:412)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:534)
... 16 more
Caused by: java.lang.NullPointerException
at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:41)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at
org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntM
ojo.java:99)
... 19 more
Caused by: java.lang.NullPointerException
at
org.codehaus.xfire.wsdl11.parser.SoapBindingAnnotator.visit(SoapBindingA
nnotator.java:188)
at
org.codehaus.xfire.wsdl11.parser.WSDLServiceConfigurator.visit(WSDLServi
ceConfigurator.java:271)
at
org.codehaus.xfire.wsdl11.parser.WSDLServiceConfigurator.configure(WSDLS
erviceConfigurator.java:181)
at
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.build(WSDLServiceBui
lder.java:198)
at
org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:69)
at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:37)
... 23 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 10 seconds
[INFO] Finished at: Thu May 04 13:44:51 PDT 2006
[INFO] Final Memory: 4M/8M
[INFO]
------------------------------------------------------------------------

Any idea what went wrong?

Show
Dan Diephouse added a comment - From the list: And got NullpointerException: Retrieving document at 'http://www.rakis.com/webservices/47/definitions/runtime-main.wsdl', relative to 'C:\work\securedfunding.com\trunk'. Retrieving schema wsdl:imported from 'http://www.rakis.com/webservices/47/definitions/runtime-message-types.x sd', relative to 'http://www.rakis.com/webservices/47/definitions/runtime-main.wsdl'. Retrieving schema at 'http://www.rakis.com/webservices/47/definitions/runtime-data-types.xsd' , relative to 'http://www.rakis.com/webservices/47/definitions/runtime-message-types.x sd'. Retrieving schema at 'http://www.rakis.com/webservices/47/definitions/runtime-message-types.x sd', relative to 'http://www.rakis.com/webservices/47/definitions/runtime-data-types.xsd' . Retrieving schema at 'http://www.rakis.com/webservices/47/definitions/common-data-types.xsd', relative to 'http://www.rakis.com/webservices/47/definitions/runtime-data-types.xsd' . Retrieving schema at 'http://www.rakis.com/webservices/47/definitions/common-data-types.xsd', relative to 'http://www.rakis.com/webservices/47/definitions/runtime-message-types.x sd'. Retrieving schema wsdl:imported from 'http://www.rakis.com/webservices/47/definitions/runtime-header-types.xs d', relative to 'http://www.rakis.com/webservices/47/definitions/runtime-main.wsdl'. Retrieving schema at 'http://www.rakis.com/webservices/47/definitions/common-data-types.xsd', relative to 'http://www.rakis.com/webservices/47/definitions/runtime-header-types.xs d'. May 4, 2006 1:44:51 PM org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder processImports INFO: Adding wsdl definition http://www.rakis.com/webservices/47/definitions/runtime-main.wsdl with baseURI of C:\work\securedfunding.com\trunk May 4, 2006 1:44:51 PM org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder processImports INFO: Adding wsdl definition http://www.rakis.com/webservices/47/definitions/runtime-message-types.xs d with baseURI of http://www.rakis.com/webservices/47/definitions/runtime-main.wsdl May 4, 2006 1:44:51 PM org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder processImports INFO: Adding wsdl definition http://www.rakis.com/webservices/47/definitions/runtime-header-types.xsd with baseURI of http://www.rakis.com/webservices/47/definitions/runtime-main.wsdl org.apache.ws.commons.schema.XmlSchemaElement@185572aorg.apache.ws.commo ns.schema.XmlSchemaElement@11daa0eorg.apache.ws.commons.schema.XmlSchema Element@879860org.apache.ws.commons.schema.XmlSchemaElement@24de7dorg.ap ache.ws.commons.schema.X mlSchemaElement@8b058borg.apache.ws.commons.schema.XmlSchemaElement@1192 059org.apache.ws.commons.schema.XmlSchemaElement@9ac0f5org.apache.ws.com mons.schema.XmlSchemaElement@1f21c50org.apache.ws.commons.schema.XmlSche maElement@20f237org.apac he.ws.commons.schema.XmlSchemaElement@fe315d[INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error executing ant tasks Embedded error: java.lang.NullPointerException [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error executing ant tasks at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default LifecycleExecutor.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec ycle(DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL ifecycleExecutor.java:454) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle Failures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec ycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Error executing ant tasks at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntM ojo.java:109) at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:83) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa nager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default LifecycleExecutor.java:534) ... 16 more Caused by: java.lang.NullPointerException at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:41) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntM ojo.java:99) ... 19 more Caused by: java.lang.NullPointerException at org.codehaus.xfire.wsdl11.parser.SoapBindingAnnotator.visit(SoapBindingA nnotator.java:188) at org.codehaus.xfire.wsdl11.parser.WSDLServiceConfigurator.visit(WSDLServi ceConfigurator.java:271) at org.codehaus.xfire.wsdl11.parser.WSDLServiceConfigurator.configure(WSDLS erviceConfigurator.java:181) at org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.build(WSDLServiceBui lder.java:198) at org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:69) at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:37) ... 23 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: 10 seconds [INFO] Finished at: Thu May 04 13:44:51 PDT 2006 [INFO] Final Memory: 4M/8M [INFO] ------------------------------------------------------------------------ Any idea what went wrong?
Hide
Dan Diephouse added a comment -

I've deployed a new version of xfire which has this fixed for real this time. You will need to download a copy of the XmlSchema SNAPSHOT as well:

http://cvs.apache.org/maven-snapshot-repository/org/apache/ws/commons/XmlSchema/SNAPSHOT/XmlSchema-20060506.221229-3.jar

Let me know how it goes! Thanks!!!

Show
Dan Diephouse added a comment - I've deployed a new version of xfire which has this fixed for real this time. You will need to download a copy of the XmlSchema SNAPSHOT as well: http://cvs.apache.org/maven-snapshot-repository/org/apache/ws/commons/XmlSchema/SNAPSHOT/XmlSchema-20060506.221229-3.jar Let me know how it goes! Thanks!!!
Hide
Dan Diephouse added a comment -

Actually - I'm not sure if that jar has the required fix in it. Use this one just to be safe:

http://cvs.apache.org/maven-snapshot-repository/org/apache/ws/commons/XmlSchema/SNAPSHOT/XmlSchema-20060507.220617-4.jar

Show
Dan Diephouse added a comment - Actually - I'm not sure if that jar has the required fix in it. Use this one just to be safe: http://cvs.apache.org/maven-snapshot-repository/org/apache/ws/commons/XmlSchema/SNAPSHOT/XmlSchema-20060507.220617-4.jar
Hide
Dan Diephouse added a comment -

Hi Danny - I haven't heard back from you, but I can't reproduce this any more so I'm closign this issue so I can do the 1.1 release.

Show
Dan Diephouse added a comment - Hi Danny - I haven't heard back from you, but I can't reproduce this any more so I'm closign this issue so I can do the 1.1 release.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: