Forum Discussion

wingnut's avatar
wingnut
New Contributor
15 years ago

"generate code" hangs eclipse.

Latest version of elcilpse (Helios)
verion 3.5 of soapui eclipse plugin.
The machine has 1.5 GB of free memory (XP, total 3GB)
Im using a noddy WSDL and empty web project creatend by maven plugin, with soapui facet added.
It doesnt matter what I chose in generate code, e.g. axis2, jax-ws etc. it either hangs after the code creation dialog comes up, or sometimes on the next dialog (e.g. if I hit brows).
The only option then is to kill the eclipse process.

Anyone else have this problem?

This is the output from killing the process:

---------------------------
Eclipse
---------------------------
Java was started but returned exit code=1073807364
c:/Progra~1/Java/jdk1.6.0_20/bin/javaw.exe
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-jar D:\dev\eclipse\plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
-os win32
-ws win32
-arch x86
-showsplash
-launcher D:\dev\eclipse\eclipse.exe
-name Eclipse
--launcher.library D:\dev\eclipse\plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.0.v20100503\eclipse_1307.dll
-startup D:\dev\eclipse\plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
-exitdata 1424_40
-product org.eclipse.epp.package.reporting.product
-vm c:/Progra~1/Java/jdk1.6.0_20/bin/javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx512m
-XX:MaxPermSize=256m
-jar D:\dev\eclipse\plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
---------------------------
OK
---------------------------
  • wingnut's avatar
    wingnut
    New Contributor
    I increased the java memory to 1GB, but this did not help, and I did not see java use any more memory than when it was 512.

    Eclipse hangs if you open the generate code dialogue (by right clicking on a "soap ui webservice"), then simply hit the close button.

    It does it 100% of the time.

    If it helps, here is the wsdl:
    <wsdl:definitions name="ge" targetNamespace="http://www.skillkash.co.uk/ge/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.skillkash.co.uk/ge/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <wsdl:types>
    <xsd:schema targetNamespace="http://www.skillkash.co.uk/ge/">
    <xsd:element name="login">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="username" type="xsd:string" maxOccurs="1" minOccurs="1"/>
    <xsd:element name="password" type="xsd:string" maxOccurs="1" minOccurs="1"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="loginResponse">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="playerId" type="xsd:unsignedLong" maxOccurs="1" minOccurs="1"/>
    <xsd:element name="playerDisplayName" type="xsd:string" maxOccurs="1" minOccurs="1"/>
    <xsd:element name="currencyId" type="xsd:unsignedLong" maxOccurs="1" minOccurs="1"/>
    <xsd:element name="balance" type="xsd:decimal" maxOccurs="1" minOccurs="1"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    </wsdl:types>
    <wsdl:message name="loginRequest">
    <wsdl:part element="tns:login" name="parameters"/>
    </wsdl:message>
    <wsdl:message name="loginResponse">
    <wsdl:part element="tns:loginResponse" name="parameters"/>
    </wsdl:message>
    <wsdl:portType name="ge">
    <wsdl:operation name="login">
    <wsdl:input message="tns:loginRequest"/>
    <wsdl:output message="tns:loginResponse"/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="geSOAP" type="tns:ge">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="login">
    <soap:operation soapAction="http://www.skillkash.co.uk/ge/login"/>
    <wsdl:input>
    <soap:body use="literal"/>
    </wsdl:input>
    <wsdl:output>
    <soap:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="ge">
    <wsdl:port binding="tns:geSOAP" name="geSOAP">
    <soap:address location="http://www.skillkash.co.uk/"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
  • frf's avatar
    frf
    New Contributor
    +1 I get this kind of situation all the time. Eclipse just hangs when I click "Generate ..."