on 10-04-2011 1:32 PM
Hi experts,
Iam using CE7.2 working on RFC... iam get this error
ARFC2TypedModel.associatedModelInfo()
Code:
Bapi_Flight_Getlist_Input input = new Bapi_Flight_Getlist_Input(null);
wdContext.nodeBapi_Flight_Getlist_Input().bind(input);
input.setDestination_From(new Bapisfldst(null));
input.setDestination_To(new Bapisfldst(null));
without null it will shows the error
please give me the solution on this issue
Regards
LP
Hi Pavan,
As per my understanding, goto Web Dynpro Components and right click on the component and select open Data Modeler under component controller right click on that contoller and apply template as select Service controller and select the required bapi,
by doing this it will automatically generate the required code.
Hope it will be usesfull ....................!!!
Thanks,
cbr.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pavanlavu,
Instead of creating an instance of Bapisfldst class, refer the context attribute of the Destination_To and Destination_From.
Eg:
If Context node structure is :
Bapi_Flight_Getlist_Input-->Destination_To
Bapi_Flight_Getlist_Input-->Destination_From
Then use like this:
Bapi_Flight_Getlist_Input input = new Bapi_Flight_Getlist_Input();
wdContext.nodeBapi_Flight_Getlist_Input().bind(input);
input.setDestination_From(wdcontext.nodeBapi_Flight_Getlist_Input().currentBapi_Flight_Getlist_Input.getDestinationFrom());
input.setDestination_To(wdcontext.nodeBapi_Flight_Getlist_Input().currentBapi_Flight_Getlist_Input.getDestinationTo());
This will send the value of Destination_To and Destination_From to the model and will retreive the values.
Hope this helps you to resolve the problem.
Regards,
Jithin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Pavanlavu
Not sure what you're trying to code.
But it seems you're trying to run a tutorial for WD4J using the Flights Get List demo.
Have you checked this link.
It has the complete tutorial.
Step-By-Step.
[http://help.sap.com/saphelp_nw70/helpdata/en/c3/76b45d9688e04abe1a1070410ddc1e/content.htm]
Please go through that tutorial and let us know if you still have the error.
Kind Regards
/Ricardo Quintas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gurus,
I am facing an issue in NWDS7.2 with Adaptive RFC2 Model , I imported one Bapi (i.e) Bapi_Flight_Getlist which is suggested previous , I am able to create model object and every thing fine
But when I am executing the view I am facing the below issue ,guys please share your knowledge what I need to take next step
java.lang.NullPointerException: while trying to invoke the method com.sap.tc.cm.arfc2.gci.ARFC2TypedModel.associatedModelInfo() of an object loaded from local variable 'modelInstance' at com.sap.tc.cm.arfc2.gci.ARFC2TypedModelClass.<init>(ARFC2TypedModelClass.java:344)
at com.sap.tc.cm.arfc2.gci.ARFC2TypedModelClassExecutable.<init>(ARFC2TypedModelClassExecutable.java:166)
at com.sap.demo.bapi2.wd.models.fmodel.Bapi_Flight_Getlist_Input.<init>(Bapi_Flight_Getlist_Input.java:38)
at com.sap.demo.bapi2.wd.comp.searchview.SearchViewView.wdDoInit(SearchViewView.java:115)
at com.sap.demo.bapi2.wd.comp.searchview.wdp.InternalSearchViewView.wdDoInit(InternalSearchViewView.java:179)
com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Exception was thrown in preprocessing phase of application session 9b13df9cef6211e0814800000062f5ca. The causing exception is nested. RID=9b13df9aef6211e09bde00000062f5ca
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doPreprocessing(ApplicationSession.java:640)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:335)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:315)
at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doContent(AbstractDispatcherServlet.java:87)
at com.sap.tc.webdynpro.serverimpl.wdc.DispatcherServlet.doContent(DispatcherServlet.java:76)
at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doGet(AbstractDispatcherServlet.java:55)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:152)
at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:38)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:400)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:203)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:438)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:427)
at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:38)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:80)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:268)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:81)
at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:54)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:42)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:447)
at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:264)
at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:56)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)
at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:328)
Caused by: com.sap.tc.webdynpro.services.exceptions.ApplicationFaultException: wdDoInit: exception thrown in this user coding area
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:62)
at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:227)
at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:731)
at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:206)
at com.sap.tc.webdynpro.progmodel.window.ViewManager.getView(ViewManager.java:667)
at com.sap.tc.webdynpro.progmodel.window.ViewManager.bindRoot(ViewManager.java:562)
at com.sap.tc.webdynpro.progmodel.window.ViewManager.init(ViewManager.java:182)
at com.sap.tc.webdynpro.progmodel.window.InterfaceView.manageEmbeddedViewManager(InterfaceView.java:141)
at com.sap.tc.webdynpro.progmodel.window.InterfaceView.initController(InterfaceView.java:55)
at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:206)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.doOpen(WebDynproWindow.java:385)
at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.show(ApplicationWindow.java:180)
at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.open(ApplicationWindow.java:174)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:607)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doPreprocessing(ClientApplication.java:1475)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doPreprocessing(ApplicationSession.java:637)
... 43 more
Caused by: java.lang.NullPointerException: while trying to invoke the method com.sap.tc.cm.arfc2.gci.ARFC2TypedModel.associatedModelInfo() of an object loaded from local variable 'modelInstance'
at com.sap.tc.cm.arfc2.gci.ARFC2TypedModelClass.<init>(ARFC2TypedModelClass.java:344)
at com.sap.tc.cm.arfc2.gci.ARFC2TypedModelClassExecutable.<init>(ARFC2TypedModelClassExecutable.java:166)
at com.sap.demo.bapi2.wd.models.fmodel.Bapi_Flight_Getlist_Input.<init>(Bapi_Flight_Getlist_Input.java:38)
at com.sap.demo.bapi2.wd.comp.searchview.SearchViewView.wdDoInit(SearchViewView.java:115)
at com.sap.demo.bapi2.wd.comp.searchview.wdp.InternalSearchViewView.wdDoInit(InternalSearchViewView.java:179)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:59)
Thanks
Pavan
use the wizard to generate the code.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
What error do you get?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.