JAXRPC Client Throwing [ERROR,PortProxy] Port error
manishvyas Aug 31, 2005 9:16 AMWeb Service is deployed properly in Jboss and URL http://localhost:80/hello-servlet/Hello?wsdl displaying XML file content
When I am runing example client through ant it is working fine. But not working from command promt as below
c:\java -classpath ............. org.jboss.chap12.client.HelloClient "http://localhost:80/hello-servlet/Hello?wsdl" "JBoss User"
--------------------------------------------------------------------------------
Contacting webservice at http://localhost:80/hello-servlet/Hello?wsdl
hello.hello(JBoss user)
[ERROR,PortProxy] Port error
java.lang.NullPointerException
at java.util.Hashtable.put(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(Unknown Source)
at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:263)
at org.apache.axis.MessagePart.getAsSOAPEnvelope(MessagePart.java:657)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:430)
at org.apache.axis.Message.getContentType(Message.java:496)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:386)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:126)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:73)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:160)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:123)
at org.jboss.webservice.client.ClientEngine.invoke(ClientEngine.java:126)
at org.apache.axis.client.Call.invokeEngine(Call.java:3029)
at org.apache.axis.client.Call.invoke(Call.java:3014)
at org.apache.axis.client.Call.invoke(Call.java:2608)
at org.apache.axis.client.Call.invoke(Call.java:2513)
at org.apache.axis.client.Call.invokeInternal(Call.java:1973)
at org.apache.axis.client.Call.invoke(Call.java:1914)
at org.jboss.webservice.client.CallImpl.invoke(CallImpl.java:265)
at org.apache.axis.client.AxisClientProxy.invoke(AxisClientProxy.java:372)
at $Proxy0.hello(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.webservice.client.PortProxy.invoke(PortProxy.java:111)
at $Proxy1.hello(Unknown Source)
at org.jboss.chap12.client.HelloClient.main(HelloClient.java:33)
Exception in thread "main" java.rmi.RemoteException: null; nested exception is:
java.lang.NullPointerException
at org.jboss.webservice.client.PortProxy.invoke(PortProxy.java:184)
at $Proxy1.hello(Unknown Source)
at org.jboss.chap12.client.HelloClient.main(HelloClient.java:33)
Caused by: java.lang.NullPointerException
at java.util.Hashtable.put(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(Unknown Source)
at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:263)
at org.apache.axis.MessagePart.getAsSOAPEnvelope(MessagePart.java:657)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:430)
at org.apache.axis.Message.getContentType(Message.java:496)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:386)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:126)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:73)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:160)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:123)
at org.jboss.webservice.client.ClientEngine.invoke(ClientEngine.java:126)
at org.apache.axis.client.Call.invokeEngine(Call.java:3029)
at org.apache.axis.client.Call.invoke(Call.java:3014)
at org.apache.axis.client.Call.invoke(Call.java:2608)
at org.apache.axis.client.Call.invoke(Call.java:2513)
at org.apache.axis.client.Call.invokeInternal(Call.java:1973)
at org.apache.axis.client.Call.invoke(Call.java:1914)
at org.jboss.webservice.client.CallImpl.invoke(CallImpl.java:265)
at org.apache.axis.client.AxisClientProxy.invoke(AxisClientProxy.java:372)
at $Proxy0.hello(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jboss.webservice.client.PortProxy.invoke(PortProxy.java:111)
... 2 more