English

Error: java.io.IOException: Emitter failure.

Error Message

While using the com.apache.axis.wsdl.WSDL2Java class file to create wrapper Java classes for an https service, the following error occurs:

java.io.IOException: Emitter failure. Invalid endpoint address in port IAuthentication in service XXX

Additionally, the generated XXXLocator.java file is blank.

Cause

Using the following generic command doesn't work:

Java org.apache.axis.wsdl.WSDL2Java –o .\src –p com.esri.is.servicestests.axis.stubs XXX.wsdl

Solution or Workaround

Use the following optional parameter to correct the problem:

Java -
Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol org.apache.axis.wsdl.WSDL2Java –o .\src –p com.esri.is.servicestests.axis.stubs XXX.wsdl