cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying the error summary.

konchada_saikrishna
Active Participant
0 Kudos

Hi All ....

I Installed Sneak Preview 2004 in my local system,

while running an application, if there are any run time errors, it just says "Failed to process request. Please contact your system administrator." and not displaying the error summary.

To display the error summary where and how to configure that.

Thanks & Regards,

Sai.K.K

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Sai,

From the error message you have got, it seems like the window is already open. So, when you click the button, you are trying to duplicate the window that is already open. Check if you are using the same window instance 'window' elsewhere.

Regards,

Leena

konchada_saikrishna
Active Participant
0 Kudos

Hi Leena,

I am not using that window any where in the application previous to this, but as said by Anil I destroyed the window first and then had the remaining code.

Later I placed the code in the try block removing that destroy statement, and it works fine

Regards,

Sai.k.k

former_member186016
Active Contributor
0 Kudos

You can check the error log in the server.

Is no error reported there ?

konchada_saikrishna
Active Participant
0 Kudos

Hi Ashwani,

Where can I find the error log in server,

can you tell me in which folder does this exist.

Regards,

Sai.k.k

Former Member
0 Kudos

<Drive>:\usr\sap\<ID>\<InstanceID>\j2ee\cluster\server0\log

Regards, Anilkumar

konchada_saikrishna
Active Participant
0 Kudos

Yep,

I gone through that path, there are 4 .trc files, defaultTtrace.0 , , defaultTrace.3

which one is the one which contain the error log.

Regards,

Sai.k.k

Former Member
0 Kudos

Check the timstamp of the log file and pick the latest one.

I think it is 4 .trc

Regards, Anilkumar

konchada_saikrishna
Active Participant
0 Kudos

Hi Anil,

1) In view1 there is a button, on click of this, I am calling a method in custom controller, In the custom controller the code is like this

IWDMessageManager msg = wdThis.wdGetAPI().getComponent().getMessageManager();

msg.reportSuccess("yes");

IWDWindowInfo windowInfo = (IWDWindowInfo)wdComponentAPI.getComponentInfo().findInWindows("Witness_Window");

IWDWindow window = wdComponentAPI.getWindowManager().createWindow(windowInfo,true);

window.setWindowPosition(150,150);

window.open();

wdContext.currentWindowElement().setWindowInstance(window);

When I am trying to open a new window on click of a button, there is a error message like this

com.sap.tc.webdynpro.services.exceptions.InvalidUrlRuntimeException: Invalid URL=../../../resources/local/EHS_WSO/Components/com.sap.tc.projects.ehswso.EHS_WSOComp/<>

I get this error details from my remote server,

but as you said I could not see this error in the defaultTrace4.trc of my local server.

Regards,

Sai.k.k

Former Member
0 Kudos

Hi,

Please make sure the WindowName that you are passing in the parameter is correct (case sensitive)

I think you need to set the severity to debug in the visualadmin->services->logConfiguration to see the complete trace.

Regards, Anilkumar

konchada_saikrishna
Active Participant
0 Kudos

Hi Anil,

The window name is correct with case.

Now I could see the error with respect to the new window like this in the defaultTrace3.trc

#1.5#00173193E440005E0000003800000614000424761EAC2A74#1165989646187#com.sap.engine.services.servlets_jsp.client.RequestInfoServer#sap.com/tcwddispwda#com.sap.engine.services.servlets_jsp.client.RequestInfoServer#Guest#0####458d69608a6f11db813800173193e440#SAPEngine_Application_Thread[impl:3]_31##0#0#Error##Plain###Processing HTTP request to servlet [dispatcher] finished with error. The error is: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Duplicate instance exception: The interface view Witness_WindowInterfaceView in component EHS_WSOComp is already in use.

at com.sap.tc.webdynpro.progmodel.controller.Component.addUsageOfInterfaceView(Component.java:177)

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

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.sap.tc.projects.ehswso.EHS_WSOCust.OpenNewWindow(EHS_WSOCust.java:322)

at com.sap.tc.projects.ehswso.wdp.InternalEHS_WSOCust.OpenNewWindow(InternalEHS_WSOCust.java:531)

at com.sap.tc.projects.ehswso.Incident_Form.onActionShowWitnessWin(Incident_Form.java:656)

at com.sap.tc.projects.ehswso.wdp.InternalIncident_Form.wdInvokeEventHandler(InternalIncident_Form.java:563)

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)

I want the trace to be displayed in the browser window, rather than searching for the log in the path every time.

Regards,

Sai.k.k

Former Member
0 Kudos

Hi,

You need to destroy/close the previous instance of the window before opening the window for the second time.

https://forums.sdn.sap.com/click.jspa?searchID=390499&messageID=371515

Regards, Anilkumar

Message was edited by:

Anilkumar Vippagunta

konchada_saikrishna
Active Participant
0 Kudos

Hi Anil,

yep I could display the new window with your help, but ...

Initially I added the rfc model to the custom controller, but now new window is to created and called under component controller.

Is it posibble to get data to the component controller from custom controller. like binding nodes to the custom controller.

How ever, my reason for the thread is to display the error summary in the browser window itself rather than checking in the log file.

Regards,

Sai.k.k

Former Member
0 Kudos

Hi Sai,

You can do mapping btw component and custom controller also.

Regards, Anilkumar

konchada_saikrishna
Active Participant
0 Kudos

Hi Anil,

Thanks.

I will look into the mapping from custom to component controller. I am giving points for the window issue.

How can I display the error summary in the web browser.

Regards,

Sai.k.k