You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Unmesh Mayekar <un...@yahoo.com> on 2004/08/12 00:53:43 UTC

java.io.IOException: Emitter failure. Invalid endpoint address

 
I get this exception when I run wsdl2java. NOTE that the url is plain "http" and NOT "https". Doesnt the jvm by default include a protocol handler for "http"? What could I be doing wrong?
 
java.io.IOException: Emitter failure.  Invalid endpoint address in port Calculat
or in service CalculatorServiceLocator:  "http://hostname:8150/axis/services/calculator"
        at org.apache.axis.wsdl.toJava.JavaServiceImplWriter.writeFileBody(JavaServiceImplWriter.java:192)
        at org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:148)
        at org.apache.axis.wsdl.toJava.JavaServiceWriter.generate(JavaServiceWriter.java:101)
        at org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(JavaGeneratorFactory.java:284)
        at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:328)
        at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:82)
        at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:246)
        at java.lang.Thread.run(Thread.java:536)

This is the command I used to run wsdl2java...
 
java -classpath d:\programs\axis-1_1lib\axis.jar;d:\programs\axis-1_1\lib\axis-ant.jar;d:\programs\axis-1_1\lib\commons-discovery.jar;d:\programs\axis-1_1\lib\commons-logging.jar;d:\programs\axis-1_1\lib\jaxrpc.jar;d:\programs\axis-1_1\lib\log4j-1.2.8.jar;d:\programs\axis-1_1\lib\saaj.jar;d:\programs\axis-1_1\lib\wsdl4j.jar org.apache.axis.wsdl.WSDL2Java -od:\data\java -dSession -s -ptest.axis.calculator.webservice calculator.wsdl
 
Any help is appreciated.
 
~unmesh.



		
---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!

Re: java.io.IOException: Emitter failure. Invalid endpoint address

Posted by Unmesh Mayekar <un...@yahoo.com>.
Never mind. The WSDL file generated using "java2wsdl" had "&quot;" around the location as in... 
 
         <wsdlsoap:address location="&quot;http://umayekar:8150/axis/services/calculator&quot;"/>

removed those and its working now.
 
~unmesh.

Unmesh Mayekar <un...@yahoo.com> wrote:
 
I get this exception when I run wsdl2java. NOTE that the url is plain "http" and NOT "https". Doesnt the jvm by default include a protocol handler for "http"? What could I be doing wrong?
 
java.io.IOException: Emitter failure.  Invalid endpoint address in port Calculat
or in service CalculatorServiceLocator:  "http://hostname:8150/axis/services/calculator"
        at org.apache.axis.wsdl.toJava.JavaServiceImplWriter.writeFileBody(JavaServiceImplWriter.java:192)
        at org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:148)
        at org.apache.axis.wsdl.toJava.JavaServiceWriter.generate(JavaServiceWriter.java:101)
        at org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(JavaGeneratorFactory.java:284)
        at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:328)
        at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:82)
        at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:246)
        at java.lang.Thread.run(Thread.java:536)

This is the command I used to run wsdl2java...
 
java -classpath d:\programs\axis-1_1lib\axis.jar;d:\programs\axis-1_1\lib\axis-ant.jar;d:\programs\axis-1_1\lib\commons-discovery.jar;d:\programs\axis-1_1\lib\commons-logging.jar;d:\programs\axis-1_1\lib\jaxrpc.jar;d:\programs\axis-1_1\lib\log4j-1.2.8.jar;d:\programs\axis-1_1\lib\saaj.jar;d:\programs\axis-1_1\lib\wsdl4j.jar org.apache.axis.wsdl.WSDL2Java -od:\data\java -dSession -s -ptest.axis.calculator.webservice calculator.wsdl
 
Any help is appreciated.
 
~unmesh.




---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
		
---------------------------------
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!