Java.lang.IllegalStateException: cannot add non-XA Resource to global JTS t

Hi,
I am using JCAPS 5.1.2.
As one of my project requirement I am invoking a jcd from page flow and that jcd uses 2 oracle otd, each oracle otd corresponds to database which resides in two different machines/hosts.
When jcd is invoked from page flow, i got following error,
"java.lang.IllegalStateException: cannot add non-XA Resource to global
JTS transaction."
[#|2007-07-17T19:13:06.209+0530|SEVERE|IS5.1.2|javax.enterprise.resource.resourceadapter|_ThreadID=17; ThreadName=Worker: 3;stacktrace-id=0;|RAR5029:Unexpected exception while registering component
java.lang.IllegalStateException: cannot add non-XA Resource to global JTS transaction.
     at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.enlistResource(J2EETransactionManagerOpt.java:171)
     at com.sun.enterprise.resource.ResourceManagerImpl.registerResource(ResourceManagerImpl.java:97)
     at com.sun.enterprise.resource.ResourceManagerImpl.enlistResource(ResourceManagerImpl.java:71)
     at com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerImpl.java:142)
     at com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:202)
     at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:148)
     at com.stc.gjc.spi.DataSource.getConnection(DataSource.java:67)
     at com.stc.connector.oracleadapter.base.SessionImpl.connect(SessionImpl.java:130)
     at com.stc.connector.oracleadapter.OracleSession.open(OracleSession.java:98)
     at com.stc.connector.oracleadapter.OracleConnector.open(OracleConnector.java:90)
     at com.stc.connector.oracleadapter.appconn.OracleApplicationConnection.<init>(OracleApplicationConnection.java:63)
     at com.stc.connector.oracleadapter.appconn.OracleApplicationConnection.<init>(OracleApplicationConnection.java:50)
     at com.stc.connector.oracleadapter.appconn.OracleApplicationConnectionFactory.getConnection(OracleApplicationConnectionFactory.java:133)
     at com.stc.oracle.runtime.ejb.OracleEWayRuntimeHandler.initializeService(OracleEWayRuntimeHandler.java:256)
Please let me know is there any work around for above problem
Message was edited by:
VenkateshSampoornam

Hi Paul,
Thanks for your reply. I ddidn't specify XA at page
flow level.
But the problem is rectified for me.
I have two jcds in which one of them connects to two different oracle databases for e.g host A and host B.
JCD1 connects to host A and host B[ 2 oracle otds]
JCD2 connects to host B. [single oracle otd]
I had three external applications for each otd
In deployment profile, i connected two external applications to single external system for HOST B.
When i created one more new external system for host b and moved one external application to that.
After then the problem didn't occur again.
null

