Illegal state exception in filters can any help me plzzzzzzz

i want to check the clients status i mean whether the request is coming from new client or already using client , if clients request is new one then the filter has to redirect to some other login page and also if the request is asked to access the authenticated resource then also he want to force to redirect to login page.If the user is logged in and his session is not expired and if session is valid then he can access the requested url as per his role....can any one suggest the code plzzzzzzzzz
here is my code but iam getting the illegal state exception as shown below...
package uk.co.lex.interactive.authentication.action;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
public class AuthenticationFilter implements Filter {
private FilterConfig filterConfig=null;
HttpSession session=null;
     public void init(FilterConfig filterConfig) throws ServletException {
          //TODO Auto-generated method stub
          this.filterConfig=filterConfig;
          System.out.println("---Authentication filter initialized---");
     public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
          // TODO Auto-generated method stub
          HttpServletRequest req=(HttpServletRequest)request;
          HttpServletResponse res=(HttpServletResponse)response;
               String reqSessId=req.getRequestedSessionId();
          if(reqSessId!=null)
               {System.out.println("-------session is valid and the same client is using the resource111---");
                     if(req.isRequestedSessionIdValid())
                        System.out.println("-------session is valid and the same client is using the resource222---");
                        System.out.println("---requested sessid"+reqSessId);
                       if(req.isRequestedSessionIdFromCookie()||req.isRequestedSessionIdFromURL())
                            System.out.println("-------session is valid and the same client is using the resource333---");
          }else
          res.sendRedirect(req.getContextPath()+"/"+"checkUser.do");
                    System.out.println("------it is new session so it redirected to loginpage from authentication filter-------");
          else
               res.sendRedirect(req.getContextPath()+"/"+"checkUser.do");
               System.out.println("------it is new session so it redirected to loginpage from authentication filter-------");
          chain.doFilter(request,response);
     public void destroy() {
          // TODO Auto-generated method stub
          this.filterConfig=null;
          System.out.println("-----authentication filter destroyed---");
11:03:18,693 ERROR [[action]] Servlet.service() for servlet action threw exception
java.lang.IllegalStateException: Cannot create a session after the response has been committed
     at org.apache.catalina.connector.Request.doGetSession(Request.java:2195)
     at org.apache.catalina.connector.Request.getSession(Request.java:2017)
     at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:822)
     at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:833)
     at org.apache.struts.action.RequestProcessor.processLocale(RequestProcessor.java:621)
     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:177)
     at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
     at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
     at uk.co.lex.interactive.authentication.action.AuthenticationFilter.doFilter(AuthenticationFilter.java:63)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
     at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
     at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
     at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
     at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
     at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
     at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
     at java.lang.Thread.run(Thread.java:595)

