Error on upload content when add service in service registry from TAC

One Star

Error on upload content when add service in service registry from TAC

Hi,
In TAC I have an error when I try to upload content on service registry (cf. log tac/archive/logs/executionlogs/technical):
2016-03-29 18:36:42 ERROR TalendRemoteServiceServlet  - Unexpected exception : Service method 'public abstract void org.talend.gwtadministrator.client.module.esbinfra.sr.service.SRUIService.validateContent(java.lang.String,java.lang.String) throws org.talend.gwttoolkit.client.exception.ClientBusinessException' threw an unexpected exception: java.lang.NullPointerException
java.lang.NullPointerException
at org.talend.gwtadministrator.shared.esbInfra.XMLParcingUtils.validateWSDL(XMLParcingUtils.java:174)
at org.talend.gwtadministrator.server.esbinfra.sr.SRServiceImpl.validateWSDL(SRServiceImpl.java:640)
at org.talend.gwtadministrator.server.esbinfra.sr.SRServiceImpl.validateContent(SRServiceImpl.java:631)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:561)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
at org.talend.gwttoolkit.server.TalendRemoteServiceServlet.processCall(TalendRemoteServiceServlet.java:104)
at org.talend.gwtadministrator.server.LoggedAndLicenseCheckRemoteServiceServlet.processCall(LoggedAndLicenseCheckRemoteServiceServlet.java:36)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:644)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.talend.gwttoolkit.server.common.http.HeadersFilter.doFilter(HeadersFilter.java:55)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:516)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1086)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:659)
at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:223)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1558)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1515)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)

 
Someone have an idea ?
Thanks for help !
Moderator

Re: Error on upload content when add service in service registry from TAC

Hi,
Could you please indicate the build version you are using? Does this issue repro on your other service WSDL files?
Have you already  successfully checked the consistency of the service WSDL file and the policy files assigned to the service using the validate button on the tool bar?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: Error on upload content when add service in service registry from TAC

Thanks for your response !
My version :
WebApp version
6.1.1.20151214_1327-   
   
Db model version
6.1.1.20151214_1327-
I can't validate because the button is not enabled.
I try with an exemple found on Internet : With soap 1.1 it's OK but with soap 1.2 I have the same error !
The following is an example for creating a WSDL file for SOAP 1.1:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="TestJaxWsService"
xmlns:soap=""
xmlns:xsd=""
xmlns:wsdl=""
xmlns:tns=""
targetNamespace="">

<wsdl:types>
<xsd:schema targetNamespace="">
<!-- wrapper element of the request message -->
<xsd:element name="jaxWsTest1" type="tns:jaxWsTest1"/>

<!-- wrapper element of the response message -->
<xsd:element name="jaxWsTest1Response" type="tns:jaxWsTest1Response"/>

<!-- wrapper element of the fault message -->
<xsd:element name="UserDefinedFault" type="tns:UserDefinedFault"/>

<!-- Type referenced by the wrapper element of the request message -->
<xsd:complexType name="jaxWsTest1">
<xsd:sequence>
<xsd:element name="information" type="xsd:string"/>
<xsd:element name="count" type="xsd:int"/>
</xsd:sequence>
</xsd:complexType>


<!-- Type referenced by the wrapper element of the response message -->
<xsd:complexType name="jaxWsTest1Response">
<xsd:sequence>
<xsd:element name="return" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>

<!-- Type referenced by the wrapper element of the fault message -->
<xsd:complexType name="UserDefinedFault">
<xsd:sequence>
<xsd:element name="additionalInfo" type="xsd:int"/>
<xsd:element name="detail" type="xsd:string"/>
<xsd:element name="message" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</wsdl:types>

<!-- Request message -->
<wsdl:message name="jaxWsTest1Request">
<wsdl:part name="inputParameters" element="tns:jaxWsTest1"/>
</wsdl:message>

<!-- Response message -->
<wsdl:message name="jaxWsTest1Response">
<wsdl:part name="outputParameters" element="tns:jaxWsTest1Response"/>
</wsdl:message>

<!-- Fault message -->
<wsdl:message name="UserDefinedException">
<wsdl:part name="fault" element="tns:UserDefinedFault"/>
</wsdl:message>

