1 2 3 Previous Next 35 Replies Latest reply: Jul 10, 2006 6:05 PM by rpa_rio RSS

    IOExceptions with MyFaces/Facelets apps

    rpa_rio Novice

      Hi,

      I'm getting this error when i use JBossSerialization with MyFaces/Facelets apps:

      javax.faces.FacesException: java.io.IOException
      at org.apache.myfaces.shared_impl.util.StateUtils.getAsObject(
      StateUtils.java:302)
      at org.apache.myfaces.shared_impl.util.StateUtils.reconstruct(
      StateUtils.java:229)
      at
      org.apache.myfaces.renderkit.html.HtmlResponseStateManager.getComponentStateToRestore
      (HtmlResponseStateManager.java:221)
      at
      org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreComponentState
      (JspStateManagerImpl.java:186)
      at
      org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(
      JspStateManagerImpl.java:287)
      at org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView
      (JspViewHandlerImpl.java:255)
      at com.apress.projsf.weblets.faces.ViewHandlerWrapper.restoreView(
      ViewHandlerWrapper.java:77)
      at com.sun.facelets.FaceletViewHandler.restoreView(
      FaceletViewHandler.java:317)
      at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(
      LifecycleImpl.java:141)
      at org.apache.myfaces.lifecycle.LifecycleImpl.execute(
      LifecycleImpl.java :66)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
      ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(
      ApplicationFilterChain.java:173)
      at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(
      ExtensionsFilter.java:181)
      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.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:869)
      at
      org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
      (Http11BaseProtocol.java:664)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket (
      PoolTcpEndpoint.java:527)
      at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
      LeaderFollowerWorkerThread.java:80)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run (
      ThreadPool.java:684)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: java.io.IOException
      at
      org.jboss.serial.persister.RegularObjectPersister.readSlotWithMethod(
      RegularObjectPersister.java:107)
      at org.jboss.serial.persister.RegularObjectPersister.defaultRead(
      RegularObjectPersister.java:269)
      at org.jboss.serial.persister.RegularObjectPersister.readData (
      RegularObjectPersister.java:241)
      at
      org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming
      (ObjectDescriptorFactory.java:411)
      at
      org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription
      (ObjectDescriptorFactory.java:81)
      at
      org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectInput.readObject
      (DataContainer.java:634)
      at org.jboss.serial.persister.ArrayPersister.readObjectArray(
      ArrayPersister.java:196)
      at org.jboss.serial.persister.ArrayPersister.readData(
      ArrayPersister.java :172)
      at
      org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming
      (ObjectDescriptorFactory.java:411)
      at
      org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription
      (ObjectDescriptorFactory.java:81)
      at
      org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectInput.readObject
      (DataContainer.java:634)
      at org.jboss.serial.io.JBossObjectInputStream.readObjectOverride (
      JBossObjectInputStream.java:163)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:333)
      at org.apache.myfaces.shared_impl.util.StateUtils.getAsObject(
      StateUtils.java :293)
      ... 27 more
      Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke (
      NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(
      DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at
      org.jboss.serial.persister.RegularObjectPersister.readSlotWithMethod(
      RegularObjectPersister.java:103)
      ... 40 more
      Caused by: java.io.IOException
      at
      org.jboss.serial.persister.RegularObjectPersister.readSlotWithMethod(
      RegularObjectPersister.java:107)
      at org.jboss.serial.persister.RegularObjectPersister.defaultRead(
      RegularObjectPersister.java :269)
      at org.jboss.serial.persister.RegularObjectPersister.readData(
      RegularObjectPersister.java:241)
      at
      org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming
      (ObjectDescriptorFactory.java:411)
      at
      org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription
      (ObjectDescriptorFactory.java:81)
      at
      org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectInput.readObject
      (DataContainer.java:634)
      at org.jboss.serial.persister.ArrayPersister.readObjectArray(
      ArrayPersister.java:196)
      at org.jboss.serial.persister.ArrayPersister.readData(
      ArrayPersister.java :172)
      at
      org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming
      (ObjectDescriptorFactory.java:411)
      at
      org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription
      (ObjectDescriptorFactory.java:81)
      at
      org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectInput.readObject
      (DataContainer.java:634)
      at org.jboss.serial.persister.ArrayPersister.readObjectArray (
      ArrayPersister.java:196)
      at org.jboss.serial.persister.ArrayPersister.readData(
      ArrayPersister.java:172)
      at
      org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming
      (ObjectDescriptorFactory.java:411)
      at
      org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription
      (ObjectDescriptorFactory.java:81)
      at
      org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectInput.readObject
      (DataContainer.java:634)
      at org.jboss.serial.persister.ArrayPersister.readObjectArray(
      ArrayPersister.java:196)
      at org.jboss.serial.persister.ArrayPersister.readData(
      ArrayPersister.java :172)
      at
      org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming
      (ObjectDescriptorFactory.java:411)
      at
      org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription
      (ObjectDescriptorFactory.java:81)
      at
      org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectInput.readObject
      (DataContainer.java:634)
      at
      org.jboss.serial.persister.ObjectInputStreamProxy.readObjectOverride (
      ObjectInputStreamProxy.java:68)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:333)
      at java.util.ArrayList.readObject(ArrayList.java:592)
      ... 45 more
      Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.GeneratedMethodAccessor370.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(
      DelegatingMethodAccessorImpl.java :25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at
      org.jboss.serial.persister.RegularObjectPersister.readSlotWithMethod(
      RegularObjectPersister.java:103)
      ... 68 more
      Caused by: org.jboss.serial.exception.SerializationException: Could not
      create instance of com.sun.facelets.impl.DefaultFacelet$ApplyToken - Class
      org.jboss.serial.classmetamodel.ClassMetaData can not access a member of
      class com.sun.facelets.impl.DefaultFacelet$ApplyToken with modifiers
      "public"
      at org.jboss.serial.classmetamodel.ClassMetaData.newInstance(
      ClassMetaData.java:331)
      at org.jboss.serial.persister.ExternalizePersister.readData(
      ExternalizePersister.java:67)
      at
      org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.readObjectDescriptionFromStreaming
      (ObjectDescriptorFactory.java :411)
      at
      org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.objectFromDescription
      (ObjectDescriptorFactory.java:81)
      at
      org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectInput.readObject
      (DataContainer.java:634)
      at
      org.jboss.serial.persister.ObjectInputStreamProxy.readObjectOverride(
      ObjectInputStreamProxy.java:68)
      at java.io.ObjectInputStream.readObject (ObjectInputStream.java:333)
      at java.util.HashMap.readObject(HashMap.java:1013)
      ... 72 more
      Caused by: java.lang.IllegalAccessException: Class
      org.jboss.serial.classmetamodel.ClassMetaData can not access a member of
      class com.sun.facelets.impl.DefaultFacelet$ApplyToken with modifiers
      "public"
      at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:486)
      at org.jboss.serial.classmetamodel.ClassMetaData.newInstance(
      ClassMetaData.java:322)
      ... 79 more

        1 2 3 Previous Next