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 Charles Souillard <Ch...@ext.bull.net> on 2006/10/17 09:48:37 UTC

Axis 1.4, style=message

Hi all,

I am using axis 1.4. I want to deploy a new WS using message style.
To do that, I execute wsdl2java tool with the following options :
-s -a -B -H

Then I replace the implementation file by one compliant with message 
style :

public Element[] validationRequest (Element[] bodies) throws Exception {
        System.out.println("ValidationPTSOAPBindingImpl.validationRequest");
        return null;
}
Then I update wsdd file provider="java:MSG" and style="message"

Then I generate the jar using build.xml (generated by wsdl2java).
I deploy my WS using adminClient
Next I go to my browser into AxisServlet and I can see my WS (near 
AdminService and version).
When I clic on the "wsdl" link of my service, I get an exception (see 
under).

Here is my wsdl (part)
...
      <complexType name="validationRequestCT">
        <sequence>
          <element name="authorisationRequest" 
type="tns:authorisationRequestCT"/>
          <element name="identificationRequest" 
type="tns:identificationRequestCT"/>
          <element name="registrationRequest" 
type="tns:registrationRequestCT"/>
        </sequence>
      </complexType>
      <complexType name="validationResponseCT">
        <sequence>
          <element name="request" type="tns:validationRequestCT"/>
          <element name="status" type="xsd:string"/>
        </sequence>
      </complexType>
      <element name="validationRequest" type="tns:validationRequestCT"/>
      <element name="validationResponse" type="tns:validationResponseCT"/>

<message name="validationRequestMessage">
    <part name="p" element="tns:validationRequest"/>
  </message>
  <message name="validationResponseMessage">
    <part name="p" element="tns:validationResponse"/>
  </message>
  <portType name="validationPT">
    <operation name="validationRequest">
      <input message="tns:validationRequestMessage"/>
      <output message="tns:validationResponseMessage"/>
    </operation>
  </portType>

I have tried to update my wsdl to correct the error.
It is possible if I replace validationResponseCT as the following :

<complexType name="validationResponseCT">
        <sequence>
          <element name="response" type="tns:validationResponse2CT"/>
        </sequence>
      </complexType>
      <complexType name="validationResponse2CT">
        <sequence>
          <element name="request" type="tns:validationRequestCT"/>
          <element name="status" type="xsd:string"/>
        </sequence>
      </complexType>

IT IS VERY STRANGE !!!
Can you help me ?

Thanks a lot
Charles

2006-10-17 09:22:13,706 : BasicProvider.generateWSDL : Mapping Exception 
to AxisFault
java.lang.NullPointerException
        at 
org.apache.axis.wsdl.fromJava.Types.writeElementDecl(Types.java:1264)
        at 
org.apache.axis.wsdl.fromJava.Emitter.writePartToMessage(Emitter.java:1941)
        at 
org.apache.axis.wsdl.fromJava.Emitter.writeResponseMessage(Emitter.java:1759)
        at 
org.apache.axis.wsdl.fromJava.Emitter.writeMessages(Emitter.java:1121)
        at 
org.apache.axis.wsdl.fromJava.Emitter.writePortType(Emitter.java:1075)
        at org.apache.axis.wsdl.fromJava.Emitter.getWSDL(Emitter.java:484)
        at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:331)
        at 
org.apache.axis.providers.BasicProvider.generateWSDL(BasicProvider.java:242)
        at 
org.apache.axis.strategies.WSDLGenStrategy.visit(WSDLGenStrategy.java:33)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.generateWSDL(SimpleChain.java:104)
        at 
org.apache.axis.handlers.soap.SOAPService.generateWSDL(SOAPService.java:320)
        at 
org.apache.axis.server.AxisServer.generateWSDL(AxisServer.java:482)
        at 
org.apache.axis.transport.http.QSWSDLHandler.invoke(QSWSDLHandler.java:68)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at 
org.apache.axis.transport.http.AxisServlet.processQuery(AxisServlet.java:1226)
        at 
org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:249)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
        at 
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at 
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
        at 
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
        at 
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245)
        at 
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
        at 
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at 
org.objectweb.jonas.web.catalina55.ResetAuthenticationValve.invoke(ResetAuthenticationValve.java:62)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
        at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:534)


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Axis 1.4, style=message

Posted by Charles Souillard <Ch...@ext.bull.net>.
done
https://issues.apache.org/jira/browse/AXIS-2573
Thanks

