java.lang.IllegalArgumentException: PWC2788: setAttribute: Non-serializable attribute with name javax.zkoss.zk.ui.Session

ZK-Tracker | eldiegos | 5 years ago
  1. 0

    I always get the same error when i set the option "distributable" to true in the web.xml descriptor. I´m trying to deploy the "hello world" application into a glassfish cluster. I need to check this option in order to share session inside the cluster. Just when i write the url in the webbrowser i get this error. PWC2788: setAttribute: Non-serializable attribute with name javax.zkoss.zk.ui.Session. It happens with all the applications. To reproduce the error just put "distributable" to true and deploy into glassfish. Any ideas? Thanks. Details. Advertencia: StandardWrapperValve[zkLoader]: PWC1406: Servlet.service() for servlet zkLoader threw exception java.lang.IllegalArgumentException: PWC2788: setAttribute: Non-serializable attribute with name javax.zkoss.zk.ui.Session at org.apache.catalina.session.ManagerBase.checkSessionAttribute(ManagerBase.java:829) at org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1713) at org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:178) at org.zkoss.zk.ui.http.SimpleSessionCache.put(SimpleSessionCache.java:42) at org.zkoss.zk.ui.sys.SessionsCtrl.newSession(SessionsCtrl.java:152) at org.zkoss.zk.ui.http.WebManager.getSession(WebManager.java:404) at org.zkoss.zk.ui.http.WebManager.getSession(WebManager.java:385) at org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:130) at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59) at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) at java.lang.Thread.run(Thread.java:722)

    ZK-Tracker | 5 years ago | eldiegos
    java.lang.IllegalArgumentException: PWC2788: setAttribute: Non-serializable attribute with name javax.zkoss.zk.ui.Session
  2. 0

    I always get the same error when i set the option "distributable" to true in the web.xml descriptor. I´m trying to deploy the "hello world" application into a glassfish cluster. I need to check this option in order to share session inside the cluster. Just when i write the url in the webbrowser i get this error. PWC2788: setAttribute: Non-serializable attribute with name javax.zkoss.zk.ui.Session. It happens with all the applications. To reproduce the error just put "distributable" to true and deploy into glassfish. Any ideas? Thanks. Details. Advertencia: StandardWrapperValve[zkLoader]: PWC1406: Servlet.service() for servlet zkLoader threw exception java.lang.IllegalArgumentException: PWC2788: setAttribute: Non-serializable attribute with name javax.zkoss.zk.ui.Session at org.apache.catalina.session.ManagerBase.checkSessionAttribute(ManagerBase.java:829) at org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1713) at org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:178) at org.zkoss.zk.ui.http.SimpleSessionCache.put(SimpleSessionCache.java:42) at org.zkoss.zk.ui.sys.SessionsCtrl.newSession(SessionsCtrl.java:152) at org.zkoss.zk.ui.http.WebManager.getSession(WebManager.java:404) at org.zkoss.zk.ui.http.WebManager.getSession(WebManager.java:385) at org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:130) at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162) at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231) at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174) at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828) at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725) at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019) at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225) at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104) at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90) at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79) at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54) at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59) at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532) at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513) at java.lang.Thread.run(Thread.java:722)

    ZK-Tracker | 5 years ago | eldiegos
    java.lang.IllegalArgumentException: PWC2788: setAttribute: Non-serializable attribute with name javax.zkoss.zk.ui.Session
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Pet clinic - Find Ownerss tab - Error setAttribute: Non-serializable attribute with name owner

    GitHub | 2 years ago | tuma80
    java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute with name owner
  5. 0

    java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute

    Stack Overflow | 8 years ago
    java.lang.IllegalArgumentException: setAttribute: Non-serializable attribute

    1 unregistered visitors
    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.IllegalArgumentException

      PWC2788: setAttribute: Non-serializable attribute with name javax.zkoss.zk.ui.Session

      at org.apache.catalina.session.ManagerBase.checkSessionAttribute()
    2. Glassfish Core
      StandardSessionFacade.setAttribute
      1. org.apache.catalina.session.ManagerBase.checkSessionAttribute(ManagerBase.java:829)
      2. org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1713)
      3. org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:178)
      3 frames
    3. ZK Kernel
      DHtmlLayoutServlet.doGet
      1. org.zkoss.zk.ui.http.SimpleSessionCache.put(SimpleSessionCache.java:42)
      2. org.zkoss.zk.ui.sys.SessionsCtrl.newSession(SessionsCtrl.java:152)
      3. org.zkoss.zk.ui.http.WebManager.getSession(WebManager.java:404)
      4. org.zkoss.zk.ui.http.WebManager.getSession(WebManager.java:385)
      5. org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:130)
      5 frames
    4. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
      2 frames
    5. Glassfish Core
      StandardPipeline.invoke
      1. org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539)
      2. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
      3. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      4. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
      5. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
      5 frames
    6. Glassfish
      PESessionLockingStandardPipeline.invoke
      1. com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
      2. com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
      2 frames
    7. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
      2. org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330)
      3. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
      3 frames
    8. Kernel Classes
      ContainerMapper.service
      1. com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174)
      1 frame
    9. Grizzly WS
      AbstractThreadPool$Worker.run
      1. com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
      2. com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725)
      3. com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
      4. com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
      5. com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
      6. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
      7. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
      8. com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
      9. com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
      10. com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
      11. com.sun.grizzly.ContextTask.run(ContextTask.java:71)
      12. com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
      13. com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
      13 frames
    10. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:722)
      1 frame