Skip to Content

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

getting null pionter exception

hai ,

i developed confirmation window but under one button action.

but

while click on button iam getting Null piont exception.

the exception is as follow.

java.lang.NullPointerException

at com.sap.tc.webdynpro.clientserver.window.ConfirmationDialogDelegate.<init>(ConfirmationDialogDelegate.java:79)

at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createConfirmationWindow(ClientComponent.java:995)

at com.lnt.taskmanagercomp.AddView.onActionBack(AddView.java:391)

at com.lnt.taskmanagercomp.wdp.InternalAddView.wdInvokeEventHandler(InternalAddView.java:320)

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

at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)

at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)

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

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:313)

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

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

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

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

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)

Former Member
Former Member replied

Hi Eswar,

1.) Did u Create Eventhandlers for Confirmation Window Buttons ?

2.) If yes Check whether you have given the Exact names for Eventhandlers Declaration and Eventhandlers calls in the Code ?

The following is the Code to Open Confirmation Dialogue box with Two Buttons Ok & Cancel. This Code Calls two Eventhandlers named Yes & No.

In the Eventhandler's Call in the code Check whether you are using Exact Eventhandler Names or not ?

IWDControllerInfo controllerInfo = wdControllerAPI.getViewInfo().getViewController();

String dialogText = "Confirm Deletion";

IWDConfirmationDialog dialog =

wdComponentAPI.getWindowManager().createConfirmationWindow(

dialogText,

controllerInfo.findInEventHandlers("Yes"),

"Ok");

dialog.addChoice(

controllerInfo.findInEventHandlers("No"), "Cancel");

dialog.open();

With Regards,

Roop Kumar.

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