Anne Thomas Manes wrote:
> Please file a JIRA.
>
> On 10/18/06, Charles Souillard <Ch...@ext.bull.net> wrote:
>> Hi all,
>>
>> does anybody have an idea ?
>>
>> Thanks
>> Charles
>>
>> Charles Souillard wrote:
>> > Hi all,
>> >
>> > I am using axis 1.4. I want to deploy a new WS using message style.
>> > To do that, I execute wsdl2java tool with the following options :
>> > -s -a -B -H
>> >
>> > Then I replace the implementation file by one compliant with message
>> > style :
>> >
>> > public Element[] validationRequest (Element[] bodies) throws 
>> Exception {
>> >
>> > System.out.println("ValidationPTSOAPBindingImpl.validationRequest");
>> >        return null;
>> > }
>> > Then I update wsdd file provider="java:MSG" and style="message"
>> >
>> > Then I generate the jar using build.xml (generated by wsdl2java).
>> > I deploy my WS using adminClient
>> > Next I go to my browser into AxisServlet and I can see my WS (near
>> > AdminService and version).
>> > When I clic on the "wsdl" link of my service, I get an exception (see
>> > under).
>> >
>> > Here is my wsdl (part)
>> > ...
>> >      <complexType name="validationRequestCT">
>> >        <sequence>
>> >          <element name="authorisationRequest"
>> > type="tns:authorisationRequestCT"/>
>> >          <element name="identificationRequest"
>> > type="tns:identificationRequestCT"/>
>> >          <element name="registrationRequest"
>> > type="tns:registrationRequestCT"/>
>> >        </sequence>
>> >      </complexType>
>> >      <complexType name="validationResponseCT">
>> >        <sequence>
>> >          <element name="request" type="tns:validationRequestCT"/>
>> >          <element name="status" type="xsd:string"/>
>> >        </sequence>
>> >      </complexType>
>> >      <element name="validationRequest" 
>> type="tns:validationRequestCT"/>
>> >      <element name="validationResponse" 
>> type="tns:validationResponseCT"/>
>> >
>> > <message name="validationRequestMessage">
>> >    <part name="p" element="tns:validationRequest"/>
>> >  </message>
>> >  <message name="validationResponseMessage">
>> >    <part name="p" element="tns:validationResponse"/>
>> >  </message>
>> >  <portType name="validationPT">
>> >    <operation name="validationRequest">
>> >      <input message="tns:validationRequestMessage"/>
>> >      <output message="tns:validationResponseMessage"/>
>> >    </operation>
>> >  </portType>
>> >
>> > I have tried to update my wsdl to correct the error.
>> > It is possible if I replace validationResponseCT as the following :
>> >
>> > <complexType name="validationResponseCT">
>> >        <sequence>
>> >          <element name="response" type="tns:validationResponse2CT"/>
>> >        </sequence>
>> >      </complexType>
>> >      <complexType name="validationResponse2CT">
>> >        <sequence>
>> >          <element name="request" type="tns:validationRequestCT"/>
>> >          <element name="status" type="xsd:string"/>
>> >        </sequence>
>> >      </complexType>
>> >
>> > IT IS VERY STRANGE !!!
>> > Can you help me ?
>> >
>> > Thanks a lot
>> > Charles
>> >
>> > 2006-10-17 09:22:13,706 : BasicProvider.generateWSDL : Mapping
>> > Exception to AxisFault
>> > java.lang.NullPointerException
>> >        at
>> > org.apache.axis.wsdl.fromJava.Types.writeElementDecl(Types.java:1264)
>> >        at
>> > 
>> org.apache.axis.wsdl.fromJava.Emitter.writePartToMessage(Emitter.java:1941) 
>>
>> >
>> >        at
>> > 
>> org.apache.axis.wsdl.fromJava.Emitter.writeResponseMessage(Emitter.java:1759) 
>>
>> >
>> >        at
>> > org.apache.axis.wsdl.fromJava.Emitter.writeMessages(Emitter.java:1121)
>> >        at
>> > org.apache.axis.wsdl.fromJava.Emitter.writePortType(Emitter.java:1075)
>> >        at 
>> org.apache.axis.wsdl.fromJava.Emitter.getWSDL(Emitter.java:484)
>> >        at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:331)
>> >        at
>> > 
>> org.apache.axis.providers.BasicProvider.generateWSDL(BasicProvider.java:242) 
>>
>> >
>> >        at
>> > 
>> org.apache.axis.strategies.WSDLGenStrategy.visit(WSDLGenStrategy.java:33) 
>>
>> >        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
>> >        at 
>> org.apache.axis.SimpleChain.generateWSDL(SimpleChain.java:104)
>> >        at
>> > 
>> org.apache.axis.handlers.soap.SOAPService.generateWSDL(SOAPService.java:320) 
>>
>> >
>> >        at
>> > org.apache.axis.server.AxisServer.generateWSDL(AxisServer.java:482)
>> >        at
>> > 
>> org.apache.axis.transport.http.QSWSDLHandler.invoke(QSWSDLHandler.java:68) 
>>
>> >
>> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> >        at
>> > 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
>>
>> >
>> >        at
>> > 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
>>
>> >
>> >        at java.lang.reflect.Method.invoke(Method.java:324)
>> >        at
>> > 
>> org.apache.axis.transport.http.AxisServlet.processQuery(AxisServlet.java:1226) 
>>
>> >
>> >        at
>> > org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:249)
>> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
>> >        at
>> > 
>> org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327) 
>>
>> >
>> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> >        at
>> > 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
>>
>> >
>> >        at
>> > 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
>>
>> >
>> >        at java.lang.reflect.Method.invoke(Method.java:324)
>> >        at
>> > org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
>> >        at java.security.AccessController.doPrivileged(Native Method)
>> >        at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
>> >        at
>> > 
>> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
>> >        at
>> > 
>> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161) 
>>
>> >
>> >        at
>> > 
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245) 
>>
>> >
>> >        at
>> > 
>> org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50) 
>>
>> >
>> >        at
>> > 
>> org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156) 
>>
>> >
>> >        at java.security.AccessController.doPrivileged(Native Method)
>> >        at
>> > 
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152) 
>>
>> >
>> >        at
>> > 
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) 
>>
>> >
>> >        at
>> > 
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) 
>>
>> >
>> >        at
>> > 
>> org.objectweb.jonas.web.catalina55.ResetAuthenticationValve.invoke(ResetAuthenticationValve.java:62) 
>>
>> >
>> >        at
>> > 
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) 
>>
>> >
>> >        at
>> > 
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) 
>>
>> >
>> >        at
>> > 
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) 
>>
>> >
>> >        at
>> > 
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) 
>>
>> >
>> >        at
>> > 
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) 
>>
>> >
>> >        at
>> > 
>> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) 
>>
>> >
>> >        at
>> > 
>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) 
>>
>> >
>> >        at
>> > 
>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) 
>>
>> >
>> >        at
>> > 
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) 
>>
>> >
>> >        at java.lang.Thread.run(Thread.java:534)
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> > For additional commands, e-mail: axis-user-help@ws.apache.org
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Axis 1.4, style=message

