Error 500: ERROR: Cannot forward. Writer or Stream already obtained. Error

hi
i m unable to fugure out y I m getting this error
it's a suggestion page and on submitting this page I have to reload the page but with status of the page (requires approval) in form of url
earlier say few days back , it was working fine , i had absolutely no issues in this
since 2-3 days everytime i submit the page , i m getting the error
Error 500: ERROR: Cannot forward. Writer or Stream already obtained. Error 500
my code is listed below
pls help
<%@ include file="../includes/sessionChecker.jsp"%>
<%@ page isThreadSafe="false" errorPage="../html/messError.jsp" %>
<%@ page import="java.io.*,java.util.*,java.sql.*" %>
<%@ page import="com.syntaxsoft.util.*" %>
<%@ page import="com.syntaxsoft.util.DateUtil" %>
<%@ page import="com.syntaxsoft.admin.*" %>
<%@ page import="com.syntaxsoft.employee.*" %>
<%@ page import="com.syntaxsoft.db.*" %>
<%@ include file="../includes/cssJsInclude.jsp"%>
<%@ taglib uri="QuinnoxTags" prefix="QuinnoxTags" %>
<html>
<head>
<title>Suggestions</title>
<meta http-equiv="Content-Type" content="xls/html; charset=iso-8859-1">
<link href="../STYLESHEET/stylesheet.css" rel="stylesheet" type="text/css">
</head>
<body>
<%!
     Table sqltab;
     SqlBuilder sqlObj;
%>
<%
     String dofc = "",subject="",suggestion = "",docsrno="",actions="";
     String pick_button = "",locateid = "",employid="",url="";
     String employeeid="";
     String tabname=" ";
     boolean success = false;
     ResultSet rs= null;
%>
<%
     employid = (String) session.getAttribute("empid");
     locateid = (String) session.getAttribute("locationid");
     Employee empobj = Employee.getEmployee(employid);
     DateUtil dateform = new DateUtil(locateid);
     actions = request.getParameter("actions");
     pick_button = request.getParameter("DECISION");
     System.out.println("ACTION"+actions);
     System.out.println("pick_button"+pick_button);
