Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

NullPointerException when trying to add an item to the cart

Hi,

When we try to "Add Item" to the cart, the portal system returns "500 Internal Server Error". The detailed exception is:

java.lang.NullPointerException

                at com.sap.mdm.srmcat.uisearch.PickList.loadData(PickList.java:235)

                at com.sap.mdm.srmcat.uisearch.wdp.InternalPickList.loadData(InternalPickList.java:420)

                at com.sap.mdm.srmcat.uisearch.PickList.checkConfig(PickList.java:475)

                at com.sap.mdm.srmcat.uisearch.wdp.InternalPickList.checkConfig(InternalPickList.java:432)

                at com.sap.mdm.srmcat.uisearch.PickListInterface.toRefreshDataFromMaster(PickListInterface.java:205)

                at com.sap.mdm.srmcat.uisearch.wdp.InternalPickListInterface.toRefreshDataFromMaster(InternalPickListInterface.java:358)

                at com.sap.mdm.srmcat.uisearch.wdp.InternalPickListInterface$External.toRefreshDataFromMaster(InternalPickListInterface.java:511)

                at com.sap.mdm.srmcat.uisearch.master.MasterView.onPlugfromLoginViewIN(MasterView.java:393)

                at com.sap.mdm.srmcat.uisearch.master.wdp.InternalMasterView.wdInvokeEventHandler(InternalMasterView.java:260)

                at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)

                at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.navigate(ClientApplication.java:826)

                at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.navigate(ClientComponent.java:881)

                at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doNavigation(WindowPhaseModel.java:498)

                at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:144)

                at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)

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

                at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:333)

                at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:741)

                at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:694)

                at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:253)

                at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:185)

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

                at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)

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

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

                at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)

                at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)

                at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)

                at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)

                at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1064)

                at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)

                at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)

                at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)

                at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)

                at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)

                at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

                at java.security.AccessController.doPrivileged(Native Method)

                at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)

                at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)

Can you help me understand what causes this error and how to troubleshoot?

regards

AKD

replied

The issue was because of incorrect user ID maintained in SPRO.

Call SPRO and Go to the path SAP Supplier Relationship Management > SRM Server > Master Data > Content Management > Define External Web Services, select the catalog, double-click on "Standard Call Structure" and maintain the correct user ID and passwords (from MDM usermaster).

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question