[jbosstools-issues] [JBoss JIRA] Updated: (JBIDE-5688) java.lang.NullPointerException happens in SeamELValidator.shouldValidate(SeamELValidator.java:63) during JUnit Tests Execution

Denis Golovin (JIRA) jira-events at lists.jboss.org
Thu Jan 14 20:47:30 EST 2010


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

Denis Golovin updated JBIDE-5688:
---------------------------------

    Priority: Minor  (was: Major)


The reason why it is happened is stop method implemented like 

	/*
	 * (non-Javadoc)
	 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
	 */
	public void stop(BundleContext context) throws Exception {
		ResourcesPlugin.getWorkspace().removeResourceChangeListener(resourceChangeListener);
		plugin = null;
		super.stop(context);
	}


stopping one plugin doesn't mean other plug-ins cannot call static methods after that.

it seems that SeamELValidator invokes SeamCorePlugin.getDefault() after seam core plug-in is stopped.

Solution would be removing line

plugin = null;



> java.lang.NullPointerException happens in SeamELValidator.shouldValidate(SeamELValidator.java:63) during JUnit Tests Execution
> ------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-5688
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-5688
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: QA, Seam
>    Affects Versions: 3.1.0.CR2
>            Reporter: Denis Golovin
>            Assignee: Alexey Kazakov
>            Priority: Minor
>             Fix For: 3.1.0.CR2
>
>
>      [java] java.lang.NullPointerException
>      [java] 	at org.jboss.tools.seam.internal.core.validation.SeamELValidator.shouldValidate(SeamELValidator.java:63)
>      [java] 	at org.jboss.tools.jst.web.kb.internal.validation.ValidationContext.<init>(ValidationContext.java:84)
>      [java] 	at org.jboss.tools.jst.web.kb.internal.validation.ContextValidationHelper.getValidationContext(ContextValidationHelper.java:109)
>      [java] 	at org.jboss.tools.jst.web.kb.internal.validation.ValidatorManager.validateInJob(ValidatorManager.java:58)
>      [java] 	at org.eclipse.wst.validation.internal.operations.ValidatorJob.run(ValidatorJob.java:78)
>      [java] 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

-- 
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

        


More information about the jbosstools-issues mailing list