javax.portlet.PortletException: Cannot set character encoding after HTTP body is accessed.

grokbase.com | 5 months ago
  1. 0

    [MyFaces-users] [tobago] and <tc:button> in a portlet - Grokbase

    grokbase.com | 5 months ago
    javax.portlet.PortletException: Cannot set character encoding after HTTP body is accessed.
  2. 0
    In cause your problem comes because of mediastore, you have to try changing Albums.ALBUM_ID, to Albums._ID
  3. 0
    In all ActiveAndroid tables there should be a primary key field with the name "Id" (with a capital "I").
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    The cursor might not be initalized.
  6. 0
    You expected a file in the SD card or internal memory, but you have to deal with a file from Google drive.
    via GitHub by forouher

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Cannot set character encoding after HTTP body is accessed.

      at org.apache.pluto.internal.impl.PortletRequestImpl.setCharacterEncoding()
    2. Pluto Portlet Container
      PortletRequestImpl.setCharacterEncoding
      1. org.apache.pluto.internal.impl.PortletRequestImpl.setCharacterEncoding(PortletRequestImpl.java:594)
      1 frame
    3. org.apache.myfaces
      ViewHandlerImpl.restoreView
      1. org.apache.myfaces.tobago.util.RequestUtils.ensureEncoding(RequestUtils.java:45)
      2. org.apache.myfaces.tobago.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:165)
      2 frames
    4. Impl
      MyFacesGenericPortlet.processAction
      1. org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:140)
      2. org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:65)
      3. org.apache.myfaces.portlet.MyFacesGenericPortlet.processAction(MyFacesGenericPortlet.java:220)
      3 frames
    5. Pluto Portlet Container
      PortletServlet.doPost
      1. org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:214)
      2. org.apache.pluto.core.PortletServlet.doPost(PortletServlet.java:145)
      2 frames
    6. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      2 frames
    7. Glassfish Core
      ApplicationDispatcher.include
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
      4. org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
      5. org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
      5 frames
    8. Pluto Portlet Container
      PortletContainerImpl.doAction
      1. org.apache.pluto.core.PortletInvoker.invoke(PortletInvoker.java:169)
      2. org.apache.pluto.core.PortletInvoker.action(PortletInvoker.java:92)
      3. org.apache.pluto.core.PortletContainerImpl.doAction(PortletContainerImpl.java:192)
      3 frames
    9. Pluto Portal Driver
      PortalDriverServlet.doPost
      1. org.apache.pluto.driver.PortalDriverServlet.doGet(PortalDriverServlet.java:103)
      2. org.apache.pluto.driver.PortalDriverServlet.doPost(PortalDriverServlet.java:143)
      2 frames
    10. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      2 frames
    11. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      6. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      7. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      8. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      8 frames
    12. Grizzly HTTP
      LeaderFollowerWorkerThread.runIt
      1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      2. org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
      3. org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      4. org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
      4 frames
    13. Tomcat Util
      ThreadPool$ControlRunnable.run
      1. org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
      1 frame
    14. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:595)
      1 frame