cancel
Showing results for 
Search instead for 
Did you mean: 

trouble deploying ws client on NW AS JAVA

Former Member
0 Kudos

Hello everyone!

We are developing application for SAP NW 7.4. The project was developed for JBoss initally and we used Intellij Idea as an IDE. Now with some workarounds we still developing on Idea and deploying app on NW with no problems. We do not use NWDS at all. Everything was fine until we needed to generate Web Service client by wsdl. We started simply generating classes using wsdl2java and wsimport. In both cases code worked on JBoss, but on NW we got an error:

Caused by: java.lang.NullPointerException: while trying to invoke the method com.sap.engine.lib.descriptors5.javaee.FullyQualifiedClassType.get_value() of a null object returned from com.sap.engine.lib.descriptors5.web.ServletType$Choice1.getServletClass()

        at com.sap.engine.services.webservices.server.deploy.jee5.WSAnnotationConvertor.getServletClassNames(WSAnnotationConvertor.java:1154)

        at com.sap.engine.services.webservices.server.deploy.jee5.WSAnnotationConvertor.clearAndInitialWARs(WSAnnotationConvertor.java:1014)

        at com.sap.engine.services.webservices.server.deploy.jee5.WSAnnotationConvertor.convertAnnotations(WSAnnotationConvertor.java:116)

        at com.sap.engine.services.webservices.server.deploy.j2ee.ws.J2EE14Convertor.convertAnnotations(J2EE14Convertor.java:1826)

We tried to delete some generated annotations in source code and finally the error changed: now it says, that we cannot instantiate ws client using constructor, if it is not "standalone proxy". We wanted to check how it works, so we installed NWDS and created client using standalone proxies http://help.sap.com/saphelp_nw73/helpdata/en/4b/960176c17d2b5fe10000000a42189c/content.htm . Sample app deployed with no problems on nw. We tried to add the jar with generated web service code into our project, however we still got our first null pointer exception.

This is our situation.

So what we want:

1. We want to stay with our current IDE (Idea) and we do not want to migrate to NWDS.

2. We want web service client, which is generated from wsdl to work on NW.

3. We want to initialize ws client using constructor, not inject it.

Is there a way to achieve all these goals for NW 7.4?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I found what was the problem. We had jsp mapped as a servlet in web.xml. It seems that ws annotations force nw to get the name of jsp's servlet at the time jsp is not yet compiled. Kind'a strange thing, however workaround was simple - we just added servlet and made forwarding to jsp and it solved the problem

Former Member
0 Kudos

Hi Kira,

i´ve the same issue at the moment and don´t understand the workaround you wrote.

Is it possible to write a more detailed "howTo" ?

My deploy error is:

Description:

  1. Error during web services annotations conversion

  -> while trying to invoke the method com.sap.engine.lib.descriptors5.javaee.FullyQualifiedClassType.get_value() of a null object returned from com.sap.engine.lib.descriptors5.web.ServletType$Choice1.getServletClass()

Best regards from germany, Aurich

Sascha

Answers (0)