You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Teimatini Marin (JIRA)" <ji...@apache.org> on 2019/06/07 17:02:00 UTC

[jira] [Commented] (OWB-1288) Exception thrown when ENUM is used in a bean

    [ https://issues.apache.org/jira/browse/OWB-1288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16858819#comment-16858819 ] 

Teimatini Marin commented on OWB-1288:
--------------------------------------

If enum is commented out, everything works just fine.

> Exception thrown when ENUM is used in a bean
> --------------------------------------------
>
>                 Key: OWB-1288
>                 URL: https://issues.apache.org/jira/browse/OWB-1288
>             Project: OpenWebBeans
>          Issue Type: Bug
>    Affects Versions: 2.0.7
>            Reporter: Teimatini Marin
>            Priority: Major
>
> If a bean declares a Enumeration, the exception shown below is thrown at initialization time.
> {code}
> public class ABCDStrategy {
>  public enum Status {
>  STARTING,
>  WARMING,
>  RUNNING
>  }
>  @Inject
>  Logger logger;
>  @Inject
>  ModelFactory modelFactory;
> ...
> }
> {code}
>  
> {code}
> Exception in thread "main" org.apache.webbeans.exception.WebBeansDeploymentException: java.lang.UnsupportedOperationException
>  at openwebbeans.impl@2.0.7/org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery.scan(AbstractMetaDataDiscovery.java:157)
>  at openwebbeans.impl@2.0.7/org.apache.webbeans.lifecycle.AbstractLifeCycle.bootstrapApplication(AbstractLifeCycle.java:131)
>  at openwebbeans.impl@2.0.7/org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:103)
>  at openwebbeans.se@2.0.7/org.apache.openwebbeans.se.OWBInitializer.newContainer(OWBInitializer.java:107)
>  at openwebbeans.se@2.0.7/org.apache.openwebbeans.se.OWBInitializer.initialize(OWBInitializer.java:91)
>  at openwebbeans.se@2.0.7/org.apache.openwebbeans.se.SeInitializerFacade.initialize(SeInitializerFacade.java:137)
>  at redwine.sensor/com.beuwa.redwine.sensor.Main.main(Main.java:11)
> Caused by: java.lang.UnsupportedOperationException
>  at org.apache.xbean.asm6.shaded@4.9/org.apache.xbean.asm6.ClassVisitor.visitNestHostExperimental(ClassVisitor.java:158)
>  at org.apache.xbean.asm6.shaded@4.9/org.apache.xbean.asm6.ClassReader.accept(ClassReader.java:541)
>  at org.apache.xbean.asm6.shaded@4.9/org.apache.xbean.asm6.ClassReader.accept(ClassReader.java:391)
>  at org.apache.xbean.finder.shaded@4.9/org.apache.xbean.finder.AnnotationFinder.readClassDef(AnnotationFinder.java:1168)
>  at org.apache.xbean.finder.shaded@4.9/org.apache.xbean.finder.AnnotationFinder.<init>(AnnotationFinder.java:145)
>  at org.apache.xbean.finder.shaded@4.9/org.apache.xbean.finder.AnnotationFinder.<init>(AnnotationFinder.java:158)
>  at openwebbeans.impl@2.0.7/org.apache.webbeans.corespi.scanner.xbean.OwbAnnotationFinder.<init>(OwbAnnotationFinder.java:37)
>  at openwebbeans.impl@2.0.7/org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery.initFinder(AbstractMetaDataDiscovery.java:114)
>  at openwebbeans.impl@2.0.7/org.apache.webbeans.corespi.scanner.AbstractMetaDataDiscovery.scan(AbstractMetaDataDiscovery.java:153)
>  ... 6 more
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)