ActiveDirectory Plugin: ClassNotFoundException while loading persisted sessions:

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

ActiveDirectory Plugin: ClassNotFoundException while loading persisted sessions:

Vijayan Jayaraman
Hi there,

I just updated my hudson to 1.284 along with the latest ActiveDirectory Plugin (version 1.9). Now I am seeing this error during the start up.

SEVERE: ClassNotFoundException while loading persisted sessions: java.lang.ClassNotFoundException: hudson.plugins.active_directory.ActiveDirectoryUserDetail
java.lang.ClassNotFoundException: hudson.plugins.active_directory.ActiveDirectoryUserDetail
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:247)
        at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:604)
        at org.apache.catalina.util.CustomObjectInputStream.resolveClass(CustomObjectInputStream.java:78)
        at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
        at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
        at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
        at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
        at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
        at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
        at org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1407)
        at org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:931)
        at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:394)
        at org.apache.catalina.session.StandardManager.load(StandardManager.java:321)
        at org.apache.catalina.session.StandardManager.start(StandardManager.java:637)
        at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:432)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4160)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:831)
          at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:720)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:448)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
        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:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Feb 18, 2009 10:24:59 AM org.apache.catalina.session.StandardManager start
SEVERE: Exception loading sessions from persistent storage

Reply | Threaded
Open this post in threaded view
|

Re: ActiveDirectory Plugin: ClassNotFoundException while loading persisted sessions:

Kohsuke Kawaguchi
Administrator

This is because Tomcat persists sessions and that includes bits that it
cannot deserialize correctly.

In 1.285, I added code to prevent containers from serializing
authentications.

Vijayan Jayaraman wrote:

> Hi there,
>
> I just updated my hudson to 1.284 along with the latest ActiveDirectory
> Plugin (version 1.9). Now I am seeing this error during the start up.
>
> SEVERE: ClassNotFoundException while loading persisted sessions:
> java.lang.ClassNotFoundException:
> hudson.plugins.active_directory.ActiveDirectoryUserDetail
> java.lang.ClassNotFoundException:
> hudson.plugins.active_directory.ActiveDirectoryUserDetail
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:247)
>         at
> java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:604)
>         at
> org.apache.catalina.util.CustomObjectInputStream.resolveClass(CustomObjectInputStream.java:78)
>         at
> java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
>         at
> java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
>         at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
>         at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
>         at
> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
>         at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
>         at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
>         at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
>         at
> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
>         at
> java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
>         at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
>         at
> java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
>         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
>         at
> org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1407)
>         at
> org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:931)
>         at
> org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:394)
>         at
> org.apache.catalina.session.StandardManager.load(StandardManager.java:321)
>         at
> org.apache.catalina.session.StandardManager.start(StandardManager.java:637)
>         at
> org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:432)
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4160)
>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
>         at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:831)
>           at
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:720)
>         at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
>         at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150)
>         at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
>         at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
>         at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>         at
> org.apache.catalina.core.StandardService.start(StandardService.java:448)
>         at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
>         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:597)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
> Feb 18, 2009 10:24:59 AM org.apache.catalina.session.StandardManager start
> SEVERE: Exception loading sessions from persistent storage
>

--
Kohsuke Kawaguchi
Sun Microsystems                   http://weblogs.java.net/blog/kohsuke/

smime.p7s (4K) Download Attachment