Hello.

I am trying to generate code from a secure Web Service. wsdl2java works
well with Java7, but throws an SSLException when invoked with Java8.
The test client generated with Java7 does not work with Java8 either.

------
>set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_25

>wsdl2java.bat -uri
https://gestiona.madrid.org/bocm_ws_ssl/services/ServicioBoletin?wsdl

Using AXIS2_HOME:   Y:\david\workspace\jars\axis2-1.6.2
Using JAVA_HOME:    C:\Program Files\Java\jdk1.8.0_25
log4j:WARN No appenders could be found for logger
(org.apache.axis2.i18n.ProjectResourceBundle).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main"
org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL
        at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:181)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: javax.net.ssl.SSLException: Received fatal alert:
unexpected_message
        at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
        at sun.security.ssl.Alerts.getSSLException(Alerts.java:154)
        at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1991)
        at
sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1104)
        at
sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1343)
        at
sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1371)
        at
sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1355)
        at
sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:563)
        at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
        at
sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1511)
        at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1439)
        at
java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
        at
sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)
        at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:99)
        ... 2 more

>set JAVA_HOME=C:\Program Files\Java\jdk1.7.0_71

>wsdl2java.bat -uri
https://gestiona.madrid.org/bocm_ws_ssl/services/ServicioBoletin?wsdl

Using AXIS2_HOME:   Y:\david\workspace\jars\axis2-1.6.2
Using JAVA_HOME:    C:\Program Files\Java\jdk1.7.0_71
Retrieving document at '
https://gestiona.madrid.org/bocm_ws_ssl/services/ServicioBoletin?wsdl'.
log4j:WARN No appenders could be found for logger
(org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder).
log4j:WARN Please initialize the log4j system properly.
------

Any ideas on how to solve this, or how to get more detailed information?
Thank you very much.

Reply via email to