axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deepal Jayasinghe (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AXIS2-4934) wsdl2java returns error in second call if called twice with exact parameters
Date Sun, 23 Jan 2011 05:07:43 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-4934?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Deepal Jayasinghe resolved AXIS2-4934.
--------------------------------------

    Resolution: Fixed

Applied the patch, thank you very much for submitting it.

Deepal

> wsdl2java returns error in second call if called twice with exact parameters
> ----------------------------------------------------------------------------
>
>                 Key: AXIS2-4934
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4934
>             Project: Axis2
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.5.4
>         Environment: Tested on two machines 1. ubuntu system 2.6.26-2-xen-686   2. Ubuntu
9.10 2.6.31-22-generic
>            Reporter: Carsten Pohl
>         Attachments: FileWriter.java.patch
>
>
> first machine:
> java version "1.6.0_12"
> Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
> Java HotSpot(TM) Client VM (build 11.2-b01, mixed mode, sharing)
> second machine:
> java version "1.6.0_22"
> Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
> Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)
> I downloaded the 1.5.4 binary distribution of axis2 from http://axis.apache.org/axis2/java/core/download.cgi
> I used a very simple WSDL file:
> <definitions name="HelloService"
>    targetNamespace="http://www.examples.com/wsdl/HelloService.wsdl"
>    xmlns="http://schemas.xmlsoap.org/wsdl/"
>    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>    xmlns:tns="http://www.examples.com/wsdl/HelloService.wsdl"
>    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
>    <message name="SayHelloRequest">
>       <part name="firstName" type="xsd:string"/>
>    </message>
>    <message name="SayHelloResponse">
>       <part name="greeting" type="xsd:string"/>
>    </message>
>    <portType name="Hello_PortType">
>       <operation name="sayHello">
>          <input message="tns:SayHelloRequest"/>
>          <output message="tns:SayHelloResponse"/>
>       </operation>
>    </portType>
>    <binding name="Hello_Binding" type="tns:Hello_PortType">
>    <soap:binding style="rpc"
>       transport="http://schemas.xmlsoap.org/soap/http"/>
>    <operation name="sayHello">
>       <soap:operation soapAction="sayHello"/>
>       <input>
>          <soap:body
>             encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>             namespace="urn:examples:helloservice"
>             use="encoded"/>
>       </input>
>       <output>
>          <soap:body
>             encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>             namespace="urn:examples:helloservice"
>             use="encoded"/>
>       </output>
>    </operation>
>    </binding>
>    <service name="Hello_Service">
>       <documentation>WSDL File for HelloService</documentation>
>       <port binding="tns:Hello_Binding" name="Hello_Port">
>          <soap:address location="http://www.examples.com/SayHello/"/>
>       </port>
>    </service>
> </definitions>
> If I use wsdl2java.sh on that file:
> /opt/axis2-1.5.4/bin/wsdl2java.sh -ssi -ap -or -ss -sd -o /tmp/bla  --uri /tmp/thewsdlfile.wsdl
> and call it right again, I get a very strange error message:
>  Using AXIS2_HOME:   /opt/axis2-1.5.4/
>  Using JAVA_HOME:       /usr/lib/jvm/java-6-sun/
> Retrieving document at '/tmp/thwwsdlfile.wsdl'.
> [ERROR] Exception occurred while trying to pretty print file /tmp/bla/resources/services.xml
> ; Line#: -1; Column#: -1
> javax.xml.transform.TransformerException: Premature end of file.
> 	at org.apache.xalan.transformer.TransformerImpl.fatalError(TransformerImpl.java:780)
> 	at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:756)
> 	at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1284)
> 	at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1262)
> 	at org.apache.axis2.util.XMLPrettyPrinter.prettify(XMLPrettyPrinter.java:84)
> 	at org.apache.axis2.wsdl.codegen.extension.XMLPrettyPrinterExtension.prettifyFile(XMLPrettyPrinterExtension.java:39)
> 	at org.apache.axis2.wsdl.codegen.extension.AbstractPrettyPrinterExtension.prettify(AbstractPrettyPrinterExtension.java:53)
> 	at org.apache.axis2.wsdl.codegen.extension.AbstractPrettyPrinterExtension.engage(AbstractPrettyPrinterExtension.java:37)
> 	at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:265)
> 	at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
> 	at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> [ERROR] Exception occurred while trying to pretty print file /tmp/bla/resources/services.xml
> ; Line#: -1; Column#: -1
> javax.xml.transform.TransformerException: Premature end of file.
> 	at org.apache.xalan.transformer.TransformerImpl.fatalError(TransformerImpl.java:780)
> 	at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:756)
> 	at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1284)
> 	at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1262)
> 	at org.apache.axis2.util.XMLPrettyPrinter.prettify(XMLPrettyPrinter.java:84)
> 	at org.apache.axis2.wsdl.codegen.extension.WSDLPrettyPrinterExtension.prettifyFile(WSDLPrettyPrinterExtension.java:33)
> 	at org.apache.axis2.wsdl.codegen.extension.AbstractPrettyPrinterExtension.prettify(AbstractPrettyPrinterExtension.java:53)
> 	at org.apache.axis2.wsdl.codegen.extension.AbstractPrettyPrinterExtension.engage(AbstractPrettyPrinterExtension.java:37)
> 	at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:265)
> 	at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
> 	at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)

-- 
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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message