3 Replies Latest reply on Mar 11, 2009 2:52 AM by Darrell Wu

    eclipse 3.4.2 crashes when opening an .xhtml file

    Darrell Wu Newbie

      Hi,

      I'm running eclipse Version: 3.4.2 Build id: M20090211-1700 with jboss tools using the development release update site.

      Occasionally when i open an xhtml file eclipse crashes.
      So far it appears to crash when i open an index.xhtml file.
      So i think its something in the file that cause eclipse to crash.

      In the eclipse log i'm getting the following messages

      !SESSION 2009-03-11 08:59:32.765 -----------------------------------------------
      eclipse.buildId=M20090211-1700
      java.version=1.6.0_07
      java.vendor=Sun Microsystems Inc.
      BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
      Command-line arguments: -os win32 -ws win32 -arch x86
      
      !ENTRY org.eclipse.ui.workbench.texteditor 4 0 2009-03-11 08:59:36.250
      !MESSAGE The 'org.eclipse.wst.jsdt.web.ui.internal.hyperlink.script.JSPJavaHyperlinkDetector' extension from plug-in 'org.eclipse.wst.jsdt.web.ui' to the 'org.eclipse.ui.workbench.texteditor.hyperlinkDetectors' extension point will be ignored because it contains invalid attributes.
      
      !ENTRY org.eclipse.ui.workbench.texteditor 4 0 2009-03-11 08:59:36.250
      !MESSAGE The 'org.eclipse.wst.jsdt.web.ui.internal.hyperlink.script.event.JSPJavaHyperlinkDetector' extension from plug-in 'org.eclipse.wst.jsdt.web.ui' to the 'org.eclipse.ui.workbench.texteditor.hyperlinkDetectors' extension point will be ignored because it contains invalid attributes.
      
      !ENTRY org.eclipse.jdt.ui 4 2 2009-03-11 09:09:31.765
      !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui".
      !STACK 0
      java.lang.NullPointerException
       at org.jboss.tools.seam.internal.core.scanner.java.ASTVisitorImpl.visit(ASTVisitorImpl.java:90)
       at org.eclipse.jdt.core.dom.SingleMemberAnnotation.accept0(SingleMemberAnnotation.java:161)
       at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
       at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2548)
       at org.eclipse.jdt.core.dom.AnnotationTypeDeclaration.accept0(AnnotationTypeDeclaration.java:239)
       at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
       at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2548)
       at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:214)
       at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
       at org.jboss.tools.seam.ui.text.java.scanner.JavaAnnotationScanner$ASTRequestorImpl.acceptAST(JavaAnnotationScanner.java:187)
       at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:721)
       at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:474)
       at org.eclipse.jdt.core.dom.ASTParser.createASTs(ASTParser.java:736)
       at org.jboss.tools.seam.ui.text.java.scanner.JavaAnnotationScanner.parse(JavaAnnotationScanner.java:104)
       at org.jboss.tools.seam.ui.search.SeamSearchVisitor.locateMatchesInJava(SeamSearchVisitor.java:659)
       at org.jboss.tools.seam.ui.search.SeamSearchVisitor.locateMatches(SeamSearchVisitor.java:560)
       at org.jboss.tools.seam.ui.search.SeamSearchVisitor.processSeamReferencesInFile(SeamSearchVisitor.java:515)
       at org.jboss.tools.seam.ui.search.SeamSearchVisitor.processSeamReferencesInProject(SeamSearchVisitor.java:484)
       at org.jboss.tools.seam.ui.search.SeamSearchVisitor.processSeamProjects(SeamSearchVisitor.java:453)
       at org.jboss.tools.seam.ui.search.SeamSearchVisitor.searchForReferences(SeamSearchVisitor.java:1017)
       at org.jboss.tools.seam.ui.search.SeamSearchVisitor.search(SeamSearchVisitor.java:395)
       at org.jboss.tools.seam.ui.search.SeamSearchEngine$1.search(SeamSearchEngine.java:178)
       at org.jboss.tools.seam.ui.search.SeamSearchQuery.queryByJavaElements(SeamSearchQuery.java:291)
       at org.jboss.tools.seam.ui.search.SeamSearchQuery.run(SeamSearchQuery.java:255)
       at org.jboss.tools.seam.ui.search.SeamQueryParticipant.search(SeamQueryParticipant.java:81)
       at org.eclipse.jdt.internal.ui.search.JavaSearchQuery$2.run(JavaSearchQuery.java:164)
       at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
       at org.eclipse.jdt.internal.ui.search.JavaSearchQuery.run(JavaSearchQuery.java:170)
       at org.eclipse.search2.internal.ui.InternalSearchUI$InternalSearchJob.run(InternalSearchUI.java:94)
       at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      
      !ENTRY org.eclipse.jdt.ui 4 0 2009-03-11 09:09:31.765
      !MESSAGE An error occurred during participant search. The participant has been disabled for the current session.
      !STACK 0
      java.lang.NullPointerException
       at org.jboss.tools.seam.internal.core.scanner.java.ASTVisitorImpl.visit(ASTVisitorImpl.java:90)
       at org.eclipse.jdt.core.dom.SingleMemberAnnotation.accept0(SingleMemberAnnotation.java:161)
       at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
       at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2548)
       at org.eclipse.jdt.core.dom.AnnotationTypeDeclaration.accept0(AnnotationTypeDeclaration.java:239)
       at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
       at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2548)
       at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:214)
       at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
       at org.jboss.tools.seam.ui.text.java.scanner.JavaAnnotationScanner$ASTRequestorImpl.acceptAST(JavaAnnotationScanner.java:187)
       at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:721)
       at org.eclipse.jdt.core.dom.CompilationUnitResolver.resolve(CompilationUnitResolver.java:474)
       at org.eclipse.jdt.core.dom.ASTParser.createASTs(ASTParser.java:736)
       at org.jboss.tools.seam.ui.text.java.scanner.JavaAnnotationScanner.parse(JavaAnnotationScanner.java:104)
       at org.jboss.tools.seam.ui.search.SeamSearchVisitor.locateMatchesInJava(SeamSearchVisitor.java:659)
       at org.jboss.tools.seam.ui.search.SeamSearchVisitor.locateMatches(SeamSearchVisitor.java:560)
       at org.jboss.tools.seam.ui.search.SeamSearchVisitor.processSeamReferencesInFile(SeamSearchVisitor.java:515)
       at org.jboss.tools.seam.ui.search.SeamSearchVisitor.processSeamReferencesInProject(SeamSearchVisitor.java:484)
       at org.jboss.tools.seam.ui.search.SeamSearchVisitor.processSeamProjects(SeamSearchVisitor.java:453)
       at org.jboss.tools.seam.ui.search.SeamSearchVisitor.searchForReferences(SeamSearchVisitor.java:1017)
       at org.jboss.tools.seam.ui.search.SeamSearchVisitor.search(SeamSearchVisitor.java:395)
       at org.jboss.tools.seam.ui.search.SeamSearchEngine$1.search(SeamSearchEngine.java:178)
       at org.jboss.tools.seam.ui.search.SeamSearchQuery.queryByJavaElements(SeamSearchQuery.java:291)
       at org.jboss.tools.seam.ui.search.SeamSearchQuery.run(SeamSearchQuery.java:255)
       at org.jboss.tools.seam.ui.search.SeamQueryParticipant.search(SeamQueryParticipant.java:81)
       at org.eclipse.jdt.internal.ui.search.JavaSearchQuery$2.run(JavaSearchQuery.java:164)
       at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
       at org.eclipse.jdt.internal.ui.search.JavaSearchQuery.run(JavaSearchQuery.java:170)
       at org.eclipse.search2.internal.ui.InternalSearchUI$InternalSearchJob.run(InternalSearchUI.java:94)
       at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      
      !ENTRY org.eclipse.jdt.ui 4 10001 2009-03-11 09:19:39.984
      !MESSAGE VariableBlock: Classpath variable with null value: JUNIT_SRC_HOME
      
      !ENTRY org.eclipse.ui.console 4 2 2009-03-11 09:26:53.171
      !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.console".
      !STACK 0
      org.eclipse.swt.SWTException: Device is disposed
       at org.eclipse.swt.SWT.error(SWT.java:3777)
       at org.eclipse.swt.SWT.error(SWT.java:3695)
       at org.eclipse.swt.SWT.error(SWT.java:3666)
       at org.eclipse.swt.widgets.Display.error(Display.java:1180)
       at org.eclipse.swt.widgets.Display.asyncExec(Display.java:648)
       at org.eclipse.ui.internal.console.ConsoleDropDownAction.consolesRemoved(ConsoleDropDownAction.java:150)
       at org.eclipse.ui.internal.console.ConsoleManager$ConsoleNotifier.run(ConsoleManager.java:154)
       at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
       at org.eclipse.ui.internal.console.ConsoleManager$ConsoleNotifier.notify(ConsoleManager.java:174)
       at org.eclipse.ui.internal.console.ConsoleManager.fireUpdate(ConsoleManager.java:262)
       at org.eclipse.ui.internal.console.ConsoleManager.removeConsoles(ConsoleManager.java:244)
       at org.eclipse.debug.internal.ui.views.console.ProcessConsoleManager.removeProcess(ProcessConsoleManager.java:98)
       at org.eclipse.debug.internal.ui.views.console.ProcessConsoleManager.removeLaunch(ProcessConsoleManager.java:81)
       at org.eclipse.debug.internal.ui.views.console.ProcessConsoleManager.shutdown(ProcessConsoleManager.java:198)
       at org.eclipse.debug.internal.ui.DebugUIPlugin.stop(DebugUIPlugin.java:388)
       at org.eclipse.osgi.framework.internal.core.BundleContextImpl$3.run(BundleContextImpl.java:1050)
       at java.security.AccessController.doPrivileged(Native Method)
       at org.eclipse.osgi.framework.internal.core.BundleContextImpl.stop(BundleContextImpl.java:1046)
       at org.eclipse.osgi.framework.internal.core.BundleHost.stopWorker(BundleHost.java:457)
       at org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBundle.java:531)
       at org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework.java:1104)
       at org.eclipse.osgi.framework.internal.core.StartLevelManager.decFWSL(StartLevelManager.java:655)
       at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:312)
       at org.eclipse.osgi.framework.internal.core.StartLevelManager.shutdown(StartLevelManager.java:257)
       at org.eclipse.osgi.framework.internal.core.SystemBundle.suspend(SystemBundle.java:236)
       at org.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java:678)
       at org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:576)
       at org.eclipse.osgi.framework.internal.core.OSGi.close(OSGi.java:41)
       at org.eclipse.core.runtime.adaptor.EclipseStarter.shutdown(EclipseStarter.java:424)
       at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:200)
       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)
       at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
       at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
       at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
      
      !ENTRY org.eclipse.ui.console 4 120 2009-03-11 09:26:53.171
      !MESSAGE An exception occurred during console notification
      !STACK 0
      org.eclipse.swt.SWTException: Device is disposed
       at org.eclipse.swt.SWT.error(SWT.java:3777)
       at org.eclipse.swt.SWT.error(SWT.java:3695)
       at org.eclipse.swt.SWT.error(SWT.java:3666)
       at org.eclipse.swt.widgets.Display.error(Display.java:1180)
       at org.eclipse.swt.widgets.Display.asyncExec(Display.java:648)
       at org.eclipse.ui.internal.console.ConsoleDropDownAction.consolesRemoved(ConsoleDropDownAction.java:150)
       at org.eclipse.ui.internal.console.ConsoleManager$ConsoleNotifier.run(ConsoleManager.java:154)
       at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
       at org.eclipse.ui.internal.console.ConsoleManager$ConsoleNotifier.notify(ConsoleManager.java:174)
       at org.eclipse.ui.internal.console.ConsoleManager.fireUpdate(ConsoleManager.java:262)
       at org.eclipse.ui.internal.console.ConsoleManager.removeConsoles(ConsoleManager.java:244)
       at org.eclipse.debug.internal.ui.views.console.ProcessConsoleManager.removeProcess(ProcessConsoleManager.java:98)
       at org.eclipse.debug.internal.ui.views.console.ProcessConsoleManager.removeLaunch(ProcessConsoleManager.java:81)
       at org.eclipse.debug.internal.ui.views.console.ProcessConsoleManager.shutdown(ProcessConsoleManager.java:198)
       at org.eclipse.debug.internal.ui.DebugUIPlugin.stop(DebugUIPlugin.java:388)
       at org.eclipse.osgi.framework.internal.core.BundleContextImpl$3.run(BundleContextImpl.java:1050)
       at java.security.AccessController.doPrivileged(Native Method)
       at org.eclipse.osgi.framework.internal.core.BundleContextImpl.stop(BundleContextImpl.java:1046)
       at org.eclipse.osgi.framework.internal.core.BundleHost.stopWorker(BundleHost.java:457)
       at org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBundle.java:531)
       at org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework.java:1104)
       at org.eclipse.osgi.framework.internal.core.StartLevelManager.decFWSL(StartLevelManager.java:655)
       at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:312)
       at org.eclipse.osgi.framework.internal.core.StartLevelManager.shutdown(StartLevelManager.java:257)
       at org.eclipse.osgi.framework.internal.core.SystemBundle.suspend(SystemBundle.java:236)
       at org.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java:678)
       at org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:576)
       at org.eclipse.osgi.framework.internal.core.OSGi.close(OSGi.java:41)
       at org.eclipse.core.runtime.adaptor.EclipseStarter.shutdown(EclipseStarter.java:424)
       at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:200)
       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)
       at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
       at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
       at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
      !SESSION 2009-03-11 09:26:55.546 -----------------------------------------------
      eclipse.buildId=M20090211-1700
      java.version=1.6.0_07
      java.vendor=Sun Microsystems Inc.
      BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
      Command-line arguments: -os win32 -ws win32 -arch x86
      
      !ENTRY org.eclipse.ui.workbench.texteditor 4 0 2009-03-11 09:26:58.921
      !MESSAGE The 'org.eclipse.wst.jsdt.web.ui.internal.hyperlink.script.JSPJavaHyperlinkDetector' extension from plug-in 'org.eclipse.wst.jsdt.web.ui' to the 'org.eclipse.ui.workbench.texteditor.hyperlinkDetectors' extension point will be ignored because it contains invalid attributes.
      
      !ENTRY org.eclipse.ui.workbench.texteditor 4 0 2009-03-11 09:26:58.921
      !MESSAGE The 'org.eclipse.wst.jsdt.web.ui.internal.hyperlink.script.event.JSPJavaHyperlinkDetector' extension from plug-in 'org.eclipse.wst.jsdt.web.ui' to the 'org.eclipse.ui.workbench.texteditor.hyperlinkDetectors' extension point will be ignored because it contains invalid attributes.
      
      !ENTRY org.eclipse.ui.views.properties.tabbed 4 4 2009-03-11 09:45:40.250
      !MESSAGE Contributor org.jboss.ide.eclipse.as.ui.views.JBossServerView cannot be created.
      



      Does anyone know what is cause eclipse to crash? and how to fix it?

      Regards
      Darrell

        • 1. Re: eclipse 3.4.2 crashes when opening an .xhtml file
          Max Rydahl Andersen Master

          Could you open a jira with that error log and the file (and its dependencies) attached so we can try and reproduce it ?

          • 2. Re: eclipse 3.4.2 crashes when opening an .xhtml file
            Nick Boldt Expert

            The relevant error above is probably this one:

            java.lang.NullPointerException
             at org.jboss.tools.seam.internal.core.scanner.java.ASTVisitorImpl.visit(ASTVisitorImpl.java:90)
             at org.eclipse.jdt.core.dom.SingleMemberAnnotation.accept0(SingleMemberAnnotation.java:161)
             at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
             at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2548)
             at org.eclipse.jdt.core.dom.AnnotationTypeDeclaration.accept0(AnnotationTypeDeclaration.java:239)
             at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
             at org.eclipse.jdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2548)
             at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:214)
             at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2478)
             at org.jboss.tools.seam.ui.text.java.scanner.JavaAnnotationScanner$ASTRequestorImpl.acceptAST(JavaA
            nnotationScanner.java:187)


            which I'm guessing is one of the Seam editors. Is that correct?

            How large is your XHTML file? If you can attach the whole XHTML file, it would help in trying to reproduce this problem.

            If the editor you're using is one provided in Eclipse (ie., same behaviour when using the Eclipse 3.4.2 Ganymede JEE bundle without any JBoss Tools installed in it), then this is a bug for the Web Tools project.

            https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Web%20Tools&component=Web%20Standard%20Tools

            • 3. Re: eclipse 3.4.2 crashes when opening an .xhtml file
              Darrell Wu Newbie

              I've created a jira issue. It's JBIDE-3993.

              Also it appears to crash when i view the file in the visual/source tab view