cancel
Showing results for 
Search instead for 
Did you mean: 

WD Java: Problem with Model out of other DC

Former Member
0 Kudos

Hi, all!

I' ve got 2 WD Development Components: One is hosting an Adaptive RFC-Model, the other one my UI. I put the model into its DCs Public Part and declared it as Child DC of the other one.

After successfully building & deploying both DCs, I receive the following error:

java.lang.NullPointerException
	at com.sap.tc.webdynpro.progmodel.context.MappingInfo.getDataNode(MappingInfo.java:78)
	at com.sap.tc.webdynpro.progmodel.context.MappedNodeInfo.getDataNode(MappedNodeInfo.java:199)
	at com.sap.tc.webdynpro.progmodel.context.MappedNodeInfo.getStructureType(MappedNodeInfo.java:108)
	at com.sap.tc.webdynpro.progmodel.context.MappedNodeInfo.getStructureType(MappedNodeInfo.java:109)
	at com.sap.tc.webdynpro.progmodel.context.NodeInfo.initStructureType(NodeInfo.java:688)
	at com.sap.tc.webdynpro.progmodel.context.NodeInfo.initAfterCompletedMapping(NodeInfo.java:676)
	at com.sap.tc.webdynpro.progmodel.context.MappingInfo.getDataNode(MappingInfo.java:83)
	at com.sap.tc.webdynpro.progmodel.context.MappingInfo.initMapping(MappingInfo.java:121)
	at com.sap.tc.webdynpro.progmodel.context.MappingInfo.init(MappingInfo.java:117)
	at com.sap.tc.webdynpro.progmodel.context.MappedNodeInfo.doInit(MappedNodeInfo.java:207)
	at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:654)
	at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:657)
	at com.sap.tc.webdynpro.progmodel.context.Context.init(Context.java:40)
	at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:199)
	at com.sap.tc.webdynpro.progmodel.controller.Component.getCustomControllerInternal(Component.java:436)
	at com.sap.tc.webdynpro.progmodel.controller.Component.getMappableContext(Component.java:374)
	at com.sap.tc.webdynpro.progmodel.controller.Component.getMappableContext(Component.java:403)
	at com.sap.tc.webdynpro.progmodel.context.MappingInfo.getDataNode(MappingInfo.java:79)
	at com.sap.tc.webdynpro.progmodel.context.MappingInfo.initMapping(MappingInfo.java:121)
	at com.sap.tc.webdynpro.progmodel.context.MappingInfo.init(MappingInfo.java:117)
	at com.sap.tc.webdynpro.progmodel.context.MappedNodeInfo.doInit(MappedNodeInfo.java:207)
	at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:654)
	at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:657)
	at com.sap.tc.webdynpro.progmodel.context.Context.init(Context.java:40)
	at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:199)
	at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:347)
	at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:370)
	at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:608)
	at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
	at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:248)
	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)
	at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
	at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
	at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
	at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
	at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
	at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
	at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
	at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
	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:100)
	at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

Following some recommendations I already created a "Dummy"-WD Component with a "do nothing"-method in the Model-DC which I then call in the UI-DCs wdDoInit() to instantiate the model, but without any success.

Has anybody got an idea?

Thanks a lot in advance!

Regards,

Thomas

Accepted Solutions (1)

Accepted Solutions (1)

former_member182372
Active Contributor
0 Kudos

Hi Thomas,

Is it the whole stacktrace? No other? Problem can be in metadata loading from backend.

Best regards, Maksim Rashchynski.

Former Member
0 Kudos

Hi, Maksim!

Thank you very much for your answer!

Yes, it' s the full exception chain. Could you perhaps tell me where to start the error-search?

Regards,

Thomas

Former Member
0 Kudos

Hi

Did the RFC change after the DC has been made? Any structural changes or properties of any variable in RFC?If so, you need to re-import the model, build both DCs, restart the server and deploy again.

Regards,

Rajit Srinivas

Former Member
0 Kudos

Hi, Rajit!

Yes, it had changed & I already followed this procedure, but the result remains the same!

Regards,

Thomas

former_member182372
Active Contributor
0 Kudos

Hi Thomas,

Hm...If model was changed - try to undeploy model component, restart server, deploy model again.

Best regards, Maksim Rashchynski.

Answers (0)