0 Replies Latest reply on Dec 1, 2005 4:27 PM by Guohui Zhou

    web service testing error

    Guohui Zhou Newbie

      I am testing web service example in Chapter 12. Please help me out this
      problem. Thanks.

      When I issue ant -Dchap=chap12 -Dex=1b run-example, the error is as the following:

      C:\jboss4guide\examples>ant -Dchap=chap12 -Dex=1b run-example
      Buildfile: build.xml

      validate:
      [java] ImplementationTitle: JBoss [Zion]
      [java] ImplementationVendor: JBoss Inc.
      [java] ImplementationVersion: 4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)
      [java] SpecificationTitle: JBoss
      [java] SpecificationVendor: JBoss (http://www.jboss.org/)
      [java] SpecificationVersion: 4.0.2
      [java] JBoss version is: 4.0.2

      fail_if_not_valid:

      init:
      [echo] Using jboss.dist=c:/jboss-4.0.2

      compile:

      run-example:

      prepare:

      chap12-war:

      run-example1b:
      [echo] Waiting for 5 seconds for deploy...
      [java] Contacting webservice at http://localhost:8080/hello-servlet/Hello?wsdl
      [java] hello.hello(JBoss DII user)
      [java] AxisFault
      [java] faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
      [java] faultSubcode:
      [java] faultString: java.lang.NullPointerException
      [java] faultActor:
      [java] faultNode:
      [java] faultDetail:
      [java] {http://xml.apache.org/axis/}stackTrace: java.lang.NullPointerException
      [java] at java.util.Hashtable.put(Hashtable.java:393)
      [java] at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(Unknown Source)
      [java] at org.jboss.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:262)
      [java] at org.jboss.axis.MessagePart.getAsSOAPEnvelope(MessagePart.java:684)
      [java] at org.jboss.axis.Message.getSOAPEnvelope(Message.java:428)
      [java] at org.jboss.axis.Message.getContentType(Message.java:494)
      [java] at org.jboss.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:386)
      [java] at org.jboss.axis.transport.http.HTTPSender.invoke(HTTPSender.java:126)
      [java] at org.jboss.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:73)
      [java] at org.jboss.axis.SimpleChain.doVisiting(SimpleChain.java:160)
      [java] at org.jboss.axis.SimpleChain.invoke(SimpleChain.java:123)
      [java] at org.jboss.webservice.client.ClientEngine.invoke(ClientEngine.java:128)
      [java] at org.jboss.axis.client.Call.invokeEngine(Call.java:3054)
      [java] at org.jboss.axis.client.Call.invoke(Call.java:3039)
      [java] at org.jboss.axis.client.Call.invoke(Call.java:2629)
      [java] at org.jboss.axis.client.Call.invoke(Call.java:2538)
      [java] at org.jboss.axis.client.Call.invokeInternal(Call.java:1976)
      [java] at org.jboss.axis.client.Call.invoke(Call.java:1914)
      [java] at org.jboss.webservice.client.CallImpl.invoke(CallImpl.java:265)
      [java] at org.jboss.chap12.client.HelloClientDII.main(HelloClientDII.java:35)


      [java] org.jboss.axis.AxisFault: java.lang.NullPointerException
      [java] at org.jboss.axis.AxisFault.makeFault(AxisFault.java:99)
      [java] at org.jboss.axis.transport.http.HTTPSender.invoke(HTTPSender.java:136)
      [java] at org.jboss.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:73)
      [java] at org.jboss.axis.SimpleChain.doVisiting(SimpleChain.java:160)
      [java] at org.jboss.axis.SimpleChain.invoke(SimpleChain.java:123)
      [java] at org.jboss.webservice.client.ClientEngine.invoke(ClientEngine.java:128)
      [java] at org.jboss.axis.client.Call.invokeEngine(Call.java:3054)
      [java] at org.jboss.axis.client.Call.invoke(Call.java:3039)
      [java] at org.jboss.axis.client.Call.invoke(Call.java:2629)
      [java] at org.jboss.axis.client.Call.invoke(Call.java:2538)
      [java] at org.jboss.axis.client.Call.invokeInternal(Call.java:1976)
      [java] at org.jboss.axis.client.Call.invoke(Call.java:1914)
      [java] at org.jboss.webservice.client.CallImpl.invoke(CallImpl.java:265)
      [java] at org.jboss.chap12.client.HelloClientDII.main(HelloClientDII.java:35)
      [java] Caused by: java.lang.NullPointerException
      [java] at java.util.Hashtable.put(Hashtable.java:393)
      [java] at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(Unknown Source)
      [java] at org.jboss.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:262)
      [java] at org.jboss.axis.MessagePart.getAsSOAPEnvelope(MessagePart.java:684)
      [java] at org.jboss.axis.Message.getSOAPEnvelope(Message.java:428)
      [java] at org.jboss.axis.Message.getContentType(Message.java:494)
      [java] at org.jboss.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:386)
      [java] at org.jboss.axis.transport.http.HTTPSender.invoke(HTTPSender.java:126)
      [java] ... 12 more
      [java] Exception in thread "main"

      BUILD FAILED
      C:\jboss4guide\examples\build.xml:117: The following error occurred while executing this line:
      C:\jboss4guide\examples\src\main\org\jboss\chap12\build.xml:169: Java returned: 1