Java.lang.IllegalStateException when attempting to create a UserTransaction

I'm using Weblogic Portal 8.1 SP3 with Toplink 9.0.4.2. Due to the fact that we're deploying our application on a Weblogic cluster, we need to "pin" our data access on servers in our cluster. According to Oracle, this can be done through the use of javax.transaction.UserTransaction(s) through our code:
          http://download-east.oracle.com/docs/cd/B10464_01/web.904/b10313/conf4as.htm#1118238
          Unfortunately, when we attempt to get a UserTransaction either through JNDI or Weblogic's TransactionHelper, I'm getting the the following exception:
          java.lang.IllegalStateException: Thread is already associated with another transaction
          Here's the full stacktrace:
          java.lang.IllegalStateException: Thread is already associated with another transaction
          {Xid=BEA1-00838F7CF204(29674376),Status=Active,numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=0,seconds left=500,acti
          veThread=Thread[ExecuteThread: '13' for queue: 'default',5,Thread Group for Queue: 'default'],SCInfo[kmDevDomain+portalServer]=(stat
          e=active),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=portalServer+128.221.58.143:7001+kmDevDomain+
          t3+, XAResources={},NonXAResources={})])}
          at com.emc.km.taglibs.lookupvalues.LookUpValuesTag.initializeVariables(LookUpValuesTag.java:255)
          at com.emc.km.taglibs.lookupvalues.LookUpValuesTag.doStartTag(LookUpValuesTag.java:409)
          at jsp_servlet._framework._skeletons._secure._webtools.__titlebar._jspService(titlebar.jsp:25)
          at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
          at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
          at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
          at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
          at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:622)
          at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:412)
          at com.bea.netuix.servlets.controls.JspRenderer.renderAlt(JspRenderer.java:194)
          at com.bea.netuix.servlets.controls.JspRenderer.endRender(JspRenderer.java:141)
          at com.bea.netuix.nf.ControlLifecycle$6.postVisit(ControlLifecycle.java:473)
          at com.bea.netuix.nf.RootLifecycle$4.postVisit(RootLifecycle.java:226)
          at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:449)
          at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:175)
          at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:95)
          at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:388)
          at com.bea.netuix.nf.UIControl.render(UIControl.java:584)
          at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:405)
          at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:123)
          at com.bea.netuix.servlets.jsp.taglib.RenderChild.doStartTag(RenderChild.java:58)
          at jsp_servlet._framework._skeletons._secure._webtools.__window._jspService(window.jsp:15)
          at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
          at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
          at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
          at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
          at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:622)
          at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:412)
          at com.bea.netuix.servlets.controls.JspRenderer.renderAlt(JspRenderer.java:194)
          at com.bea.netuix.servlets.controls.JspRenderer.beginRender(JspRenderer.java:95)
          at com.bea.netuix.nf.ControlLifecycle$6.visit(ControlLifecycle.java:437)
          at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:433)
          at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:175)
          at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:95)
          at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:388)
          at com.bea.netuix.nf.UIControl.render(UIControl.java:584)
          at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:405)
          at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:123)
          at com.bea.netuix.servlets.jsp.taglib.RenderChild.doStartTag(RenderChild.java:58)
          at jsp_servlet._framework._skeletons._secure.__flowlayout._jspService(flowlayout.jsp:25)
          at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
          at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
          at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
          at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
          at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:622)
          at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:412)
          at com.bea.netuix.servlets.controls.JspRenderer.renderAlt(JspRenderer.java:194)
          at com.bea.netuix.servlets.controls.JspRenderer.beginRender(JspRenderer.java:95)
          at com.bea.netuix.nf.ControlLifecycle$6.visit(ControlLifecycle.java:437)
          at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:433)
          at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:175)
          at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:95)
          at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:388)
          at com.bea.netuix.nf.UIControl.render(UIControl.java:584)
          at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:405)
          at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:123)
          at com.bea.netuix.servlets.jsp.taglib.RenderChild.doStartTag(RenderChild.java:58)
          at jsp_servlet._framework._skeletons._secure.__gridlayout._jspService(gridlayout.jsp:24)
          at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
          at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
          at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
          at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
          at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:622)
          at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:412)
          at com.bea.netuix.servlets.controls.JspRenderer.renderAlt(JspRenderer.java:194)
          at com.bea.netuix.servlets.controls.JspRenderer.beginRender(JspRenderer.java:95)
          at com.bea.netuix.nf.ControlLifecycle$6.visit(ControlLifecycle.java:437)
          at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:433)
          at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:175)
          at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:95)
          at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:388)
          at com.bea.netuix.nf.UIControl.render(UIControl.java:584)
          at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:405)
          at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:123)
          at com.bea.netuix.servlets.jsp.taglib.RenderChild.doStartTag(RenderChild.java:58)
          at jsp_servlet._framework._skeletons._secure._dashboard.__borderlayout._jspService(borderlayout.jsp:44)
          at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
          at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
          at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
          at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:463)
          at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
          at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:622)
          at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:412)
          at com.bea.netuix.servlets.controls.JspRenderer.renderAlt(JspRenderer.java:194)
          at com.bea.netuix.servlets.controls.JspRenderer.beginRender(JspRenderer.java:95)
          at com.bea.netuix.nf.ControlLifecycle$6.visit(ControlLifecycle.java:437)
          at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:433)
          at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:175)
          at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:95)
          at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:388)
          at com.bea.netuix.nf.UIControl.render(UIControl.java:584)
          at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:405)
          at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:123)
          at com.bea.netuix.servlets.jsp.taglib.RenderChild.doStartTag(RenderChild.java:58)
          at jsp_servlet._framework._skeletons._secure.__gridlayout._jspService(gridlayout.jsp:24)
          at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
          at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
          at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
          at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:463)
          at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
          at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:622)
          at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:412)
          at com.bea.netuix.servlets.controls.JspRenderer.renderAlt(JspRenderer.java:194)
          at com.bea.netuix.servlets.controls.JspRenderer.beginRender(JspRenderer.java:95)
          at com.bea.netuix.nf.ControlLifecycle$6.visit(ControlLifecycle.java:437)
          at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:433)
          at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:175)
          at com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:220)
          at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:165)
          at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:360)
          at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:198)
          at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:711)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
          at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
          at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
          at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
          at com.emc.km.content.filter.ContentFilter.doFilter(ContentFilter.java:108)
          at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
          at com.emc.km.login.filter.LoginSessionFilter.doFilter(LoginSessionFilter.java:94)
          at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
          at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:351)
          at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
          at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6458)
          at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
          at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
          at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
          at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
          at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
          at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
          Any help would be greatly appreciated.
          Thanks!

