tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vinícius Moselli <vinicius.mose...@gmail.com>
Subject Re: Migrating from TomEE 1.5.2 to TomEE 1.6.0 Problem
Date Wed, 15 Jan 2014 15:58:32 GMT
Worked on 1.6.0

I don't know exactly what happened, but maybe something about compilation
issue...
Just cleaned my project and worked.

Thanks for help and sorry for the inconvenience.

By the way: Congratulations on TomEE project! IT ROCKS!


2014/1/15 Romain Manni-Bucau <rmannibucau@gmail.com>

> the only thing which could have changed is different filtering (your
> class shouldn't be affected but maybe your jar name)
>
> In all cases try to reproduce it otherwise it will be hard to help you
> further
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
>
> 2014/1/15 Vinícius Moselli <vinicius.moselli@gmail.com>:
> > Hi,
> >
> > Sorry about not providing aditional info, but yes the class exists and it
> > is located in the mentioned package.
> >
> > OWB creates an instance and when the @PostConstruct method gets executed
> > the error occurs. (when a switch on an enum is made).
> >
> > I'll try to test it in the trunk src.
> >
> > Was there any change about that since 1.5.2? This code was running
> smoothly
> > back then.
> >
> > Thanks in advance.
> >
> >
> > 2014/1/15 Romain Manni-Bucau <rmannibucau@gmail.com>
> >
> >> Hi
> >>
> >> is NotificacaoBean in the webapp? maybe test on 1.6.1-SNAPSHOT too
> >> Romain Manni-Bucau
> >> Twitter: @rmannibucau
> >> Blog: http://rmannibucau.wordpress.com/
> >> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> >> Github: https://github.com/rmannibucau
> >>
> >>
> >>
> >> 2014/1/15 Vinícius Moselli <vinicius.moselli@gmail.com>:
> >> > Hi guys,
> >> >
> >> > I've been facing some problems during this attempt to migrate from
> 1.5.2
> >> to
> >> > 1.6.0 Webprofile.
> >> >
> >> > I have CDI Scoped Beans (CODI) with @Named and @ViewAccessScoped
> >> > annotations.
> >> >
> >> > During the execution
> >> > of
> org.apache.webbeans.portable.InjectionTargetImpl<T>.postConstruct(T)
> >> > line 472 of OWB 1.2.1 (bundled in TomEE 1.6.0) i get this exception
> and
> >> > stack trace:
> >> >
> >> >
> >> > 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:597)
> >> > at
> >> >
> >>
> org.apache.webbeans.intercept.LifecycleInterceptorInvocationContext.proceed(LifecycleInterceptorInvocationContext.java:103)
> >> > at
> >> >
> >>
> org.apache.webbeans.portable.InjectionTargetImpl.postConstruct(InjectionTargetImpl.java:472)
> >> > at
> >> >
> >>
> org.apache.webbeans.component.AbstractOwbBean.create(AbstractOwbBean.java:123)
> >> > at
> org.apache.webbeans.component.ManagedBean.create(ManagedBean.java:55)
> >> > at
> >> >
> >>
> org.apache.webbeans.container.SerializableBean.create(SerializableBean.java:129)
> >> > at
> >> >
> >>
> org.apache.myfaces.extensions.cdi.core.impl.util.CodiUtils.createNewInstanceOfBean(CodiUtils.java:69)
> >> > at
> >> >
> >>
> org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.AbstractConversationBeanEntry.createNewBeanInstance(AbstractConversationBeanEntry.java:139)
> >> > at
> >> >
> >>
> org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.AbstractConversationBeanEntry.getBeanInstance(AbstractConversationBeanEntry.java:84)
> >> > at
> >> >
> >>
> org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.DefaultConversation.getBean(DefaultConversation.java:163)
> >> > at
> >> >
> >>
> org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.GroupedConversationContext.resolveBeanInstance(GroupedConversationContext.java:185)
> >> > at
> >> >
> >>
> org.apache.myfaces.extensions.cdi.core.impl.scope.conversation.AbstractGroupedConversationContext.resolve(AbstractGroupedConversationContext.java:114)
> >> > at
> >> >
> >>
> org.apache.myfaces.extensions.cdi.core.impl.scope.conversation.ConversationContextAdapter.get(ConversationContextAdapter.java:98)
> >> > at
> >> >
> >>
> org.apache.webbeans.context.CustomPassivatingContextImpl.get(CustomPassivatingContextImpl.java:52)
> >> > at
> >> >
> >>
> org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.getContextualInstance(NormalScopedBeanInterceptorHandler.java:91)
> >> > at
> >> >
> >>
> org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.get(NormalScopedBeanInterceptorHandler.java:70)
> >> > at
> >> >
> >>
> br.com.volks.nfs.beans.NotificacaoBean$$OwbNormalScopeProxy0.getQuantidadeNotificacoes(br/com/volks/nfs/beans/NotificacaoBean.java)
> >> > 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 javax.el.BeanELResolver.getValue(BeanELResolver.java:64)
> >> > at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:58)
> >> > at
> >> >
> >>
> org.apache.myfaces.el.unified.resolver.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:179)
> >> > at org.apache.el.parser.AstValue.getValue(AstValue.java:183)
> >> > at
> >> >
> >>
> org.apache.el.parser.AstDeferredExpression.getValue(AstDeferredExpression.java:44)
> >> > at
> >> >
> >>
> org.apache.el.parser.AstCompositeExpression.getValue(AstCompositeExpression.java:50)
> >> > at
> >> org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:185)
> >> > at
> >> >
> >>
> org.apache.webbeans.el22.WrappedValueExpression.getValue(WrappedValueExpression.java:70)
> >> > at
> >> >
> >>
> org.apache.myfaces.view.facelets.el.ContextAwareTagValueExpression.getValue(ContextAwareTagValueExpression.java:96)
> >> > at
> >> javax.faces.component._DeltaStateHelper.eval(_DeltaStateHelper.java:249)
> >> > at javax.faces.component.UIOutput.getValue(UIOutput.java:67)
> >> > at
> >> >
> >>
> org.apache.myfaces.shared.renderkit.RendererUtils.getValue(RendererUtils.java:491)
> >> > at
> >> >
> >>
> org.apache.myfaces.shared.renderkit.RendererUtils.getStringValue(RendererUtils.java:334)
> >> > at
> >> >
> >>
> org.apache.myfaces.shared.renderkit.html.HtmlTextRendererBase.renderOutput(HtmlTextRendererBase.java:92)
> >> > at
> >> >
> >>
> org.apache.myfaces.shared.renderkit.html.HtmlTextRendererBase.encodeEnd(HtmlTextRendererBase.java:79)
> >> > at
> >>
> javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:665)
> >> > at
> >>
> javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:545)
> >> > at
> >> >
> >>
> org.apache.myfaces.shared.renderkit.RendererUtils.renderChildren(RendererUtils.java:693)
> >> > at
> >> >
> >>
> org.apache.myfaces.shared.renderkit.html.HtmlGroupRendererBase.encodeEnd(HtmlGroupRendererBase.java:115)
> >> > at
> >>
> javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:665)
> >> > at
> >>
> javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:545)
> >> > at
> >> >
> >>
> org.apache.myfaces.shared.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:370)
> >> > at
> >> >
> >>
> org.apache.myfaces.shared.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:194)
> >> > at
> >>
> javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:665)
> >> > at
> >>
> javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:545)
> >> > at
> >>
> javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:541)
> >> > at
> >>
> javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:541)
> >> > at
> >>
> javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:541)
> >> > at
> >> >
> >>
> org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(FaceletViewDeclarationLanguage.java:1981)
> >> > at
> >> >
> >>
> org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:305)
> >> > at
> >> >
> >>
> javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:59)
> >> > at
> >> >
> >>
> javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:59)
> >> > at
> >> >
> >>
> javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:59)
> >> > at
> >> >
> >>
> org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:116)
> >> > at
> >>
> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:241)
> >> > at
> >> >
> >>
> org.apache.myfaces.extensions.cdi.jsf2.impl.listener.phase.CodiLifecycleWrapper.render(CodiLifecycleWrapper.java:126)
> >> > at javax.faces.webapp.FacesServlet.service(FacesServlet.java:199)
> >> > at
> >> >
> >>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
> >> > at
> >> >
> >>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> >> > at
> >> >
> >>
> org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:56)
> >> > at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:75)
> >> > at
> >> >
> >>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> >> > at
> >> >
> >>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> >> > at
> >> >
> >>
> org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:98)
> >> > at
> >> >
> >>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> >> > at
> >> >
> >>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> >> > at
> >> >
> >>
> br.com.volks.nfs.filter.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:42)
> >> > at
> >> >
> >>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> >> > at
> >> >
> >>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> >> > at
> >> >
> >>
> org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
> >> > at
> >> >
> >>
> org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
> >> > at
> >> >
> >>
> org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
> >> > at
> >> >
> >>
> org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
> >> > at
> >> >
> >>
> org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
> >> > at
> >> >
> >>
> org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
> >> > at
> >> >
> >>
> org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
> >> > at
> >> >
> >>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
> >> > at
> >> >
> >>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> >> > at
> >> >
> >>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
> >> > at
> >> >
> >>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
> >> > at org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45)
> >> > at
> >> >
> >>
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
> >> > at
> >> >
> >>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
> >> > at
> >> >
> >>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
> >> > at
> >>
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
> >> > at
> >> >
> >>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
> >> > at
> >> >
> >>
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
> >> > at
> >> >
> >>
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
> >> > at
> >> >
> >>
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
> >> > at
> >> >
> >>
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
> >> > at
> >> >
> >>
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> >> > at
> >> >
> >>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> >> > at java.lang.Thread.run(Thread.java:662)
> >> > Caused by: java.lang.NoClassDefFoundError:
> >> > br/com/volks/nfs/beans/NotificacaoBean$1
> >> > at
> br.com.volks.nfs.beans.NotificacaoBean.init(NotificacaoBean.java:71)
> >> > ... 97 more
> >> >
> >> > Do you guys have any clue about what is going on?
> >> >
> >> > The init method looks like this:
> >> >
> >> > @PostConstruct
> >> > public void init(){
> >> >   initCount();
> >> >   this.userNotifications = notificationService.findByUser(user);
> >> >   for(Notification notification : userNotifications){
> >> >   switch(notification.getType()){
> >> >     case SATISFACTION_RESEARCH: {
> >> >     countResearch++;
> >> >     break;
> >> >     }
> >> >     case SATISFACTION_RESEARCH_RESPONSE:{
> >> >     countResponse++;
> >> >     break;
> >> >     }
> >> >     case WARNING:{
> >> >     countWarning++;
> >> >     break;
> >> >     }
> >> >     case TICKET:{
> >> >     countTicket++;
> >> >     break;
> >> >     }
> >> >     }
> >> >     }
> >> > }
> >> >
> >> > A switch is being made on an enum
> >> > (br.com.volks.nfs.beans.NotificacaoBean.init(NotificacaoBean.java:71)
> of
> >> > stacktrace) and i get this NoClassDefFoundError
> >> >
> >> > Thanks in advance.
> >> >
> >> > Vinícius Moselli
> >>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message