Similar Messages

  • Java.lang.IllegalStateException: Cannot forward a response that is

              Hello,
              Went through the article
              http://dev2dev.bea.com/articles/platform7_feature.jsp
              I thought if you have a workaround for the following issue.
              Any help to solve this issue is much appreciated.
              thx,
              -Sujatha.
              I am using JATO framework and have developed JSP's.
              Running an application on top of weblogic 6.1 sp4 container.
              The OS is Solaris 5.8.
              Every time i access the jsp's, getting the following exception.
              java.lang.IllegalStateException: Cannot forward a response that is
              already committed
              at
              weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:132)
              at
              com.iplanet.jato.view.ViewBeanBase.forward(ViewBeanBase.java:346)
              at
              com.iplanet.jato.view.ViewBeanBase.forwardTo(ViewBeanBase.java:267)
              at
              com.iplanet.am.console.base.ConsoleServletBase.onUncaughtException(ConsoleServletBase.java:240)
              at
              com.iplanet.jato.ApplicationServletBase.fireUncaughtException(ApplicationServletBase.java:1023)
              at
              com.iplanet.jato.ApplicationServletBase.processRequest(ApplicationServletBase.java:469)
              at
              com.iplanet.jato.ApplicationServletBase.doPost(ApplicationServletBase.java:324)
              at
              com.iplanet.jato.ApplicationServletBase.doGet(ApplicationServletBase.java:294)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:262)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:198)
              at
              weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2637)
              at
              weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2359)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              

    thank you  dvohra21  the application is deployed in development .Its not session inactivity because this happen when l'm busy using the application ,reducing the application speed .

  • Java.lang.IllegalStateException: cannot resize buffer

              I am running Bea Weblogic 7.0.0 on Sun Solaris 2.8. I see the following error
              message appearing in the weblogic server logfile:
              java.lang.IllegalStateException: cannot resize buffer: 60 bytes have already been
              written
              Does anyone know what is causing this or a solution to this problem?
              

              Looks like you are trying to resize the buffer after writing body content to the
              response. So resize the buffer before outputting anything to the PrintWriter :)
              Thanks
              "Mukesh" <[email protected]> wrote:
              >
              >I am running Bea Weblogic 7.0.0 on Sun Solaris 2.8. I see the following
              >error
              >message appearing in the weblogic server logfile:
              >
              >java.lang.IllegalStateException: cannot resize buffer: 60 bytes have
              >already been
              >written
              >
              >Does anyone know what is causing this or a solution to this problem?
              

  • Java.lang.IllegalStateException: Cannot forward. Response already committed

    i have deployed my application on Websphere application server 5.0. most of the time my jsp page works properly with any exception, but somtime it give me expeception and display page uncompletely rendered.
    Follwoing exception occure on particual page with particular record and same page works correctly with other reocrds....
    java.lang.IllegalStateException: Cannot forward. Response already committed. (Servlet 2.3, SRV 8.4)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:160)
         at com.mcb.cpms.presentation.controllers.CPMSController.dispatchRequest(CPMSController.java:918)
         at com.mcb.cpms.presentation.controllers.CPMSController.doGet(CPMSController.java:1278)
         at com.mcb.cpms.presentation.controllers.CPMSController.doPost(CPMSController.java:1308)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
         at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
         at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
         at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
         at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
         at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:948)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:530)
         at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:176)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
         at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:201)
         at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
         at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:114)
         at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
         at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
         at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
         at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:610)
         at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:431)
         at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
    i will be thankfull if any one have any idea about it.....
    waiting for your immediate response

    Hi Junaid,
    Your code can be work correctly on different servers or with other records but it can not be handled with buffer or autoflush,
    I had same problem a few weeks ago. And lastly I had to control before printing any output. My application was working on WebSphere but not on Tomcat, so it is general problem.
    The only way if you have to put some output before sending redirect:
    When you want to redirect the page, write window.location = ... (javascript code).
    When page is loaded automatically will be redirected to the page you want. But of course it is a bit slow.
    Good Luck,
    isturk.

  • Java.lang.IllegalStateException: Cannot resize buffer - 2616 bytes have ...

    Hi ,
    I'm a newbie to Coherence. I installed Coherence Web in my Web Application . I see this exception when loading the login jsp in my application. Any thoughts ?
    jjava.lang.IllegalStateException: Cannot resize buffer - 2616 bytes have already been written (Servlet 2.3, sec. 5.1)
         at weblogic.servlet.internal.ServletResponseImpl.setBufferSize(ServletResponseImpl.java:338)
         at com.tangosol.coherence.servlet.api22.ServletResponseWrapper.setBufferSize(ServletResponseWrapper.java:266)
         at com.tangosol.coherence.servlet.api23.HttpServletResponseWrapperImpl.setBufferSize(HttpServletResponseWrapperImpl.java:262)
         at com.tangosol.coherence.servlet.api22.ServletResponseWrapper.setBufferSize(ServletResponseWrapper.java:266)
         at com.tangosol.coherence.servlet.api23.HttpServletResponseWrapperImpl.setBufferSize(HttpServletResponseWrapperImpl.java:262)
         at com.tangosol.coherence.servlet.api22.ServletResponseWrapper.setBufferSize(ServletResponseWrapper.java:266)
         at com.tangosol.coherence.servlet.api23.HttpServletResponseWrapperImpl.setBufferSize(HttpServletResponseWrapperImpl.java:262)
         at weblogic.servlet.jsp.PageContextImpl.initialize(PageContextImpl.java:74)
         at weblogic.servlet.jsp.PageContextImpl.<init>(PageContextImpl.java:110)
         at weblogic.servlet.jsp.JspFactoryImpl.getPageContext(JspFactoryImpl.java:40)
         at jsp_servlet._myjsp._jsp._tiles._common_includes.__header_universal_nav._jspService(__header_universal_nav.java:119)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at com.xyz.myfilter.web.filters.UserProfileFilter.doFilter(UserProfileFilter.java:48)
         at com.tangosol.coherence.servlet.SessionHelper.filter(SessionHelper.java:1090)
         at com.tangosol.coherence.servlet.api23.FilterWrapper.doFilter(FilterWrapper.java:137)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at atg.filter.dspjsp.PageFilter.doFilter(Unknown Source)
         at com.tangosol.coherence.servlet.SessionHelper.filter(SessionHelper.java:1090)
         at com.tangosol.coherence.servlet.api23.FilterWrapper.doFilter(FilterWrapper.java:137)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:526)
         at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:454)
         at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:163)
         at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:99)
         at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:135)
         at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:760)
         at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:892)
         at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:462)
         at jsp_servlet._myjsp._jsp._tiles._layouts.__xyz_master_layout._jsp__tag2(__xyz_master_layout.java:799)
         at jsp_servlet._myjsp._jsp._tiles._layouts.__xyz_master_layout._jspService(__xyz_master_layout.java:304)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)

              Looks like you are trying to resize the buffer after writing body content to the
              response. So resize the buffer before outputting anything to the PrintWriter :)
              Thanks
              "Mukesh" <[email protected]> wrote:
              >
              >I am running Bea Weblogic 7.0.0 on Sun Solaris 2.8. I see the following
              >error
              >message appearing in the weblogic server logfile:
              >
              >java.lang.IllegalStateException: cannot resize buffer: 60 bytes have
              >already been
              >written
              >
              >Does anyone know what is causing this or a solution to this problem?
              

  • Java.lang.IllegalStateException: Cannot forward ...

    as OutputStream or Writer has already been obtained.
    Getting this error. Using
    Jdk1.3.1_01 with Tomcat. This did NOT happen in JavaWebServer2.0 (30 day demo version).
    This is the part of the code that is giving me the problems.
    RequestDispatcher showDispatcher = getServletContext().getRequestDispatcher(showService);
    showDispatcher.forward(req,res);
    What I am doing is using this as a central servlet that all jsp pages must go through to get to a servlet, which in turn returns to a jsp page.
    Now I will note this, as i've seen before in other similar requests. I am NOT using any Printwriters in this servlet.
    The "showService" is a hidden field on the request jsp page that tells this servlet where to go afterwards.
    As I said before, this worked with NO problems at all. Considering I wanted to get away from JWS2, and go to Tomcat, this is the problem it gave me. I have been able to get all JSP pages to work. Servlets all go through this, so i didn't want to change all my servlets and jsp pages to go direct to the servlets. (Security thing).
    Thanks to anyone who can help me out.
    ...Ordio

    taskDispatcher.include(req, res);
    showDispatcher.forward(req,res);you can use include and forward at the
    same time in the old Servlet/JSP version, as the
    include function will automatically flush the
    output(say the JSP) to the client, that's why
    something's written out but you don't know! while,
    apparently, forword function requires nothing shoud be
    sent to client.Makes sense to me. :)
    since the program works fine in Jave web server, i bet
    you must be using Tomcat 3.X or even older which use
    old version of Servlet/JSP specs and implementations.Ahh... that may explain why. I am using tomcat 3.2.3.
    So, either update the Tomcat to 4.0(which is yet a
    beta version), or find any other server else. (I
    assume you don't want to re-write the whole program).Yeah, you are right... I do not want to re-write everything to get it to work. I will update to Tomcat 4 (I know it is in beta, and supposedly it was supposed to be released today.)
    Yeah, i just grabbed tomcat 4, and here's the info from the Release Plan 4.0
    Sunday, September 9, 2001 Tomcat 4.0 Release Candidate 1
    Thursday, September 13, 2001 Tomcat 4.0 Release Candidate 2
    Monday, September 17, 2001 Tomcat 4.0 Final Release
    Thanks for helping me out, and letting me know that the problem is likely tomcat 3.X... I will try this out on 4, and reply later.
    ...Ordio

  • Error marking transaction for rollback: java.lang.IllegalStateException in WLI 6.1 SP3

    Hi,
    The following exception occurs, when the workflow was waiting after it has made
    a synchronous call to an external system through WTC Interface.
    I had read Rob's comments earlier for WLI 6.1 SP1 on this exception that there
    would be a fix available for it in the next minor release. For your information,
    I had got this exception in WLI 6.1 SP3. Is still EJB Container's timeout excels
    the JTA's timeout? Can anybody help me out to find a fix for this problem?
    Thanks in Advance,
    Regards
    Jegadeesan.
    The Stack Trace is given below :
    <Error marking transaction for rollback: java.lang.IllegalStateException: Cannot
    mark the transaction for rollback. xid=4362:5b4c62b47adcc632, status=Rolled back.
    [Reason=weblogic.transaction.internal.TimedOutException: Transaction timed out
    after 31 seconds
    Xid=4362:5b4c62b47adcc632(6932052),Status=Active,numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds
    since begin=31,seconds left=30,ServerResourceInfo[weblogic.jdbc.jts.Connection]=(state=ended,assigned=none),SCInfo[ecwli001+admin_ecwli001]=(state=active),properties=({weblogic.jdbc=t3://147.149.116.70:50101}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=admin_ecwli001+147.149.116.70:50101+ecwli001+,
    Resources={})],CoordinatorURL=admin_ecwli001+147.149.116.70:50101+ecwli001+)]>
    java.lang.IllegalStateException: Cannot mark the transaction for rollback. xid=4362:5b4c62b47adcc632,
    status=Rolled back. [Reason=weblogic.transaction.internal.TimedOutException: Transaction
    timed out after 31 seconds
    Xid=4362:5b4c62b47adcc632(6932052),Status=Active,numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds
    since begin=31,seconds left=30,ServerResourceInfo[weblogic.jdbc.jts.Connection]=(state=ended,assigned=none),SCInfo[ecwli001+admin_ecwli001]=(state=active),properties=({weblogic.jdbc=t3://147.149.116.70:50101}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=admin_ecwli001+147.149.116.70:50101+ecwli001+,
    Resources={})],CoordinatorURL=admin_ecwli001+147.149.116.70:50101+ecwli001+)]
         at weblogic.transaction.internal.TransactionImpl.throwIllegalStateException(TransactionImpl.java:1492)
         at weblogic.transaction.internal.TransactionImpl.setRollbackOnly(TransactionImpl.java:466)
         at weblogic.ejb20.manager.BaseEJBManager.handleSystemException(BaseEJBManager.java:255)
         at weblogic.ejb20.manager.BaseEJBManager.setupTxListener(BaseEJBManager.java:215)
         at weblogic.ejb20.manager.StatelessManager.preInvoke(StatelessManager.java:153)
         at weblogic.ejb20.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:124)
         at weblogic.ejb20.internal.StatelessEJBObject.preInvoke(StatelessEJBObject.java:63)
         at com.bea.wlpi.server.principal.WLPIPrincipalBean_u7lmf4_EOImpl.getOrganizationInfo(WLPIPrincipalBean_u7lmf4_EOImpl.java:463)
         at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.getBusinessCalendarProcessor(Unknown
    Source)
         at com.bea.wlpi.server.workflow.Timer.dateAdd(Unknown Source)
         at com.bea.wlpi.server.workflow.action.ActionTimedEvent.getScheduleTimestamp(Unknown
    Source)
         at com.bea.wlpi.server.workflow.action.ActionTimedEvent.execute(Unknown Source)
         at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.executeActions(Unknown
    Source)
         at com.bea.wlpi.server.workflow.Task.executeActions(Unknown Source)
         at com.bea.wlpi.server.workflow.Task.activate(Unknown Source)
         at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccessors(Unknown
    Source)
         at com.bea.wlpi.server.workflow.Decision.activate(Unknown Source)
         at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccessors(Unknown
    Source)
         at com.bea.wlpi.server.workflow.Decision.activate(Unknown Source)
         at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccessors(Unknown
    Source)
         at com.bea.wlpi.server.workflow.Task.markDone(Unknown Source)
         at com.bea.wlpi.server.workflow.action.ActionTaskDone.execute(Unknown Source)
         at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.executeActions(Unknown
    Source)
         at com.bea.wlpi.server.workflow.Task.executeActions(Unknown Source)
         at com.bea.wlpi.server.workflow.Task.activate(Unknown Source)
         at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccessors(Unknown
    Source)
         at com.bea.wlpi.server.workflow.Task.markDone(Unknown Source)
         at com.bea.wlpi.server.workflow.action.ActionTaskDone.execute(Unknown Source)
         at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.executeActions(Unknown
    Source)
         at com.bea.wlpi.server.workflow.Task.executeActions(Unknown Source)
         at com.bea.wlpi.server.workflow.Task.activate(Unknown Source)
         at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccessors(Unknown
    Source)
         at com.bea.wlpi.server.workflow.Task.markDone(Unknown Source)
         at com.bea.wlpi.server.workflow.action.ActionTaskDone.execute(Unknown Source)
         at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.executeActions(Unknown
    Source)
         at com.bea.wlpi.server.workflow.Task.executeActions(Unknown Source)
         at com.bea.wlpi.server.workflow.Task.activate(Unknown Source)
         at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccessors(Unknown
    Source)
         at com.bea.wlpi.server.workflow.Task.markDone(Unknown Source)
         at com.bea.wlpi.server.workflow.action.ActionTaskDone.execute(Unknown Source)
         at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.executeActions(Unknown
    Source)
         at com.bea.wlpi.server.workflow.Task.executeActions(Unknown Source)
         at com.bea.wlpi.server.workflow.Task.activate(Unknown Source)
         at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.activateSuccessors(Unknown
    Source)
         at com.bea.wlpi.server.workflow.Start.activate(Unknown Source)
         at com.bea.wlpi.server.workflow.Workflow.start(Unknown Source)
         at com.bea.wlpi.server.workflow.Workflow.instantiate(Unknown Source)
         at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean$1.invoke(Unknown
    Source)
         at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.performWithErrorHandling(Unknown
    Source)
         at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.instantiate(Unknown
    Source)
         at com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean_h7kt4j_EOImpl.instantiate(WorkflowProcessorBean_h7kt4j_EOImpl.java:692)
         at com.bea.wlpi.server.eventprocessor.EventProcessor.checkTrigger(Unknown Source)
         at com.bea.wlpi.server.eventprocessor.EventProcessor.onEvent(Unknown Source)
         at com.bea.wlpi.server.eventlistener.EventListenerBean.onMessage(Unknown Source)
         at weblogic.ejb20.internal.MDListener.execute(MDListener.java:262)
         at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:214)
         at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:1865)
         at weblogic.jms.client.JMSSession.execute(JMSSession.java:1819)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

    You could change the transaction timeout value, but I'd re-examine the
    application and see if the transaction times could be reduced some.
    29 seconds seems like a long time.

  • Forward Request giving java.lang.IllegalStateException

    Hi Friends,
    I am using RequestDispatcher to forwrd my request from one servlet to another
    Here's the code
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    public class TryServlet extends HttpServlet
    public void service(HttpServletRequest request,HttpServletResponse response)throws ServletException,IOException
    try
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    String url="jdbc:odbc:con";
    Connection con= DriverManager.getConnection(url,"scott","tiger");     
    Statement stmt=con.createStatement();
    ResultSet rst=stmt.executeQuery("select * from Projects");
    response.setContentType("text/html");
    PrintWriter out=response.getWriter();
    while (rst.next())
    String firstname=rst.getString("PIN");
    String lastname=rst.getString("ProjectTitle");
    out.println("<p> Name:"+firstname+" "+lastname+"");     
    con.close();
    RequestDispatcher rd=getServletContext().getNamedDispatcher("HelloServlet");
    rd.forward(request,response);
    return;
    catch(Exception e)
    e.printStackTrace();
    I m getting the error
    java.lang.IllegalStateException: Cannot forward after response has been committed
    i need to include the two rows of tables before i forwad the request to HelloServlet
    What needs to be done?
    thanx
    Pooja

    Don't spread the generation of output over several servlets. Your first servlet should retrieve the data and your second servlet should display the data.
    Store the data retrieved as a request attribute before forwarding:
    // Data.java
    public class Data  {
      public String _firstname;
      public String _lastname;
      public data(String firstname, String lastname)  {
        _firstname = firstname;
        _lastname = lastname;
        return;
    //  TryServlet.java
    public class TryServlet extends HttpServlet
      List list = new ArrayList();
      while (rst.next())  {  //  store data in list
        String firstname=rst.getString("PIN");
        String lastname=rst.getString("ProjectTitle");
        Data data = new data(firstname, lastname);
        list.add(data);
      con.close();
      request.setAttribute("list", list);  //  store list in request
      RequestDispatcher rd=getServletContext().getNamedDispatcher("HelloServlet");
      rd.forward(request,response);  // list is forwarded as well
      return;
    }In HelloServlet, you get the request's attribute and display the data:
      List list = (List)request.getAttribute("list");  //  retrieve list from request
      Iterator it = list.iterator();
      while (it.hasNext())  {  //  retrieve data from list and display
        Data data = (Data)it.next();
        out.println("<p>Name: " + data._firstname + " " + data._lastname + "</p>");
      }Btw, for displaying the data, a JSP will do better.
    Two Bears.

  • Getting error Servlet failed with Exception java.lang.IllegalStateException

    Hi
    I am getting this error throughout the server when i am trying to download a pdf from that page.
    Im attaching the error console
    2011 5:10:26 PM CEST> <Error> <HTTP> <aczocc08x.vfcz.dc-ratingen.de> <ShopSrv1_1_pre> <[ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1306163426535> <BEA-101020> <[weblogic.servlet.internal.WebAppServletContext@172d19e - appName: 'OCC', name: '/shop', context-path: '/shop'] Servlet failed with Exception
    java.lang.IllegalStateException: Cannot resize buffer - 76438 bytes have already been written (Servlet 2.3, sec. 5.1)
         at weblogic.servlet.internal.ServletResponseImpl.setBufferSize(ServletResponseImpl.java:338)
         at weblogic.servlet.jsp.PageContextImpl.initialize(PageContextImpl.java:74)
         at weblogic.servlet.jsp.PageContextImpl.<init>(PageContextImpl.java:110)
         at weblogic.servlet.jsp.JspFactoryImpl.getPageContext(JspFactoryImpl.java:40)
         at jsp_servlet._checkout._order.__cart_thank_45_you._jspService(__cart_thank_45_you.java:644)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at vodafone.servlet.security.HttpsEnforcingFilter.doFilter(HttpsEnforcingFilter.java:39)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at atg.servlet.pipeline.TailPipelineServlet.service(TailPipelineServlet.java:90)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.servlet.pipeline.DispatcherPipelineServletImpl.service(DispatcherPipelineServletImpl.java:202)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:279)
         at vodafone.dynamo.servlet.LocaleRedirector.service(LocaleRedirector.java:75)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:279)
         at atg.servlet.dafpipeline.RecordingServlet.service(RecordingServlet.java:280)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.servlet.http.CookieBufferServlet.service(CookieBufferServlet.java:97)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.userprofiling.ExpiredPasswordServlet.service(ExpiredPasswordServlet.java:356)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.servlet.pipeline.MimeTyperPipelineServlet.service(MimeTyperPipelineServlet.java:206)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.droplet.DropletEventServlet.service(DropletEventServlet.java:565)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.servlet.sessionsaver.SessionSaverServlet.service(SessionSaverServlet.java:2442)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.commerce.order.CommerceCommandServlet.service(CommerceCommandServlet.java:128)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.commerce.promotion.PromotionServlet.service(PromotionServlet.java:191)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.userprofiling.AccessControlServlet.service(AccessControlServlet.java:602)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.userprofiling.PageEventTriggerPipelineServlet.service(PageEventTriggerPipelineServlet.java:169)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.userprofiling.SessionEventTrigger.service(SessionEventTrigger.java:461)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at vodafone.servlets.ServletHelper.service(ServletHelper.java:34)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at vodafone.dynamo.servlet.DefaultCatalogFixer.service(DefaultCatalogFixer.java:54)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.commerce.profile.VodafoneSSOProfileRequestServlet.service(VodafoneSSOProfileRequestServlet.java:231)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.userprofiling.ProfileRequestServlet.service(ProfileRequestServlet.java:480)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at vodafone.session.SessionSynchronizationServlet.service(SessionSynchronizationServlet.java:38)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.servlet.pipeline.DynamoPipelineServlet.service(DynamoPipelineServlet.java:469)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.servlet.pipeline.PathAuthenticationPipelineServlet.service(PathAuthenticationPipelineServlet.java:370)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.userprofiling.sso.PassportServlet.service(PassportServlet.java:561)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.servlet.security.ThreadUserBinderServlet.service(ThreadUserBinderServlet.java:91)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.servlet.pipeline.HeadPipelineServlet.passRequest(HeadPipelineServlet.java:1100)
         at atg.servlet.pipeline.HeadPipelineServlet.service(HeadPipelineServlet.java:782)
         at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:231)
         at atg.filter.dspjsp.PageFilter.doFilter(Unknown Source)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3393)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    >
    Anyone has any idea or faced this issue before please guide me what is the cause, i have got a feeling that this may be because server has run out of memory.

    i havn't written anything before calling set buiffer sizeSo why does the exception message say the opposite?
    I can see that error may be because of a jsp named cart_thank-you.jspSo can I. So have a look at it. It is writing something before the other thing is calling setBufferSize().
    you can see that in erro logSo can you.

  • Session block java.lang.IllegalStateException

    hello all
    i had developed a jsp but it gives the following error
    session block java.lang.IllegalStateException: Cannot call sendRedirect() after the response has been committed
    shd i paste code here?
    regards and tanks in advance
    hema

    The error is fairly self explanatory.
    "Cannot call sendRedirect() after the response has been committed "
    Once you start sending a response, you can't suddenly change your mind. JSP pages have a "buffer" to give you some leeway. The default buffer size is 8kb.
    The response is committed when the buffer is flushed. This happens when:
    - the buffer gets full
    - you explicitly call flush()
    There are two possible solutions
    1 - Make sure all forward/redirects happen as close to the top of the page as possible. This means they have a good chance of happening before the buffer gets full
    2 - make the buffer larger <%@ page buffer="16kb" %>
    Also after you do a forward/redirect, then make sure you return directly after it. Just because you call redirect, doesn't mean the page stops executing.
    Cheers,
    evnafets

  • Java.lang.IllegalStateException in tomahawk tree 2

    Hi,
    I am getting the following exception in tomahawk tree2 while fetching the data from database and constructing the tree:
    java.lang.IllegalStateException: Encountered a node [0:0:0] + with an illogical state. Node is expanded but it is also considered a leaf (a leaf cannot be considered expanded
    Here is the function which returns the tree data:
    public TreeNode getTreeData()
    TreeNode treeData = new TreeNodeBase("foo-folder", "First", false);      Enumeration keys = topMostNodes.keys();
    while(keys.hasMoreElements()){
    String currKey = keys.nextElement().toString();
    Vector tempChildList = (Vector)topMostNodes.get(currKey);
    TreeNodeBase tempNodeBase = new TreeNodeBase("foo-folder", currKey, false);
    for(int cnt=0; cnt < tempChildList.size(); cnt++)
    tempNodeBase.getChildren().add(new TreeNodeBase("foo-folder",tempChildList.get(cnt).toString(),true));
    treeData.getChildren().add(tempNodeBase);
    return treeData;
    The topMostNodes HashTable contanis these entries:
    parent 170160 childList [108858, 152338, 306438]
    parent 106404 childList [306304]
    parent 106402 childList [106406, 106407, 106408]
    parent 106401 childList [106404]
    parent 106400 childList [106403, 106405]
    parent 290094 childList [290095, 290096, 290097, 290098, 290099, 290100, 290101]
    childList is a vector containing all the children of a node.
    This is the stack Trace of the exception I am getting:
    java.lang.IllegalStateException: Encountered a node [0:0:0] + with an illogical state. Node is expanded but it is also considered a leaf (a leaf cannot be considered expanded.
    at org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeNavigation
    (HtmlTreeRenderer.java:463)
    at org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeCurrentNode
    HtmlTreeRenderer.java:346)
    at org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeTree
    (HtmlTreeRenderer.java:248)
         at org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeTree
    (HtmlTreeRenderer.java:276)
         at org.apache.myfaces.custom.tree2.HtmlTreeRenderer.encodeChildren
    (HtmlTreeRenderer.java:211)
         at javax.faces.component.UIComponentBase.encodeChildren
    (UIComponentBase.java:701)
         at org.apache.myfaces.renderkit.RendererUtils.renderChild
    (RendererUtils.java:444)
         at org.apache.myfaces.renderkit.html.HtmlGridRendererBase.
    renderChildren
    (HtmlGridRendererBase.java:203)
         at org.apache.myfaces.renderkit.html.HtmlGridRendererBase.encodeEnd
    (HtmlGridRendererBase.java:85)
         at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:720)
         at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:623)
         at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:546)
    It works fine if I replace the while loop with some hard coded node values.
    Can anybody help plz?
    Thanks in advance.
    Sanjeev.

    Its a known issue - and is documented in the Release Notes - doh.
    A very speed response from Oracle Support (in the Netherlands I would guess from his accent ) 8)
    Andrew

  • Exception in thread "main" java.lang.IllegalStateException

    this is the code
    when i am running it i am gettinga n exception stating that
    "Exception in thread "main" java.lang.IllegalStateException: No match found
    at java.util.regex.Matcher.group(Unknown Source)
    at java.util.regex.Matcher.group(Unknown Source)
    at LinkGetter.getLinks(LinkGetter.java:36)
    at LinkGetter.main(LinkGetter.java:80) "
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.util.ArrayList;
    import java.util.List;
    import java.util.regex.*;
    //import java.util.regex.Pattern;
    public class LinkGetter{
         private static Pattern htmltag;
         private static Pattern link;
         //private final String root;
         public static List<String> getLinks(String url) {
              List<String> links = new ArrayList<String>();
              try {
                   BufferedReader bufferedReader = new BufferedReader(
                             new InputStreamReader(new URL(url).openStream()));
                   String s;
                   StringBuilder builder = new StringBuilder();
                   while ((s = bufferedReader.readLine()) != null) {
                        builder.append(s);
                   Matcher tagmatch = htmltag.matcher(builder.toString());
                   while (tagmatch.find()) {
                        Matcher m = link.matcher(tagmatch.group(1));
                        m.find();
                        String link = m.group().replaceFirst("href=\"", "").replaceFirst("\">", "");
                        if (valid(link)) {
                             links.add(makeAbsolute(url, link));
              } catch (MalformedURLException e) {
                   e.printStackTrace();
              } catch (IOException e) {
                   e.printStackTrace();
    System.out.println(links);
              return links;
         private static boolean valid(String s) {
              if (s.matches("javascript:.*|mailto:.*")) {
                   return false;
              return true;
         private static String makeAbsolute(String url, String link) {
              if (link.matches("http://.*")) {
                   return link;
              if (link.matches("/.*") && url.matches(".*$[^/]")) {
                   return url + "/" + link;
              if (link.matches("[^/].*") && url.matches(".*[^/]")) {
                   return url + "/" + link;
              if (link.matches("/.*") && url.matches(".*[]")) {
                   return url + link;
              if (link.matches("/.*") && url.matches(".*[^/]")) {
                   return url + link;
              throw new RuntimeException("Cannot make the link absolute. Url: " + url
                        + " Link " + link);
    public static void main(String args[ ])
    htmltag = Pattern.compile("<a\\s+href\\s*=\\s*\"?(.*?)[\"|>]",Pattern.CASE_INSENSITIVE );
              link = Pattern.compile("href=\"[^>]*\">");
    getLinks("http://google.com");
    can anyone one plz help me out of this

    Please use the CODE-Button when posting Code: 1. copy-and-paste your code 2. select your code 3. press "CODE" just above the text field
    Also: read the error message:
    java.lang.IllegalStateException: No match foundIt tells you that no match was found an that it happened when you called Matcher.group()
    This means that you try to call .group() although a previous .find() or .match() didn't find anything. Check that method calls return value before calling .group()

  • Java.lang.IllegalStateException:Already Connected

    HI everyine,
    I trying to send some data from an applet to a servlet: Here is code for the applet:try{
         System.out.println("in the try for getData \n");
         URL url = new URL("http://myip/app/servlet/getData");
         System.out.println("the url connection to getData done \n");
        URLConnection servletConnection2 =url.openConnection();
        ///////////////I get  error java.lang.IllegalStateException:Already Connected  at this point //////
        servletConnection2.setDoInput(false);
        servletConnection2.setDoOutput(true);
       servletConnection2.setUseCaches (false);
       servletConnection2.setDefaultUseCaches (false);
       servletConnection2.connect();
      servletConnection2.setRequestProperty("Content-Type","application/octet-stream");
    ObjectOutputStream oos = new ObjectOutputStream(servletConnection2.getOutputStream());
         oos.writeObject(userID);
         oos.flush();
         System.out.println("the userID was flushed");
         oos.close();
    catch(Exception e)
         System.out.println("Error in sending data to getData Servlet \n" +e);
    }Here is what I have in my servlet:
    public class getData extends HttpServlet {
    public void doGet(HttpServletRequest request, HttpServletResponse response)
         throws ServletException, IOException {
                            String username ="";
         try
       ObjectInputStream in = new ObjectInputStream(request.getInputStream());
         username = (String)in.readObject();
         System.out.println("the username received from ui is \n" +username);
         in.close();
    catch (IOException e)
    System.out.println("error1" + e);
    catch (ClassNotFoundException cnfe)
    {                                        {System.out.println("error2");
    public void doPost(HttpServletRequest request, HttpServletResponse response)
         throws ServletException, IOException {
                         doGet(request,response);
    }When I try to access this applet I keep getting an error :
    java.lang.IllegalStateException: Already connected
    I cannot understand why this could eb happening ..I have been stuck on this problem for quite some time now.....
    Thanks,
    G.

    i have try your code and it fails also.
    but when i add the servletConnection.getInputStream() in the applet it is ok (although i didn't write the doGet() in the servlet to reply it , but it seems that, in your orginal code, the applet didn't connect to the servlet actually)
    the following is my applet and servlet code which is successful.
    public class ui4 extends JApplet
    public void init()
    String userID="gaurj";
    String servletStr ="http://192.168.0.154:8080/wmshitClient/test";
    try
    URL getDataservlet = new URL( servletStr );
    URLConnection servletConnection = getDataservlet.openConnection();
    System.out.println("the opencon was successful");
         servletConnection.setDoInput(true);
         servletConnection.setDoOutput(true);
         servletConnection.setUseCaches (false);
         servletConnection.setDefaultUseCaches (false);
    servletConnection.connect();
         ObjectOutputStream outputToServlet = new ObjectOutputStream(servletConnection.getOutputStream());
         outputToServlet.writeObject(userID);
         System.out.println("object written");
         outputToServlet.flush();
         System.out.println("the userID was flushed");
         outputToServlet.close();
    // i don't know why, but add the following code make it success
         String message="";
         InputStreamReader reader=new InputStreamReader( servletConnection.getInputStream());
         BufferedReader in=new BufferedReader(reader);
         message=in.readLine();
         while(message!=null){
              if(message!=null)
                   message=in.readLine();
    catch(Exception e)
         System.out.println("Error in sending data to getData Servlet \n" +e);
    public class test extends HttpServlet {
    String userID=null;
    public void init(ServletConfig config) throws ServletException {
         super.init(config);
         System.out.println("in the test!!!");
    public void doPost(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException {
         System.out.println("the");
         ObjectInputStream inputFromApplet = null;
         try
         // get an input stream from the applet
         inputFromApplet = new ObjectInputStream(request.getInputStream());
    userID = (String)inputFromApplet.readObject();
    System.out.println("the userID receved from applet is " +userID);
              inputFromApplet.close();          }
         catch(Exception e)
         // handle exception
    Message was edited by:
    orange_ego

  • OutputStream already obtained]: java.lang.IllegalStateException: OutputStre

    Hi,
    I was trying to use OutputStream object in a JSP page.
    [Servlet Error]-[OutputStream already obtained]: java.lang.IllegalStateException: OutputStream already obtained
    I have done opstream.flush() and opstream.close() before and after the usage resp.
    Please advise me what has to be done.
    Thanks

    I think the problem is that when the JSP page is converted into servlet it adds some extra
    out.write("\r\n");
    to avoid this do not leave and space between the ending and starting of scriplet tags.
    Ex: If u have something like this
    <%@page buffer="none" errorPage="errorpage.jsp" %>
    <%
    %>
    then change it to
    <%@page buffer="none" errorPage="errorpage.jsp" %><%
    %>
    Tell me if this works....else post the code.

  • Java.lang.IllegalStateException: duplicate Id for a component

    Hi everyone,
    please I'm really having a serious issue on the duplicate id for a component in view.
    I have a page of which I used the <jsp:include> tag to add to some pages of my application.
    The page have the following code snippet in it
    <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <%@taglib prefix="a4j" uri="http://richfaces.org/a4j"%>
    <%@taglib prefix="rich" uri="http://richfaces.org/rich"%>
    <f:subview id="footerView">
          <table width="80%" border="0" align="center" cellpadding="0" cellspacing="1">
          <tr>
              <td>
                   <h:outputLink id="homeLink" value="#{facesContext.externalContext.requestContextPath}/index.jsf"
                                 rendered="#{facesContext.viewRoot.viewId != '/index.jsp'}">                                                  
                        <h:outputText value="Home |"/>                              
                    </h:outputLink>
              </td>
             </tr>
          </table>
    </f:subview>The problem is that I always get this exception :
        java.lang.IllegalStateException: duplicate Id for a component footerView:homeLink
         org.ajax4jsf.application.AjaxStateManager$TreeStrutureNode.apply(AjaxStateManager.java:326)
         org.ajax4jsf.application.AjaxStateManager$TreeStrutureNode.apply(AjaxStateManager.java:348)
         org.ajax4jsf.application.AjaxStateManager$TreeStrutureNode.apply(AjaxStateManager.java:348)
         org.ajax4jsf.application.AjaxStateManager.saveSerializedView(AjaxStateManager.java:236)
            .........This exception always occurs whenever I tried invoking an action or event call in like the ones listed
    below in any of the enclosing page..
    <h:selectOneRadio immediate="true" required="true" id="optionsRadio" value="#{myBean.optionType}" layout="lineDirection"valueChangeListener="#{eventBean.updateOptionTypeEvent}">                                        
         <f:selectItems value="#{listManagerBean.staticListDataMap['OPTION_TYPE']}"/>
         <a4j:support ajaxSingle="true" ignoreDupResponses="true" immediate="true" event="onblur"/>                         
    </h:selectOneRadio>
    OR
    <a4j:commandButton type="submit" value="Submit Now!" action="#{bean.someAction}"/>
          <h:commandButton type="submit" value="Click Me"/>Yet there is no other component in view with the said id "footerView:homeLink".
    So I'm really at a loss on what to do.
    Any help will be greatly appreciated.

    Hi, I have the same issue.
    In my case I have a page that includes one page with richfaces components and if another link is clicked, it includes anotherone without richfaces.
    But both included pages contain some identical subpages.
    Everytime I call the page with the richfaces components and then the other one I get
    java.lang.IllegalStateException: duplicate Id for a component webSourceSetupForm:executionTab:executionTable:executionDayList
         org.ajax4jsf.application.AjaxStateManager$TreeStrutureNode.apply(AjaxStateManager.java:442)
         org.ajax4jsf.application.AjaxStateManager$TreeStrutureNode.apply(AjaxStateManager.java:464)This worked fine before I added richfaces....
    The id is even different in both cases. in on it is webSourceSetupForm:executionTab:executionTable:executionDayList in the other jdbcSourceSetupForm:executionTab:executionTable:executionDayList
    Did you find a solution to the problem?
    Anyone has any idea?
    Thank you,
    Mathis

Maybe you are looking for

  • Re-Using Java Business Layer in Flex

    I am new to flex and particulalry looking at this to use as front end for existing Web based Java Application as front end. We have comprehensive business layer written using POJOs and DAOs and want to reuse it. I will be using remote objects to call

  • Rundll32 cpu usage high

    Hi. Ive just upgraded my win 8.1 to win 10 technical preview. The first thing that bugged me was the process rundll32. It has high cpu usage (40-50% of my cpu). It didnt have that on win 8.1, and i havent done anything other than upgraded to win 10.

  • Keep getting errors... why do I get this error?

    when im in fluxbox and trying to install kde, i get this error: /.CHANGELOG exists in both "libxslt" and "curl' /.CHANGELOG exists in both "libxslt" and "net-snmp /.CHANGELOG exists in both "curl" and "netsnmp'' but this seems to happen all the time.

  • Essbase excel

    we are using aso-bso model and we were getting memory allocation error message but in development i increased the value of net delay to 1000 then it started working . same thing i did in production but i didn't work. we have pending cache value as 64

  • Tiger:  Lexmark Z35

    I've recently installed Tiger 10.4.8. While I'm able to print, I'm not able to access 'Lexmark Z25-Z35 Utility.app', which would allow me to clean the print nozzles, align the cartridges, and print a test page. I tried downloading and installing the