Jetspeed 2
  1. Jetspeed 2
  2. JS2-1010

A NotSerializableException in j2-admin's PrincipalManagement portlet

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.2.0
    • Component/s: None
    • Labels:
      None

      Description

      In j2-admin's log file (/j2-admin/logs/pa.log), the following error log is found:

      2009-05-13 13:41:11,657 [http-8080-1] ERROR org.apache.wicket.util.lang.Objects - Error serializing object class org.apache.jetspeed.portlets.security.JetspeedPrincipalManagementPortlet [object=[Page class = org.apache.jetspeed.portlets.security.JetspeedPrincipalManagementPortlet, id = 0, version = 0]]
      org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: Unable to serialize class: org.apache.jetspeed.security.PrincipalManagerEventAdapter
      Field hierarchy is:
      0 [class=org.apache.jetspeed.portlets.security.JetspeedPrincipalManagementPortlet, path=0]
      private java.lang.Object org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
      private java.lang.Object org.apache.wicket.MarkupContainer.children[0] [class=org.apache.wicket.markup.html.WebMarkupContainer, path=0:group]
      private java.lang.Object org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;]
      private java.lang.Object org.apache.wicket.MarkupContainer.children[0] [class=org.apache.jetspeed.portlets.security.JetspeedPrincipalManagementPortlet$1, path=0:group:entries]
      private final org.apache.wicket.markup.repeater.data.IDataProvider org.apache.wicket.markup.repeater.data.DataViewBase.dataProvider [class=org.apache.jetspeed.portlets.security.PrincipaDataProvider]
      private org.apache.jetspeed.security.JetspeedPrincipalManager org.apache.jetspeed.portlets.security.PrincipaDataProvider.manager [class=$Proxy6]
      protected java.lang.reflect.InvocationHandler java.lang.reflect.Proxy.h [class=org.springframework.aop.framework.JdkDynamicAopProxy]
      private final org.springframework.aop.framework.AdvisedSupport org.springframework.aop.framework.JdkDynamicAopProxy.advised [class=org.springframework.aop.framework.ProxyFactory]
      org.springframework.aop.TargetSource org.springframework.aop.framework.AdvisedSupport.targetSource [class=org.springframework.aop.target.SingletonTargetSource]
      private final java.lang.Object org.springframework.aop.target.SingletonTargetSource.target [class=org.apache.jetspeed.security.impl.UserManagerImpl]
      private java.util.Map org.apache.jetspeed.security.impl.BaseJetspeedPrincipalManager.assHandlers [class=java.util.HashMap]
      private java.util.Map org.apache.jetspeed.security.impl.BaseJetspeedPrincipalManager.assHandlers[write:1][write:2][write:3][write:4][write:5] [class=org.apache.jetspeed.sso.impl.IsOwnedByPrincipalAssociationHandler]
      private org.apache.jetspeed.security.spi.JetspeedPrincipalManagerSPI org.apache.jetspeed.security.spi.impl.BaseJetspeedPrincipalAssociationHandler.from [class=$Proxy11]
      protected java.lang.reflect.InvocationHandler java.lang.reflect.Proxy.h [class=org.springframework.aop.framework.JdkDynamicAopProxy]
      private final org.springframework.aop.framework.AdvisedSupport org.springframework.aop.framework.JdkDynamicAopProxy.advised [class=org.springframework.aop.framework.ProxyFactory]
      org.springframework.aop.TargetSource org.springframework.aop.framework.AdvisedSupport.targetSource [class=org.springframework.aop.target.SingletonTargetSource]
      private final java.lang.Object org.springframework.aop.target.SingletonTargetSource.target [class=org.apache.jetspeed.sso.spi.impl.SSOUserManagerSPIImpl]
      private java.util.Map org.apache.jetspeed.security.impl.BaseJetspeedPrincipalManager.assHandlers [class=java.util.HashMap]
      private java.util.Map org.apache.jetspeed.security.impl.BaseJetspeedPrincipalManager.assHandlers[write:1][write:6][write:7][write:8][write:9] [class=org.apache.jetspeed.sso.impl.IsRemoteIdentityForPrincipalAssociationHandler]
      private org.apache.jetspeed.security.spi.JetspeedPrincipalManagerSPI org.apache.jetspeed.security.spi.impl.BaseJetspeedPrincipalAssociationHandler.to [class=$Proxy9]
      protected java.lang.reflect.InvocationHandler java.lang.reflect.Proxy.h [class=org.springframework.aop.framework.JdkDynamicAopProxy]
      private final org.springframework.aop.framework.AdvisedSupport org.springframework.aop.framework.JdkDynamicAopProxy.advised [class=org.springframework.aop.framework.ProxyFactory]
      org.springframework.aop.TargetSource org.springframework.aop.framework.AdvisedSupport.targetSource [class=org.springframework.aop.target.SingletonTargetSource]
      private final java.lang.Object org.springframework.aop.target.SingletonTargetSource.target [class=org.apache.jetspeed.security.impl.GroupManagerImpl]
      private java.util.Map org.apache.jetspeed.security.impl.BaseJetspeedPrincipalManager.assHandlers [class=java.util.HashMap]
      private org.apache.jetspeed.security.JetspeedPrincipalAssociationType org.apache.jetspeed.security.spi.impl.BaseJetspeedPrincipalAssociationHandler.associationType[write:8][write:9][write:10][write:11] [class=org.apache.jetspeed.security.spi.impl.IsMemberOfPrincipalAssociationHandler]
      private org.apache.jetspeed.security.spi.JetspeedPrincipalManagerSPI org.apache.jetspeed.security.spi.impl.BaseJetspeedPrincipalAssociationHandler.to [class=$Proxy10]
      protected java.lang.reflect.InvocationHandler java.lang.reflect.Proxy.h [class=org.springframework.aop.framework.JdkDynamicAopProxy]
      private final org.springframework.aop.framework.AdvisedSupport org.springframework.aop.framework.JdkDynamicAopProxy.advised [class=org.springframework.aop.framework.ProxyFactory]
      org.springframework.aop.TargetSource org.springframework.aop.framework.AdvisedSupport.targetSource [class=org.springframework.aop.target.SingletonTargetSource]
      private final java.lang.Object org.springframework.aop.target.SingletonTargetSource.target [class=org.apache.jetspeed.security.impl.RoleManagerImpl]
      private java.util.List org.apache.jetspeed.security.impl.BaseJetspeedPrincipalManager.listeners [class=java.util.LinkedList]
      private java.util.List org.apache.jetspeed.security.impl.BaseJetspeedPrincipalManager.listeners[write:1] [class=org.apache.jetspeed.security.PrincipalManagerEventAdapter] <----- field that is not serializable
      at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:349)
      at org.apache.wicket.util.io.SerializableChecker.access$500(SerializableChecker.java:63)
      at org.apache.wicket.util.io.SerializableChecker$1InterceptingObjectOutputStream.replaceObject(SerializableChecker.java:497)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1045)
      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
      at java.util.LinkedList.writeObject(LinkedList.java:755)
      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 java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1339)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
      at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:504)
      at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
      at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
      at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
      at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
      at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
      at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
      at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
      at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
      at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
      at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
      at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
      at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
      at org.apache.wicket.util.io.SerializableChecker.access$500(SerializableChecker.java:63)
      at org.apache.wicket.util.io.SerializableChecker$1InterceptingObjectOutputStream.replaceObject(SerializableChecker.java:497)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1045)
      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
      at java.util.HashMap.writeObject(HashMap.java:1039)
      at sun.reflect.GeneratedMethodAccessor204.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1339)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
      at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:504)
      at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
      at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
      at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
      at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
      at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
      at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
      at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
      at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
      at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
      at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
      at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
      at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
      at org.apache.wicket.util.io.SerializableChecker.access$500(SerializableChecker.java:63)
      at org.apache.wicket.util.io.SerializableChecker$1InterceptingObjectOutputStream.replaceObject(SerializableChecker.java:497)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1045)
      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
      at java.util.HashMap.writeObject(HashMap.java:1039)
      at sun.reflect.GeneratedMethodAccessor204.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1339)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
      at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:504)
      at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
      at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
      at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
      at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
      at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
      at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
      at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
      at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
      at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
      at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
      at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
      at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
      at org.apache.wicket.util.io.SerializableChecker.access$500(SerializableChecker.java:63)
      at org.apache.wicket.util.io.SerializableChecker$1InterceptingObjectOutputStream.replaceObject(SerializableChecker.java:497)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1045)
      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
      at java.util.HashMap.writeObject(HashMap.java:1039)
      at sun.reflect.GeneratedMethodAccessor204.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1339)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
      at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:504)
      at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
      at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
      at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
      at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
      at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
      at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
      at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
      at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
      at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
      at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
      at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
      at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
      at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
      at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
      at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:395)
      at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
      at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
      at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:395)
      at org.apache.wicket.util.io.SerializableChecker.checkFields(SerializableChecker.java:618)
      at org.apache.wicket.util.io.SerializableChecker.check(SerializableChecker.java:541)
      at org.apache.wicket.util.io.SerializableChecker.writeObjectOverride(SerializableChecker.java:687)
      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298)
      at org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory$2.writeObjectOverride(IObjectStreamFactory.java:127)
      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298)
      at org.apache.wicket.util.lang.Objects.objectToByteArray(Objects.java:1097)
      at org.apache.wicket.protocol.http.pagestore.AbstractPageStore.serializePage(AbstractPageStore.java:199)
      at org.apache.wicket.protocol.http.pagestore.DiskPageStore.storePage(DiskPageStore.java:814)
      at org.apache.wicket.protocol.http.SecondLevelCacheSessionStore$SecondLevelCachePageMap.put(SecondLevelCacheSessionStore.java:327)
      at org.apache.wicket.Session.requestDetached(Session.java:1398)
      at org.apache.wicket.RequestCycle.detach(RequestCycle.java:1118)
      at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1396)
      at org.apache.wicket.RequestCycle.request(RequestCycle.java:501)
      at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:455)
      at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:288)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
      at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
      at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
      at org.apache.pluto.container.impl.PortletRequestDispatcherImpl.doDispatch(PortletRequestDispatcherImpl.java:174)
      at org.apache.pluto.container.impl.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:222)
      at org.apache.wicket.protocol.http.portlet.WicketPortlet.processMimeResponseRequest(WicketPortlet.java:655)
      at org.apache.wicket.protocol.http.portlet.WicketPortlet.processRequest(WicketPortlet.java:608)
      at org.apache.wicket.protocol.http.portlet.WicketPortlet.doView(WicketPortlet.java:469)
      at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:348)
      at javax.portlet.GenericPortlet.render(GenericPortlet.java:253)
      at org.apache.jetspeed.portlet.PortletObjectProxy.proxyRender(PortletObjectProxy.java:244)
      at org.apache.jetspeed.portlet.PortletObjectProxy.invoke(PortletObjectProxy.java:159)
      at $Proxy43.render(Unknown Source)
      at org.apache.jetspeed.factory.JetspeedPortletInstance.render(JetspeedPortletInstance.java:110)
      at org.apache.jetspeed.container.services.JetspeedFilterChain.doFilter(JetspeedFilterChain.java:142)
      at org.apache.jetspeed.container.services.JetspeedFilterChain.processFilter(JetspeedFilterChain.java:92)
      at org.apache.jetspeed.container.services.JetspeedFilterManager.processFilter(JetspeedFilterManager.java:112)
      at org.apache.jetspeed.container.JetspeedContainerServlet.doGet(JetspeedContainerServlet.java:272)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
      at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
      at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
      at org.apache.jetspeed.container.invoker.ServletPortletInvoker.invoke(ServletPortletInvoker.java:165)
      at org.apache.jetspeed.container.invoker.JetspeedPortletInvokerService.render(JetspeedPortletInvokerService.java:127)
      at org.apache.pluto.container.impl.PortletContainerImpl.doRender(PortletContainerImpl.java:157)
      at org.apache.jetspeed.container.JetspeedPortletContainerWrapper.doRender(JetspeedPortletContainerWrapper.java:69)
      at org.apache.jetspeed.aggregator.impl.RenderingJobImpl.execute(RenderingJobImpl.java:183)
      at org.apache.jetspeed.aggregator.impl.PortletRendererImpl.renderNow(PortletRendererImpl.java:160)
      at org.apache.jetspeed.aggregator.impl.PortletRendererImpl.renderNow(PortletRendererImpl.java:138)
      at org.apache.jetspeed.aggregator.impl.PortletAggregatorImpl.build(PortletAggregatorImpl.java:97)
      at org.apache.jetspeed.aggregator.PortletValve.invoke(PortletValve.java:44)
      at org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
      at org.apache.jetspeed.container.ContainerValve.invoke(ContainerValve.java:88)
      at org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
      at org.apache.jetspeed.profiler.impl.RefreshUserHomepageValveImpl.invoke(RefreshUserHomepageValveImpl.java:94)
      at org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
      at org.apache.jetspeed.profiler.impl.ProfilerValveImpl.invoke(ProfilerValveImpl.java:251)
      at org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
      at org.apache.jetspeed.localization.impl.LocalizationValveImpl.invoke(LocalizationValveImpl.java:170)
      at org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
      at org.apache.jetspeed.security.impl.AbstractSecurityValve$1.run(AbstractSecurityValve.java:138)
      at java.security.AccessController.doPrivileged(Native Method)
      at javax.security.auth.Subject.doAsPrivileged(Subject.java:454)
      at org.apache.jetspeed.security.JSSubject.doAsPrivileged(JSSubject.java:179)
      at org.apache.jetspeed.security.impl.AbstractSecurityValve.invoke(AbstractSecurityValve.java:132)
      at org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
      at org.apache.jetspeed.capabilities.impl.CapabilityValveImpl.invoke(CapabilityValveImpl.java:127)
      at org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
      at org.apache.jetspeed.container.url.impl.PortalURLValveImpl.invoke(PortalURLValveImpl.java:67)
      at org.apache.jetspeed.pipeline.JetspeedPipeline$Invocation.invokeNext(JetspeedPipeline.java:167)
      at org.apache.jetspeed.pipeline.JetspeedPipeline.invoke(JetspeedPipeline.java:146)
      at org.apache.jetspeed.engine.JetspeedEngine.service(JetspeedEngine.java:225)
      at org.apache.jetspeed.engine.JetspeedServlet.doGet(JetspeedServlet.java:300)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.jetspeed.engine.servlet.XXSUrlAttackFilter.doFilter(XXSUrlAttackFilter.java:52)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: java.io.NotSerializableException: org.apache.jetspeed.security.PrincipalManagerEventAdapter
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081)
      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
      at java.util.LinkedList.writeObject(LinkedList.java:755)
      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 java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1339)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
      at java.util.HashMap.writeObject(HashMap.java:1039)
      at sun.reflect.GeneratedMethodAccessor204.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1339)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
      at java.util.HashMap.writeObject(HashMap.java:1039)
      at sun.reflect.GeneratedMethodAccessor204.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1339)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
      at java.util.HashMap.writeObject(HashMap.java:1039)
      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 java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1339)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
      at org.apache.wicket.util.io.IObjectStreamFactory$DefaultObjectStreamFactory$2.writeObjectOverride(IObjectStreamFactory.java:119)
      ... 88 more

        Activity

        Hide
        Vivek Kumar added a comment -

        Issue has been fixed.

        Show
        Vivek Kumar added a comment - Issue has been fixed.
        Hide
        Woonsan Ko added a comment -

        I found the following line in the above error log:

        org.apache.jetspeed.security.impl.BaseJetspeedPrincipalManager.listeners[write:1] [class=org.apache.jetspeed.security.PrincipalManagerEventAdapter] <----- field that is not serializable

        That means that the portlet has a member of BaseJetspeedPrincipalManager instance.
        Also, I found that "principalDataProvider" of JetspeedPrincipalManagementPortlet has a member of JetspeedPrincipalManager.
        So, I think that one possible solution is like that the JetspeedPrincipalManager member should be transient and retrieved when it is necessary.

        Show
        Woonsan Ko added a comment - I found the following line in the above error log: org.apache.jetspeed.security.impl.BaseJetspeedPrincipalManager.listeners [write:1] [class=org.apache.jetspeed.security.PrincipalManagerEventAdapter] <----- field that is not serializable That means that the portlet has a member of BaseJetspeedPrincipalManager instance. Also, I found that "principalDataProvider" of JetspeedPrincipalManagementPortlet has a member of JetspeedPrincipalManager. So, I think that one possible solution is like that the JetspeedPrincipalManager member should be transient and retrieved when it is necessary.

          People

          • Assignee:
            Vivek Kumar
            Reporter:
            Woonsan Ko
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development