Teddy,
          Make sure that your bean is deployed with Bean managed transaction
          demarcation, not Container managed if you intend to use UserTransaction
          object.
          Teddy Wang wrote:
          > I'm using Weblogic Portal 8.1 SP3 with Toplink 9.0.4.2. Due to the fact that we're deploying our application on a Weblogic cluster, we need to "pin" our data access on servers in our cluster. According to Oracle, this can be done through the use of javax.transaction.UserTransaction(s) through our code:
          >
          > http://download-east.oracle.com/docs/cd/B10464_01/web.904/b10313/conf4as.htm#1118238
          >
          > Unfortunately, when we attempt to get a UserTransaction either through JNDI or Weblogic's TransactionHelper, I'm getting the the following exception:
          >
          > java.lang.IllegalStateException: Thread is already associated with another transaction
          >
          > Here's the full stacktrace:
          >
          > java.lang.IllegalStateException: Thread is already associated with another transaction
          > {Xid=BEA1-00838F7CF204(29674376),Status=Active,numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=0,seconds left=500,acti
          > veThread=Thread[ExecuteThread: '13' for queue: 'default',5,Thread Group for Queue: 'default'],SCInfo[kmDevDomain+portalServer]=(stat
          > e=active),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=portalServer+128.221.58.143:7001+kmDevDomain+
          > t3+, XAResources={},NonXAResources={})])}
          > at com.emc.km.taglibs.lookupvalues.LookUpValuesTag.initializeVariables(LookUpValuesTag.java:255)
          > at com.emc.km.taglibs.lookupvalues.LookUpValuesTag.doStartTag(LookUpValuesTag.java:409)
          > at jsp_servlet._framework._skeletons._secure._webtools.__titlebar._jspService(titlebar.jsp:25)
          > at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
          > at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
          > at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
          > at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
          > at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:622)
          > at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:412)
          > at com.bea.netuix.servlets.controls.JspRenderer.renderAlt(JspRenderer.java:194)
          > at com.bea.netuix.servlets.controls.JspRenderer.endRender(JspRenderer.java:141)
          > at com.bea.netuix.nf.ControlLifecycle$6.postVisit(ControlLifecycle.java:473)
          > at com.bea.netuix.nf.RootLifecycle$4.postVisit(RootLifecycle.java:226)
          > at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:449)
          > at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:175)
          > at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:95)
          > at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:388)
          > at com.bea.netuix.nf.UIControl.render(UIControl.java:584)
          > at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:405)
          > at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:123)
          > at com.bea.netuix.servlets.jsp.taglib.RenderChild.doStartTag(RenderChild.java:58)
          > at jsp_servlet._framework._skeletons._secure._webtools.__window._jspService(window.jsp:15)
          > at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
          > at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
          > at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
          > at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
          > at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:622)
          > at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:412)
          > at com.bea.netuix.servlets.controls.JspRenderer.renderAlt(JspRenderer.java:194)
          > at com.bea.netuix.servlets.controls.JspRenderer.beginRender(JspRenderer.java:95)
          > at com.bea.netuix.nf.ControlLifecycle$6.visit(ControlLifecycle.java:437)
          > at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:433)
          > at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          > at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:175)
          > at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:95)
          > at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:388)
          > at com.bea.netuix.nf.UIControl.render(UIControl.java:584)
          > at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:405)
          > at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:123)
          > at com.bea.netuix.servlets.jsp.taglib.RenderChild.doStartTag(RenderChild.java:58)
          > at jsp_servlet._framework._skeletons._secure.__flowlayout._jspService(flowlayout.jsp:25)
          > at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
          > at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
          > at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
          > at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
          > at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:622)
          > at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:412)
          > at com.bea.netuix.servlets.controls.JspRenderer.renderAlt(JspRenderer.java:194)
          > at com.bea.netuix.servlets.controls.JspRenderer.beginRender(JspRenderer.java:95)
          > at com.bea.netuix.nf.ControlLifecycle$6.visit(ControlLifecycle.java:437)
          > at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:433)
          > at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          > at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:175)
          > at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:95)
          > at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:388)
          > at com.bea.netuix.nf.UIControl.render(UIControl.java:584)
          > at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:405)
          > at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:123)
          > at com.bea.netuix.servlets.jsp.taglib.RenderChild.doStartTag(RenderChild.java:58)
          > at jsp_servlet._framework._skeletons._secure.__gridlayout._jspService(gridlayout.jsp:24)
          > at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
          > at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
          > at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
          > at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
          > at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:622)
          > at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:412)
          > at com.bea.netuix.servlets.controls.JspRenderer.renderAlt(JspRenderer.java:194)
          > at com.bea.netuix.servlets.controls.JspRenderer.beginRender(JspRenderer.java:95)
          > at com.bea.netuix.nf.ControlLifecycle$6.visit(ControlLifecycle.java:437)
          > at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:433)
          > at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          > at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          > at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          > at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          > at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          > at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          > at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          > at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          > at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          > at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:175)
          > at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:95)
          > at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:388)
          > at com.bea.netuix.nf.UIControl.render(UIControl.java:584)
          > at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:405)
          > at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:123)
          > at com.bea.netuix.servlets.jsp.taglib.RenderChild.doStartTag(RenderChild.java:58)
          > at jsp_servlet._framework._skeletons._secure._dashboard.__borderlayout._jspService(borderlayout.jsp:44)
          > at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
          > at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
          > at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
          > at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:463)
          > at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
          > at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:622)
          > at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:412)
          > at com.bea.netuix.servlets.controls.JspRenderer.renderAlt(JspRenderer.java:194)
          > at com.bea.netuix.servlets.controls.JspRenderer.beginRender(JspRenderer.java:95)
          > at com.bea.netuix.nf.ControlLifecycle$6.visit(ControlLifecycle.java:437)
          > at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:433)
          > at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          > at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          > at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          > at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          > at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          > at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          > at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          > at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          > at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          > at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:175)
          > at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:95)
          > at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:388)
          > at com.bea.netuix.nf.UIControl.render(UIControl.java:584)
          > at com.bea.netuix.servlets.controls.PresentationContext.render(PresentationContext.java:405)
          > at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:123)
          > at com.bea.netuix.servlets.jsp.taglib.RenderChild.doStartTag(RenderChild.java:58)
          > at jsp_servlet._framework._skeletons._secure.__gridlayout._jspService(gridlayout.jsp:24)
          > at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
          > at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
          > at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
          > at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:463)
          > at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
          > at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:622)
          > at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:412)
          > at com.bea.netuix.servlets.controls.JspRenderer.renderAlt(JspRenderer.java:194)
          > at com.bea.netuix.servlets.controls.JspRenderer.beginRender(JspRenderer.java:95)
          > at com.bea.netuix.nf.ControlLifecycle$6.visit(ControlLifecycle.java:437)
          > at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:433)
          > at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          > at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          > at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          > at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          > at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          > at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          > at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          > at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(ControlTreeWalker.java:443)
          > at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:175)
          > at com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:220)
          > at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:165)
          > at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:360)
          > at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:198)
          > at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:711)
          > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          > at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
          > at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
          > at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
          > at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
          > at com.emc.km.content.filter.ContentFilter.doFilter(ContentFilter.java:108)
          > at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
          > at com.emc.km.login.filter.LoginSessionFilter.doFilter(LoginSessionFilter.java:94)
          > at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
          > at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:351)
          > at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
          > at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6458)
          > at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
          > at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
          > at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
          > at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
          > at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
          > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
          >
          > Any help would be greatly appreciated.
          >
          > Thanks!
          

