4 Replies Latest reply on Aug 2, 2011 6:00 AM by prinzm

    Weld IllegalStateException

    prinzm Newbie

      Does anybody know were this exception comes from?

       

      07:12:11,401 ERROR [stderr] (http--127.0.0.1-8080-1) Caused by: java.lang.IllegalStateException: View of type interface com.hji.common.service.DomainService not found on bean org.jboss.as.ejb3.component.stateful.StatefulSessionComponent@461a1391

      07:12:11,402 ERROR [stderr] (http--127.0.0.1-8080-1)     at org.jboss.as.weld.ejb.StatefulSessionObjectReferenceImpl.getBusinessObject(StatefulSessionObjectReferenceImpl.java:78)

      07:12:11,402 ERROR [stderr] (http--127.0.0.1-8080-1)     at org.jboss.weld.bean.proxy.EnterpriseBeanProxyMethodHandler.invoke(EnterpriseBeanProxyMethodHandler.java:122)

      07:12:11,402 ERROR [stderr] (http--127.0.0.1-8080-1)     at org.jboss.weld.bean.proxy.EnterpriseTargetBeanInstance.invoke(EnterpriseTargetBeanInstance.java:62)

      07:12:11,402 ERROR [stderr] (http--127.0.0.1-8080-1)     at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125)

      07:12:11,402 ERROR [stderr] (http--127.0.0.1-8080-1)     at com.hji.common.service.CustomerService$DomainService$Serializable$-1244921956$Proxy$_$$_Weld$Proxy$.find(CustomerService$DomainService$Serializable$-1244921956$Proxy$_$$_Weld$Proxy$.java)

      07:12:11,402 ERROR [stderr] (http--127.0.0.1-8080-1)     at com.hji.ui.compound.VehicleInfoUiBean.setVin(VehicleInfoUiBean.java:134)

      07:12:11,403 ERROR [stderr] (http--127.0.0.1-8080-1)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      07:12:11,403 ERROR [stderr] (http--127.0.0.1-8080-1)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      07:12:11,403 ERROR [stderr] (http--127.0.0.1-8080-1)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      07:12:11,403 ERROR [stderr] (http--127.0.0.1-8080-1)     at java.lang.reflect.Method.invoke(Method.java:597)

      07:12:11,403 ERROR [stderr] (http--127.0.0.1-8080-1)     at javax.el.BeanELResolver.setValue(BeanELResolver.java:381)

      07:12:11,403 ERROR [stderr] (http--127.0.0.1-8080-1)     at com.sun.faces.el.DemuxCompositeELResolver._setValue(DemuxCompositeELResolver.java:255)

      07:12:11,404 ERROR [stderr] (http--127.0.0.1-8080-1)     at com.sun.faces.el.DemuxCompositeELResolver.setValue(DemuxCompositeELResolver.java:281)

      07:12:11,404 ERROR [stderr] (http--127.0.0.1-8080-1)     at org.apache.el.parser.AstValue.setValue(AstValue.java:159)

      07:12:11,404 ERROR [stderr] (http--127.0.0.1-8080-1)     at org.apache.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:264)

      07:12:11,404 ERROR [stderr] (http--127.0.0.1-8080-1)     at org.jboss.weld.el.WeldValueExpression.setValue(WeldValueExpression.java:74)

      07:12:11,404 ERROR [stderr] (http--127.0.0.1-8080-1)     at com.sun.faces.facelets.el.TagValueExpression.setValue(TagValueExpression.java:131)

      07:12:11,404 ERROR [stderr] (http--127.0.0.1-8080-1)     at org.apache.el.parser.AstIdentifier.setValue(AstIdentifier.java:98)

      07:12:11,404 ERROR [stderr] (http--127.0.0.1-8080-1)     at org.apache.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:264)

      07:12:11,405 ERROR [stderr] (http--127.0.0.1-8080-1)     at org.jboss.weld.el.WeldValueExpression.setValue(WeldValueExpression.java:74)

      07:12:11,405 ERROR [stderr] (http--127.0.0.1-8080-1)     at com.sun.faces.facelets.el.TagValueExpression.setValue(TagValueExpression.java:131)

      07:12:11,405 ERROR [stderr] (http--127.0.0.1-8080-1)     ... 41 more

       

      The class CustomerService (implements the interface DomainService) is injected in my UI Bean via Weld. Now I wanted to access a method of the DomainService, which ended in the exception. When I try to call a method from the class CustomerService, it works! In JBoss 5/6 I had no problems.