cancel
Showing results for 
Search instead for 
Did you mean: 

Typed model execution failed; see nested exception for details

Former Member
0 Kudos

Hi All,

I have created a WebDynpro Java Application which is  accessing a Bapi.

The application is compiled and deployed .

When i try to execute the application by entering data on the search view and clicking the get Button ,

I am getting the below exception message at the botton of the Page .

For the same data when i execute the Bapi in ECC ,it is working fine .

Now my Query is .

1) Do i need to do some additional configuration apart from JCO and destinations in NWA ?

2) From where to get the exception file "see nested exception for details" ?

3) Is this a known issue as NWDS 7.31 works on RFC2  .

Regards,

Nitesh

Accepted Solutions (1)

Accepted Solutions (1)

hemanth2
Product and Topic Expert
Product and Topic Expert
0 Kudos


Hi Nitesh ,

Hope you are doing good.

Kindly run the web diag tool as outlined in SAP Note No. 1332726-Troubleshooting Wizard SAP AS Java 7.20 and above with incident "General Security" and reproduce the issue.
How the application "fetches" data depends on the application. For example an Internet application component like ESS will use the JCo, while BI will use he portal connections etc.


____________
Kind Regards,
Hemanth
SAP AGS
 

Former Member
0 Kudos

Hi Hemant,

I am getting the following exception while executing the application.

I am able to execute the same Bapi in ECC Side with the user i have mapped with the destination.

Regards,

Nitesh

junwu
Active Contributor
0 Kudos

does your application require authentication? if not, please make it required.

junwu
Active Contributor
0 Kudos

for the destination, either hardcoded user or sso, never heard mapped......

in rfc call, the system object is not used,

Former Member
0 Kudos

hi nitesh,

I am also give you authenticate required suggession which is give by Jun Wu.

1. i suggest you to go in portal destination

2. check jco connection which is working properly or not.

3. sso for ecc and Jco should be same.

hemanth2
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Nitesh,


Hope you are doing good.Pleasecheck all the JCo destinations (with the user that you reproduce the issue).  If they are fine , we will need to activate the JCo traces.
But first check this.

____________
Kind Regards,
Hemanth
SAP AGS
 

Former Member
0 Kudos

Dear Jun Wu,

I have defined the JCo Destinations in Portal Webdynpro with the following name.

WD_MODELDATA_DEST

Authentication   : sso

WD_RFC_METADATA_DEST

authentication : useDefinedUser

Both these JCO are tested and pinged to be OK.

Apart from this i have also defined the WD_RFC_METADATA_DEST in the destinations tab of NWA. This is also pinged to be OK. Have i missed some configuration??

Former Member
0 Kudos

Hi Hemant,

I have used the same user for WD_RFC_METADATA_DEST in both webdynpro JCO and NWA Destinations .

With the same user in ECC I am able to execute the Bapi called in Model.

Kindly let me know the process to execute JCO Trace.

Regards,

Nitesh

junwu
Active Contributor
0 Kudos

all should be created in destination . not jco, that one is deprecated.

Former Member
0 Kudos

Hi Jun Wu,

I removed the JCO Connection mentioned in Webdynpro>JCO for WD_MODELDATA_DEST and WD_RFC_METADATA_DEST and defined both in the destinations ,but the issue is still there.

junwu
Active Contributor
0 Kudos

why cannot u give us the detail error......

clear the model cache, if don't know how to do , just restart the server.....

Former Member
0 Kudos

Dear JunWu,

Thanks for your reply

I don't know the location of the file where the detailed error for this exception is generated,kindly guide me.

Do i need to restart the Portal server or the ECC server to clear the model cache.

Regards,

Nitesh

junwu
Active Contributor
0 Kudos

portal server

Former Member
0 Kudos

I restarted the Portal server , redeployed the application ,but the issue is still there.Kindly let me know the process to get the full  error message

junwu
Active Contributor
0 Kudos

nwa/logs---> default trace

vdurgarao09
Contributor
Former Member
0 Kudos

Hi,

This is the error generated in default trace after executing the application.

#2.0 #2015 01 28 11:12:46:842#+0530#Error#com.sap.engine.services.security.authentication.loginmodule.ticket#

#BC-JAS-SEC#security#C000AC181DC000420000000600E80006#1523450000000004#demo.sap.com/test1#com.sap.engine.services.security.authentication.loginmodule.ticket#Guest#0##6AA3FA37A6B011E49E33000000173EFA#71a67b43a6b011e4bb7f000000173efa#71a67b43a6b011e4bb7f000000173efa#0#Thread[HTTP Worker [@733688529],5,Dedicated_Application_Thread]#Plain##

Error while creating assertion ticket on demand. No logged in user found.#