Similar Messages

  • Java.lang.IllegalStateException: Write attempted after request finished

    Hi
    Can anybody explin to me about java.lang.IllegalStateException: Write attempted after request finished.
    I am struggling with this problem. Please help me..
    Thanks in advance.

    try to open the inputStream when you want to read the incoming stream !
    see this for more details...

  • Getting java.lang.IllegalStateException  when try response.sendRedirect(cv)

    hi,
    I am getting this error java.lang.IllegalStateException when i am trying to send response to a jsp page
    here is my code
    try{
              Class.forName("com.mysql.jdbc.Driver");
              Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/test","root","root");
              PreparedStatement statement = con.prepareStatement(sql);
              int i = 0;          
              i = i+1;
              statement.setString(1,designation);                    
              i = i+1;
              statement.setString(2,Address);                    
              i = i+1;
              statement.setString(3,name);               
              statement.executeUpdate();
              statement.close();
              con.close();
              catch(Exception e){
                   e.printStackTrace();
              response.sendRedirect("employee.jsp");Shoeb

    here is the error
    java.lang.IllegalStateException
         org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:433)
         employee.doPost(employee.java:55)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    try{
              Class.forName("com.mysql.jdbc.Driver");
              Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/test","root","root");
              PreparedStatement statement = con.prepareStatement(sql);
              int i = 0;          
              i = i+1;
              statement.setString(1,designation);                    
              i = i+1;
              statement.setString(2,Address);                    
              i = i+1;
              statement.setString(3,name);               
              statement.executeUpdate();
              statement.close();
              con.close();
              response.sendRedirect("employee.jsp");
              catch(Exception e){
                   e.printStackTrace();
              }

  • Java.lang.IllegalStateException when trying to get a entity bean

    hi all,
    I wrote a simple container managed entity bean and deployed it. When i call the find all method of the entity bean following is the log trace of my exception
    com.sun.enterprise.resource.JdbcXAConnection$JdbcConnection@13974ba TX optimistic: false referenceCount =1 for com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@12a585c.
    [22/Jul/2003:23:35:54] FINER ( 1496): SQL statement<select t0."USER_ID", t0."LOGIN_NAME", t0."PASSWORD", t0."FIRST_NAME", t0."LAST_NAME", t0."EMAIL", t0."ADDRESS1", t0."ADDRESS2", t0."POSTALCODE", t0."CITY", t0."COUNTRY", t0."STATE", t0."ACCOUNT_STATUS", t0."CREATE_DATE", t0."MODIFY_DATE", t0."CREATED_BY", t0."MODIFIED_BY" from "EXPENSE_USER" t0> with no input values
    [22/Jul/2003:23:35:54] FINE ( 1496): <-> DBVendorType.getSpecialDBOperation():com.sun.jdo.spi.persistence.support.sqlstore.database.oracle.OracleSpecialDBOperation@1a92d3a.
    [22/Jul/2003:23:35:54] FINEST ( 1496): marking key field iD as present.
    [22/Jul/2003:23:35:54] FINEST ( 1496): NullSemaphore.acquire() for PersistenceManagerImpl.cacheLock.
    [22/Jul/2003:23:35:54] FINER ( 1496): SQLStoreManager.getPersistenceConfig(), classType = com.expense.ejb.entity.container.UserBean1689033004_JDOState.
    [22/Jul/2003:23:35:54] FINEST ( 1496): NullSemaphore constructor() for SQLStateManager.
    [22/Jul/2003:23:35:54] FINE ( 1496): --> SqlStateManager.applyUpdates(), field = iD.
    [22/Jul/2003:23:35:54] FINEST ( 1496): iD = 1.
    [22/Jul/2003:23:35:54] FINEST ( 1496): NullSemaphore.release() for PersistenceManagerImpl.cacheLock.
    [22/Jul/2003:23:35:54] FINEST ( 1496): NullSemaphore.acquire() for SQLStateManager.
    [22/Jul/2003:23:35:54] FINEST ( 1496): loginName = root.
    [22/Jul/2003:23:35:54] FINEST ( 1496): marking local field loginName as present.
    [22/Jul/2003:23:35:54] FINEST ( 1496): password = root.
    [22/Jul/2003:23:35:54] FINEST ( 1496): marking local field password as present.
    [22/Jul/2003:23:35:54] FINEST ( 1496): firstName = super user.
    [22/Jul/2003:23:35:54] FINEST ( 1496): marking local field firstName as present.
    [22/Jul/2003:23:35:54] FINEST ( 1496): lastName = null.
    [22/Jul/2003:23:35:54] FINEST ( 1496): marking local field lastName as present.
    [22/Jul/2003:23:35:54] FINEST ( 1496): email = root@expen.
    [22/Jul/2003:23:35:54] FINEST ( 1496): marking local field email as present.
    [22/Jul/2003:23:35:54] FINEST ( 1496): address1 = xxx .
    [22/Jul/2003:23:35:54] FINEST ( 1496): marking local field address1 as present.
    [22/Jul/2003:23:35:54] FINEST ( 1496): address2 = xxx .
    [22/Jul/2003:23:35:54] FINEST ( 1496): marking local field address2 as present.
    [22/Jul/2003:23:35:54] FINEST ( 1496): postalCode = 12345 .
    [22/Jul/2003:23:35:54] FINEST ( 1496): marking local field postalCode as present.
    [22/Jul/2003:23:35:54] FINEST ( 1496): city = xxxx .
    [22/Jul/2003:23:35:54] FINEST ( 1496): marking local field city as present.
    [22/Jul/2003:23:35:54] FINEST ( 1496): country = usa .
    [22/Jul/2003:23:35:54] FINEST ( 1496): marking local field country as present.
    [22/Jul/2003:23:35:54] FINEST ( 1496): state = ca .
    [22/Jul/2003:23:35:54] FINEST ( 1496): marking local field state as present.
    [22/Jul/2003:23:35:54] FINEST ( 1496): accountStatus = null.
    [22/Jul/2003:23:35:54] FINEST ( 1496): marking local field accountStatus as present.
    [22/Jul/2003:23:35:54] FINEST ( 1496): convertValue: 7/22/03 11:07 PM From: java.sql.Timestamp To: class java.lang.Long.
    [22/Jul/2003:23:35:54] FINEST ( 1496): createDate = 7/22/03 11:07 PM.
    [22/Jul/2003:23:35:54] FINEST ( 1496): NullSemaphore.release() for SQLStateManager.
    [22/Jul/2003:23:35:54] FINEST ( 1496): --- TransactionImpl.releaseConnection(): TX optimistic: false Inside Commit: false referenceCount: 0 for com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@12a585c.
    [22/Jul/2003:23:35:54] FINEST ( 1496): --- TransactionImpl.closeConnection() com.sun.enterprise.resource.JdbcXAConnection$JdbcConnection@13974ba for com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@12a585c.
    [22/Jul/2003:23:35:54] FINEST ( 1496): ---PersistenceManagerImpl.popCurrentWrapper() > current: com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerWrapper@2606b8 prev: null.
    [22/Jul/2003:23:35:54] FINE ( 1496): Exception in forceDestroyBean()
    java.lang.IllegalStateException: Primary key not available
         at com.sun.ejb.containers.EntityContextImpl.getPrimaryKey(EntityContextImpl.java:157)
         at com.sun.ejb.containers.EntityContainer.forceDestroyBean(EntityContainer.java:1252)
         at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:1792)
         at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:1608)
         at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:529)
         at com.expense.ejb.entity.container.UserBean1689033004_ConcreteImpl_LocalHomeImpl.findAll(UserBean1689033004_ConcreteImpl_LocalHomeImpl.java:133)
         at jasper.usertest_jsp._jspService(_usertest_jsp.java:74)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:552)
         at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:368)
         at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
         at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
         at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
         at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)
    [22/Jul/2003:23:35:54] FINEST ( 1496): Thread.currentThread()Tran[  Transaction:
    status = STATUS_ACTIVE
    Transaction Object = Transaction@17774593
    threads = 1
    ].afterCompletion: status = STATUS_ACTIVE, sync = null, STATUS_ROLLEDBACK for com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@12a585c.
    [22/Jul/2003:23:35:54] FINEST ( 1496): Thread[service-j2ee,5,main] Tran[   Transaction:
    status = STATUS_ACTIVE
    Transaction Object = Transaction@17774593
    threads = 1
    ].setStatus: STATUS_ACTIVE => STATUS_ROLLING_BACK for com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@12a585c.
    [22/Jul/2003:23:35:54] FINEST ( 1496): Thread[service-j2ee,5,main] Tran[   Transaction:
    status = STATUS_ROLLING_BACK
    Transaction Object = Transaction@17774593
    threads = 1
    ].internalRollback:status = STATUS_ROLLING_BACK ,txType: CMT for com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@12a585c.
    [22/Jul/2003:23:35:54] FINEST ( 1496): Thread[service-j2ee,5,main] Tran[   Transaction:
    status = STATUS_ROLLING_BACK
    Transaction Object = Transaction@17774593
    threads = 1
    ].setStatus: STATUS_ROLLING_BACK => STATUS_ROLLEDBACK for com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@12a585c.
    [22/Jul/2003:23:35:54] FINEST ( 1496): ---PersistenceManagerImpl.afterCompletion() process: true.
    [22/Jul/2003:23:35:54] FINEST ( 1496): Thread[service-j2ee,5,main] Tran[   Transaction:
    status = STATUS_ROLLEDBACK
    Transaction Object = Transaction@17774593
    threads = 1
    ].forget:status = STATUS_ROLLEDBACK ,txType: CMT for com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@12a585c.
    [22/Jul/2003:23:35:54] FINEST ( 1496): ---SQLPersistenceManagerFactory.releasePersistenceManager() PM:com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@12a585c for JTA Tx: com.sun.ejb.containers.PMTransactionImpl@2.
    [22/Jul/2003:23:35:54] FINEST ( 1496): ---SQLPersistenceManagerFactory.releasePersistenceManager() PM:com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl@12a585c for JTA Tx: null.
    [22/Jul/2003:23:35:54] FINEST ( 1496): <--SQLPersistenceManagerFactory.returnToPool().
    [22/Jul/2003:23:35:54] FINE ( 1496): EJB5018: Some unmapped exception occurred : [{0}]
    javax.ejb.EJBException: nested exception is: java.lang.ClassCastException
    java.lang.ClassCastException
         at com.expense.ejb.entity.container.UserBean1689033004_JDOState.jdoSetField(UserBean1689033004_JDOState.java:969)
         at com.sun.jdo.spi.persistence.support.sqlstore.model.FieldDesc.setValue(FieldDesc.java:337)
         at com.sun.jdo.spi.persistence.support.sqlstore.ResultDesc.setFields(ResultDesc.java:749)
         at com.sun.jdo.spi.persistence.support.sqlstore.ResultDesc.getResult(ResultDesc.java:635)
         at com.sun.jdo.spi.persistence.support.sqlstore.SQLStoreManager.executeQuery(SQLStoreManager.java:648)
         at com.sun.jdo.spi.persistence.support.sqlstore.SQLStoreManager.retrieve(SQLStoreManager.java:500)
         at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl.retrieve(PersistenceManagerImpl.java:989)
         at com.sun.jdo.spi.persistence.support.sqlstore.query.QueryImpl.doExecute(QueryImpl.java:634)
         at com.sun.jdo.spi.persistence.support.sqlstore.query.QueryImpl.execute(QueryImpl.java:455)
         at com.expense.ejb.entity.container.UserBean1689033004_ConcreteImpl.ejbFindAll(UserBean1689033004_ConcreteImpl.java:1249)
         at com.expense.ejb.entity.container.UserBean1689033004_ConcreteImpl_LocalHomeImpl.findAll(UserBean1689033004_ConcreteImpl_LocalHomeImpl.java:128)
         at jasper.usertest_jsp._jspService(_usertest_jsp.java:74)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:552)
         at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:368)
         at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
         at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
         at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
         at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)
    javax.ejb.EJBException: nested exception is: java.lang.ClassCastException
         at com.sun.ejb.containers.BaseContainer.processSystemException(BaseContainer.java:1893)
         at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:1796)
         at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:1608)
         at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:529)
         at com.expense.ejb.entity.container.UserBean1689033004_ConcreteImpl_LocalHomeImpl.findAll(UserBean1689033004_ConcreteImpl_LocalHomeImpl.java:133)
         at jasper.usertest_jsp._jspService(_usertest_jsp.java:74)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:552)
         at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:368)
         at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
         at org.apache.catalina.core.StandardWrapperValve.acces
    [22/Jul/2003:23:35:54] FINE ( 1496): EJB5019: Some application or system exception occurred : [UserBean]
    [22/Jul/2003:23:35:54] FINE ( 1496):
    [22/Jul/2003:23:35:55] SEVERE ( 1496): StandardWrapperValve[usertest]: Servlet.service() for servlet usertest threw exception
    javax.ejb.EJBException: nested exception is: java.lang.ClassCastException
    java.lang.ClassCastException
         at com.expense.ejb.entity.container.UserBean1689033004_JDOState.jdoSetField(UserBean1689033004_JDOState.java:969)
         at com.sun.jdo.spi.persistence.support.sqlstore.model.FieldDesc.setValue(FieldDesc.java:337)
         at com.sun.jdo.spi.persistence.support.sqlstore.ResultDesc.setFields(ResultDesc.java:749)
         at com.sun.jdo.spi.persistence.support.sqlstore.ResultDesc.getResult(ResultDesc.java:635)
         at com.sun.jdo.spi.persistence.support.sqlstore.SQLStoreManager.executeQuery(SQLStoreManager.java:648)
         at com.sun.jdo.spi.persistence.support.sqlstore.SQLStoreManager.retrieve(SQLStoreManager.java:500)
         at com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerImpl.retrieve(PersistenceManagerImpl.java:989)
         at com.sun.jdo.spi.persistence.support.sqlstore.query.QueryImpl.doExecute(QueryImpl.java:634)
         at com.sun.jdo.spi.persistence.support.sqlstore.query.QueryImpl.execute(QueryImpl.java:455)
         at com.expense.ejb.entity.container.UserBean1689033004_ConcreteImpl.ejbFindAll(UserBean1689033004_ConcreteImpl.java:1249)
         at com.expense.ejb.entity.container.UserBean1689033004_ConcreteImpl_LocalHomeImpl.findAll(UserBean1689033004_ConcreteImpl_LocalHomeImpl.java:128)
         at jasper.usertest_jsp._jspService(_usertest_jsp.java:74)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:552)
         at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:368)
         at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
         at org.apache.catalina.core.StandardWrapperValve.access$000(StandardWrapperValve.java:118)
         at org.apache.catalina.core.StandardWrapperValve$1.run(StandardWrapperValve.java:278)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:274)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:203)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:505)
         at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:157)
         at com.iplanet.ias.web.WebContainer.service(WebContainer.java:598)
    javax.ejb.EJBException: nested exception is: java.lang.ClassCastException
         at com.sun.ejb.containers.BaseContainer.processSystemException(BaseContainer.java:1893)
         at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:1796)
         at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:1608)
         at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:529)
         at com.expense.ejb.entity.container.UserBean1689033004_ConcreteImpl_LocalHomeImpl.findAll(UserBean1689033004_ConcreteImpl_LocalHomeImpl.java:133)
         at jasper.usertest_jsp._jspService(_usertest_jsp.java:74)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.iplanet.ias.web.jsp.JspServlet$JspServletWrapper.service(JspServlet.java:552)
         at com.iplanet.ias.web.jsp.JspServlet.serviceJspFile(JspServlet.java:368)
         at com.iplanet.ias.web.jsp.JspServlet.service(JspServlet.java:287)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:720)
         at org.apache.c
    [22/Jul/2003:23:36:15] FINE ( 1496): SingleSignOn[server1]: SSO expiration started. Current entries: 0
    [22/Jul/2003:23:36:15] FINE ( 1496): SingleSignOn[server1]: SSO cache will expire 0 entries.
    [22/Jul/2003:23:37:15] FINE ( 1496): SingleSignOn[server1]: SSO expiration started. Current entries: 0
    [22/Jul/2003:23:37:15] FINE ( 1496): SingleSignOn[server1]: SSO cache will expire 0 entries.
    following is the ejb-jar.xml part of this entity bean
    <entity>
    <ejb-name>UserBean</ejb-name>
    <local-home>com.expense.ejb.entity.container.LocalUserHome</local-home>
    <local>com.expense.ejb.entity.container.LocalUser</local>
    <ejb-class>com.expense.ejb.entity.container.UserBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.Integer</prim-key-class>
    <reentrant>False</reentrant>
    <cmp-version>2.x</cmp-version>
    <abstract-schema-name>userSchema</abstract-schema-name>
    <cmp-field>
    <field-name>loginName</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>password</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>iD</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>firstName</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>email</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>lastName</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>address1</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>address2</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>postalCode</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>city</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>state</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>country</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>accountStatus</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>createdBy</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>modifiedBy</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>modifyDate</field-name>
    </cmp-field>
    <cmp-field>
    <field-name>createDate</field-name>
    </cmp-field>
    <primkey-field>iD</primkey-field>
    <query>
    <query-method>
    <method-name>findByLoginName</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </query-method>
    <ejb-ql> select object(l) from userSchema l WHERE l.loginName = ?1</ejb-ql>
    </query>
    <query>
    <query-method>
    <method-name>findByCreateDate</method-name>
    <method-params>
    <method-param>java.lang.Long</method-param>
    </method-params>
    </query-method>
    <ejb-ql>select object(l) from userSchema l where l.createDate = ?1 </ejb-ql>
    </query>
    <query>
    <query-method>
    <method-name>findByModifyDate</method-name>
    <method-params>
    <method-param>java.lang.Long</method-param>
    <method-param>java.lang.Long</method-param>
    </method-params>
    </query-method>
    <ejb-ql>select object(l) from userSchema as l where l.modifyDate between ?1 and ?2</ejb-ql>
    </query>
    <query>
    <query-method>
    <method-name>findAll</method-name>
    <method-params>
    </method-params>
    </query-method>
    <ejb-ql>SELECT OBJECT(L) FROM userSchema L </ejb-ql>
    </query>
    </entity>
    </enterprise-beans>
    <assembly-descriptor>
    <container-transaction>
    <method>
    <ejb-name>UserBean</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    can anyone suggest me on howto solve this problem

    I suspect that there is a type mismatch somewhere in the CMP fields (there is a ClassCastException in the trace).
    Please check the generated code (UserBean1689033004_JDOState.java line 969) that can be found under
    <appserver-install>/domains/domain1/server1/generated/ejb/j2ee-apps/<app-name>/<packages...>/
    Thank you,
    -marina

  • Java.lang.IllegalStateException when transferring XmlBean objects

    Hi,
    I've been testing Coherence 3.2 build 351 and run into a problem.
    When trying to send/retrieve objects (that extend XmlBean) to/from Jboss and Tomcat we've been receiving the following exception:
    java.lang.IllegalStateException: unread block data
         java.io.ObjectInputStream$BlockDataInputStream.setBlockDataMode(ObjectInputStream.java:2328)
         java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1330)
         java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
         java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
         java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
         java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
         java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
         java.rmi.MarshalledObject.get(MarshalledObject.java:135)
         org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxyHA.invoke(JRMPInvokerProxyHA.java:177)
         org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:163)
         org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:103)
         org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
         org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
         org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:97)
         org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:91)
         $Proxy5.getAllBusinessRules(Unknown Source)
         com.<removed>.dime.delegate.BusinessRuleDelegate.getAllBusinessRules(BusinessRuleDelegate.java:177)
         org.apache.jsp.viewbusinessrules_jsp._jspService(org.apache.jsp.viewbusinessrules_jsp:98)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)After digging around on the internet it appears that this is a serialization issue.
    We haven't seen this in any previous releases of Coherence, so I suspect it is something related to 3.2 (we haven't made any code changes ourselves in the affected classes). We also haven't seen it in relation to the cluster service, only when sending between JBoss and Tomcat.
    I am currently implementing a 'workaround' where we convert the XmlBean objects into transfer objects (POJOs) and send those over the network instead. (I quoted 'workaround' as we always intended to do this, just hadn't got around to it yet.)
    It isn't urgent from our perspective (if indeed there is a problem) as we'll have the 'workaround' in place shortly, but I thought I'd let you know.
    Let me know if there is any other information I can provide.
    Rgds,
    Randal.

    Hi Gene,
    Frankly, I'm a bit confusedMe too. ;)
    What makes you think it has anything to do with a new Coherence versionA few things:
    - I'd not seen the problem before upgrading to Coherence 3.2
    - The methods that return this error are transferring objects that extend XmlBean, no methods that transfer objects that implement Serializable throw this exception
    - After implementing a transfer object for one of the XmlBean objects (so that the Serializable transfer object is transferred, rather than the XmlBean object) the problem disappeared. Although other XmlBean objects continued to exhibit the same problem
    - After rolling back to Coherence 3.1 build 359 the problem didn't occur, then after rolling forward to 3.2 the problem returned, only for XmlBean objects.
    I appreciate the stack trace I posted probably doesn't help much, but it's the only one I've been able to obtain so far. :(
    It's also entirely possible that the problem is in Tomcat, JBoss or our own code, but I just find it weird that the problem occurs with one version of Coherence but not with another.
    I'm going to continue looking into this, see if I can find you some useful information or confirm that the problem is outside Coherence.
    Rgds,
    Randal.

  • Java.lang.IllegalStateException when submitting a form.

    Hi there,
    I'm pretty new with jsp pages & tomcat, please check the following code :
    <form action="validInput" method="POST">
    <input name="cpyName" />
    <input type="submit" value="submit" />
    </form>when submitting the form I get the following error :
    method HTTP POST is not supported by this URL
    If I switch the form method to GET, I get the following error :
    java.lang.IllegalStateException
         org.apache.coyote.tomcat5.CoyoteResponseFacade.sendError(CoyoteResponseFacade.java:325)
         javax.servlet.http.HttpServlet.doPost(HttpServlet.java:346)
         vra.Servlet2.doPost(Servlet2.java:24)
         vra.Servlet2.doGet(Servlet2.java:17)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Thanks to help.

    Please go through this resolved post:
    [http://forums.sun.com/thread.jspa?forumID=45&threadID=506192|http://forums.sun.com/thread.jspa?forumID=45&threadID=506192]
    Edited by: J4Java on Apr 29, 2009 2:54 AM

  • Java.lang.IllegalStateException when trying to load graphic from KM

    Hello,
    I'm currently facing the following problems.We have a bunch of SVG graphics in a KM-Repository which are displayed to the user. The graphics are embedded in a JSP file. In most of the cases this works fine, but for users with a low bandwith this does not work. An error message is written to the logfile which looks like that:
    serving request (-> 500) - java.lang.IllegalStateException: GET on
    http://ourserver.com/irj/go/km/docs/ourRepository/myGraphic.svg expected 377950 bytes, but got
    262144 bytes and wrote 196608 bytes. The exception message is: Write timeout. HTTP client read
    timeout or callback from dispatcher not received for [120000] milliseconds. -
    com.sap.engine.services.httpserver.exceptions.HttpIOException: Write timeout. HTTP client read
    timeout or callback from dispatcher not received for [120000] milliseconds.
         at com.sap.engine.services.httpserver.server.ResponseImpl.sendResponse(ResponseImpl.java:280)
         at com.sap.engine.services.servlets_jsp.server.runtime.client.ServletOutputStreamImpl.flush(ServletOutputStreamImpl.java:440)
         at com.sap.engine.services.servlets_jsp.server.runtime.client.ServletOutputStreamImpl.write(ServletOutputStreamImpl.java:234)
         at com.sapportals.wcm.protocol.webdav.server.WDGetHandler.copy(WDGetHandler.java:744)
         at com.sapportals.wcm.protocol.webdav.server.WDGetHandler.internalHandleWDGetHandler.java:691)
    at com.sapportals.wcm.protocol.webdav.server.WDGetHandler.handle(WDGetHandler.java:263)
         at com.sapportals.wcm.protocol.webdav.server.WDServlet.doGet(WDServlet.java:791)
         at com.sapportals.wcm.protocol.webdav.server.WDServlet.service(WDServlet.java:483)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)+
         at com.sapportals.wcm.portal.proxy.PCProxyServlet.service(PCProxyServlet.java:333)+
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) ...
    Some more facts:
    The problem occors on different graphics
    The values 262144 and 196608 (from but got 262144 bytes and wrote 196608 bytes) come up in most cases, but sometimes they vary. But all values have in common, that they are a multiple of 4096 (which is the setting of the parameter ServletsLongDataTransferCallbackSize.
    According to the SAP Notes 1014039 and 807000 I adapted some settings in our Testsystem:
    ServletsLongDataTransferCallbackSize: 1024 (which was set to 4096 before)
    ServletInputStreamTimeout: 1728000000 (which was set to 180000 before)
    ServletsLongDataTransferTimeout: 1728000000 (which was set to  120000 before)
    Unfortunatelly setting those parameters didn't fix the problem.
    Does anybody have a clue what I can do? And just for my understanding, what exactly does the parameter, that I have set, effect. The initial values of 180000 (3 Minutes) seem to be enough. Loading 377950 bytes should take much less that 3 Minutes even with a slow connection?
    Kind regards,
    dominik
    Edited by: Dominik Fried on Mar 30, 2009 1:34 PM
    Edited by: Dominik Fried on Mar 30, 2009 1:45 PM

    Hi,
    We are facing exactly the same issue with KM.
    Can anyone assist us?
    Thanks in advance,
    Regina

  • Java.lang.StringIndexOutOfBoundsException when trying to create a JDBC pool connection.

    Hi, I get a java.lang.StringIndexOutOfBoundsException when making a JDBC
    pool connection via the console of WLS 7.0. I use SQL Server 2000 in Win2K
    SP2 environment. Exactly the same configuration works perfectly in WinXP
    Pro. Can anyone advise me what might cause this problem? Thanks a lot.
    Log message
    ####<May 13, 2002 5:15:52 PM CEST> <Error> <JDBC> <abcdefgh> <vtsserver>
    <ExecuteThread: '1' for queue: '__weblogic_admin_html_queue'> <kernel
    identity> <> <001060> <Cannot startup connection pool
    "ejbTestConnectionPool" java.lang.StringIndexOutOfBoundsException: String
    index out of range: -1>
    Exception
    java.lang.NullPointerException
    at
    weblogic.management.console.utils.MBeans.getMBeanClassNameFor(MBeans.java:11
    53)
    at
    weblogic.management.console.actions.mbean.EditMBeanAction.getMBeanClass(Edit
    MBeanAction.java:210)
    at
    weblogic.management.console.actions.mbean.EditMBeanAction.getDialogTypeKey(E
    ditMBeanAction.java:188)
    at
    weblogic.management.console.actions.internal.InternalActionContext.setAction
    (InternalActionContext.java:158)
    at
    weblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
    rvlet.java:170)
    at
    weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
    let.java:85)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
    tStubImpl.java:945)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :332)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :242)
    at
    weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
    ebAppServletContext.java:5363)
    at
    weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
    r.java:721)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:3043)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2466)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
    --------------- nested within: ------------------
    weblogic.utils.NestedRuntimeException - with nested exception:
    [java.lang.NullPointerException]
    at
    weblogic.management.console.utils.MBeans.getMBeanClassNameFor(MBeans.java:11
    56)
    at
    weblogic.management.console.actions.mbean.EditMBeanAction.getMBeanClass(Edit
    MBeanAction.java:210)
    at
    weblogic.management.console.actions.mbean.EditMBeanAction.getDialogTypeKey(E
    ditMBeanAction.java:188)
    at
    weblogic.management.console.actions.internal.InternalActionContext.setAction
    (InternalActionContext.java:158)
    at
    weblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
    rvlet.java:170)
    at
    weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
    let.java:85)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
    tStubImpl.java:945)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :332)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :242)
    at
    weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
    ebAppServletContext.java:5363)
    at
    weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
    r.java:721)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:3043)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2466)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
    --------------- nested within: ------------------
    weblogic.management.console.actions.ActionException - with nested exception:
    [weblogic.utils.NestedRuntimeException - with nested exception:
    [java.lang.NullPointerException]]
    at weblogic.management.console.actions.ErrorAction.(ErrorAction.java:38)
    at
    weblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
    rvlet.java:190)
    at
    weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
    let.java:85)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
    tStubImpl.java:945)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :332)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :242)
    at
    weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
    ebAppServletContext.java:5363)
    at
    weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
    r.java:721)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:3043)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2466)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
    Current Date
    Mon May 13 17:15:52 CEST 2002
    Console Release Build
    null
    Console Build
    null
    Server Release Build
    7.0.0.0
    Server Build
    WebLogic Server 7.0 Thu Apr 25 17:16:22 PDT 2002 180709
    All Server Product Versions
    WebLogic Server 7.0 Thu Apr 25 17:16:22 PDT 2002 180709
    WebLogic XMLX Module 7.0 Thu Apr 25 17:26:07 PDT 2002 180709
    Request Info
    Protocol: HTTP/1.1
    ServerName: localhost
    ServerPort: 7001
    Secure: false
    ContextPath: /console
    ServletPath: /common/error.jsp
    QueryString:
    MBean=vtsdomain%3AName%3DejbTestConnectionPool%2CType%3DJDBCConnectionPool
    PathInfo: null
    PathTranslated: null
    RequestURI: /console/common/error.jsp
    AuthType: null
    ContentType: application/x-www-form-urlencoded
    CharacterEncoding: null
    Locale: en_US
    Method: POST
    Session:
    weblogic.servlet.internal.session.MemorySessionData@1926bd
    RequestedSessionId:
    8fMghRfnkcOls1wsW0vIRS8PuQKquWoYcnt6ciUG5uznDJiLr1ZA!-37849198!1021299872710
    RequestedSessionIdFromCookie: true
    RequestedSessionIdFromURL: false
    UserPrincipal: vts
    RemoteUser: vts
    RemoteAddr: 127.0.0.1
    RemoteHost: 127.0.0.1
    Parameters
    MBean = vtsdomain:Name=ejbTestConnectionPool,Type=JDBCConnectionPool
    chosen_wl_control_weblogic.management.configuration.JDBCConnectionPoolMBean.
    Targets-Server = vtsdomain:Name=vtsserver,Type=Server
    weblogic.console.submit_form = dataposted
    wl_control_weblogic.management.configuration.JDBCConnectionPoolMBean.Targets
    -Server = vtsdomain:Name=vtsserver,Type=Server
    Attributes
    wlinternalaction =
    weblogic.management.console.actions.internal.InternalActionContext@4372d8
    java.util.Locale = en_US weblogic.management.console.catalog.Catalog =
    weblogic.management.console.catalog.XmlCatalog@3ca759
    weblogic.management.console.helpers.BrowserHelper = User-Agent: Mozilla/4.0
    (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705) IE: true Netscape:
    false Supported: true JavscriptHrefs: false TableCellClick: true
    DocumentReloadedOnResize: false DropdownStretchable: true CellSpacingBlank:
    false EmptyCellBlank: false ImgOnclickSupported: true TableBorderFancy: true
    PartialToWideTables: false DisabledControlSupported: true
    weblogic.management.console.helpers.DebugHelper =
    weblogic.management.console.helpers.DebugHelper@16ed83
    weblogic.management.console.helpers.UnitsHelper =
    weblogic.management.console.helpers.UnitsHelper@ae2d9
    weblogic.management.console.helpers.UrlHelper =
    weblogic.management.console.helpers.UrlHelper@28fd41
    Headers
    Accept = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
    application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword,
    */* Accept-Encoding = gzip, deflate Accept-Language = en-us Cache-Control =
    no-cache Connection = Keep-Alive Content-Length = 304 Content-Type =
    application/x-www-form-urlencoded Cookie =
    ADMINCONSOLESESSION=8fMghRfnkcOls1wsW0vIRS8PuQKquWoYcnt6ciUG5uznDJiLr1ZA!-37
    849198 Host = localhost:7001 Referer =
    http://localhost:7001/console/actions/mbean/DoEditMBeanAction?MBean=vtsdomai
    n%3AName%3DejbTestConnectionPool%2CType%3DJDBCConnectionPool User-Agent =
    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705)
    BrowserInfo
    User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0;
    .NET CLR 1.0.3705)
    IE: true
    Netscape: false
    Supported: true
    JavscriptHrefs: false
    TableCellClick: true
    DocumentReloadedOnResize: false
    DropdownStretchable: true
    CellSpacingBlank: false
    EmptyCellBlank: false
    ImgOnclickSupported: true
    TableBorderFancy: true
    PartialToWideTables: false
    DisabledControlSupported: true

    Thanks, Joe. It works now!
    "Joseph Weinstein" <[email protected]> wrote in message
    news:[email protected]...
    >
    Vladimir wrote:
    Here are the definitions of the two pools - both encounter the same
    problem:
    <JDBCConnectionPool DriverName="weblogic.jdbc.mssqlserver4.Driver"
    Name="ejbTestConPool"
    Properties="db=ejbTest;user=sa;port=1433;password=test;server=localhost"
    TestConnectionsOnRelease="true" TestConnectionsOnReserve="true"
    TestTableName="accounts" URL="weblogic:jdbc:mssqlserver4"/>yep, as I thought. A JDBC URL always starts with 'jdbc'. It should be
    'jdbc:weblogic:mssqlserver4'. Also, make TestConnectionsOnRelease="false"
    (it's a waste of cycles).
    Joe
    <JDBCConnectionPool DriverName="weblogic.jdbc.mssqlserver4.Driver"
    Name="ejbTestConnectionPool" Password="{3DES}sCmdDszi61I="
    Properties="user=sa;db=ejbTest;port=1433;password=test;server=localhost"
    Targets="vtsserver" TestTableName="accounts"
    URL="weblogic:jdbc:mssqlserver4"
    XAPassword="{3DES}sCmdDszi61I="/>
    >>
    Vladimir
    "Joseph Weinstein" <[email protected]> wrote in message
    news:[email protected]...
    show us your pool definitions from the config.xml file. There's
    probably a
    problem
    with the URL or properties.
    Joe
    Vladimir wrote:
    Hi, I get a java.lang.StringIndexOutOfBoundsException when making a
    JDBC
    pool connection via the console of WLS 7.0. I use SQL Server 2000in
    Win2K
    SP2 environment. Exactly the same configuration works perfectly in
    WinXP
    Pro. Can anyone advise me what might cause this problem? Thanks alot.
    >>>>
    Log message
    ####<May 13, 2002 5:15:52 PM CEST> <Error> <JDBC> <abcdefgh><vtsserver>
    <ExecuteThread: '1' for queue: '__weblogic_admin_html_queue'><kernel
    identity> <> <001060> <Cannot startup connection pool
    "ejbTestConnectionPool" java.lang.StringIndexOutOfBoundsException:String
    index out of range: -1>
    Exception
    java.lang.NullPointerException
    at
    weblogic.management.console.utils.MBeans.getMBeanClassNameFor(MBeans.java:11
    53)
    at
    weblogic.management.console.actions.mbean.EditMBeanAction.getMBeanClass(Edit
    MBeanAction.java:210)
    at
    weblogic.management.console.actions.mbean.EditMBeanAction.getDialogTypeKey(E
    ditMBeanAction.java:188)
    at
    weblogic.management.console.actions.internal.InternalActionContext.setAction
    (InternalActionContext.java:158)
    at
    weblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
    rvlet.java:170)
    at
    weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
    let.java:85)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
    tStubImpl.java:945)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :332)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :242)
    at
    weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
    ebAppServletContext.java:5363)
    at
    weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
    r.java:721)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:3043)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2466)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
    --------------- nested within: ------------------
    weblogic.utils.NestedRuntimeException - with nested exception:
    [java.lang.NullPointerException]
    at
    weblogic.management.console.utils.MBeans.getMBeanClassNameFor(MBeans.java:11
    56)
    at
    weblogic.management.console.actions.mbean.EditMBeanAction.getMBeanClass(Edit
    MBeanAction.java:210)
    at
    weblogic.management.console.actions.mbean.EditMBeanAction.getDialogTypeKey(E
    ditMBeanAction.java:188)
    at
    weblogic.management.console.actions.internal.InternalActionContext.setAction
    (InternalActionContext.java:158)
    at
    weblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
    rvlet.java:170)
    at
    weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
    let.java:85)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
    tStubImpl.java:945)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :332)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :242)
    at
    weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
    ebAppServletContext.java:5363)
    at
    weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
    r.java:721)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:3043)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2466)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
    --------------- nested within: ------------------
    weblogic.management.console.actions.ActionException - with nestedexception:
    [weblogic.utils.NestedRuntimeException - with nested exception:
    [java.lang.NullPointerException]]
    atweblogic.management.console.actions.ErrorAction.(ErrorAction.java:38)
    at
    weblogic.management.console.actions.internal.ActionServlet.doAction(ActionSe
    rvlet.java:190)
    at
    weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServ
    let.java:85)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
    tStubImpl.java:945)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :332)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
    :242)
    at
    weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
    ebAppServletContext.java:5363)
    at
    weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
    r.java:721)
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
    ntext.java:3043)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
    :2466)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
    Current Date
    Mon May 13 17:15:52 CEST 2002
    Console Release Build
    null
    Console Build
    null
    Server Release Build
    7.0.0.0
    Server Build
    WebLogic Server 7.0 Thu Apr 25 17:16:22 PDT 2002 180709
    All Server Product Versions
    WebLogic Server 7.0 Thu Apr 25 17:16:22 PDT 2002 180709
    WebLogic XMLX Module 7.0 Thu Apr 25 17:26:07 PDT 2002 180709
    Request Info
    Protocol: HTTP/1.1
    ServerName: localhost
    ServerPort: 7001
    Secure: false
    ContextPath: /console
    ServletPath: /common/error.jsp
    QueryString:
    MBean=vtsdomain%3AName%3DejbTestConnectionPool%2CType%3DJDBCConnectionPool
    PathInfo: null
    PathTranslated: null
    RequestURI: /console/common/error.jsp
    AuthType: null
    ContentType: application/x-www-form-urlencoded
    CharacterEncoding: null
    Locale: en_US
    Method: POST
    Session:
    weblogic.servlet.internal.session.MemorySessionData@1926bd
    RequestedSessionId:
    8fMghRfnkcOls1wsW0vIRS8PuQKquWoYcnt6ciUG5uznDJiLr1ZA!-37849198!1021299872710
    RequestedSessionIdFromCookie: true
    RequestedSessionIdFromURL: false
    UserPrincipal: vts
    RemoteUser: vts
    RemoteAddr: 127.0.0.1
    RemoteHost: 127.0.0.1
    Parameters
    MBean = vtsdomain:Name=ejbTestConnectionPool,Type=JDBCConnectionPool
    chosen_wl_control_weblogic.management.configuration.JDBCConnectionPoolMBean.
    Targets-Server = vtsdomain:Name=vtsserver,Type=Server
    weblogic.console.submit_form = dataposted
    wl_control_weblogic.management.configuration.JDBCConnectionPoolMBean.Targets
    -Server = vtsdomain:Name=vtsserver,Type=Server
    Attributes
    wlinternalaction =
    weblogic.management.console.actions.internal.InternalActionContext@4372d8
    java.util.Locale = en_US weblogic.management.console.catalog.Catalog=
    weblogic.management.console.catalog.XmlCatalog@3ca759
    weblogic.management.console.helpers.BrowserHelper = User-Agent:Mozilla/4.0
    (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.0.3705) IE: trueNetscape:
    false Supported: true JavscriptHrefs: false TableCellClick: true
    DocumentReloadedOnResize: false DropdownStretchable: trueCellSpacingBlank:
    false EmptyCellBlank: false ImgOnclickSupported: true
    TableBorderFancy:
    true
    PartialToWideTables: false DisabledControlSupported: true
    weblogic.management.console.helpers.DebugHelper =
    weblogic.management.console.helpers.DebugHelper@16ed83
    weblogic.management.console.helpers.UnitsHelper =
    weblogic.management.console.helpers.UnitsHelper@ae2d9
    weblogic.management.console.helpers.UrlHelper =
    weblogic.management.console.helpers.UrlHelper@28fd41
    Headers
    Accept = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
    application/vnd.ms-excel, application/vnd.ms-powerpoint,application/msword,
    */* Accept-Encoding = gzip, deflate Accept-Language = en-usCache-Control =
    no-cache Connection = Keep-Alive Content-Length = 304 Content-Type =
    application/x-www-form-urlencoded Cookie =
    ADMINCONSOLESESSION=8fMghRfnkcOls1wsW0vIRS8PuQKquWoYcnt6ciUG5uznDJiLr1ZA!-37
    849198 Host = localhost:7001 Referer =
    http://localhost:7001/console/actions/mbean/DoEditMBeanAction?MBean=vtsdomai
    n%3AName%3DejbTestConnectionPool%2CType%3DJDBCConnectionPoolUser-Agent
    =
    Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR
    1.0.3705)
    BrowserInfo
    User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; WindowsNT
    5.0;
    .NET CLR 1.0.3705)
    IE: true
    Netscape: false
    Supported: true
    JavscriptHrefs: false
    TableCellClick: true
    DocumentReloadedOnResize: false
    DropdownStretchable: true
    CellSpacingBlank: false
    EmptyCellBlank: false
    ImgOnclickSupported: true
    TableBorderFancy: true
    PartialToWideTables: false
    DisabledControlSupported: true

  • Java.lang.IllegalArgumentException when trying to create debug setting

    Hello all,
    I have just performed an install of EHP1 on a W2K3 EE machine, and I'm trying to setup to debug my Web Dynpro app on the Java server.  I have defined the system instance correctly SAP AS Java in the Window --> Preferences --> SAP AS Java section. My Web Dynpro app deploys and runs without problems.
    However, when I use Run -> Open Debug Dialog and then click on "Run on Server" and use the "New launch configuration" option, I get a message box stating "java.lang.IllegalArgumentException (check log file)".
    So I switch to Plug-in Development perspective and take a look at the log file. The exception appears in the list of messages; double-clicking the exception provides this data:
    Severity: Error
    Message: Problems occurred when invoking code from plug-in: "org.eclipse.jface".
    Exception Stack Trace:
    java.lang.IllegalArgumentException
         at org.eclipse.wst.server.core.internal.ResourceManager.getServer(ResourceManager.java:758)
         at org.eclipse.wst.server.core.ServerCore.findServer(ServerCore.java:286)
         at org.eclipse.wst.server.ui.internal.RunOnServerLaunchConfigurationTab.initializeFrom(RunOnServerLaunchConfigurationTab.java:105)
         at org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup.initializeFrom(AbstractLaunchConfigurationTabGroup.java:86)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupWrapper.initializeFrom(LaunchConfigurationTabGroupWrapper.java:143)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.displayInstanceTabs(LaunchConfigurationTabGroupViewer.java:784)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer$8.run(LaunchConfigurationTabGroupViewer.java:658)
         at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.inputChanged(LaunchConfigurationTabGroupViewer.java:676)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.setInput0(LaunchConfigurationTabGroupViewer.java:637)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.setInput(LaunchConfigurationTabGroupViewer.java:613)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.handleLaunchConfigurationSelectionChanged(LaunchConfigurationsDialog.java:975)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog$4.selectionChanged(LaunchConfigurationsDialog.java:570)
         at org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:842)
         at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
         at org.eclipse.core.runtime.Platform.run(Platform.java:857)
         at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
         at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:199)
         at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:840)
         at org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(StructuredViewer.java:1153)
         at org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected(StructuredViewer.java:1178)
         at org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrategy.java:250)
         at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:244)
         at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java:418)
         at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
         at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:129)
         at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3659)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3296)
         at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
         at org.eclipse.jface.window.Window.open(Window.java:796)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.open(LaunchConfigurationsDialog.java:1133)
         at org.eclipse.debug.ui.DebugUITools$1.run(DebugUITools.java:387)
         at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
         at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:391)
         at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:333)
         at org.eclipse.debug.ui.actions.OpenLaunchDialogAction.run(OpenLaunchDialogAction.java:82)
         at org.eclipse.debug.ui.actions.OpenLaunchDialogAction.runWithEvent(OpenLaunchDialogAction.java:90)
         at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:246)
         at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
         at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
         at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
         at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
         at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
         at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
         at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
         at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
         at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
         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:585)
         at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
         at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
         at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
    Session Data:
    eclipse.buildId=M20080221-1800
    I've done some hunting around the internet for this error and I did find a problem that looks quite similar under a JBOSS forum: https://jira.jboss.org/jira/browse/JBIDE-3689 ("Creating new run configuration of type Run in Server fails with exception, jbds eclipse.buildId=1.1.0.GA"). The information presented there is almost exactly what I'm seeing:
    <cut>
    Steps to Recreate:
    1. From Run menu, select "Open Run Dialog..." or "Open Debug Dialog..."
    2. Right click on "Run on Server"
    3. Select "New"
    What you see is an "Error" dialog of Reason "java.lang.IllegalArgumentException".
    The error log records the following:
    Error
    Thu Jan 29 08:13:48 PST 2009
    Problems occurred when invoking code from plug-in: "org.eclipse.jface".
    </cut>
    In the JBOSS case, the response is:
    <cut>
    It is is a known bug in WTP 2.x and in WTP 3.x this option does not exist anymore thus you should just use Run As -> Run in Server.
    Marked as out of date since latest version of WTP 3 has the fix.
    </cut>
    I have the EHP1 installed on a couple other servers where this is not happening. Anyone run into this before?
    Alternatively, anyone know how I can check the WTP of the SAP-specific eclipse released as the EHP1 developer studio?
    Thanks very much,
    Andy

    Hi Andy,
    I think there is a very siple proces which you need to follow for debug. Please have a look:-
    Please check you mentioned the correct server and instance name. As you are saying that all you applications are running fine therefore I think you would have mentioned all the required parameters correctly.
    After checking all these things, follow the steps below:-
    1) From the menu in NWDS -> Click on the Debug symbol. Select "Open Debug Dialoug".
    2) Right click on the "Remote Java Application" and select New.
    3) Clickon the Source tab. Check whether you application is included under the Defualt folder. Only those projects will be debugged which are under this folder.
    4) If you application is not there. Click on Add-> Java Project -> Select your Project - > OK. Doing this will add your project in debug instance.
    5) Go to Connect tab. Mention the Host name (Same as server name you have mentioned under Window --> Preferences --> SAP AS Java ) AND the Message server port. Please note that this server port is diffrent from the http port.
    6) Just click on Debug.
    I hope after all these steps debug should work. If not please revert back.
    Thanks and Regards,
    Pravesh

  • Java.lang.NoClassDefFoundError when trying to create my first EJB

    Hi All,
    I am trying to learn EJB's on my own. I installed the WebLogic Server Trial version and then wrote the Home Interface, Component Interface and the Bean Class. Now I started the WebLogic server and tried and create the deployment descriptor.. I am getting the error below even after I set the classpath. Is there any other correct way to set the classpath?
    C:\bea\jdk150_04\bin\ejb\demo>set classpath=C:\bea\weblogic92\server\lib\weblogic.jar;
    C:\bea\jdk150_04\bin\ejb\demo>java weblogic.ejb.utils.DDCreator -dir dploymentDescriptor.txt
    Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/ejb/utils/DDCreator
    Please help me.
    Thanks.

    If you're just learning EJBs now I'd recommend you start with the EJB 3.0 API. It's much
    easier to use than past releases and otherwise much of what you learn (e.g. Home/Component
    interfaces) are not emphasized in EJB 3.0. You can start with the EJB chapters in the
    Java EE 5 Tutorial :
    http://java.sun.com/javaee/5/docs/tutorial/doc/
    We have some additional resources here :
    https://glassfish.dev.java.net/javaee5/ejb/
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Java.lang.NoClassDefFoundError when trying to create JNI Java object

    Can anyone give some clue for the following errors:
    //// JSP code:
    <%
    UIAccessCheckNat access = new UIAccessCheckNat();
    int nbrwdSifd = access.checkNbrwsSfid();
    %>
    //// Java code:
    UIAccessCheckNat.java
    package test.JS;
    public class UIAccessCheckNat
    public UIAccessCheckNat()
    //Empty constructor
    // this method check if NBRWS is turned on
    public int checkNbrws()
    int rc = 0;
    return rc;
    // Load native library.
    static
    System.loadLibrary("UIAccessCheckNat");
    ////The JNI c library code:
    #include <string.h>
    #include <stdio.h>
    #include <jni.h>
    #include "UIAccessCheckNat.h"
    /*ARGSUSED*/
    JNIEXPORT jint JNICALL Java_test_JS_UIAccessCheckNat_nativeCheck
    (JNIEnv * env, jobject jthis, jint id)
    jint rc=1;
    return rc;
    Testing result:
    1. Sunny day case, everything is OK if don't load the library (comment the following line and recompile the java class)
    // Load native library.
    // static
    // System.loadLibrary("UIAccessCheckNat");
    2. Rainy day case: wen put the above lines in the java class and recompile the Java class and load the JSP again, it cause error as following:
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException
         at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867)
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800)
         at org.apache.jsp.Login_jsp._jspService(Login_jsp.java:434)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    root cause
    java.lang.NoClassDefFoundError
         at org.apache.jsp.Login_jsp._jspService(Login_jsp.java:96)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    note The full stack trace of the root cause is available in the Tomcat logs.
    I am using Apache Tomcat/5.0.18 as servlet container.
    Can anyone plesae help?
    Thanks

    I would normally do:
    <jsp:useBean id="access" scope="session" class="YourPackageName.UIAccessCheckNat()" />
    Then int nbrwdSifd = access.checkNbrwsSfid(); should work
    You MUST put your class into a package:
    Tomcat 5.0\webapps\yourApplication\WEB-INF\classes\YourPackageName

  • Java.lang.IllegalStateException: ADF_FACES-60058:Attempt to re-register com

    I get this error when I try to insert a record
    java.lang.IllegalStateException: ADF_FACES-60058:Attempt to re-register component with different model.
         at oracle.adfinternal.view.faces.activedata.PageDataUpdateManager._registerComponent(PageDataUpdateManager.java:257)
         at oracle.adfinternal.view.faces.activedata.PageDataUpdateManager.registerComponentForPPR(PageDataUpdateManager.java:162)
         at oracle.adf.view.rich.activedata.ActiveComponentContext.popActiveComponent(ActiveComponentContext.java:371)
         at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1373)
         at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:335)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:751)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.__encodeRecursive(UIXComponentBase.java:1501)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeAll(UIXComponentBase.java:771)
         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
         at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:271)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:202)
         at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
    Does anyone has any idea on it.
    I call a taskflow from the test page which contains 2 fragments
    1st fragment is search page on which i click to add new record which takes me to 2nd fragment where i can add the record.
    I get this error in th elog and the record is not created.
    According to some last post i tried the refreshcondition but this does not work, it just refreshes my calling taskflow and does not return any results e.g on search operation it just refreshes the table..

    Hi,
    a Google search brought this up: http://kr.forums.oracle.com/forums/thread.jspa?messageID=4406343
    Frank

  • Java.lang.IllegalStateException error when consuming a portlet

    When attempting to consume a portlet within a Webcenter portlet the portlet briefly displays and then constantly refreshes. On each refresh the following error is being logged (the PPR number increments each time the portlet refreshes):
    *<XmlErrorHandler> <handleError> ADF_FACES-60096:Server Exception during PPR, #35*
    java.lang.IllegalStateException: The expected request type is not the same as the current request type.
         at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.getExternalContext(GlobalConfiguratorImpl.java:333)
         at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$CacheRenderKit.<init>(FacesContextFactoryImpl.java:86)
         at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:64)
    We are using JDeveloper 11.1.1.6, WebCenter Portal - Framework 11.1.1.6.0.111214.0952
    The portlet being included includes a farily simple ADF Query and Table component. It was included as a ADF Rich Portlet.
    There was an earlier thread that seemed to have the same issue: consuming portlet get error <ADF_FACES-60096:Server Exception during PPR>
    It is marked as answered but the answer was a series of steps including stopping the portal, server, redeploying the portlet, and restarting. It also suggested deleting any unused bindings from the Executable section of the page. These steps failed to fix my issue.
    Has anyone else seen this issue and found a concrete fix for it?
    Thanks in advance.

    Hello again,
    I solved the problem.
    In Control Panel -> JInitiator administration console , the option "Use browser settings" has to be unchecked.
    daniela

  • Java.lang.IllegalStateException:Attempt to validate already invalid Region

    Hi,
    i am using jdev 11.1.1.2
    I am working in region, I drag drop the table and so on.Suddenly i start getting this error -”java.lang.IllegalStateException: Attempt to validate an already invalid RegionSite”.
    any idea how to solve it.

    check all these points..
    - Check all bindings of page. if you not able to find it then delete it and create again.
    - Add the “-Djbo.debugoutput=console” in JAVA options of the Run/Debug/Profile to see the error
    - Check if all the library references for the UI project are proper and that is also accessible.

  • Java.lang.IllegalStateException: Attempt to modify the CacheName

    Hi,
    I received an error today that I had never seen before -
    2007-12-05 17:04:43.006 Oracle Coherence GE 3.3/387 <Error> (thread=ReplicatedCache, member=1): Terminating ReplicatedCache due to unhandled exception: java.lang.IllegalStateException
    2007-12-05 17:04:43.007 Oracle Coherence GE 3.3/387 <Error> (thread=ReplicatedCache, member=1):
    java.lang.IllegalStateException: Attempt to modify the CacheName: CacheHandler{Name=PRICES-2007-11-20-EMEA-IR&#44;IRS, Index=114, ServiceName=ReplicatedCache, ClassLoader=weblogic.utils.classloaders.ChangeAwareClassLoader@384621f finder: weblogic.utils.classloaders.CodeGenClassFinder@3846290 annotation: monitor-service@monitor-service} to WORKFLOW-TASK-2007-11-20-EMEA
         at com.tangosol.coherence.component.util.CacheHandler.setCacheName(CacheHandler.CDB:10)
         at com.tangosol.coherence.component.util.CacheHandler.fromXml(CacheHandler.CDB:3)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.ReplicatedCache.onCatalogUpdate(ReplicatedCache.CDB:14)
         at com.tangosol.coherence.component.util.cacheHandler.CatalogHandler.entryInserted(CatalogHandler.CDB:6)
         at com.tangosol.util.MapEvent.dispatch(MapEvent.java:191)
         at com.tangosol.util.MapEvent.dispatch(MapEvent.java:164)
         at com.tangosol.util.MapListenerSupport.fireEvent(MapListenerSupport.java:556)
         at com.tangosol.coherence.component.util.CacheHandler.onLeaseUpdate(CacheHandler.CDB:83)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.ReplicatedCache$LeaseUpdate.onReceived(ReplicatedCache.CDB:10)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.onMessage(Service.CDB:9)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.onNotify(Service.CDB:21)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.ReplicatedCache.onNotify(ReplicatedCache.CDB:3)
         at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:35)
         at java.lang.Thread.run()V(Unknown Source)
    This caused the ReplicatedCache to restart.
    Note that the "PRICES-2007-11-20-EMEA-IR&#44;IRS" cache and the "WORKFLOW-TASK-2007-11-20-EMEA" cache would have been created around about the same time.
    Does anyone have any suggestions as to what happend?
    Thanks,
    Dermot

    Hello,
    I believe this support issue is currently being addressed via an Oracle service request through Metalink.
    Thanks,
    Patrick

