[jbosstools-issues] [JBoss JIRA] Reopened: (JBIDE-1733) Problem with wtp validators when testing
Snjezana Peco (JIRA)
jira-events at lists.jboss.org
Tue Apr 15 20:06:54 EDT 2008
[ http://jira.jboss.com/jira/browse/JBIDE-1733?page=all ]
Snjezana Peco reopened JBIDE-1733:
----------------------------------
While I was testing JBIDE-1628, I got the following exception:
java.lang.NullPointerException
at org.eclipse.wst.sse.ui.internal.reconcile.AbstractStructuredTextReconcilingStrategy.getAnnotationsToRemove(AbstractStructuredTextReconcilingStrategy.java:205)
at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:218)
at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.process(DocumentRegionProcessor.java:183)
at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:252)
at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor.run(DirtyRegionProcessor.java:633)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
in the testJBIDE1568Body test what means that validation isn't disabled. JBIDE-1568 doesn't require validation.
It doesn't always happen because validation is executed randomly.
> Problem with wtp validators when testing
> ----------------------------------------
>
> Key: JBIDE-1733
> URL: http://jira.jboss.com/jira/browse/JBIDE-1733
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: QA
> Affects Versions: 2.0.0.GA
> Reporter: Snjezana Peco
> Assigned To: Daniel Azarov
> Priority: Minor
> Fix For: 2.1.0.beta1
>
>
> I'm not sure if this is a bug in the wtp validators or some validator is implemented incorrectly.
> The result is throwing the following exception :
> java.lang.NullPointerException
> at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.endProcessing(ValidatorStrategy.java:140)
> at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.endProcessing(DocumentRegionProcessor.java:71)
> at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor.run(DirtyRegionProcessor.java:647)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
> or NPE in the DirtyRegionProcessor.computePartitioning(int drOffset, int drLength) method.
> I propose suspending all validators unless if the validators are tested.
> This can be achieved by the following code (VpeTest.java) :
> protected void performTestForVpeComponent(IFile componentPage)
> throws PartInitException, Throwable {
> performTestForVpeComponent(componentPage, true);
> }
>
> protected void performTestForVpeComponent(IFile componentPage, boolean disableValidation)
> throws PartInitException, Throwable {
> TestUtil.waitForJobs();
> if (disableValidation) {
> IProject project = componentPage.getProject();
> if (project != null) {
> ProjectConfiguration projectConfiguration = ConfigurationManager
> .getManager().getProjectConfiguration(project);
> projectConfiguration.setDoesProjectOverride(true);
> projectConfiguration.setDisableAllValidation(true);
> }
> }
> It is necessary to add org.eclipse.wst.validation to the required plugins of the org.jboss.tools.jsf.vpe.ui.test plugin.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list