#2.0 #2015 01 28 11:12:46:842#+0530#Error#com.sap.security.core.server.destinations.lib.AssertionTicketRetriever$GetAssertionTicketPrivAction#

#BC-JAS-SEC#security.class#C000AC181DC000420000000700E80006#1523450000000004#demo.sap.com/test1#com.sap.security.core.server.destinations.lib.AssertionTicketRetriever$GetAssertionTicketPrivAction.run()#Guest#0##6AA3FA37A6B011E49E33000000173EFA#71a67b43a6b011e4bb7f000000173efa#71a67b43a6b011e4bb7f000000173efa#0#Thread[HTTP Worker [@733688529],5,Dedicated_Application_Thread]#Plain##

An error occurred while trying to generate an SAP authentication assertion ticket.

[EXCEPTION]

java.lang.reflect.InvocationTargetException

  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

  at java.lang.reflect.Method.invoke(Method.java:597)

  at com.sap.security.core.server.destinations.lib.AssertionTicketRetriever$GetAssertionTicketPrivAction.run(AssertionTicketRetriever.java:103)

  at com.sap.security.core.server.destinations.lib.AssertionTicketRetriever$GetAssertionTicketPrivAction.run(AssertionTicketRetriever.java:68)

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

  at com.sap.security.core.server.destinations.lib.AssertionTicketRetriever.getAssertionTicket(AssertionTicketRetriever.java:47)

  at com.sap.security.core.server.destinations.lib.AssertionTicketJCOProperties.getProperty(AssertionTicketJCOProperties.java:67)

  at com.sap.security.core.server.destinations.lib.AssertionTicketJCOProperties.getProperty(AssertionTicketJCOProperties.java:90)

  at com.sap.conn.rfc.api.RfcOptions.findProperty(RfcOptions.java:1010)

  at com.sap.conn.rfc.api.RfcOptions.getTrimmedProperty(RfcOptions.java:1086)

  at com.sap.conn.rfc.api.RfcOptions.getMysapsso2(RfcOptions.java:952)

  at com.sap.conn.rfc.engine.RfcIoOpenCntl.rfcio_setopt(RfcIoOpenCntl.java:1180)

  at com.sap.conn.rfc.engine.RfcIoControl.ab_rfcopen(RfcIoControl.java:92)

  at com.sap.conn.rfc.api.RfcApi.RfcOpen(RfcApi.java:85)

  at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.connect(MiddlewareJavaRfc.java:1408)

  at com.sap.conn.jco.rt.ClientConnection.connect(ClientConnection.java:725)

  at com.sap.conn.jco.rt.PoolingFactory.init(PoolingFactory.java:115)

  at com.sap.conn.jco.rt.ConnectionManager.createFactory(ConnectionManager.java:350)

  at com.sap.conn.jco.rt.DefaultConnectionManager.createFactory(DefaultConnectionManager.java:46)

  at com.sap.conn.jco.rt.ConnectionManager.getFactory(ConnectionManager.java:324)

  at com.sap.conn.jco.rt.RfcDestination.initialize(RfcDestination.java:894)

  at com.sap.conn.jco.rt.RfcDestination.getAttributes(RfcDestination.java:605)

  at com.sap.conn.jco.rt.RfcDestination.getAttributes(RfcDestination.java:33)

  at com.sap.tc.cm.arfc2.model.ARFC2GenericModelClassExecutable.compareModelAndMetadataDestinations(ARFC2GenericModelClassExecutable.java:129)

  at com.sap.tc.cm.arfc2.model.ARFC2GenericModelClassExecutable.executeInternal(ARFC2GenericModelClassExecutable.java:97)

  at com.sap.tc.cm.arfc2.model.ARFC2GenericModelClassExecutable.execute(ARFC2GenericModelClassExecutable.java:68)

  at com.sap.tc.cm.arfc2.gci.ARFC2TypedModelClassExecutable.execute(ARFC2TypedModelClassExecutable.java:54)

  at com.sap.demo.test1.wd.comp.new1comp.Cust_test1Controller.executeBapi_Vendor_Getdetail(Cust_test1Controller.java:148)

  at com.sap.demo.test1.wd.comp.new1comp.wdp.InternalCust_test1Controller.executeBapi_Vendor_Getdetail(InternalCust_test1Controller.java:168)

  at com.sap.demo.test1.wd.comp.new1comp.New1CompView.onActionGetData(New1CompView.java:189)

  at com.sap.demo.test1.wd.comp.new1comp.wdp.InternalNew1CompView.wdInvokeEventHandler(InternalNew1CompView.java:141)

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

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

  at com.sap.tc.webdynpro.clientserver.phases.ProcessingEventPhase.doHandleActionEvent(ProcessingEventPhase.java:159)

  at com.sap.tc.webdynpro.clientserver.phases.ProcessingEventPhase.execute(ProcessingEventPhase.java:94)

  at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequestPartly(WindowPhaseModel.java:162)

  at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doProcessRequest(WindowPhaseModel.java:110)

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

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

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

  at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doExecute(ClientApplication.java:1671)

  at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doProcessing(ClientApplication.java:1485)

  at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doApplicationProcessingStandalone(ApplicationSession.java:908)

  at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doApplicationProcessing(ApplicationSession.java:880)

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

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

  at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doContent(AbstractDispatcherServlet.java:87)

  at com.sap.tc.webdynpro.serverimpl.wdc.DispatcherServlet.doContent(DispatcherServlet.java:101)

  at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doPost(AbstractDispatcherServlet.java:62)

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

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

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

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

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

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

  at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)

  at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:278)

  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.SessionSizeFilter.process(SessionSizeFilter.java:26)

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

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

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

  at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:269)

  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: java.lang.IllegalStateException: No logged in user found.

  at com.sap.security.core.server.jaas.SAPLogonTicketHelper.createAssertionTicket(SAPLogonTicketHelper.java:496)

  at com.sap.security.core.server.jaas.AssertionTicketFactoryImpl.createAssertionTicket(AssertionTicketFactoryImpl.java:67)

  ... 92 more

