[jboss-user] [JBoss Seam] - Re: Weird classloading problem

adamw do-not-reply at jboss.com
Thu Jan 10 05:50:25 EST 2008


Hello,

The same happens with the EJB3 timer service (however Quartz is better, as the EJB3 timers, if they have an interval, don't stop when the application is undeployed, even after an AS restart :) ).

I think there are really two problems:
1. On every timer interval, I get a "Caused by: org.hibernate.type.SerializationException: could not deserialize" exception (when reading a serialized field from a DB). There are no problems with it when reading the data from the webapp.
Part of the stack trace:


  | Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.blog.session.feed.posts.filter.AndFilter
  |         at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
  |         at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:521)
  |         at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)
  |         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
  |         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
  |         at java.lang.Class.forName0(Native Method)
  |         at java.lang.Class.forName(Class.java:242)
  |         at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:585)
  |         at org.hibernate.util.SerializationHelper$CustomObjectInputStream.resolveClass(SerializationHelper.java:268)
  |         at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1544)
  |         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
  |         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
  |         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
  |         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
  |         at org.hibernate.util.SerializationHelper.deserialize(SerializationHelper.java:210)
  | 

2. Additionally, sometimes (problem no. 1 appears always), when opening the webapp, I get the java.lang.NoClassDefFoundError for the Instance or Proxy class.

Example stacktrace:

  | org.jboss.seam.InstantiationException: Could not instantiate Seam component: feedsService
  |         at org.jboss.seam.Component.newInstance(Component.java:1970)
  |         at org.jboss.seam.Component.getInstance(Component.java:1873)
  |         at org.jboss.seam.Component.getInstance(Component.java:1840)
  |         at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
  |         at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)
  |         at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:166)
  |         at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:53)
  |         at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
  |         at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
  |         at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
  |         at org.jboss.el.parser.AstValue.getValue(AstValue.java:63)
  |         at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
  |         at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
  |         at javax.faces.component.ValueBindingValueExpressionAdapter.getValue(ValueBindingValueExpressionAdapter.java:102)
  |         at com.sun.facelets.component.UIRepeat.getValue(UIRepeat.java:143)
  |         at com.sun.facelets.component.UIRepeat.getDataModel(UIRepeat.java:121)
  |         at com.sun.facelets.component.UIRepeat.setIndex(UIRepeat.java:305)
  |         at com.sun.facelets.component.UIRepeat.process(UIRepeat.java:333)
  |         at com.sun.facelets.component.UIRepeat.encodeChildren(UIRepeat.java:617)
  |         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
  |         at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
  |         at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
  |         at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
  |         at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
  |         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
  |         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
  |         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
  |         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
  |         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  |         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  |         at org.jboss.shotoku.web.ResourcesFilter.doFilter(ResourcesFilter.java:183)
  |         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  |         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  |         at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
  |         at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
  |         at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  |         at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)
  |         at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
  |         at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  |         at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
  |         at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  |         at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
  |         at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  |         at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
  |         at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
  |         at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
  |         at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  |         at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
  |         at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  |         at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
  |         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  |         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  |         at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:164)
  |         at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
  |         at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)
  |         at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:406)
  |         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  |         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  |         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  |         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:230)
  |         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
  |         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
  |         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
  |         at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
  |         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
  |         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  |         at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
  |         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  |         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
  |         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
  |         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
  |         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
  |         at java.lang.Thread.run(Thread.java:613)
  | Caused by: java.lang.RuntimeException: by java.lang.NoClassDefFoundError: org/jboss/seam/intercept/Proxy
  |         at org.jboss.seam.util.ProxyFactory.createClass(ProxyFactory.java:190)
  |         at org.jboss.seam.Component.createProxyFactory(Component.java:2260)
  |         at org.jboss.seam.Component.getProxyFactory(Component.java:1375)
  |         at org.jboss.seam.Component.wrap(Component.java:1366)
  |         at org.jboss.seam.Component.instantiateSessionBean(Component.java:1288)
  |         at org.jboss.seam.Component.instantiate(Component.java:1273)
  |         at org.jboss.seam.Component.newInstance(Component.java:1966)
  |         ... 74 more
  | Caused by: javassist.CannotCompileException: by java.lang.NoClassDefFoundError: org/jboss/seam/intercept/Proxy
  |         at javassist.util.proxy.FactoryHelper.toClass(FactoryHelper.java:165)
  |         at org.jboss.seam.util.ProxyFactory.createClass(ProxyFactory.java:186)
  |         ... 80 more
  | Caused by: java.lang.NoClassDefFoundError: org/jboss/seam/intercept/Proxy
  |         at java.lang.ClassLoader.defineClass1(Native Method)
  |         at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
  |         at sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source)
  |         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:585)
  |         at javassist.util.proxy.FactoryHelper.toClass2(FactoryHelper.java:177)
  |         at javassist.util.proxy.FactoryHelper.toClass(FactoryHelper.java:159)
  |         ... 81 more
  | 

-- 
Thanks,
Adam

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4118580#4118580

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4118580



More information about the jboss-user mailing list