Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting problem with an SDO  RSS feed

 
Ramesh Pappala
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

When I am trying to call the Fetch Action method of an SDO, I am getting java.lang.IllegalStateException.

Actually I am getting the instance of the JSF Page Backing Bean in the Servlet and from there I am calling the SDO Fetch Action method. But I am getting the exception "java.lang.IllegalStateException".


Stack Trace:

[7/13/06 6:46:48:742 EDT] 00000026 SystemOut O java.lang.IllegalStateException
at com.sun.faces.context.FacesContextImpl.assertNotReleased(FacesContextImpl.java(Compiled Code))
at com.sun.faces.context.FacesContextImpl.getViewRoot(FacesContextImpl.java:251)
at pagecode.PageCodeBase.getTreeAttribute(PageCodeBase.java:139)
at pagecode.PageCodeBase.resolveParams(PageCodeBase.java:262)
at pagecode.DataTableAJAX.doJob_ticketsFetchAction(DataTableAJAX.java:290)
at pagecode.DataTableAJAX.getJob_tickets(DataTableAJAX.java:315)
at com.mss.servlets.DataServlet.getJobTicketInfo(DataServlet.java:170)
at com.mss.servlets.DataServlet.doPost(DataServlet.java:91)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1282)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:673)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:294)
at com.ibm.faces.context.MultipartExternalContextImpl.dispatch(MultipartExternalContextImpl.java:411)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:254)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:220)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1282)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:673)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2933)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:221)
at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:210)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1912)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:84)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:101)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1462)



Please help me regarding this.


Thank You.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is an SDO?
 
Ramesh Pappala
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ilja Preuss,

SDO is nothing but Service Data Object just like WDO. It is used to get data from database basing on the table and conditions we have mentioned.

Just leave this. Look at my exception,
i.e "java.lang.IllegalStateException".

Tell me what's the problem was.

Thank You.
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I'm not a JSF expert, but from the stacktrace it looks like something got released that shouldn't have - probably something that has to do with the view root...

In fact it looks to me as if it hasn't anything to do with calling the fetch action method of your SDO. Have you tried what happens when you remove that call from your code?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!