I have JBoss 4.0.2 on Linux and I just discovered the web services example from the JBoss AS 4.0.2 Guide (http://docs.jboss.org/jbossas/jboss4guide/r3/html/ch12.html), works on JDK1.4 but not on JDK1.5.
On 1.5 there's a NullPointerException in the sun.reflect.MethodAccessor.invoke() call in line 585 of java.lang.reflect.Method.invoke() when I invoke the web services client (see trace below). I'm using 1.4.2_08 and 1.5.0_02. It took me awhile to figure this out - the code worked fine on my home box (running 1.4). I'm sticking with 1.4 despite the JBoss vs. JDK version matrix. Any enlightenment? Perhaps there are some 1.4-"dependent" libraries in 4.0.2 JBOSS/client? Doesn't Apache axis have a 1.5 specific jar? Steve ---- from HelloClient.java ... Contacting webservice at http://[snip]:8080/hello-ws/Hello?wsdl hello.hello(test string) Exception in thread "main" java.rmi.RemoteException: null; nested exception is: java.lang.NullPointerException at org.jboss.webservice.client.PortProxy.invoke(PortProxy.java:176) at $Proxy1.hello(Unknown Source) at org.jboss.chap12.client.HelloClient.main(HelloClient.java:61) Caused by: java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:396) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(SAXParserImpl.java:395) at org.jboss.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:262) at org.jboss.axis.MessagePart.getAsSOAPEnvelope(MessagePart.java:684) at org.jboss.axis.Message.getSOAPEnvelope(Message.java:428) at org.jboss.axis.Message.getContentType(Message.java:494) at org.jboss.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:386) at org.jboss.axis.transport.http.HTTPSender.invoke(HTTPSender.java:126) at org.jboss.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:73) at org.jboss.axis.SimpleChain.doVisiting(SimpleChain.java:160) at org.jboss.axis.SimpleChain.invoke(SimpleChain.java:123) at org.jboss.webservice.client.ClientEngine.invoke(ClientEngine.java:128) at org.jboss.axis.client.Call.invokeEngine(Call.java:3054) at org.jboss.axis.client.Call.invoke(Call.java:3039) at org.jboss.axis.client.Call.invoke(Call.java:2629) at org.jboss.axis.client.Call.invoke(Call.java:2538) at org.jboss.axis.client.Call.invokeInternal(Call.java:1976) at org.jboss.axis.client.Call.invoke(Call.java:1914) at org.jboss.webservice.client.CallImpl.invoke(CallImpl.java:265) at org.jboss.axis.client.AxisClientProxy.invoke(AxisClientProxy.java:381) at $Proxy0.hello(Unknown Source) 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:585) at org.jboss.webservice.client.PortProxy.invoke(PortProxy.java:105) ... 2 more View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3879183#3879183 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3879183 ------------------------------------------------------- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
