cancel
Showing results for 
Search instead for 
Did you mean: 

Web Dynpro iView got 500 Internal Server Error when first time run!

Former Member
0 Kudos

Dear all,

We are running EP6 on SAP J2EE 6.4. We created some Web Dynpro JAVA applications and integrated into Portal iView.

The strange thing is some user get the '500 Internal Server Error'. "The Web Dynpro Application 'xxxxxx' has expired. Please restart the application either with the refresh button or click the following link xxxxxx. Details: No details available.

When user click the link provided or the original link in portal, it works fine. This error not happens always, but sometime. Some users say they get this only once in a day of first login.

I got some error message from log:

com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException

at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClassExecutable.execute(DynamicRFCModelClassExecutable.java:98)

at com.company.ap.wd.janasbid.WDApplicationNameComp.executeWDApplicationName(WDApplicationNameComp.java:179)

at com.company.ap.wd.janasbid.wdp.InternalWDApplicationNameComp.executeWDApplicationName(InternalWDApplicationNameComp.java:210)

at com.company.ap.wd.janasbid.WDApplicationNameSearchView.onActionSearch(WDApplicationNameSearchView.java:199)

at com.company.ap.wd.janasbid.wdp.InternalWDApplicationNameSearchView.wdInvokeEventHandler(InternalWDApplicationNameSearchView.java:229)

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

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

at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:251)

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

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

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

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

at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)

at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)

at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)

at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:160)

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)

Caused by: com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFC_Fault_Exception:

at sun.reflect.GeneratedConstructorAccessor464.newInstance(Unknown Source)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:274)

at java.lang.Class.newInstance0(Class.java:308)

at java.lang.Class.newInstance(Class.java:261)

at com.sap.aii.proxy.framework.core.JcoMarshaler.unmarshalException(JcoMarshaler.java:429)

at com.sap.aii.proxy.framework.core.JcoProxy.send(JcoProxy.java:82)

at com.sap.aii.proxy.framework.core.AbstractProxy$JcoProxyHelper.send(AbstractProxy.java:173)

at com.sap.aii.proxy.framework.core.AbstractProxy.send$(AbstractProxy.java:141)

at com.company.ap.wd.janasbid.model.JanasBid.z_90Sj_Rfc_Pdm1(JanasBid.java:581)

at com.company.ap.wd.janasbid.model.Z_90Sj_Rfc_Pdm1_Input.doExecute(Z_90Sj_Rfc_Pdm1_Input.java:137)

at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCModelClassExecutable.execute(DynamicRFCModelClassExecutable.java:92)

... 30 more

This is not a major issue becuase user can click again to avoid the error. But we really want to know why and find a solution to this.

Could you please give any advise? Thanks a lot.

Best regards,

Yuhu

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

hai yuhu,

check if the rfc is remote enabled.

Thanks n Regards

Sharanya.R

Former Member
0 Kudos

Hi,

Of course the RFC is enabled. Because the Web Dynpro applications run OK most of the time, just show error of the first time.

Best regards,

Yuhu

Former Member
0 Kudos

Hi,

Are u attached Webdynpro iView or any other iview?

tell me which iView you attached in the portal?

Regards,

P.Manivannan

Former Member
0 Kudos

Hi Manivannan

I am using Web Dynpro iView in Portal.

Best regards,

Yuhu

Former Member
0 Kudos

hai yuhu,

does the iview contain the url of the webdynpro application.i.e have you place the url of your application in iview or marked the iview as webdynpro application and connected it to your application.

Thanks n Regards

Sharanya.R

Former Member
0 Kudos

Hi,

We are using Web Dynpro iView template in Portal. Therefore only system name and application name are necessary, there is no url specified.

Best regards,

Yuhu

Former Member
0 Kudos

hai yuhu,

when you create a new iview just select the url link option and copy and paste the url u get when you run your application in browser in the url link.Hope this solves your problem.

Thanks n Regards

Sharanya.R

Former Member
0 Kudos

Hello Xia

According to the error log , if you observe one statement " WDDynamicRFCExecuteException " which you already handled this exception in your BAPI execution method using TRY CATCH block. There is nothing wrong in the code.

1) Problem is mainly because of your NETWORK , if the network speed is slow, user's request will not reach the backend ,at that time you will get this error message.

What to do : Just refresh the screen once , you will get the result , (But you will lose the data if you are in middle of something)

Regards

Chaitanya.A

Former Member
0 Kudos

hii,

You are trying to import one RFC from the R/3 system at the backend. Please check whether this RFC is activated.

Former Member
0 Kudos

Hi ,

go through the link , hope that helps you.

Thanks,

Sunitha Hari.