Skip to Content
avatar image
Former Member

error message

In the view controler i have an action and this needs to trigger an other view in a new window.

code i used

wdThis.wdFirePlugToSeachhelpPos();

IWDWindowInfo win=wdComponentAPI.getComponentInfo().findInWindows("SearchHelpPos_View");

IWDWindow wind=wdComponentAPI.getWindowManager().createWindow(win,true);

wind.open();

What is wrong:

java.lang.NullPointerException

at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.getViewManagerFor(ClientComponent.java:319)

at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.<init>(WebDynproWindow.java:82)

at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.<init>(WebDynproWindow.java:93)

at com.sap.tc.webdynpro.clientserver.window.InternalWindow.<init>(InternalWindow.java:32)

at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createModalWindow(ClientComponent.java:953)

at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createWindow(ClientComponent.java:942)

at com.shell.teamflow.wd.omwebforms.Positions_View.onActionSearchPosition(Positions_View.java:249)

at com.shell.teamflow.wd.omwebforms.wdp.InternalPositions_View.wdInvokeEventHandler(InternalPositions_View.java:1199)

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.task.WebDynproMainTask.handleAction(WebDynproMainTask.java:101)

at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:304)

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

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.doPost(DispatcherServlet.java:55)

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Sep 19, 2006 at 04:25 PM

    Hi Eoin,

    Try to comment plug fire (wdThis.wdFirePlugToSeachhelpPos(); ). May be it is the problem. And check whether window contains any view.

    Best regards, Maksim Rashchynski.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      //@@begin javadoc:onActionNextPosviewSubmit(ServerEvent)

      Line 249 //@@end

      public void onActionNextPosviewSubmit(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

      {

      //@@begin onActionNextPosviewSubmit(ServerEvent)

      wdThis.wdGetOm_Webforms_CustController().NextStep();

      wdThis.wdGetOm_Webforms_CustController().InvisibleAdditionalinfoCont();

      wdThis.wdGetOm_Webforms_CustController().visibleSubmitRequest();

      //@@end

      }

      Message was edited by: Eoin Cronan

  • avatar image
    Former Member
    Sep 20, 2006 at 03:49 PM

    Hi Eoin,

    This createWindow() code seems to be good. Can you please check in other lines of code. If you are doubting on this particular method, just comment calling these lines and test the rest. Hopefully, you can find out where is the error.

    Regards,

    Sridhar

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 22, 2006 at 04:26 PM

    Hi Eoin,

    In the line >>

    IWDWindowInfo win=wdComponentAPI.getComponentInfo().findInWindows("SearchHelpPos_View");
    

    >>>> The argument you have to pass for <b>findInWindows()</b> method is the window-Name (not the <i>View</i> name). Is '<i>SearchHelpPos_View</i>' the window-name (window which is containing the View) ???

    From the name (=SearchHelpPos_View), i feel that it is view's name... !

    Hope it helps!

    Regards,

    SK.

    <i>PS: plz reward points for helpful answers!</i>

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 23, 2006 at 03:03 PM

    Hi ,

    Is it solved or not?

    Thanks

    Lohi.

    Add comment
    10|10000 characters needed characters exceeded