[jbosstools-issues] [JBoss JIRA] Created: (JBIDE-1733) Problem with wtp validators when testing

Snjezana Peco (JIRA) jira-events at lists.jboss.org
Mon Feb 4 15:08:03 EST 2008


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
            Priority: Minor


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