Skip to Content
author's profile photo Former Member
Former Member

IllegalStateException

I have entered tutorial "Creating an Extended Web Dynpro Application". When I click the Exit Quz button, I get the message "java.lang.IllegalStateException". Any suggestions as to how to fix this would be greatly appreciated. Details are as follows...

Thank you!

1) Quiz Interface view has outbound plug of GotoUrl and Exit Plug is checked also it has parameter of Url of type string.

2) For the Welcome view properties, "QuizInterfaceView - com.sap.tc.webdynpro.tutorials.quiz" has been entered under Required Controllers.

3) In properties of Exit Button it has onAction of ExitPressed.

4) The implementation code for ExitPressed is as follows...

//@@begin javadoc:onActionExitPressed(ServerEvent)

/** Declared validating event handler. */

//@@end

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

{

//@@begin onActionExitPressed(ServerEvent)

String Urll = "http://www.google.com";

wdThis.wdGetQuizInterfaceViewController().wdFirePlugGotoUrl(Urll);

//"http://www.sap.com");

//@@end

}

P.S.- I have tried with URL coded as string directly into method parameter, and as you see it now as thru a variable.

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 14, 2007 at 07:09 PM

    Can you please post the complete stacktrace?

    Armin

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      java.lang.IllegalStateException

      at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.setWriter(RenderManager.java:116)

      at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.sendResponse(HtmlClient.java:236)

      at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.sendResponse(HtmlClient.java:206)

      at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.sendRedirect(HtmlClient.java:891)

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

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

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