Maybe you are looking for

  • Getting query results from a PL/SQL procedure

    Hi! So, I'm a little stumped and I can't seem to find the answer to what I believe is probably a simple question- So, here goes- I have a big ol' union query that I use to create a report on a page, it's about 25k – not over the 32k limit, but fails

  • Error when trying to create a Variable Rent - Property Manager

    Hi All.. Im trying to create a Variable Rent record for a lease in PN- Release 12 , but an error shows up when I try to generate periods. Error says that GL CALENDAR should be longer than termination date. What it specifically means? My lease termina

  • Other servers

    Hello! One question: if I import a site (that I've in diffferent server from .Mac) in iWeb, I modify it, than can I publish it on that server (always different from .Mac) or can I publish only in .Mac? Thanks! Emiliano

  • The Ultimate Problem!!! iTouch not even recognized AT ALL!!!

    As my title clearly states, my Ipod Touch 2 Gen is not even recognized by my computer AT ALL, no USB device, camera, nada furthmore it can't even recharge via my computer And to avoid any meaningless crap: Yes , my USB cable works, iTunes somewhate w

  • GROUP BY with parameter - cause error -ORA-00979: not a GROUP BY expression

    I generate a query via PreparedStatement. For example: SELECT when, value FROM test GROUP BY ?; PrepState.toString(1, "when"); That causing error: ORA-00979: not a GROUP BY expression My application using query like: SELECT to_char(data,1), SUM(vlue)