2 Replies Latest reply: Dec 7, 2012 6:05 AM by 978606 RSS

    WebService Client NullPointerException.

    850972
      Thanks in advance.

      I developed a simple WebService Using eclipse on weblogic. I am trying to to develop a client that will call the service. I am getting the following error:

      java.lang.NullPointerException
           at weblogic.wsee.jaxws.tubeline.ConfigReaderTubelineDeploymentListener.readConfigFile(ConfigReaderTubelineDeploymentListener.java:158)
           at weblogic.wsee.jaxws.tubeline.ConfigReaderTubelineDeploymentListener.init(ConfigReaderTubelineDeploymentListener.java:48)
           at weblogic.wsee.jaxws.spi.WLSServiceDelegate$WLSTubelineDeploymentListenerRepository.<init>(WLSServiceDelegate.java:291)
           at weblogic.wsee.jaxws.spi.WLSServiceDelegate.<init>(WLSServiceDelegate.java:84)
           at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.<init>(WLSProvider.java:515)
           at weblogic.wsee.jaxws.spi.WLSProvider.createServiceDelegate(WLSProvider.java:103)
           at weblogic.wsee.jaxws.spi.WLSProvider.createServiceDelegate(WLSProvider.java:95)
           at weblogic.wsee.jaxws.spi.WLSProvider.createServiceDelegate(WLSProvider.java:71)
           at javax.xml.ws.Service.<init>(Service.java:56)
           at ws.XXXX.XXXX.XXXX.XXXXIdmService.<init>(GWIdmService.java:42)
           at TestClient.main(TestClient.java:32)



      Code:

      try {
                     
                     service = new ABCDService(new URL( "http://host:7001/context/ABCDService?WSDL"), new QName("http://eee.ggg.dddd.ws/", "ABCDService"));
                
                
                ABCD port = service.getPort();
                
                List<StringArray> list = port.getUserList("", "", "", "");
                
                for(int i = 0; i < list.size(); ++i){
                     logger.debug("-----" + list.get(i) );
                }
                
                } catch (Exception e) {
                     e.printStackTrace();
                }
           }

      Edited by: 847969 on Oct 7, 2011 12:23 PM