cancel
Showing results for 
Search instead for 
Did you mean: 

java.lang.NullPointerException

Former Member
0 Kudos

Hi,

We are building a new staging environment and recently upgraded from <b>EP 6.0 SP9 to SP16</b> and we have deployed all the webdynpro applications onto this environment and this is the first time we are testing the environment, and I see some of the webdynpro applications are failing, some of them work fine

I am sure this is not a code issue, because these applications are currently running in production

Appreciate any help

Thanks,

Kiran

Here is the description of the error

The initial exception that caused the request to fail, was:

<b> java.lang.NullPointerException</b>

at com.lii.wwhc.pricing.PA_ApplicationView.wdDoInit(PA_ApplicationView.java:166)

at com.lii.wwhc.pricing.wdp.InternalPA_ApplicationView.wdDoInit(InternalPA_ApplicationView.java:385)

at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61)

at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)

at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:275)

... 32 more

java.lang.NullPointerException

at com.lii.wwhc.pricing.PA_ApplicationView.wdDoInit(PA_ApplicationView.java:166)

at com.lii.wwhc.pricing.wdp.InternalPA_ApplicationView.wdDoInit(InternalPA_ApplicationView.java:385)

at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61)

at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)

at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:275)

at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)

at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:539)

at com.sap.tc.webdynpro.progmodel.view.ViewManager.bind(ViewManager.java:397)

at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:554)

at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:421)

at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:130)

at com.sap.tc.webdynpro.progmodel.view.InterfaceView.initController(InterfaceView.java:41)

at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)

at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.displayToplevelComponent(ClientComponent.java:135)

at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:404)

at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:618)

at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)

at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:251)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:48)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

.........

.........

.........

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Check PA_ApplicationView.java line 166.... The code of your PA Application is not compatible with SP16...

Former Member
0 Kudos

Thanks for your response

Let me give you a brief about our situation

Our Dev and QA environments are on SP18 and <b>Production is on SP16</b> and all these applications are transported from Dev to QA and to Production, and we do not have any issues with this code on Production

And the same code is transported to <b>Staging which is on SP16</b> same as production

Is there any reason why this is failing on Staging but not on production?

Thanks

Former Member
0 Kudos

Any ideas?

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

at the line 166 in the implementation view of your PA_ApplicationView, just check if you are calling/using value of any object.

we get a null pointer exception in cases when we are trying to get values from objects or contexts/nodes/value attributes whose value has not been assigned yet.

Regards,

hanoz