[JBoss JIRA] (JBIDE-10791) Null Pointer Exception in CDIProject class
by Daniel Azarov (JIRA)
Daniel Azarov created JBIDE-10791:
-------------------------------------
Summary: Null Pointer Exception in CDIProject class
Key: JBIDE-10791
URL: https://issues.jboss.org/browse/JBIDE-10791
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: CDI
Affects Versions: 3.3.0.M5
Reporter: Daniel Azarov
Assignee: Viacheslav Kabanovich
Fix For: 3.3.0.Beta1
Test case:
EXECUTE:
1. Create CDI Project
2. Create New CDI Qualifier:
{code}
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import javax.inject.Qualifier;
@Target( { TYPE, METHOD, PARAMETER, FIELD })
@Retention(RUNTIME)
@Documented
@Qualifier
@interface Chunky
{
boolean realChunky() default true;
boolean unrealChunky();
int number() default 5;
int size();
long long_number() default 1000;
long long_size();
short short_number() default 2;
short short_size();
float probability() default (float)13.5;
float probability2();
double double_probability() default 27.3;
double double_probability2();
char charachter() default 'E';
char charachter2();
byte bbb() default (byte)3;
byte bebebe();
}
{code}
3. Create interface:
{code}
interface Animal
{
}
{code}
4. Create CDI Bean:
{code}
@Chunky(bebebe = 10, charachter2 = 10, double_probability2 = 10, long_size = 10, probability2 = 10, short_size = 10, size = 10, unrealChunky = false)
class Sheep implements Animal
{
}
{code}
4. Create class:
{code}
import javax.inject.Inject;
public class Farm_Broken1 {
@SuppressWarnings("unused")
@Inject private Animal animal;
}
{code}
5. Build project
FAIL:
org.jboss.tools.common.validation.JBTValidationException
at org.jboss.tools.common.validation.ValidatorManager.validateInJob(ValidatorManager.java:101)
at org.eclipse.wst.validation.internal.operations.ValidatorJob.run(ValidatorJob.java:78)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.lang.NullPointerException
at org.jboss.tools.cdi.internal.core.impl.CDIProject.getAnnotationDeclarationKey(CDIProject.java:630)
at org.jboss.tools.cdi.internal.core.impl.CDIProject.getAnnotationDeclarationKey(CDIProject.java:598)
at org.jboss.tools.cdi.internal.core.impl.CDIProject.areMatchingQualifiers(CDIProject.java:517)
at org.jboss.tools.cdi.internal.core.impl.CDIProject.getBeans(CDIProject.java:383)
at org.jboss.tools.cdi.internal.core.validation.CDICoreValidator.validateInjectionPoint(CDICoreValidator.java:1617)
at org.jboss.tools.cdi.internal.core.validation.CDICoreValidator.validateBean(CDICoreValidator.java:617)
at org.jboss.tools.cdi.internal.core.validation.CDICoreValidator.validateResource(CDICoreValidator.java:509)
at org.jboss.tools.cdi.internal.core.validation.CDICoreValidator.validate(CDICoreValidator.java:381)
at org.jboss.tools.common.validation.ValidatorManager.validate(ValidatorManager.java:116)
at org.jboss.tools.common.validation.ValidatorManager.validateInJob(ValidatorManager.java:81)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 2 months
[JBoss JIRA] Created: (JBDS-1848) Expander syntax for Drools can't find dsl file
by Joel Tosi (JIRA)
Expander syntax for Drools can't find dsl file
----------------------------------------------
Key: JBDS-1848
URL: https://issues.jboss.org/browse/JBDS-1848
Project: Developer Studio (JBoss Developer Studio)
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 4.1.0.GA
Environment: JBDS 4.1.0 GA, OpenJDK 1.6, Fedora 14,
Reporter: Joel Tosi
Created a dsl, then went to use the dsl in a dslr. Entered the expander syntax along with the dsl filename, expander errors and says it cannot find the file.
I have tried putting the dsl in the /src/main/rules directory, in the same package as the dslr, and tried placing the dsl in its own package and then importing it or complete path it in the expander - all provide an error still.
[ERR 107] Line 5:0 mismatched input 'expander' expecting one of the following tokens: '{ identifier }'. DSLClassUpgradeRule.dslr /JBTravel/src/main/rules/biz/jbtravel/classup line 5 Drools Error
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
14 years, 2 months
[JBoss JIRA] Created: (JBIDE-2791) "duplicate factory for: org.jboss.seam.web.webSession (duplicate is specified in components.xml)" error after creating a newseam project
by Riccardo Serafin (JIRA)
"duplicate factory for: org.jboss.seam.web.webSession (duplicate is specified in components.xml)" error after creating a newseam project
-----------------------------------------------------------------------------------------------------------------------------------------
Key: JBIDE-2791
URL: https://jira.jboss.org/jira/browse/JBIDE-2791
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Seam
Affects Versions: 3.0.0.alpha
Environment: Windows XP, Eclipse 3.4.0, JBoss AS 4.2.3-GA, Seam 2.1.0-BETA1, Java 1.6.0_10-rc
Reporter: Riccardo Serafin
After creating a new Seam project via the wizard (EAR packaging, configuration "Dynamic Web project with Seam 2.0"), starting up JBoss produces the following error:
duplicate factory for: org.jboss.seam.web.webSession (duplicate is specified in components.xml)
Even after removing jboss-seam.jar from the war MANIFEST.INF as suggested here (http://www.seamframework.org/Community/HowToUpdateProjectFrom20To21Seam) the error still occurs.
This is the only other reference that I've found to this error (http://jira.jboss.com/jira/browse/JBSEAM-2981) but it looks slightly unrelated to me.
Stack trace:
19:05:32,116 ERROR [[/hellome]] Excepción enviando evento inicializado de contexto a instancia de escuchador de clase org.jboss.seam.servlet.SeamListener
java.lang.IllegalStateException: duplicate factory for: org.jboss.seam.web.webSession (duplicate is specified in components.xml)
at org.jboss.seam.core.Init.checkDuplicateFactoryExpressions(Init.java:222)
at org.jboss.seam.core.Init.checkDuplicateFactory(Init.java:215)
at org.jboss.seam.core.Init.addFactoryValueExpression(Init.java:278)
at org.jboss.seam.init.Initialization.installComponents(Initialization.java:983)
at org.jboss.seam.init.Initialization.init(Initialization.java:631)
at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
....
I believe also these others warnings might be related to the same problem (which i suspect is duplicate jar in the classpath of the war):
19:49:24,506 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
19:49:25,506 INFO [EARDeployer] Init J2EE application: file:/D:/Java/jboss-4.2.3.GA/server/default/deploy/hellome-ear.ear/
19:49:35,459 WARN [MainDeployer] Found non-jar deployer for jboss-seam.jar: MBeanProxyExt[jboss.ejb3:service=EJB3Deployer]
19:49:42,381 WARN [DeploymentInfo] Only the root deployment can set the loader repository, ignoring config=LoaderRepositoryConfig(repositoryName: seam.jboss.org:loader=hellome, repositoryClassName: org.jboss.mx.loading.HeirarchicalLoaderRepository3, configParserClassName: org.jboss.mx.loading.HeirarchicalLoaderRepository3ConfigParser, repositoryConfig: java2ParentDelegation=false)
19:50:00,679 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.entity.PersistenceUnitDeployment
19:50:04,976 INFO [TomcatDeployer] deploy, ctxPath=/hellome, warUrl=.../deploy/hellome-ear.ear/hellome.war/
19:50:13,554 WARN [SeamPhaseListener] There should only be one Seam phase listener per application
19:50:20,726 INFO [ServletContextListener] Welcome to Seam 2.1.0.BETA1
--
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
14 years, 2 months