0 Replies Latest reply on Nov 22, 2005 1:51 PM by Stephen Samuels

    Problem running web services client in Chapter 5-Getting sta

    Stephen Samuels Newbie

      Hi all,
      I got this problem when running the Web Service Client
      (section 5.3).

      I'm running JBoss 4.0.2, the server console has this message:
      Code:

      00:06:04,650 INFO [WSDLFilePublisher] WSDL published to: file:/C:/jboss-4.0.2/s
      erver/default/data/wsdl/bankws-ejb.jar/teller.wsdl
      00:06:04,810 WARN [JavaWsdlMapping] Cannot find jaxrpc-mapping for type: {http:
      //ebank.jboss.com}AccountList
      00:06:04,810 INFO [AxisService] WSDD published to: C:\jboss-4.0.2\server\defaul
      t\data\wsdl\bankws-ejb.jar\Teller.wsdd
      00:06:04,920 INFO [AxisService] Web Service deployed: http://pentium4:8080/bank
      ws-ejb/Teller
      00:06:05,080 INFO [TomcatDeployer] deploy, ctxPath=/bankws-ejb, warUrl=file:/C:
      /jboss-4.0.2/server/default/tmp/deploy/bankws-ejb.jar-ws28815.war/


      Anyone got any idea what may cause this problem?

      This is what I get when running the client:

      Code:

      [java] Customer: 200
      [java] 13:27:59,052 ERROR [PortProxy] Port error
      [java] java.lang.NullPointerException
      [java] at java.util.Hashtable.put(Unknown Source)
      [java] at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(Unknown Source)
      [java] at org.jboss.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.j
      ava: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.axis.client.AxisClientProxy.invoke(AxisClientProxy.java:381)
      [java] at $Proxy0.getAccountsOfCustomer(Unknown Source)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      [java] at java.lang.reflect.Method.invoke(Unknown Source)
      [java] at org.jboss.webservice.client.PortProxy.invoke(PortProxy.java:105)
      [java] at $Proxy1.getAccountsOfCustomer(Unknown Source)
      [java] at com.jboss.ebank.WSClient.main(WSClient.java:36)
      [java] Exception in thread "main" java.rmi.RemoteException: null; nested exception is:
      [java] java.lang.NullPointerException
      [java] at org.jboss.webservice.client.PortProxy.invoke(PortProxy.java:176)
      [java] at $Proxy1.getAccountsOfCustomer(Unknown Source)
      [java] at com.jboss.ebank.WSClient.main(WSClient.java:36)
      [java] Caused by: java.lang.NullPointerException
      [java] at java.util.Hashtable.put(Unknown Source)
      [java] at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(Unknown Source)
      [java] at org.jboss.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.j
      ava: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.axis.client.AxisClientProxy.invoke(AxisClientProxy.java:381)
      [java] at $Proxy0.getAccountsOfCustomer(Unknown Source)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      [java] at java.lang.reflect.Method.invoke(Unknown Source)
      [java] at org.jboss.webservice.client.PortProxy.invoke(PortProxy.java:105)
      [java] ... 2 more
      [java] Java Result: 1

      Appreciate the help.
      Am running JBoss 4.0.2 and j2sdk1.4.2_08.
      Steve