[jbosstools-issues] [JBoss JIRA] (JBIDE-16043) CLONE - Build Error when using DS security module and @Secured @Stereotype annotation

Rastislav Wagner (JIRA) issues at jboss.org
Mon Feb 17 03:33:47 EST 2014


     [ https://issues.jboss.org/browse/JBIDE-16043?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rastislav Wagner closed JBIDE-16043.
------------------------------------



verified in JBDS 8.0.0 Alpha2-v20140212-2251-B70
                
> CLONE - Build Error when using DS security module and @Secured @Stereotype annotation
> -------------------------------------------------------------------------------------
>
>                 Key: JBIDE-16043
>                 URL: https://issues.jboss.org/browse/JBIDE-16043
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: cdi-extensions
>    Affects Versions: 4.1.0.Final, 4.1.1.Beta1
>         Environment: Win 7 / 64-bit Eclipse Kepler SR1 / 32-bit Java 1.7.0_25
>            Reporter: Alexey Kazakov
>            Assignee: Viacheslav Kabanovich
>            Priority: Blocker
>             Fix For: 4.2.0.Alpha1
>
>
> When using {{@Secured(DecisionVoter.class)}} concept for authorization,  each build ends with following build error if the method is annotated with a {{@Secured @Stereotype}} created annotation:
> {quote}
> eclipse.buildId=4.3.0.M20130911-1000
> java.version=1.7.0_25
> java.vendor=Oracle Corporation
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_CH
> Framework arguments:  -product org.eclipse.epp.package.jee.product
> Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product
> Error
> Tue Nov 19 13:36:27 CET 2013
> Errors running builder 'CDI (Context and Dependency Injection) Builder' on project 'ee7-web-ds-security'.
> java.lang.NullPointerException
> 	at org.jboss.tools.cdi.deltaspike.core.DeltaspikeSecurityExtension.findAnnotationAnnotatedWithSecurityBindingType(DeltaspikeSecurityExtension.java:161)
> 	at org.jboss.tools.cdi.deltaspike.core.DeltaspikeSecurityExtension.addSecurityMember(DeltaspikeSecurityExtension.java:117)
> 	at org.jboss.tools.cdi.deltaspike.core.DeltaspikeSecurityExtension.processAnnotatedMember(DeltaspikeSecurityExtension.java:106)
> 	at org.jboss.tools.cdi.internal.core.impl.definition.TypeDefinition.init(TypeDefinition.java:72)
> 	at org.jboss.tools.cdi.internal.core.impl.definition.AbstractMemberDefinition.setAnnotatable(AbstractMemberDefinition.java:64)
> 	at org.jboss.tools.cdi.internal.core.impl.definition.AbstractTypeDefinition.setType(AbstractTypeDefinition.java:69)
> 	at org.jboss.tools.cdi.internal.core.scanner.CDIBuilderDelegate.build(CDIBuilderDelegate.java:79)
> 	at org.jboss.tools.cdi.internal.core.scanner.CDIBuilderDelegate.build(CDIBuilderDelegate.java:48)
> 	at org.jboss.tools.cdi.core.CDICoreBuilder.invokeBuilderDelegates(CDICoreBuilder.java:326)
> 	at org.jboss.tools.cdi.core.CDICoreBuilder.fullBuild(CDICoreBuilder.java:261)
> 	at org.jboss.tools.cdi.core.CDICoreBuilder.build(CDICoreBuilder.java:221)
> 	at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:733)
> 	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> 	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
> 	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
> 	at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:299)
> 	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> 	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:302)
> 	at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:358)
> 	at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:381)
> 	at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
> 	at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
> 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
> {quote}
> When using the {{@SecurityBindingType}} concept for authorization or the {{@Secured}} annotation directly, the build passes with no error.
> In any case, even if the build reports this error, the app is compiled correctly and deploys and works as it should.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list