3 Replies Latest reply on Dec 7, 2010 8:10 AM by Heiko Braun

    CDI Eventing: Removal of Outbound & Inbound qualifiers

    Heiko Braun Master

      Thanks Filip, I've added your patches to trunk. I can now see the exceptions you mentioned when running hosted mode:

       

      [ERROR] Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.jboss.errai.cdi.client.events.FraudClient
      [ERROR]      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      [ERROR]      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      [ERROR]      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      [ERROR]      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      [ERROR]      at org.jboss.weld.introspector.jlr.WeldConstructorImpl.newInstance(WeldConstructorImpl.java:258)
      [ERROR]      at org.jboss.weld.injection.ConstructorInjectionPoint.newInstance(ConstructorInjectionPoint.java:133)
      [ERROR]      at org.jboss.weld.bean.ManagedBean.createInstance(ManagedBean.java:377)
      [ERROR]      at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.produce(ManagedBean.java:230)
      [ERROR]      at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:332)
      [ERROR]      at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:59)
      [ERROR]      at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:669)
      [ERROR]      at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:252)
      [ERROR]      at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:222)
      [ERROR]      at org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:614)
      [ERROR]      at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:607)
      [ERROR]      at org.jboss.weld.event.EventImpl.fire(EventImpl.java:94)
      [ERROR]      at org.jboss.errai.cdi.server.events.AccountService.watchActivity(AccountService.java:40)
      [ERROR] Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.jboss.errai.cdi.client.events.FraudClient
      [ERROR]      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      [ERROR]      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      [ERROR]      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      [ERROR]      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      [ERROR]      at org.jboss.weld.introspector.jlr.WeldConstructorImpl.newInstance(WeldConstructorImpl.java:258)
      [ERROR]      at org.jboss.weld.injection.ConstructorInjectionPoint.newInstance(ConstructorInjectionPoint.java:133)
      [ERROR]      at org.jboss.weld.bean.ManagedBean.createInstance(ManagedBean.java:377)
      [ERROR]      at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.produce(ManagedBean.java:230)
      [ERROR]      at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:332)
      [ERROR]      at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:59)
      [ERROR]      at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:669)
      [ERROR]      at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:252)
      [ERROR]      at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:222)
      [ERROR]      at org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:614)
      [ERROR]      at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:607)
      [ERROR]      at org.jboss.weld.event.EventImpl.fire(EventImpl.java:94)
      [ERROR]      at org.jboss.errai.cdi.server.events.AccountService.watchActivity(AccountService.java:40)
      

       

       

       

      I still need to figure out why Weld tries to load that class at all. The error seems to be occurring in hosted mode only.