VMware {code} Community
psiinfo
Contributor
Contributor
Jump to solution

wsdl2java ant

I am trying wsdl2java through ant.

Firstly i got timeout issue, I solved that by putting timeout="-1" and then got outofmemory issue, solved that by increasing the jvm size to 256m.(ANT_OPTS="-Xms256M -Xmx256M")

<target name="genWSDL2Java" description="Generate java file hooks from WSDL">

<taskdef resource="axis-tasks.properties" classpathref="testPath" />

<mkdir dir="$/thirdParty/src"/> <axis-wsdl2java output="$/thirdParty/src"

testcase="true"

timeout="-1"

verbose="true"

url="C:/Program Files/VMware/VMware Server/hostd/docroot/sdk/vimService.wsdl">

<mapping namespace ="http://axis.apache.org/ns/interop"

package = "interop"></mapping>

</axis-wsdl2java>

</target>

Even after increasing the momory size ,still it gave the StackOverflowError

Parsing XML file: C:/Program Files/VMware/VMware Server/hostd/docroot/sdk/vimService.wsdl

Retrieving document at 'vim.wsdl', relative to 'file:/C:/Program Files/VMware/VMware Server/hostd/docroot/sdk/vimService.wsdl'.

Exception in thread "Thread-3" java.lang.StackOverflowError

at org.apache.xerces.dom.NamedNodeMapImpl.findNamePoint(Unknown Source)

at org.apache.xerces.dom.NamedNodeMapImpl.getNamedItem(Unknown Source)

at org.apache.axis.wsdl.symbolTable.Utils.getScopedAttribute(Utils.java:96)

at org.apache.axis.wsdl.symbolTable.Utils.getScopedAttribute(Utils.java:101)

at org.apache.axis.wsdl.symbolTable.Utils.getScopedAttribute(Utils.java:101)

Eventually m not able to create the java code.

Has someone else came across same problem?

Tags (1)
Reply
0 Kudos
1 Solution

Accepted Solutions
admin
Immortal
Immortal
Jump to solution

here is my setting: -Xmx512m -Xms256m -Xss1024k

core API and toolkits team

VMware Inc.

View solution in original post

Reply
0 Kudos
3 Replies
admin
Immortal
Immortal
Jump to solution

>> StackOverflowError

increase the stack size: -Xss1024k

core API and toolkits team

VMware Inc.

Reply
0 Kudos
admin
Immortal
Immortal
Jump to solution

here is my setting: -Xmx512m -Xms256m -Xss1024k

core API and toolkits team

VMware Inc.

Reply
0 Kudos
psiinfo
Contributor
Contributor
Jump to solution

Thanks vm team

It worked

Regards,

Prashant

Reply
0 Kudos