<!-- Port type -->
<wsdl:portType name="TestJaxWs">
<!-- Operation -->
<wsdl:operation name="jaxWsTest1">
<wsdl:input message="tns:jaxWsTest1Request"/>
<wsdl:output message="tns:jaxWsTest1Response"/>
<wsdl:fault name="UserDefinedFault"
message="tns:UserDefinedException"/>
</wsdl:operation>
</wsdl:portType>

<!-- Binding (SOAP 1.1/HTTP binding) -->
<wsdl:binding name="testJaxWsBinding" type="tns:TestJaxWs">
<!-- document/literal/wrapped -->
<soap:binding style="document" transport=""/>
<!-- Operation -->
<wsdl:operation name="jaxWsTest1">
<soap:operation/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
<wsdl:fault name="UserDefinedFault">
<soap:fault name="UserDefinedFault" use="literal"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>

<!-- Service -->
<wsdl:service name="TestJaxWsService">
<!-- Port -->
<wsdl:port name="testJaxWs" binding="tns:testJaxWsBinding">
<soap:address location=""/>
</wsdl:port>
</wsdl:service>

</wsdl:definitions>

The following is an example for creating a WSDL file for SOAP 1.2:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="TestJaxWsService"
xmlns:soap12=""
xmlns:xsd=""
xmlns:wsdl=""
xmlns:tns=""
targetNamespace="">

<wsdl:types>
<xsd:schema targetNamespace="">
<!-- wrapper element of the request message -->
<xsd:element name="jaxWsTest1" type="tns:jaxWsTest1"/>

<!-- wrapper element of the response message -->
<xsd:element name="jaxWsTest1Response" type="tns:jaxWsTest1Response"/>

<!-- wrapper element of the fault message -->
<xsd:element name="UserDefinedFault" type="tns:UserDefinedFault"/>

<!-- wrapper element of the fault message -->
<xsd:complexType name="jaxWsTest1">
<xsd:sequence>
<xsd:element name="information" type="xsd:string"/>
<xsd:element name="count" type="xsd:int"/>
</xsd:sequence>
</xsd:complexType>

<!-- Type referenced by the wrapper element of the response message -->
<xsd:complexType name="jaxWsTest1Response">
<xsd:sequence>
<xsd:element name="return" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>

<!-- Type referenced by the wrapper element of the fault message -->
<xsd:complexType name="UserDefinedFault">
<xsd:sequence>
<xsd:element name="additionalInfo" type="xsd:int"/>
<xsd:element name="detail" type="xsd:string"/>
<xsd:element name="message" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</wsdl:types>

<!-- Request message -->
<wsdl:message name="jaxWsTest1Request">
<wsdl:part name="inputParameters" element="tns:jaxWsTest1"/>
</wsdl:message>

<!-- Response message -->
<wsdl:message name="jaxWsTest1Response">
<wsdl:part name="outputParameters" element="tns:jaxWsTest1Response"/>
</wsdl:message>

<!-- Fault message -->
<wsdl:message name="UserDefinedException">
<wsdl:part name="fault" element="tns:UserDefinedFault"/>
</wsdl:message>

<!-- Port type -->

<wsdl:portType name="TestJaxWs">
<!-- Operation -->
<wsdl:operation name="jaxWsTest1">
<wsdl:input message="tns:jaxWsTest1Request"/>
<wsdl:output message="tns:jaxWsTest1Response"/>
<wsdl:fault name="UserDefinedFault"
message="tns:UserDefinedException"/>
</wsdl:operation>
</wsdl:portType>

<!-- Binding (SOAP 1.2/HTTP binding) -->
<wsdl:binding name="testJaxWsBinding" type="tns:TestJaxWs">
<!-- document/literal/wrapped -->
<soap12:binding style="document" transport=""/>
<!-- Operation -->
<wsdl:operation name="jaxWsTest1">
<soap12:operation/>
<wsdl:input>
<soap12:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap12:body use="literal"/>
</wsdl:output>
<wsdl:fault name="UserDefinedFault">
<soap12:fault name="UserDefinedFault" use="literal"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>

<!-- Service -->
<wsdl:service name="TestJaxWsService">
<!-- Port -->
<wsdl:port name="testJaxWs" binding="tns:testJaxWsBinding">
<soap12:address location=""/>
</wsdl:port>
</wsdl:service>

</wsdl:definitions>
Moderator

Re: Error on upload content when add service in service registry from TAC

Hi,
Would you mind reporting a tciket on Talend Support Portal so that we can give you a remote assistance and make a testing on your issue to see if  there is any compatible issue through support cycle with priority?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.