#

#2.0 #2015 01 28 11:12:47:029#+0530#Error#com.sap.tc.cm.arfc2.model.ARFC2GenericModelClassExecutable#

#BC-XI-CON-RFC#tc~cm~arfc2#C000AC181DC000420000000800E80006#1523450000000004#demo.sap.com/test1#com.sap.tc.cm.arfc2.model.ARFC2GenericModelClassExecutable#Guest#0##6AA3FA37A6B011E49E33000000173EFA#71a67b43a6b011e4bb7f000000173efa#71a67b43a6b011e4bb7f000000173efa#0#Thread[HTTP Worker [@733688529],5,Dedicated_Application_Thread]#Plain##

JCoException while executing the Function ->''BAPI_VENDOR_GETDETAIL'' #

junwu
Active Contributor
0 Kudos

make authentication required for your application

Former Member
0 Kudos

Dear Jun Wu,

Thanks for your reply .

the issue is resolved now .

Kindly share some link which would guide me and many more who are new in developing application in NWDS 7.31

Thanks once again

Regards,

Nitesh

junwu
Active Contributor
0 Kudos

don't spend your valuable time on this dead technology.

Answers (3)

Answers (3)

anil_kumar259
Active Contributor
0 Kudos

Hi Nitesh,

   As you said all the destionations and system connections are successful.   Ask the ABAPer  to keep the external break point and trigger the WDJ application and debugg then you will come to know where exactly the problem is.

Even i have faced the same problem Typed model exception and fixed it by debugging using the external breakpoint. Usally i use the get above exception when BAPI is not executed successfully.

Former Member
0 Kudos

Dear Anil,

I have set the external breakpoint in the BAPI Called ,but when i try to execute the WDJ program in browser , it is not triggering /redirecting it to the BAPI in ECC .

Kindly let me know the process to debug it.

Regards,

Nitesh

anil_kumar259
Active Contributor
0 Kudos

Take the help of ABABer to check .

vdurgarao09
Contributor
0 Kudos

Hi Nitesh,

ECC system lgoin after do this one.

Step-by-Step Procedure

1. Use the SAP GUI to log on to the system or server to which the RFC call is to take place.

You should log on with the same user with which the call will take place.

Due to the large amount of parallel calls, using a collective user is not recommended.

You should try to execute the application with a dedicated user throughout the duration of

the debugging session.

2. Activate external debugging in the ABAP Workbench.

a. To do this, call the ABAP Workbench using one of the transactions SE37, SE38, or SE80.

b. Choose Utilities SE80 Settings and then the ABAP Editor tab followed by Debugging.

c. Enter the user for which the debugging session is to take place. Select the Active

checkbox and deactivate IP-Matching.

d. Save your settings.

3. Set an HTTP (external) breakpoint in the ABAP code.

a. Display the source code of the relevant function module.

b. Position the cursor at the place in the source code where execution is to be stopped.

c. Choose the external breakpoint icon from the toolbar.

The relevant line is highlighted.

SE80 -> Utilities->setting-> ABAP Editor -> Debugging ->

Your still getting any error for portal means check logs Otherwise back end means Check the ST22 tcode in ecc (R/3)system. Otherwise take help for ABAP team.

BR,

Durga Rao.

Former Member
0 Kudos

Restart Server...

In Backend level Whole function group should be activated ..
might be only one BAPI is activated.

junwu
Active Contributor
0 Kudos

detail error please