Posted by Anne Thomas Manes <at...@gmail.com>.
Please file a JIRA.

On 10/18/06, Charles Souillard <Ch...@ext.bull.net> wrote:
> Hi all,
>
> does anybody have an idea ?
>
> Thanks
> Charles
>
> Charles Souillard wrote:
> > Hi all,
> >
> > I am using axis 1.4. I want to deploy a new WS using message style.
> > To do that, I execute wsdl2java tool with the following options :
> > -s -a -B -H
> >
> > Then I replace the implementation file by one compliant with message
> > style :
> >
> > public Element[] validationRequest (Element[] bodies) throws Exception {
> >
> > System.out.println("ValidationPTSOAPBindingImpl.validationRequest");
> >        return null;
> > }
> > Then I update wsdd file provider="java:MSG" and style="message"
> >
> > Then I generate the jar using build.xml (generated by wsdl2java).
> > I deploy my WS using adminClient
> > Next I go to my browser into AxisServlet and I can see my WS (near
> > AdminService and version).
> > When I clic on the "wsdl" link of my service, I get an exception (see
> > under).
> >
> > Here is my wsdl (part)
> > ...
> >      <complexType name="validationRequestCT">
> >        <sequence>
> >          <element name="authorisationRequest"
> > type="tns:authorisationRequestCT"/>
> >          <element name="identificationRequest"
> > type="tns:identificationRequestCT"/>
> >          <element name="registrationRequest"
> > type="tns:registrationRequestCT"/>
> >        </sequence>
> >      </complexType>
> >      <complexType name="validationResponseCT">
> >        <sequence>
> >          <element name="request" type="tns:validationRequestCT"/>
> >          <element name="status" type="xsd:string"/>
> >        </sequence>
> >      </complexType>
> >      <element name="validationRequest" type="tns:validationRequestCT"/>
> >      <element name="validationResponse" type="tns:validationResponseCT"/>
> >
> > <message name="validationRequestMessage">
> >    <part name="p" element="tns:validationRequest"/>
> >  </message>
> >  <message name="validationResponseMessage">
> >    <part name="p" element="tns:validationResponse"/>
> >  </message>
> >  <portType name="validationPT">
> >    <operation name="validationRequest">
> >      <input message="tns:validationRequestMessage"/>
> >      <output message="tns:validationResponseMessage"/>
> >    </operation>
> >  </portType>
> >
> > I have tried to update my wsdl to correct the error.
> > It is possible if I replace validationResponseCT as the following :
> >
> > <complexType name="validationResponseCT">
> >        <sequence>
> >          <element name="response" type="tns:validationResponse2CT"/>
> >        </sequence>
> >      </complexType>
> >      <complexType name="validationResponse2CT">
> >        <sequence>
> >          <element name="request" type="tns:validationRequestCT"/>
> >          <element name="status" type="xsd:string"/>
> >        </sequence>
> >      </complexType>
> >
> > IT IS VERY STRANGE !!!
> > Can you help me ?
> >
> > Thanks a lot
> > Charles
> >
> > 2006-10-17 09:22:13,706 : BasicProvider.generateWSDL : Mapping
> > Exception to AxisFault
> > java.lang.NullPointerException
> >        at
> > org.apache.axis.wsdl.fromJava.Types.writeElementDecl(Types.java:1264)
> >        at
> > org.apache.axis.wsdl.fromJava.Emitter.writePartToMessage(Emitter.java:1941)
> >
> >        at
> > org.apache.axis.wsdl.fromJava.Emitter.writeResponseMessage(Emitter.java:1759)
> >
> >        at
> > org.apache.axis.wsdl.fromJava.Emitter.writeMessages(Emitter.java:1121)
> >        at
> > org.apache.axis.wsdl.fromJava.Emitter.writePortType(Emitter.java:1075)
> >        at org.apache.axis.wsdl.fromJava.Emitter.getWSDL(Emitter.java:484)
> >        at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:331)
> >        at
> > org.apache.axis.providers.BasicProvider.generateWSDL(BasicProvider.java:242)
> >
> >        at
> > org.apache.axis.strategies.WSDLGenStrategy.visit(WSDLGenStrategy.java:33)
> >        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> >        at org.apache.axis.SimpleChain.generateWSDL(SimpleChain.java:104)
> >        at
> > org.apache.axis.handlers.soap.SOAPService.generateWSDL(SOAPService.java:320)
> >
> >        at
> > org.apache.axis.server.AxisServer.generateWSDL(AxisServer.java:482)
> >        at
> > org.apache.axis.transport.http.QSWSDLHandler.invoke(QSWSDLHandler.java:68)
> >
> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >        at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >
> >        at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >
> >        at java.lang.reflect.Method.invoke(Method.java:324)
> >        at
> > org.apache.axis.transport.http.AxisServlet.processQuery(AxisServlet.java:1226)
> >
> >        at
> > org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:249)
> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
> >        at
> > org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
> >
> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >        at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >
> >        at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >
> >        at java.lang.reflect.Method.invoke(Method.java:324)
> >        at
> > org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
> >        at java.security.AccessController.doPrivileged(Native Method)
> >        at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
> >        at
> > org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
> >        at
> > org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
> >
> >        at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245)
> >
> >        at
> > org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
> >
> >        at
> > org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
> >
> >        at java.security.AccessController.doPrivileged(Native Method)
> >        at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
> >
> >        at
> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
> >
> >        at
> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
> >
> >        at
> > org.objectweb.jonas.web.catalina55.ResetAuthenticationValve.invoke(ResetAuthenticationValve.java:62)
> >
> >        at
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
> >
> >        at
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
> >
> >        at
> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> >
> >        at
> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
> >
> >        at
> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
> >
> >        at
> > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
> >
> >        at
> > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
> >
> >        at
> > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
> >
> >        at
> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
> >
> >        at java.lang.Thread.run(Thread.java:534)
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Axis 1.4, style=message