%>     
<body>
<%
     if(actions.equals("create")){
          if(pick_button == null){
%>     
               <form name="form1" method="post" action="../HRFiles/Suggestions.jsp">
                    <input type="hidden" name="actions" value="<%=actions%>">
               <div class="page_heading">Suggestion Box</div><br>
               <table>
                    <tr><th>From:</th><td><%=empobj.getFullName()%></td></tr>
                    <tr><th>Dated:</th><td><%=dateform.getToday()%></td></tr>
                    <tr><th>Subject</th><td><QuinnoxTags:TextBox type="text" name="subject" maxLength="65" required="true" value=" " label="Subject"/></td></tr>
                    <tr><th colspan="2">Suggestion:</th></tr>
                    <tr><td colspan="2"><QuinnoxTags:TextBox name="suggestion" type="textarea" cols="60" rows="13" required="true" value=" " label="Suggestion" maxLength="250"/></td></tr>
               </table><br>
               <table>
          <tr>
               <td align="right">
                    <input type="submit" name="DECISION" value="Submit" class="button">
               </td>
          </tr>
     </table>
               <input type="hidden" name="empid" value="<%=employid%>"
               <jsp:include page="../masters/flow.jsp" flush="true">
                    <jsp:param name="CREATOR" value="true"/>
                    <jsp:param name="TABNAME" value="SUGGESTION_WKFLOW"/>
               </jsp:include>               
<!--               <table>
                    <tr><td align="right"><input type="submit" name="submit" value="Submit" class='button'></td></tr>
               </table>-->
          </form>
<%
          else{
               dofc          = dateform.getTodayMillis()+"";
               subject          = request.getParameter("subject");          
               suggestion     = request.getParameter("suggestion");
               tabname =request.getParameter("TABNAME");          
               // insert into SUGGESTIONS
               // generate key
               IDs idObj = IDs.getIDs();
               docsrno = idObj.getId("SUGGESTIONID");
               sqlObj=new SqlBuilder("SUGGESTIONS");
               sqlObj.setColumn("DOCSLNO",docsrno);
               sqlObj.setColumn("EMPID",employid);
               sqlObj.setColumn("DOFC",dofc);
               sqlObj.setColumn("DOFCZONE",locateid);
               sqlObj.setColumn("SUBJECT",tabname);
               sqlObj.setColumn("SUGGESTION",suggestion);
//          System.out.println("empid is "+request.getParameter("empid"));
               System.out.println("empid is "+employid);
               success = sqlObj.set(SqlBuilder.INSERT);
%>                         
               <jsp:include page="../masters/flow1.jsp" flush="true">
                    <jsp:param name="DECISION" value="<%=request.getParameter(com.syntaxsoft.admin.WorkFlow.DECISION)%>" />
                    <jsp:param name="empid" value="<%=request.getParameter(\"empid\")%>" />
                    <jsp:param name="VIEWLEVEL" value="<%=request.getParameter(com.syntaxsoft.admin.WorkFlow.VIEWLEVEL)%>" />
                    <jsp:param name="VIEWERID" value="<%=request.getParameter(com.syntaxsoft.admin.WorkFlow.VIEWERID)%>" />
                    <jsp:param name="COMMENTS" value="<%=request.getParameter(com.syntaxsoft.admin.WorkFlow.COMMENTS)%>" />
                    <jsp:param name="DOCSLNO" value="<%=docsrno%>"/>
                    <jsp:param name="CREATOR" value="true"/>
                    <jsp:param name="TABNAME" value="<%=request.getParameter(\"TABNAME\")%>" />
                    <jsp:param name="MASTER_TABLE" value="SUGGESTIONS" />
               </jsp:include>
               <jsp:include page="../includes/redirectInclude.jsp" flush="true">
                    <jsp:param name="url" value="../HRFiles/ViewSuggestion.jsp?flag=empview" />
               </jsp:include>
<%
          } // end of if(pick_button == null)
     } // end of if(actions == create)
     if(actions.equals("select")){
          rs = sqltab.select("select * from SUGGESTIONS");
          if(rs.next()){
%>
               <div class="page_heading">List of Suggestions</div><br>
               <table>
                    <tr>
                         <th>Employee Id</th>
                         <th>Employee Name</th>
                         <th>Suggestion Date</th>
                         <th>Subject</th>
                    </tr>
<%          
               do{
                    docsrno = rs.getString("DOCSLNO");
                    employeeid = rs.getString("EMPID");
                    dofc = rs.getString("DOFC");
                    subject = rs.getString("SUBJECT");
                    Employee empobj1 = Employee.getEmployee(employeeid);
                    url = "../HRFiles/Suggestions.jsp?actions=view&docsrno="+docsrno;
%>
                    <tr>
                         <td><a href="<%=url%>"><%=employeeid%></a></td>
                         <td><a href="<%=url%>"><%=empobj1.getFullName()%></a></td>
                         <td><a href="<%=url%>"><%=dateform.getDate(dofc)%></a></td>
                         <td><a href="<%=url%>"><%=subject%></a></td>
                    </tr>                    
<%               
               }while(rs.next());
          } // end of if
     } // end of if(actions == select)
     if(actions.equals("view")){
          docsrno = request.getParameter("docsrno");
          rs = sqltab.select("select * from SUGGESTIONS where DOCSLNO='"+docsrno+"'");
          if(rs.next()){
               do{
                    docsrno = rs.getString("DOCSLNO");
                    employeeid = rs.getString("EMPID");
                    dofc = rs.getString("DOFC");
                    subject = rs.getString("SUBJECT");
                    suggestion = rs.getString("SUGGESTION");
               }while(rs.next());
          } // end of if()
          Employee empobj2 = Employee.getEmployee(employeeid);
%>
          <div class="page_heading">Suggestion Box</div><br>
          <table>
               <tr><th>From:</th><td><%=empobj2.getFullName()%></td></tr>
               <tr><th>Dated:</th><td><%=dateform.getDate(dofc)%></td></tr>
               <tr><th>Subject</th><td><%=subject%></td></tr>
               <tr><th colspan="2">Suggestion:</th></tr>
               <tr><td colspan="2"><textarea name="suggestion" cols="70" rows="10" readonly><%=suggestion%></textarea></td></tr>
          </table><br>
          <table>
               <tr><td colspan="4" align="right">Back</td></tr>
          </table>
<%     
     } // end of if(actions == view)
%>
</body>
</html>
rgds

The problem is that you are trying to do a forward somewhere when output has already been sent to the browser: this is not allowed. I cannot find it in your code, so it must be in one of the includes.

Similar Messages

  • Cannot forward. Writer or Stream already obtained.

    hi Friends,
    had a small doubt to clarify
    I am using jsp:include tag to include a jsp page within a jsp
    <jsp:include page="../includes/empHeader.jsp" flush="true">
    <jsp:param name="empid" value="<%=empid%>"/>
    </jsp:include>
    <jsp:include page="../leave/leaverecordcomponent.jsp" flush="true">
    <jsp:param name="empid" value="<%=empid%>"/>
    </jsp:include>
    I am able to view empHeader.jsp but unable to view leaverecordcomponent.jsp
    I m getting this error
    Error 500: ERROR: Cannot forward. Writer or Stream already obtained. Error 500:
    However if i replace
    <jsp:include page="../leave/leaverecordcomponent.jsp" flush="true">
    by
    <jsp:include page="../employee/Skills.jsp" flush="true">
    then i can view empHeader.jsp and then Skills.jsp
    What's to be done ?
    Thanx

    I am guessing that "../leave/leaverecordcomponent.jsp" does a forward, either through a controller servlet, a filter, or on the page it self.
    What can you do? Prevent ../leave/leaverecordcomponent.jsp from doing a forward, because once the response is commited (something writtent to it), then you can not forward.

  • Error Message- you cannot post write up

    HII friends
    I have an issue that our client have posted unplanned depreciation to one asset which is wrong on 31/3/07. now they want to write up the same on the same date. but system is not allowing the same date it is giving error
    YOU CANNOT POST WRITE UP.
    Message details:
    None of the areas to be posted in accordance with the transaction type entered manages one of the depreciation types entered or cumulative values
    Please help its very urgent///
    sejal

    this issue is solved

  • Tiles- Cannot forward after response has been committed Error

    I am trying to use following approach for my tiles implementation but i am getting error like
    java.lang.IllegalStateException: Cannot forward after response has been committed.
    I have gone thorugh the other posts regarding the same error but not helping me.
    Any clues greatly appreciated.
    Thanks,
    Sachin
    "I haven't found a way to directly dispatch to a tiles definition, but you can eliminate the need for multiple "wrapper" JSPs by creating a single "tilesDispatch" JSP that is able to dispatch to different tiles definitions, and establishing a convention for mapping URLs to that JSP, and identifying the tiles definition you want to load.
    For example, you could use the following convention to identify a tiles definition:
    /tiles/defName
    where "defName" is the name of the tiles definition (from tiles.xml) that you want to use. The code for the tilesDispatch.jsp would be as follows:
    <%@ page contentType="text/html;charset=UTF-8" language="java" %>
    <%@ taglib prefix="t" uri="http://jakarta.apache.org/struts/tags-tiles" %>
    <%
    String tilePath = request.getRequestURI();
    int slashIndex = tilePath.lastIndexOf('/');
    if (slashIndex >= 0) {
    tilePath = tilePath.substring(slashIndex+1);
    %>
    <t:insert definition="<%=tilePath%>" flush="false"/>
    The scriptlet code takes the request URL (e.g. /tiles/defName), strips off everything up to and including the final slash (e.g. defName), then the tiles "t:insert" tag is used to look up and insert the corresponding tiles definition.
    In order to map all URLs of the form /tiles/* to the tilesDispatch.jsp, you would need to add the following to your web.xml:
    <servlet>
    <servlet-name>tilesDispatch</servlet-name>
    <jsp-file>tilesDispatch.jsp</jsp-file>
    </servlet>
    <servlet-mapping>
    <servlet-name>tilesDispatch</servlet-name>
    <url-pattern>/tiles/*</url-pattern>
    </servlet-mapping>
    Note: You may need to insert a slash before tilesDispatch.jsp in the <jsp-file> element. I am using pre-compiled JSPs, so my configuration is a little different. So if <jsp-file>tilesDispatch.jsp</jsp-file> doesn't work, try <jsp-file>/tilesDispatch.jsp</jsp-file>.
    Once you have this set up, you can refer to tiles definitions using the /tiles/defName convention in your faces-config.xml. For example, if you have two tiles definitions in your tiles.xml file: tile1 and tile2, you could have something like the following in faces-config.xml:
    <navigation-rule>
    <from-view-id>/tiles/tile1</from-view-id>
    <navigation-case>
    <from-outcome>success</from-outcome>
    <to-view-id>/tiles/tile2</to-view-id>
    </navigation-case>
    </navigation-rule>
    Note that when I have used this convention, I also have used the prefix mapping for JSF. That is, when linking to a JSF page, based on a tiles definition, from a non-JSF page, the URL would be as follows:
    /faces/tiles/defName
    In this case, the Faces servlet is initially invoked, which sets up the JSF environment. Then the /faces prefix is stripped off, and the remaining URL (/tiles/defName) is routed to the tilesDispatch.jsp, which strips off the /tiles/ prefix, and inserts the "defName" definition.
    We are currently using this approach in a number of web apps, and it is working very reliably. I hope this helps.

    Hi gimbal2,
    I hope to better explain.
    In my JSF code I have the next:
    <html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:rich="http://richfaces.org/rich"
    xmlns:a4j="http://richfaces.org/a4j"
    xmlns:fn="http://java.sun.com/jsp/jstl/functions">
         <h:body>
              <ui:composition template="/template.xhtml">
                   <ui:define name="page">
                        <h:head>
                             <h:outputStylesheet ...
                        </h:head>
                        <h:form id="form1">
                             <rich:dataTable      id="table"
                                            value="#{listBeanRequest.elements}"
                                            var="element">
         </h:body>
    </html>
    In the listBeanRequest class, the method getElements() has a line, Integer h = Integer.valueOf("a");, which efforts the java.lang.NumberFormatException
    An in my web.xml I have:
    <filter>
         <filter-name>SecurityFilter</filter-name>
         <filter-class>my.filter.SecurityFilter</filter-class>
    </filter>
    I'm using JSF 1.2 running on Apache Tomcat 6

  • My MacBook Pro, 1.83 GHz Intel Core Duo gives me an error message during Lion install. My Intel Duo Core is not an Intel Duo Core and cannot install Lion.  I already have Snow Leopard what is the problem with Lion?

    My MacBook Pro, 1.83 GHz Intel Core Duo gives me an error message during Lion install. My Intel Duo Core is not an Intel Duo Core and cannot install Lion.  I already have Snow Leopard what is the problem with Lion?

    You need a "Core 2 Duo" for lion, and I'm guessing you only have a "Core Duo"  My wife's macbook is also a "Core Duo" and has Snow Leapord, but cannot install Lion.....

  • Error : External ID cannot be used; it has already been used .

    Hi ,
    Sometime the following senario happend the user delete and want to recreate with the same Marketing Element ID
    If we create a Marketing Element with a ID, and Delete it , and after recreate it with the same ID .
    SAP issue the following message :  Details External ID cannot be used; it has already been used .
    Did somebody find an solution ?

    Hi Christophe,
    we face the same problem. Do you have a solution?
    Best regards,
    John

  • Java.lang.IllegalStateException : output stream already retrived Error

    Hi All
    I am trying to integrate crystal reports 10g with oracle 10g AS.My application works fine on TOMCAT 4.1.31,but when I depoly in oracle 10G AS,it shows the following exception
    Java.lang.IllegalStateException : output stream already retrived.
    Any suggestions?
    Regards
    Mohan

    Hello,
    Awaiting help.
    Thanks and Regards
    Mohan

  • IllegalStateException: Cannot forward to same URI

    I am getting the below error. Can some one explain
    this error? Thank you.
    500 Internal Server Error
    com.livesoftware.jsp.JSPServlet:
    java.lang.IllegalStateException: Cannot forward to same URI '/telecom/ErrorJSP.jsp'
    What does this mean and what should I look for.

    It seems that your error page has an error, and tries to forward to itself.
    This would result in an endless loop.
    Check the page /telecom/ErrorJSP.jsp to see why it would forward to itself.

  • Cannot forward a response that is already committed  exeption after Log out

    Hello,
    I am using Jdeveloper 11.1.1.3.0, ADF DC, ADF Faces, ADF security.
    I have a logout button in my template, and I want the user to go back to login page (login.html; which was generated automaticlly when you use ADF security) after successful Log out.
    here is my logout method
        public String doLogOut() throws IOException {
            // Add event code here...
            ExternalContext ectx =
                FacesContext.getCurrentInstance().getExternalContext();
            HttpServletResponse response = (HttpServletResponse)ectx.getResponse();
            HttpSession session = (HttpSession)ectx.getSession(false);
            session.invalidate();
            response.sendRedirect("login.html");
            return null;      
        }when I click the log out button, every thing seems ok, and the user redirected to login.html page. However, I see the following Exception in Jdeveloper Log window.
    <Jan 4, 2012 12:16:31 PM EET> <Error> <HTTP> <BEA-101020> <[ServletContext@19059163[app:CTP-New module:CTP-New-ViewController-context-root path:/CTP-New-ViewController-context-root spec-version:2.5 version:V2.0]] Servlet failed with Exception
    java.lang.IllegalStateException: Cannot forward a response that is already committed
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:122)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
         Truncated. see log file for complete stacktrace
    >
    <Jan 4, 2012 12:16:31 PM EET> <Notice> <Diagnostics> <BEA-320068> <Watch 'UncheckedException' with severity 'Notice' on server 'DefaultServer' has triggered at Jan 4, 2012 12:16:31 PM EET. Notification details:
    WatchRuleType: Log
    WatchRule: (SEVERITY = 'Error') AND ((MSGID = 'BEA-101020') OR (MSGID = 'BEA-101017') OR (MSGID = 'BEA-000802'))
    WatchData: DATE = Jan 4, 2012 12:16:31 PM EET SERVER = DefaultServer MESSAGE = [ServletContext@19059163[app:CTP-New module:CTP-New-ViewController-context-root path:/CTP-New-ViewController-context-root spec-version:2.5 version:V2.0]] Servlet failed with Exception
    java.lang.IllegalStateException: Cannot forward a response that is already committed
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:122)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
         at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
         at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch(FacesContextFactoryImpl.java:267)
         at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:473)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:141)
         at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
         at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:710)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:273)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:205)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:414)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    SUBSYSTEM = HTTP USERID = <WLS Kernel> SEVERITY = Error THREAD = [ACTIVE] ExecuteThread: '11' for queue: 'weblogic.kernel.Default (self-tuning)' MSGID = BEA-101020 MACHINE = Mjabr-PC TXID =  CONTEXTID = 4b079561b4c220a0:10458ad0:134a7995c3f:-8000-0000000000000241 TIMESTAMP = 1325672191307 
    WatchAlarmType: AutomaticReset
    WatchAlarmResetPeriod: 30000
    >Further more when I try to login again, I get this message in the browser
    Error 403--Forbidden
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.4 403 Forbidden
    The server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated. If the request method was not HEAD and the server wishes to make public why the request has not been fulfilled, it SHOULD describe the reason for the refusal in the entity. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.Any help is highly appreciated.

    Thank you ADF7,
    I used this method
        public String doLogOut() throws IOException {
            // Add event code here...
            FacesContext ctx = FacesContext.getCurrentInstance();
            HttpServletRequest request =
                (HttpServletRequest)ctx.getExternalContext().getRequest();
            ExternalContext ectx =
                FacesContext.getCurrentInstance().getExternalContext();
            try {
                ectx.redirect(request.getContextPath() +
                              "/login.html");
            } catch (Exception exp) {
                exp.printStackTrace();
            return null;
        }but when I re login again I get the same error in the browser
    Error 403--Forbidden
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.4 403 Forbidden
    The server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated. If the request method was not HEAD and the server wishes to make public why the request has not been fulfilled, it SHOULD describe the reason for the refusal in the entity. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.

  • You cannot post write-ups

    Guru's
    we are getting this error message while posting the write up for a asset which has Accumulated depreciation for the pervious year as well as normal planned depreciation in the current year.
    You cannot post write-ups
    Message no. AA400
    Diagnosis
    According to the transaction type, you have to post to area 01. However, in this area, there is either no accumulated depreciation or the write-up depreciation type(s) are not managed in this area.
    Procedure
    Check the transaction type.
    who can i post the write up for the assets with out this error??? is this error should be interpreted as, due to no accumulated depreciation or write up depreciation is not in the particular asset for current year or previous year???
    kindly help me in this regards.  Thanks in advance.
    With regards
    Satish Karantth k.

    Hi,
    Write-ups are used for correction of depreciation values calculated in
    the past (closed fiscal years). It is not possible to post write-ups to
    assets that have been acquired within the current year. If you attempt
    this, you will receive error AA402. Please review the R/3 Library
    documentation for further information. The documentation describes the
    procedure for write-ups as well as the two situations where write-ups
    can be used.
    A write-up is generally understood to be a later change to the valuation
    of an asset. This change can take different forms, depending on the
    reasons for the change. A write up can only be posted, if there are
    accumulated values on an asset, it means the posting of a write up
    corrects the depreciation from the past.
    For example - The value adjustments (depreciation) that you calculated
    in the past were too high. You must now correct this error using a
    write-up in the current fiscal year. You can only post a write up, if an
    asset has accumulated values.
    But again the write-up functionality is designed to change prior year
    asset not current year acquired ones.
    If manual changes are necessary it may be possible for you to use
    transactions ABMA - Manual depreciation or ABAA - Unplanned depreciation
    to correct the depreciation amount.
    Open the new fisical year and do the write-up from the previous fisical year
    Regrds
    Venkataswamy

  • Cannot perform write  (ILLEGAL_INPUT)

    Hi Experts,
    I am getting error Cannot perform write (ILLEGAL_INPUT) while trying to input data via input template/flat file and BW.
    all members used are base level members.
    I also tried note 1759399, but still get the same error.
    Please help.
    Sonali

    Hi Sonali,
    The real-time behavior of the infocube must be changed in the backend.  Go to RSA1, right click on the infocube > Planning-Specific Properties > Change Real-Time Load Behavior > Real-Time Data Target Can be planned; Data Loading not allowed.
    Hope this works....
    Best regards,
    Vijay

  • Jsp org.apache.jasper.JasperException: Cannot forward after response has be

    what does this mean?
    org.apache.jasper.JasperException: Cannot forward after response has been committed
    I can't find an explanation of the error in general on the web? I am using dispatcher.,forward?
    <%@ page import="java.io.*" %>
    <%@ page import="javax.servlet.*" %>
    <%@ page import="javax.servlet.http.*" %>
    <%@ page import="java.util.*" %>
    <%@ page import="java.text.*" %>
    <%@ page import="javax.xml.parsers.DocumentBuilderFactory" %>
    <%@ page import="javax.xml.parsers.*" %>
    <%@ page import="org.w3c.dom.Document" %>
    <%@ page import="org.w3c.dom.DOMException" %>
    <%@ page import="org.w3c.dom.Element" %>
    <%@ page language="java" import=".*" %>
    <jsp:useBean id="manageAddressBook" scope="session" class=".ManageAddressBook" />
    <%! .AddressBook ab; %>
    <%! //String addJSP = "http://localhost:8080/examples/jsp//display.jsp"; %>
    <%! String addJSP = "Add.jsp"; %>
    <%! String displayJSP = "display.jsp"; %>
    <%! boolean noPrev = false; %>
    <% String displayPage = "display.jsp";
       String addPage     = "Add.jsp";
       String loginPage   = "login.jsp";
    Enumeration enum = request.getParameterNames();
    AddressBook ab;
    String lastPageVar = request.getParameter("lastPageVar");
    String button = (String)request.getParameter("submit");
    if (lastPageVar == null)
       lastPageVar = "";
    //Figure out what the dispatcher needs to do
    String actionVar = request.getParameter("actionVar");
      if (actionVar == null)
         actionVar = "";
    //check login status
    Object loginObj = session.getAttribute("isLoggedIn");
    boolean isLoggedIn;
    if (loginObj != null)
       isLoggedIn = ((Boolean) loginObj).booleanValue();
    else
       isLoggedIn = false;
    if (lastPageVar.equals("")){
       session.setAttribute ("fromDispatcher", new Boolean(true));
       session.setAttribute("firstCall", new Boolean(false));
       callWebPage(request,response,session,loginPage);
    else
       session.setAttribute("firstCall", new Boolean(false));
    //if (!(isLoggedIn))
    //  callWebPage(request,response,session,loginPage);
    if (lastPageVar.equals("LOGIN_PAGE")){
       String username = (String)request.getParameter("username");
       String password = (String)request.getParameter("password");
       isLoggedIn = checkLogin(username,password);
       Boolean isLoggedInObj = new Boolean(isLoggedIn);
       session.setAttribute ("isLoggedIn", isLoggedInObj);
       if (isLoggedIn)
         callWebPage(request,response,session,displayPage);
       else
         callWebPage(request,response,session,loginPage);
    if (lastPageVar.equals("DISPLAY_PAGE")){
      if (button.equals("logout"))
        callWebPage(request,response,session,loginPage);
      if (button.equals("next") || button.equals("previous"))
        callWebPage(request,response,session,displayPage);
      else
        callWebPage(request,response,session,addPage);
    if (lastPageVar.equals("ADD_PAGE")){
      if (button.equals("logout"))
         callWebPage(request,response,session,loginPage);
      //if save or cancel, then just save or cancel and return to display screen.
      if (button.equals("save")){
        manageAddressBook.edit(request);
        callWebPage(request,response,session,displayPage);
      if (button.equals("Add"))
        callWebPage(request,response,session,displayPage);
      else
        ab = (AddressBook)session.getAttribute("currAddressBook");
      if (button.equals("Delete")) {
        ab = (AddressBook)session.getAttribute("currAddressBook");
        manageAddressBook.setDelete(ab);
        callWebPage(request,response,session,displayPage);
      if (button.equals("cancel"))
        callWebPage(request,response,session,displayPage);
    %>
    <%-- JSP FUNCTIONS  --%>
    <%!
    public boolean checkLogin(String username, String password) {
       if (username.equals("mypage") && password.equals("guesswho"))
         return true;
       else
         return false;
    void callWebPage( HttpServletRequest request,HttpServletResponse response,HttpSession session,String webPage)
        throws ServletException, IOException {
      //verifies from dispather
      session.setAttribute ("fromDispatcher", new Boolean(true));
      RequestDispatcher dispatch = request.getRequestDispatcher( webPage );
      dispatch.forward(request,response);
    %>

    Its like this.. after you dispatch the request by the method call [callWeb...], the dispatcher would dispatch the request to that page and after the page is dispatched and response has been sent, the execution continues on this JSP, ie from the line after the call to the [callWeb..] function.. All you need to do to avoid this exception is,
    a) put a return; statement after the call to the function.
    Or
    b) structure your code in such a way that after the call to the [callWeb..] function, the execution would not continue;
    I would prefer the first condition though along with structuring the code in such a way that you need not have that many calls to the function. Instead have a String dest variable, which would change and make a call in the end
    Cheers
    -P

  • Cannot perform write (ILLEGAL_INPUT) - BPC Cube

    Hello Friends,
    I getting the below error in log file while uploading the transnational data from BI to BI BPC Cube.
    DM Package: Import_Transaction_Data_BW_Delta
    /CPMB/MODIFY completed in 0 seconds
    /CPMB/SOURCE_DELTA_IP completed in 107 seconds
    /CPMB/CLEAR completed in 0 seconds
    [Selection]
    INFOPROV_INIT_NAME = Actuals_GL
    RUNLOGIC = No
    CHECKLCK = No
    [Message]
    Task name SOURCE DELTA INFOPROVIDER:
    Cannot perform write (ILLEGAL_INPUT)
    model: . Package status: ERROR
    The same package is running in other model and its working fine.
    Can anyone please help me to give the correct reason why it gives the error.
    Regards,
    Rajesh. K

    Hi Rajesh,
    I think in the backend you may change the structure of the cube.
    Go to backend I mean BW and use RSA1 tcode
    Next choose your cube and right click on it, later choose real time load behavior, check their is in planning mode or data loading mode, if it is in data loading mode please change in to planning mode and run the package .
    Regards,
    Saida Reddy G

  • Author       "javax.sound.midi.InvalidMidiDataException: cannot get soundbank from stream" after java update

    Not sure where to post this issue.
    I am noticing this error since I did the Mac update. The Mac update included the java update. Right now the java version is 1.6.0_31. My Mac OS X version is 10.7.3. I am seeing the problem for all the soundfont files that I am trying to load. The error i get is.
    javax.sound.midi.InvalidMidiDataException: cannot get soundbank from stream
         at javax.sound.midi.MidiSystem.getSoundbank(MidiSystem.java:565)
         at myPackage.MyMusicApp.main(MyMusicApp.java:14)
    Below is a small program I built that shows the code.
    package myPackage;
    import java.io.File;
    import javax.sound.midi.*;
    public class MyMusicApp {
        public static void main(String[] args) {
            try {
                Synthesizer synth = MidiSystem.getSynthesizer(); synth.open();
                File f =  new File("/Users/poorav/eclipseGIT/myApp/soundbanks/1247_KitDRY.sf2");
                Soundbank soundbank = MidiSystem.getSoundbank( f);
                synth.loadAllInstruments(soundbank);
            } catch (Exception e)
                e.printStackTrace();
    I am not sure what the previous build of java I was on, but i know that it was a 1.6 version. Any ideas of what could have caused this?
    thanks

    No satisfactory progress!
    I submitted a bug for this using the Apple bug reporter on 9th April (#11208868) and despite asking for an update, it has been completely ignored (even now). I'm not impressed.
    I then issued a (paid for) Developer Technical Support issue which was credited back to my account a few days later with no explanation. When I asked why, I eventually got: "At this time DTS does not provide code-level support for Java"!
    So, Apple are assuming to responsibility for this problem. I realise that Oracle is mostly responsible for Java but Apple took this crippled version (how much testing did they do?) and updated our customers' machines with it. This has effectively disabled a key feature of our product and has cost us damage to our company's reputation. Still Apple don't care and they rely on the fact that we are too small to sue them. You can see I'm not happy! I naively thought Apple would make some attempt to assist their developers.

  • Cannot start mwa audio streaming from web site

    Dear all,
    I found that i cannot open a wma audio streaming from web sit. Safari popup a error message that the mime audio type is not available. Although I've already installed flip4mac and Media Player 9, both Safari/Firefox cannot playing such audio stream. Is it a plug-ins issue and how can I to check and resolve this? Please help.
    Eric

    Jeremy Williams wrote:
    > I am looking for a free, or not-so-free script or
    Dreamweaver extention that
    > will enable me to progressively stream mp3 music on my
    web pages, but one that
    > does not start playing unless you press a play button.
    Also, it would be nice
    > if it had other control buttons.
    >
    > If anyone is aware of anything like this, I sure would
    appreciate it!
    > Thank you in advance!!
    >
    This one is cool ($34):
    http://www.coffeecup.com/web-jukebox/
    (Warning, song starts playing when you browse there)
    Bonnie
    in California
    8 ^ )

Maybe you are looking for