[webbeans-issues] [JBoss JIRA] Created: (WBRI-215) Manager.getInstanceToInject() does not throw an UnproxyableDependencyException for unproxyable bean types
by Shane Bryzak (JIRA)
Manager.getInstanceToInject() does not throw an UnproxyableDependencyException for unproxyable bean types
---------------------------------------------------------------------------------------------------------
Key: WBRI-215
URL: https://jira.jboss.org/jira/browse/WBRI-215
Project: Web Beans
Issue Type: Bug
Affects Versions: 1.0.0.BETA1
Reporter: Shane Bryzak
The spec states in section 5.7.1:
"Manager.getInstanceToInject() returns a contextual instance or client proxy to be injected to the given injection point.
The getInstanceToInject() method must:
<snip>
* If the bean has a normal scope and the type cannot be proxied by the container, as defined in Section 5.4.1,
"Unproxyable bean types", throw an UnproxyableDependencyException."
This exception is not being thrown for unproxyable bean types - see TCK test org.jboss.jsr299.tck.tests.lookup.dependency.resolution.DependencyResolutionTest, method testGetInstanceToInjectThrowsUnproxyableDependencyException().
Section 5.4.1 of the spec lists "classes without a non-private constructor with no parameters" as an unproxyable bean type.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 6 months
[webbeans-issues] [JBoss JIRA] Created: (WBRI-213) Initialization event @Initialized Manager fires during broken deployment
by Shane Bryzak (JIRA)
Initialization event @Initialized Manager fires during broken deployment
------------------------------------------------------------------------
Key: WBRI-213
URL: https://jira.jboss.org/jira/browse/WBRI-213
Project: Web Beans
Issue Type: Bug
Affects Versions: 1.0.0.BETA1
Reporter: Shane Bryzak
According to section 11.1 of the spec, the @Initialized Manager event should only fire after the container fails to detect any definition errors:
"First, the container performs bean discovery and registers Bean and Observer objects for the discovered beans. The
container detects definition errors by validating the bean classes and metadata, throwing a DeploymentException and
aborting deployment of the application if any definition errors exist, as defined in Section 10.1, "Definition errors"."
The TCK test org.jboss.jsr299.tck.tests.deployment.lifecycle.fail.DeploymentFailureTest is currently failing, because the initialization event is being raised even though deployment should have failed.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 6 months
[webbeans-issues] [JBoss JIRA] Created: (WBRI-202) Facelets (EL Resolution) Incompatible With JSF 2.0
by Roger Kitain (JIRA)
Facelets (EL Resolution) Incompatible With JSF 2.0
--------------------------------------------------
Key: WBRI-202
URL: https://jira.jboss.org/jira/browse/WBRI-202
Project: Web Beans
Issue Type: Bug
Components: EL integration
Environment: Glassfish w/ JSF 2.0
Reporter: Roger Kitain
Fix For: 1.0.0.PREVIEW
Implemented Bootstrap SPI for Glassfish;
Deployed webbeans-numberguess demo application;
Upon visiting localhost:8080/webbeans-numberguess I get:
SEVERE: Error Rendering View[/home.xhtml]
com.sun.facelets.tag.TagAttributeException: /home.xhtml @24,92 minimum="#{game.smallest}" /home.xhtml @24,92 minimum="#{game.smallest}" /home.xhtml @24,92 minimum="#{game.smallest}": java.lang.IllegalArgumentException: Cannot convert Namespace(game.smallest.) of type class org.jboss.webbeans.el.Namespace to long
at com.sun.facelets.tag.BeanPropertyTagRule$DynamicPropertyMetadata.applyMetadata(BeanPropertyTagRule.java:80)
at com.sun.facelets.tag.MetadataImpl.applyMetadata(MetadataImpl.java:36)
at com.sun.facelets.tag.MetaTagHandler.setAttributes(MetaTagHandler.java:62)
at com.sun.facelets.tag.jsf.ValidateHandler.apply(ValidateHandler.java:98)
at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
at com.sun.facelets.tag.ui.DefineHandler.applyDefinition(DefineHandler.java:64)
at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:131)
at com.sun.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:337)
at com.sun.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:307)
at com.sun.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:68)
at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:140)
at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)
at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)
at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:524)
at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:567)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:117)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:102)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:311)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:431)
at org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:462)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633)
at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570)
at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
at com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325)
at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184)
Caused by: com.sun.facelets.tag.TagAttributeException: /home.xhtml @24,92 minimum="#{game.smallest}" /home.xhtml @24,92 minimum="#{game.smallest}": java.lang.IllegalArgumentException: Cannot convert Namespace(game.smallest.) of type class org.jboss.webbeans.el.Namespace to long
at com.sun.facelets.tag.TagAttribute.getObject(TagAttribute.java:235)
at com.sun.facelets.tag.BeanPropertyTagRule$DynamicPropertyMetadata.applyMetadata(BeanPropertyTagRule.java:75)
... 65 more
Caused by: javax.el.ELException: /home.xhtml @24,92 minimum="#{game.smallest}": java.lang.IllegalArgumentException: Cannot convert Namespace(game.smallest.) of type class org.jboss.webbeans.el.Namespace to long
at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:76)
at com.sun.facelets.tag.TagAttribute.getObject(TagAttribute.java:233)
... 66 more
Caused by: java.lang.IllegalArgumentException: Cannot convert Namespace(game.smallest.) of type class org.jboss.webbeans.el.Namespace to long
at com.sun.el.lang.ELSupport.coerceToNumber(ELSupport.java:294)
at com.sun.el.lang.ELSupport.coerceToType(ELSupport.java:354)
at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:209)
at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
... 67 more
Mar 23, 2009 7:17:41 PM org.apache.catalina.core.StandardWrapperValve log
SEVERE: StandardWrapperValve[Faces Servlet]: PWC1406: Servlet.service() for servlet Faces Servlet threw exception
com.sun.facelets.tag.TagAttributeException: /home.xhtml @24,92 minimum="#{game.smallest}" /home.xhtml @24,92 minimum="#{game.smallest}" /home.xhtml @24,92 minimum="#{game.smallest}": java.lang.IllegalArgumentException: Cannot convert Namespace(game.smallest.) of type class org.jboss.webbeans.el.Namespace to long
at com.sun.facelets.tag.BeanPropertyTagRule$DynamicPropertyMetadata.applyMetadata(BeanPropertyTagRule.java:80)
at com.sun.facelets.tag.MetadataImpl.applyMetadata(MetadataImpl.java:36)
at com.sun.facelets.tag.MetaTagHandler.setAttributes(MetaTagHandler.java:62)
at com.sun.facelets.tag.jsf.ValidateHandler.apply(ValidateHandler.java:98)
at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)
at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
at com.sun.facelets.tag.ui.DefineHandler.applyDefinition(DefineHandler.java:64)
at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:131)
at com.sun.facelets.impl.DefaultFaceletContext$TemplateManager.apply(DefaultFaceletContext.java:337)
at com.sun.facelets.impl.DefaultFaceletContext.includeDefinition(DefaultFaceletContext.java:307)
at com.sun.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:68)
at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:248)
at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:294)
at com.sun.facelets.impl.DefaultFacelet.include(DefaultFacelet.java:273)
at com.sun.facelets.impl.DefaultFaceletContext.includeFacelet(DefaultFaceletContext.java:140)
at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:113)
at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)
at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:524)
at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:567)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:117)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:102)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:311)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:431)
at org.apache.catalina.core.StandardWrapperValve.preInvoke(StandardWrapperValve.java:462)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:139)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:186)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:96)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:142)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:719)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:657)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:651)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1030)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:325)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:242)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
at com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:633)
at com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:570)
at com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:827)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:152)
at com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:71)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:103)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:89)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:67)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:56)
at com.sun.grizzly.util.WorkerThreadImpl.processTask(WorkerThreadImpl.java:325)
at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:184)
Caused by: com.sun.facelets.tag.TagAttributeException: /home.xhtml @24,92 minimum="#{game.smallest}" /home.xhtml @24,92 minimum="#{game.smallest}": java.lang.IllegalArgumentException: Cannot convert Namespace(game.smallest.) of type class org.jboss.webbeans.el.Namespace to long
at com.sun.facelets.tag.TagAttribute.getObject(TagAttribute.java:235)
at com.sun.facelets.tag.BeanPropertyTagRule$DynamicPropertyMetadata.applyMetadata(BeanPropertyTagRule.java:75)
... 65 more
Caused by: javax.el.ELException: /home.xhtml @24,92 minimum="#{game.smallest}": java.lang.IllegalArgumentException: Cannot convert Namespace(game.smallest.) of type class org.jboss.webbeans.el.Namespace to long
at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:76)
at com.sun.facelets.tag.TagAttribute.getObject(TagAttribute.java:233)
... 66 more
Caused by: java.lang.IllegalArgumentException: Cannot convert Namespace(game.smallest.) of type class org.jboss.webbeans.el.Namespace to long
at com.sun.el.lang.ELSupport.coerceToNumber(ELSupport.java:294)
at com.sun.el.lang.ELSupport.coerceToType(ELSupport.java:354)
at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:209)
at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
... 67 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 6 months