dev@glassfish.java.net

Problem in running appserv-tests/devtests/webservices/annotations/warservice

From: Changshin Lee <iasandcb_at_gmail.com>
Date: Wed, 21 Sep 2005 13:54:13 +0900

Hi,

I successfully deployed the endpoint in the case, but met the
following error message in run-client:

run-client:
     [unjar] Expanding: D:\java\workspace\glassfish\appserv-tests\lib
\reporter.ja
r into D:\java\workspace\glassfish\appserv-tests\build\module\classes
\client
      [exec] java.lang.NullPointerException
      [exec] at client.Client.doTest(Client.java:27)
      [exec] at client.Client.main(Client.java:21)
      [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0
(Native Method)
      [exec] at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAcces
sorImpl.java:39)
      [exec] Value of key is:war-with-endpointimpl-only
      [exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMet
hodAccessorImpl.java:25)
      [exec] at java.lang.reflect.Method.invoke(Method.java:585)
      [exec] at
com.sun.enterprise.util.Utility.invokeApplicationMain(Utility
.java:249)
      [exec] at com.sun.enterprise.appclient.Main.<init>
(Main.java:661)
      [exec] at com.sun.enterprise.appclient.Main.main(Main.java:
170)

The line is

Hello port = service.getHello();

so, it's obviously due to service's null value, which should be
populated from @WebServiceRef annotation.

Thanks for your help and comment in advance,

Ias