I don't know that this is the root cause of your problem, but it certainly could be. When comparing two strings, you need to use the .equals() method, not ==.
(except in the null case, where checking for null with == is perfectly okay).
if (ViewProtectedPage.getValue("trycount").equals("1")
..etc
Some other notes... use if/else if/else rather than a whole bunch of ifs, since all your statements are mutually exclusive. Maybe even put those lower ifs inside your outer "else" since you're obviously not going to reach them after a sendRedirect(). On that same note, place a return; after the sendRedirect() to state that the rest of the page need not be loaded/executed.

Similar Messages

  • Illegal State Exception with response.sendRedirect

    Hi all,
    When i am using response.sendRedirect(address), It is giving illegal state exception at few places. At few places it is working fine. I couldnt trace the reason.
    I am using tomcat 4.1 with SSL configured for the server. Will session tracking effect response.sendRedirect(address)'s ability any way?
    Can any body help me out...
    Thanks in advance...
    krish

    I believe this quite often occurs when you have tried to send some kind of response already. I.E. you should not have sent anything to the client when you call this method so start by looking for any write's you have prior to the sendRedirect().
    Ted.

  • Illegal State Exception ; Resource resolver already closed

    Hi
         In my component I have a page resource. When I am trying to get the image resource of the same as below it is throwing me an Illegal State exception
    Resource resource = page.getContentResource("image");
    My error stack trace is as follows
                     Eventhough i am not closing any resource ; it is giving me illegal state exception for the resource. Please help me in finding a solution for this.
    Thanks
    Veena

    Are you calling the right path?
    The call to page.getContentResource("image") will end up calling the following:
    resource.getResourceResolver().getResource(resource, “jcr:content/image”);

  • af:attribute Illegal state exception on tomcat

    I am getting Illegal state exception, when I use <af:attribute> referencing a row variable in treeTable :
    java.lang.IllegalStateException
         com.sun.faces.context.FacesContextImpl.assertNotReleased(FacesContextImpl.java:382)
         com.sun.faces.context.FacesContextImpl.getApplication(FacesContextImpl.java:120)
         oracle.adfinternal.view.faces.taglib.AttributeTag.doStartTag(AttributeTag.java:94)
         org.apache.jsp.ObjectList2_jspx._jspx_meth_af_attribute_0(ObjectList2_jspx.java:767)
         org.apache.jsp.ObjectList2_jspx._jspx_meth_af_commandLink_4(ObjectList2_jspx.java:749)
         org.apache.jsp.ObjectList2_jspx._jspx_meth_af_column_3(ObjectList2_jspx.java:543)
         org.apache.jsp.ObjectList2_jspx._jspx_meth_af_treeTable_0(ObjectList2_jspx.java:232)
         org.apache.jsp.ObjectList2_jspx._jspx_meth_af_form_0(ObjectList2_jspx.java:206)
         org.apache.jsp.ObjectList2_jspx._jspx_meth_afh_body_0(ObjectList2_jspx.java:188)
         org.apache.jsp.ObjectList2_jspx._jspx_meth_afh_html_0(ObjectList2_jspx.java:152)
         org.apache.jsp.ObjectList2_jspx._jspx_meth_f_view_0(ObjectList2_jspx.java:126)
         org.apache.jsp.ObjectList2_jspx._jspService(ObjectList2_jspx.java:97)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
         oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:134)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:266)
         oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:164)
         oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
         oracle.adfinternal.view.faces.webapp.FacesFilter.doFilter(FacesFilter.java:89)
    If I use f:attribute, there is no exception, but also the attribute is not created. If I use f:attribute or af:atribute with a string value, it works OK.
    Here is my page:
    <?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/EA14/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/EA14" >
    <jsp:directive.page contentType="text/html;charset=utf-8"/>
    <f:view>
         <afh:html>
         <afh:head title="Main">
              <meta http-equiv="Content-Type"
                   content="text/html; charset=windows-1250"></meta>
         </afh:head>
         <afh:body>
              <af:form>
    <af:treeTable var="row" value="#{s.userObjectTreeModel}">
         <f:facet name="nodeStamp">
              <af:column>
                   <f:facet name="header">
                        <af:outputText value="User Objects" />
                   </f:facet>
                   <af:outputText value="#{row.item.userObjectName}" />
              </af:column>
         </f:facet>
         <af:column>
              <f:facet name="header">
                   <af:outputText value="Type" />
              </f:facet>
                   <af:outputText value="Micromart" rendered="#{row.item.micromart}" />
                   <af:outputText value="Group" rendered="#{row.item.userGroup}" />
                   <af:outputText value="Object" rendered="#{row.item.userObject}" />
         </af:column>
         <af:column>
              <f:facet name="header">
                   <af:outputText value="Status" />
              </f:facet>
                   <af:outputText value="#{row.item.status}" />
         </af:column>
         <af:column>
              <f:facet name="header">
                   <af:outputText value="Actions" />
              </f:facet>
              <af:commandLink text="Edit" actionListener="#{s.selectUserObject}"
                   rendered="#{row.item.userObject}">
                   <af:attribute name="item" value="#{row.item.userObjectName}" />
              </af:commandLink>          
         </af:column>
    </af:treeTable>
              </af:form>
         </afh:body>
         </afh:html>
    </f:view>
    </jsp:root>
    and here is server.xml :
    <?xml version = '1.0' encoding = 'ISO-8859-1'?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <!-- Faces API parameter -->
    <context-param>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    <!--param-value>server</param-value-->
    </context-param>
    <!-- ADF Faces by default uses an optimized client-side state saving
    mechanism. To disable that, uncomment the following -->
    <!--context-param>
    <param-name>oracle.adf.view.faces.CLIENT_STATE_METHOD</param-name>
    <param-value>all</param-value>
    </context-param-->
    <!-- Whether or not to turn on Oracle DMS metrics -->
    <!-- set to "true" to enable DMS metrics in an OC4J environment. -->
    <!-- Then you can go to
    http://<hostname>:<port>/<context-root>/servlet/Spy -->
    <context-param>
    <param-name>oracle.adf.view.faces.ENABLE_DMS_METRICS</param-name>
    <param-value>false</param-value>
    </context-param>
    <!-- Faces Filter -->
    <filter>
    <filter-name>faces</filter-name>
    <filter-class>oracle.adfinternal.view.faces.webapp.FacesFilter</filter-class>
    <init-param>
    <param-name>faces-servlet-url-pattern</param-name>
    <param-value>/faces/*</param-value>
    </init-param>
    </filter>
    <filter>
    <filter-name>adfFaces</filter-name>
    <filter-class>oracle.adf.view.faces.webapp.AdfFacesFilter</filter-class>
    </filter>
    <!-- Faces Filter Mappings -->
    <filter-mapping>
    <filter-name>faces</filter-name>
    <url-pattern>*.jspx</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>adfFaces</filter-name>
    <servlet-name>facesS</servlet-name>
    </filter-mapping>
    <!-- Faces Servlet -->
    <servlet>
    <servlet-name>facesS</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    </servlet>
    <!-- On some version of OC4J, the following is needed when using jsf 1.0 -->
    <!--servlet>
    <servlet-name>jsp</servlet-name>
    <servlet-class>oracle.jsp.runtimev2.JspServlet</servlet-class>
    <init-param>
    <param-name>tags_reuse_default</param-name>
    <param-value>none</param-value>
    </init-param>
    </servlet-->
    <!-- Faces Servlet Mappings -->
    <servlet-mapping>
    <servlet-name>facesS</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <!-- Welcome Files -->
    <welcome-file-list>
    <welcome-file>index.jspx</welcome-file>
    </welcome-file-list>
    <!-- ADF Faces Tag Library -->
    <taglib>
    <taglib-uri>http://xmlns.oracle.com/adf/faces/EA14</taglib-uri>
    <taglib-location>/WEB-INF/af.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>http://xmlns.oracle.com/adf/faces/EA14/html</taglib-uri>
    <taglib-location>/WEB-INF/afh.tld</taglib-location>
    </taglib>
    <!-- Faces Core Tag Library -->
    <taglib>
    <taglib-uri>http://java.sun.com/jsf/core</taglib-uri>
    <taglib-location>/WEB-INF/jsf_core.tld</taglib-location>
    </taglib>
    <!-- Faces Html Basic Tag Library -->
    <taglib>
    <taglib-uri>http://java.sun.com/jsf/html</taglib-uri>
    <taglib-location>/WEB-INF/html_basic.tld</taglib-location>
    </taglib>
    <!-- Survey Demo (Custom) Tag Library -->
    <taglib>
    <taglib-uri>http://xmlns.oracle.com/adf/faces/EA14/demo</taglib-uri>
    <taglib-location>/WEB-INF/survey.tld</taglib-location>
    </taglib>
    <taglib>
    <taglib-uri>http://xmlns.oracle.com/adffacesdemo</taglib-uri>
    <taglib-location>/WEB-INF/uixdemo.tld</taglib-location>
    </taglib>
    </web-app>
    I use Tomcat 5.0.18 (embeded in Eclipse for web) and ADF Faces ea14 (with ea13 was the same problem.)
    Thanks for any hints...

    When I refresh the page after this exception, the content is displayed correctly. When I make new request on this page, I get new Illegal state exception, after the refresh the content is displayed correctly again ...

  • Illegal State Exception in JSP login

    I had a working log in/check password systems for a low security application. User types in username and password and this is sent to the checkpassword.jsp. Using Server variables I counted the number of attempts and if it was more than three, they were not allowed to try again that session. When I moved this page to newer version of Tomcat running in Apache rather than over IIS, my simple counting function no longer works and I can't for the life of me understand why I'm getting an Illegal State Exception with the following code:
    java.sql.ResultSet RS=statement.executeQuery("Select WUUSER, WUPWD FROM WEBUSER WHERE WUUSER='"+ (request.getParameter("username").toUpperCase()) + "' AND WUPWD= '" + (request.getParameter("password")) +"'");
    HttpSession ViewProtectedPage = request.getSession(true);
    HttpSession UserSession = request.getSession(true);
    if (RS.next())
    ViewProtectedPage.putValue("password","correct");
    //HttpSession UserSession = request.getSession(true);
    //allows username to be entered in upper or lower case
    UserSession.putValue("username",(request.getParameter("username")).toUpperCase());
    response.sendRedirect("tracking.jsp");
    else
    ViewProtectedPage.putValue("password","false");
    if (ViewProtectedPage.getValue("trycount")==null) {
    ViewProtectedPage.putValue("trycount","1");
    response.sendRedirect("loadtrackbadlogin.html");
    if (ViewProtectedPage.getValue("trycount")=="1") {
    ViewProtectedPage.putValue("trycount","2");
    response.sendRedirect("loadtrackbadlogin.html");
    if (ViewProtectedPage.getValue("trycount")=="2") {
    ViewProtectedPage.putValue("trycount","3");
    response.sendRedirect("loadtrackbadlogin.html");
    if (ViewProtectedPage.getValue("trycount")=="3") {
    response.sendRedirect("noentry.html");
    RS.close();
    It works fine if the user uses the proper username and password but crashes on me if they use the wrong info. I think it has something to do with my initialization of the user variables.

    I don't know that this is the root cause of your problem, but it certainly could be. When comparing two strings, you need to use the .equals() method, not ==.
    (except in the null case, where checking for null with == is perfectly okay).
    if (ViewProtectedPage.getValue("trycount").equals("1")
    ..etc
    Some other notes... use if/else if/else rather than a whole bunch of ifs, since all your statements are mutually exclusive. Maybe even put those lower ifs inside your outer "else" since you're obviously not going to reach them after a sendRedirect(). On that same note, place a return; after the sendRedirect() to state that the rest of the page need not be loaded/executed.

  • JComboBox Illegal state Exception problem

    Hello Everyone,
    I have the following code for creating a combobx in Eclipse. Now whenever eclipse reloads it gives an Illegal state exception error. When I remove the code and rewrite the same code it works fine. Any idea on how to fix this problem??
    Things are normal and there is no problem when I dont initialize the combobox.
    private JComboBox getJComboBoxNumOfSteps() {
           if (jComboBoxNumOfSteps == null) {
         String[] valStrings = { "1", "2", "3", "4", "5", "6", "7", "8", "9" ,"10","11","12","13","14","15","16","17"};
         jComboBoxNumOfSteps = new JComboBox(valStrings);
         jComboBoxNumOfSteps.setPreferredSize(new java.awt.Dimension(80,25));
         jComboBoxNumOfSteps.addActionListener(new java.awt.event.ActionListener() {
         public void actionPerformed(java.awt.event.ActionEvent e) {
                                              Integer i = new Integer(jComboBoxNumOfSteps.getSelectedIndex()+1);
                              jTextArea.append(i.toString());
              jTextArea.append("\n");
            return jComboBoxNumOfSteps;
    }Thanx Amar

    Depends what context, and who's exception....
    I'll go with my best guess here though.
    You're using wait() and notify() and or notifyAll() with some threads. In this case the IllegalStateException is being thrown because you are calling one of these methods on an object you are not holding the lock for. Here are some good resources.
    Doug Lea's site.
    http://g.cs.oswego.edu
    and the book
    http://java.sun.com/docs/books/cp/
    if not,.... oh well, describe your problem better.
    -Spinoza

  • I had to reformat my OSX 10.5.8 and i can't restore my emails from my time machine backup from an external hard drive - only the latest (post backup) time machine back ups are available to restore. Please can any help

    I had to reformat my OSX 10.5.8 and I can't restore my emails from my time machine backup from an external hard drive - only the latest (post backup) time machine back ups are available to restore. Please can any help? I can find the mail folder in my libraries, but the Restore Button is grayed out

    OSX treats the reformatted drive as a different one; it's the same as replacing it, and the old one is no longer connected.
    See #E3 in  Time Machine - Troubleshooting to see and restore from the "old" drive.
    And, you may not want to restore via the Finder; see the blue box in #15 of  Time Machine - Frequently Asked Questions.

  • My screen is gone black when I restart I get the chime but no picture mac book pro can any help get me going again

    My screen is gone black on my mac book Pro.when I restart I get the chime but no picture mac.can any help get me going again

    Is the TV at minimum a 1080p with an HDMI port?
    What is your Machine ID?  DO NOT give us your serial number.  We just need the x and y values of the Machine ID in your system profiler as given in this format:
    MacBook Pro x,y
    This will tell us what display cables can connect to your TV.

  • I am using a iPhone 3GS Version 4.3.5. It restarts while voice communication. fine. After 5 to 7 mins it will make a restart randomly and after it restart. Can any help me please to fix this problem.........

    I am using a iPhone 3GS Version 4.3.5. It restarts while voice communication. fine. After 5 to 7 mins it will make a restart randomly and after it restart. Can any help me please to fix this problem.........

    try to press the sleep/wake button + home button at the same time and hold them until the apple logo appears. that should help.

  • Please clarify on Illegal state exception

    Dear All pl explain Illegal state exception occurs in some program why. and what is the solution.

    Hi,
    This exception is thrown when a method is invoked at an illegal or inappropriate time or if the provider is not in an appropriate state for the requested operation.
    In servlets, for example, you have a method forward() in the RequestDispatcher class, which forwards the request to another resource for processing. This method should be called before the response is committed, else it throws IllegalStateException.

  • Can any help on JMS topic timeout issue

    Hi ,
              I am getting following error while reading the messages from JMS queue, can any one help me what time out setting i need to increase at console.
              Thanks in advance
              2005-11-03 05:02:36,839 ERROR ExecuteThread: '2' for queue: 'default' - Remote problem accessing topic
              weblogic.jms.common.LostServerException: weblogic.rjvm.PeerGoneException: ; nested exception is:
              java.io.IOException: A complete message could not be read on socket: 'weblogic.rjvm.t3.T3JVMConnection@6545d2', in th
              e configured timeout period of '60' secs
              at weblogic.jms.client.JMSConnection.jmsPeerGone(JMSConnection.java:917)
              at weblogic.jms.dispatcher.DispatcherWrapperState.peerGone(DispatcherWrapperState.java:703)
              at weblogic.jms.dispatcher.DispatcherWrapperState.callback(DispatcherWrapperState.java:562)
              at weblogic.rjvm.RJVMImpl$HeartbeatMonitorListenerDeliverer.execute(RJVMImpl.java:1554)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
              2005-11-03 05:02:36,843 ERROR ExecuteThread: '2' for queue: 'default' - Lost server, shutting down.
              weblogic.jms.common.LostServerException: weblogic.rjvm.PeerGoneException: ; nested exception is:
              java.io.IOException: A complete message could not be read on socket: 'weblogic.rjvm.t3.T3JVMConnection@6545d2', in th
              e configured timeout period of '60' secs
              at weblogic.jms.client.JMSConnection.jmsPeerGone(JMSConnection.java:917)
              at weblogic.jms.dispatcher.DispatcherWrapperState.peerGone(DispatcherWrapperState.java:703)
              at weblogic.jms.dispatcher.DispatcherWrapperState.callback(DispatcherWrapperState.java:562)
              at weblogic.rjvm.RJVMImpl$HeartbeatMonitorListenerDeliverer.execute(RJVMImpl.java:1554)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
              thanks,
              kiran

    Bunney:
    It is assumed at this point that the report script you use in essbase does NOT contain the greater than signs that the forum inserts.
    As I suggested on your other thread and Glenn has suggested here, the first step is to prototype an excel retrieval and then convert that retrieval into a report script.
    What is not well known by many is that you can use a report script inside excel too. All you need to do is go to the mode tab within essbase options and select free form instead of advanced interpretation (you'll want to revert it back for normal use). In free form mode, the report script can be used in a spreadsheet.
    Of course, the whole idea is to create the normal template that retrieves data, and then create the report script equivalent. So, the idea of using free form is just a way to help verify that you don't have an issue with the report engine itself.

  • Illegal State Exception when uploading file

              I am getting the following error in a jsp page that does a upload
              of a file. My enviorment is WL6.0 SP1 and it seems to occur
              when I do a pageContext.forward("xxx.jsp")
              java.lang.IllegalStateException: One of the getParameter family
              of methods calle
              d after reading from the ServletInputStream(), can't mix these
              two!
              at weblogic.servlet.internal.ServletRequestImpl.mergePostParams(ServletR
              equestImpl.java:664)
              at weblogic.servlet.internal.ServletRequestImpl.parseQueryParams(Servlet
              RequestImpl.java:585)
              at weblogic.servlet.internal.ServletRequestImpl.parseQueryParams(Servlet
              RequestImpl.java:578)
              at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat
              cherImpl.java:124)
              at weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:111
              at jsp_servlet._processagencylogoselection._jspService(_processagencylog
              oselection.java:444)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:213)
              at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
              rvletContext.java:1265)
              at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
              pl.java:1622)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >
              Any help would greatly be appreciated.
              

    Mike,
              You should not use request.getParameter before getInputStream as per servlet spec.
              Mike G wrote:
              > Yes I do within a servlet, but I don't understand why this would
              > occur though. Maybe it's because the content type is
              > multipart/x-mixed-replace;boundary=End????
              >
              > Mettu Kumar <[email protected]> wrote:
              > >Did you use request.getParameter before calling request.getInputStream
              > >?
              > >Looks like this is causing the error.
              > >
              > >Kumar.
              > >
              > >Mike G wrote:
              > >
              > >> I am getting the following error in a jsp page that
              > >does a upload
              > >> of a file. My enviorment is WL6.0 SP1 and it seems
              > >to occur
              > >> when I do a pageContext.forward("xxx.jsp")
              > >>
              > >> java.lang.IllegalStateException: One of the getParameter
              > >family
              > >> of methods calle
              > >> d after reading from the ServletInputStream(), can't
              > >mix these
              > >> two!
              > >> at weblogic.servlet.internal.ServletRequestImpl.mergePostParams(ServletR
              > >> equestImpl.java:664)
              > >> at weblogic.servlet.internal.ServletRequestImpl.parseQueryParams(Servlet
              > >> RequestImpl.java:585)
              > >> at weblogic.servlet.internal.ServletRequestImpl.parseQueryParams(Servlet
              > >> RequestImpl.java:578)
              > >> at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispat
              > >> cherImpl.java:124)
              > >> at weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:111
              > >> )
              > >> at jsp_servlet._processagencylogoselection._jspService(_processagencylog
              > >> oselection.java:444)
              > >> at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              > >> at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              > >> pl.java:213)
              > >> at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
              > >> rvletContext.java:1265)
              > >> at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
              > >> pl.java:1622)
              > >> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
              > >> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              > >> >
              > >> Any help would greatly be appreciated.
              > >
              

  • How to avoid illegal state exception in jsp/servlets

    Hi,
    Am working on jsps and servlets ,some times am getting Illegalstateexception,in what situations we will get this exception,can any one tell clearly about this exception..
    mani

    Since there's no other real supporting information you have out there, I can only take a wild stab at this...
    My guess is that you're trying to invoke methods on the server with your jsp code that isn't allowed. For example, I often work with a PDM software that will throw Illegalstateexceptions when I try to modify objects in the system that are not checked out. More than a java thing, this might be an issue with the servlets you're using. If your servlet is being provided by a vendor, you might want to check up on their API for more information about such an error occuring, or consult their technical support, if such a group exists.
    If this is your own servlet, I would suggest making sure that the methods you're trying to invoke are available for the servlet to invoke, which would also cause that exception.

  • Can any help me how to install webcenter sites on windows

    I had downloaded " ofm_sites_generic_11.1.1.6_bp1_disk1_1of1.zip " from ONT forum , but i want step by step procedure for installation..
    can any one help me ..

    This is the wrong forum, as it is not related to oracle webcenter.
    Also look at what a small google search for "install oracle webcenter" turned up:
    http://docs.oracle.com/cd/E23943_01/install.1111/e12001/install.htm
    So I'd suggest you do what everyone else who'd install webcenter need to do: go through the documentation and try it yourself before asking someone else to abstract the manuals for you. If you get into troubles there is nothing wrong with asking for help in the correct forum.
    cheers

  • Can any help me, shrink my screen on my iphone?

    Hello any help me by telling how to shrink the image on my iphone. Everything is large and unable to operate my cell?

    If you have trouble fixing this using the iPhone, you can use iTunes on your computer as explained here:  iPhone and iPod touch: Home screen icons are magnified or large,  http://support.apple.com/kb/ts3129

Maybe you are looking for

  • System is showing Bill Doc No in VF01 but in VF02 - No billing doc generate

    While creating invoice using Billing Plan, only for certain contacts,  we face an issue. In VF01-The system is saying Billing document XXXXXX123 is created but in VF02 , we are not able to see any document and the system says No billing document is g

  • How to run procedure in forms

    hi to all How to run the database procedure in Forms while the program Unit in forms is also having the same name of the database procedure.

  • Windows File Save dialog freezes a virtual folder

    We have a shell namespace  extension that presents a remote document repository as a virtual  folder in the Desktop folder. When the File Save dialog box is opened from  within Adobe Reader or  Acrobat version 9, our  virtual folder appears inactivat

  • No. of hidden fields in a jsp..

    Hi, I would like to know if there is any limit to the no. of hidden fields in a jsp page. What effect does the page/browser have if there are many hidden fields(like about say 50) in a single page. any ideas. thanks jag

  • Stopping Background job in Risk Analysis and Remediation

    Hi, We have scheduled background job for Batch Risk Analysis in CC 5.3. Later we have terminated that job for some reasons. But that terminated job status is showing as Stopping from past 3 days. How we can cancel that job? We have restated the J2E s