Posted by Charles Souillard <Ch...@ext.bull.net>.
Hi all,

does anybody have an idea ?

Thanks
Charles

Charles Souillard wrote:
> Hi all,
>
> I am using axis 1.4. I want to deploy a new WS using message style.
> To do that, I execute wsdl2java tool with the following options :
> -s -a -B -H
>
> Then I replace the implementation file by one compliant with message 
> style :
>
> public Element[] validationRequest (Element[] bodies) throws Exception {
>        
> System.out.println("ValidationPTSOAPBindingImpl.validationRequest");
>        return null;
> }
> Then I update wsdd file provider="java:MSG" and style="message"
>
> Then I generate the jar using build.xml (generated by wsdl2java).
> I deploy my WS using adminClient
> Next I go to my browser into AxisServlet and I can see my WS (near 
> AdminService and version).
> When I clic on the "wsdl" link of my service, I get an exception (see 
> under).
>
> Here is my wsdl (part)
> ...
>      <complexType name="validationRequestCT">
>        <sequence>
>          <element name="authorisationRequest" 
> type="tns:authorisationRequestCT"/>
>          <element name="identificationRequest" 
> type="tns:identificationRequestCT"/>
>          <element name="registrationRequest" 
> type="tns:registrationRequestCT"/>
>        </sequence>
>      </complexType>
>      <complexType name="validationResponseCT">
>        <sequence>
>          <element name="request" type="tns:validationRequestCT"/>
>          <element name="status" type="xsd:string"/>
>        </sequence>
>      </complexType>
>      <element name="validationRequest" type="tns:validationRequestCT"/>
>      <element name="validationResponse" type="tns:validationResponseCT"/>
>
> <message name="validationRequestMessage">
>    <part name="p" element="tns:validationRequest"/>
>  </message>
>  <message name="validationResponseMessage">
>    <part name="p" element="tns:validationResponse"/>
>  </message>
>  <portType name="validationPT">
>    <operation name="validationRequest">
>      <input message="tns:validationRequestMessage"/>
>      <output message="tns:validationResponseMessage"/>
>    </operation>
>  </portType>
>
> I have tried to update my wsdl to correct the error.
> It is possible if I replace validationResponseCT as the following :
>
> <complexType name="validationResponseCT">
>        <sequence>
>          <element name="response" type="tns:validationResponse2CT"/>
>        </sequence>
>      </complexType>
>      <complexType name="validationResponse2CT">
>        <sequence>
>          <element name="request" type="tns:validationRequestCT"/>
>          <element name="status" type="xsd:string"/>
>        </sequence>
>      </complexType>
>
> IT IS VERY STRANGE !!!
> Can you help me ?
>
> Thanks a lot
> Charles
>
> 2006-10-17 09:22:13,706 : BasicProvider.generateWSDL : Mapping 
> Exception to AxisFault
> java.lang.NullPointerException
>        at 
> org.apache.axis.wsdl.fromJava.Types.writeElementDecl(Types.java:1264)
>        at 
> org.apache.axis.wsdl.fromJava.Emitter.writePartToMessage(Emitter.java:1941) 
>
>        at 
> org.apache.axis.wsdl.fromJava.Emitter.writeResponseMessage(Emitter.java:1759) 
>
>        at 
> org.apache.axis.wsdl.fromJava.Emitter.writeMessages(Emitter.java:1121)
>        at 
> org.apache.axis.wsdl.fromJava.Emitter.writePortType(Emitter.java:1075)
>        at org.apache.axis.wsdl.fromJava.Emitter.getWSDL(Emitter.java:484)
>        at org.apache.axis.wsdl.fromJava.Emitter.emit(Emitter.java:331)
>        at 
> org.apache.axis.providers.BasicProvider.generateWSDL(BasicProvider.java:242) 
>
>        at 
> org.apache.axis.strategies.WSDLGenStrategy.visit(WSDLGenStrategy.java:33)
>        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
>        at org.apache.axis.SimpleChain.generateWSDL(SimpleChain.java:104)
>        at 
> org.apache.axis.handlers.soap.SOAPService.generateWSDL(SOAPService.java:320) 
>
>        at 
> org.apache.axis.server.AxisServer.generateWSDL(AxisServer.java:482)
>        at 
> org.apache.axis.transport.http.QSWSDLHandler.invoke(QSWSDLHandler.java:68) 
>
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
>
>        at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
>
>        at java.lang.reflect.Method.invoke(Method.java:324)
>        at 
> org.apache.axis.transport.http.AxisServlet.processQuery(AxisServlet.java:1226) 
>
>        at 
> org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:249)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
>        at 
> org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327) 
>
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
>
>        at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
>
>        at java.lang.reflect.Method.invoke(Method.java:324)
>        at 
> org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
>        at java.security.AccessController.doPrivileged(Native Method)
>        at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
>        at 
> org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
>        at 
> org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161) 
>
>        at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245) 
>
>        at 
> org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50) 
>
>        at 
> org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156) 
>
>        at java.security.AccessController.doPrivileged(Native Method)
>        at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152) 
>
>        at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) 
>
>        at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) 
>
>        at 
> org.objectweb.jonas.web.catalina55.ResetAuthenticationValve.invoke(ResetAuthenticationValve.java:62) 
>
>        at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) 
>
>        at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) 
>
>        at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) 
>
>        at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) 
>
>        at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) 
>
>        at 
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) 
>
>        at 
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) 
>
>        at 
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) 
>
>        at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) 
>
>        at java.lang.Thread.run(Thread.java:534)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org