[
https://issues.jboss.org/browse/JBIDE-11703?page=com.atlassian.jira.plugi...
]
Viacheslav Kabanovich commented on JBIDE-11703:
-----------------------------------------------
I cannot reproduce it.
Fred, do you have this exception every time, or some specific steps lead to it?
Did you have other exceptions before this, which could mean that the model could not be
load properly because of them.
This NPE cannot be fixed by a simple null check, the expected object should not be null at
this point, if it is null, we have to understand why.
NPE in CDI ClassPathMonitor
---------------------------
Key: JBIDE-11703
URL:
https://issues.jboss.org/browse/JBIDE-11703
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: CDI
Affects Versions: 3.3.0.Beta3
Environment: org.jboss.tools.cdi.core_1.2.0.v20120423-2044-H1070-Beta3.jar
Reporter: Fred Bricon
Assignee: Viacheslav Kabanovich
Fix For: 3.3.0.CR1
While importing a HTML5 project from Openshift, I got that NPE :
{noformat}
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.scanner.lib.ClassPathMonitor.init(ClassPathMonitor.java:53)
at org.jboss.tools.cdi.core.CDICoreNature.setProject(CDICoreNature.java:111)
at
org.eclipse.core.internal.resources.NatureManager.createNature(NatureManager.java:234)
at org.eclipse.core.internal.resources.Project.getNature(Project.java:448)
at org.jboss.tools.cdi.core.CDICorePlugin.getCDINature(CDICorePlugin.java:137)
at org.jboss.tools.cdi.core.CDICorePlugin.getCDI(CDICorePlugin.java:145)
at
org.jboss.tools.cdi.internal.core.validation.CDIProjectTree.addProject(CDIProjectTree.java:56)
at
org.jboss.tools.cdi.internal.core.validation.CDIProjectTree.<init>(CDIProjectTree.java:44)
at
org.jboss.tools.cdi.internal.core.validation.CDICoreValidator.getProjectTree(CDICoreValidator.java:226)
at
org.jboss.tools.cdi.internal.core.validation.CDICoreValidator.getValidatingProjects(CDICoreValidator.java:221)
at org.jboss.tools.common.validation.ValidationContext.init(ValidationContext.java:97)
at
org.jboss.tools.common.validation.ValidationContext.<init>(ValidationContext.java:43)
at
org.jboss.tools.common.validation.ContextValidationHelper.getValidationContextManager(ContextValidationHelper.java:162)
at
org.jboss.tools.common.validation.ContextValidationHelper.getValidationContextManager(ContextValidationHelper.java:154)
at
org.jboss.tools.common.validation.ValidatorManager.validateInJob(ValidatorManager.java:65)
... 2 more
{noformat}
--
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