Uploaded image for project: 'Aptana Studio'
  1. Aptana Studio
  2. APSTUD-3414

Occasional NPE when starting Titanium Studio

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Aptana Studio 3.0.5
    • Fix Version/s: Aptana Studio 3.0.7
    • Component/s: None
    • Labels:
      None

      Description

      When I run in development mode, I occasionally get this during startup:

      !ENTRY com.aptana.editor.js 4 0 2011-09-01 15:06:17.643
      !MESSAGE (Build 3.0.3.qualifier) [ERROR] null
      !STACK 0
      java.lang.NullPointerException
      at org.eclipse.jface.resource.JFaceResources.getResources(JFaceResources.java:207)
      at org.eclipse.jface.resource.JFaceResources.getImageRegistry(JFaceResources.java:404)
      at org.eclipse.jface.resource.JFaceResources.getImage(JFaceResources.java:389)
      at com.aptana.ui.util.SWTUtils.getImage(SWTUtils.java:137)
      at com.aptana.editor.common.contentassist.UserAgentManager$1.processElement(UserAgentManager.java:228)
      at com.aptana.core.util.EclipseUtil.processConfigurationElements(EclipseUtil.java:500)
      at com.aptana.editor.common.contentassist.UserAgentManager.loadExtension(UserAgentManager.java:208)
      at com.aptana.editor.common.contentassist.UserAgentManager.<init>(UserAgentManager.java:87)
      at com.aptana.editor.common.contentassist.UserAgentManager.getInstance(UserAgentManager.java:76)
      at com.aptana.editor.js.inferencing.JSTypeUtil.addAllUserAgents(JSTypeUtil.java:82)
      at com.aptana.editor.js.inferencing.JSSymbolTypeInferrer.writeType(JSSymbolTypeInferrer.java:541)
      at com.aptana.editor.js.inferencing.JSSymbolTypeInferrer.processProperties(JSSymbolTypeInferrer.java:456)
      at com.aptana.editor.js.inferencing.JSSymbolTypeInferrer.getSymbolPropertyElement(JSSymbolTypeInferrer.java:337)
      at com.aptana.editor.js.inferencing.JSSymbolTypeInferrer.getSymbolPropertyElement(JSSymbolTypeInferrer.java:370)
      at com.aptana.editor.js.inferencing.JSNodeTypeInferrer.visit(JSNodeTypeInferrer.java:623)
      at com.aptana.editor.js.parsing.ast.JSIdentifierNode.accept(JSIdentifierNode.java:33)
      at com.aptana.editor.js.parsing.ast.JSTreeWalker.visit(JSTreeWalker.java:176)
      at com.aptana.editor.js.inferencing.JSNodeTypeInferrer.getTypes(JSNodeTypeInferrer.java:258)
      at com.aptana.editor.js.inferencing.JSNodeTypeInferrer.getTypes(JSNodeTypeInferrer.java:239)
      at com.aptana.editor.js.inferencing.JSNodeTypeInferrer.visit(JSNodeTypeInferrer.java:545)
      at com.aptana.editor.js.parsing.ast.JSGetPropertyNode.accept(JSGetPropertyNode.java:34)
      at com.aptana.editor.js.parsing.ast.JSTreeWalker.visit(JSTreeWalker.java:176)
      at com.aptana.editor.js.inferencing.JSNodeTypeInferrer.getTypes(JSNodeTypeInferrer.java:258)
      at com.aptana.editor.js.inferencing.JSNodeTypeInferrer.getTypes(JSNodeTypeInferrer.java:239)
      at com.aptana.editor.js.inferencing.JSNodeTypeInferrer.visit(JSNodeTypeInferrer.java:661)
      at com.aptana.editor.js.parsing.ast.JSInvokeNode.accept(JSInvokeNode.java:31)
      at com.aptana.editor.js.parsing.ast.JSTreeWalker.visit(JSTreeWalker.java:176)
      at com.aptana.editor.js.inferencing.JSSymbolTypeInferrer.processValues(JSSymbolTypeInferrer.java:520)
      at com.aptana.editor.js.inferencing.JSSymbolTypeInferrer.getSymbolPropertyElement(JSSymbolTypeInferrer.java:334)
      at com.aptana.editor.js.inferencing.JSSymbolTypeInferrer.processProperties(JSSymbolTypeInferrer.java:450)
      at com.aptana.editor.js.inferencing.JSSymbolTypeInferrer.getSymbolPropertyElement(JSSymbolTypeInferrer.java:337)
      at com.aptana.editor.js.inferencing.JSSymbolTypeInferrer.getSymbolPropertyElement(JSSymbolTypeInferrer.java:370)
      at com.aptana.editor.js.inferencing.JSSymbolTypeInferrer.getScopeProperties(JSSymbolTypeInferrer.java:281)
      at com.aptana.editor.js.contentassist.index.JSFileIndexingParticipant.processParseResults(JSFileIndexingParticipant.java:213)
      at com.aptana.editor.js.contentassist.index.JSFileIndexingParticipant.indexFileStore(JSFileIndexingParticipant.java:116)
      at com.aptana.index.core.AbstractFileIndexingParticipant.index(AbstractFileIndexingParticipant.java:159)
      at com.aptana.index.core.IndexRequestJob.indexFileStores(IndexRequestJob.java:423)
      at com.aptana.index.core.IndexContainerJob.run(IndexContainerJob.java:100)
      at com.aptana.core.build.UnifiedBuilder.fullBuild(UnifiedBuilder.java:215)
      at com.aptana.core.build.UnifiedBuilder.build(UnifiedBuilder.java:122)
      at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
      at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
      at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
      at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
      at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
      at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      (Build 3.0.3.qualifier) [ERROR] null
      java.lang.NullPointerException
      at org.eclipse.jface.resource.JFaceResources.getResources(JFaceResources.java:207)
      at org.eclipse.jface.resource.JFaceResources.getImageRegistry(JFaceResources.java:404)
      at org.eclipse.jface.resource.JFaceResources.getImage(JFaceResources.java:389)
      at com.aptana.ui.util.SWTUtils.getImage(SWTUtils.java:137)
      at com.aptana.editor.common.contentassist.UserAgentManager$1.processElement(UserAgentManager.java:228)
      at com.aptana.core.util.EclipseUtil.processConfigurationElements(EclipseUtil.java:500)
      at com.aptana.editor.common.contentassist.UserAgentManager.loadExtension(UserAgentManager.java:208)
      at com.aptana.editor.common.contentassist.UserAgentManager.<init>(UserAgentManager.java:87)
      at com.aptana.editor.common.contentassist.UserAgentManager.getInstance(UserAgentManager.java:76)
      at com.aptana.editor.js.inferencing.JSTypeUtil.addAllUserAgents(JSTypeUtil.java:82)
      at com.aptana.editor.js.inferencing.JSSymbolTypeInferrer.writeType(JSSymbolTypeInferrer.java:541)
      at com.aptana.editor.js.inferencing.JSSymbolTypeInferrer.processProperties(JSSymbolTypeInferrer.java:456)
      at com.aptana.editor.js.inferencing.JSSymbolTypeInferrer.getSymbolPropertyElement(JSSymbolTypeInferrer.java:337)
      at com.aptana.editor.js.inferencing.JSSymbolTypeInferrer.getSymbolPropertyElement(JSSymbolTypeInferrer.java:370)
      at com.aptana.editor.js.inferencing.JSNodeTypeInferrer.visit(JSNodeTypeInferrer.java:623)
      at com.aptana.editor.js.parsing.ast.JSIdentifierNode.accept(JSIdentifierNode.java:33)
      at com.aptana.editor.js.parsing.ast.JSTreeWalker.visit(JSTreeWalker.java:176)
      at com.aptana.editor.js.inferencing.JSNodeTypeInferrer.getTypes(JSNodeTypeInferrer.java:258)
      at com.aptana.editor.js.inferencing.JSNodeTypeInferrer.getTypes(JSNodeTypeInferrer.java:239)
      at com.aptana.editor.js.inferencing.JSNodeTypeInferrer.visit(JSNodeTypeInferrer.java:545)
      at com.aptana.editor.js.parsing.ast.JSGetPropertyNode.accept(JSGetPropertyNode.java:34)
      at com.aptana.editor.js.parsing.ast.JSTreeWalker.visit(JSTreeWalker.java:176)
      at com.aptana.editor.js.inferencing.JSNodeTypeInferrer.getTypes(JSNodeTypeInferrer.java:258)
      at com.aptana.editor.js.inferencing.JSNodeTypeInferrer.getTypes(JSNodeTypeInferrer.java:239)
      at com.aptana.editor.js.inferencing.JSNodeTypeInferrer.visit(JSNodeTypeInferrer.java:661)
      at com.aptana.editor.js.parsing.ast.JSInvokeNode.accept(JSInvokeNode.java:31)
      at com.aptana.editor.js.parsing.ast.JSTreeWalker.visit(JSTreeWalker.java:176)
      at com.aptana.editor.js.inferencing.JSSymbolTypeInferrer.processValues(JSSymbolTypeInferrer.java:520)
      at com.aptana.editor.js.inferencing.JSSymbolTypeInferrer.getSymbolPropertyElement(JSSymbolTypeInferrer.java:334)
      at com.aptana.editor.js.inferencing.JSSymbolTypeInferrer.processProperties(JSSymbolTypeInferrer.java:450)
      at com.aptana.editor.js.inferencing.JSSymbolTypeInferrer.getSymbolPropertyElement(JSSymbolTypeInferrer.java:337)
      at com.aptana.editor.js.inferencing.JSSymbolTypeInferrer.getSymbolPropertyElement(JSSymbolTypeInferrer.java:370)
      at com.aptana.editor.js.inferencing.JSSymbolTypeInferrer.getScopeProperties(JSSymbolTypeInferrer.java:281)
      at com.aptana.editor.js.contentassist.index.JSFileIndexingParticipant.processParseResults(JSFileIndexingParticipant.java:213)
      at com.aptana.editor.js.contentassist.index.JSFileIndexingParticipant.indexFileStore(JSFileIndexingParticipant.java:116)
      at com.aptana.index.core.AbstractFileIndexingParticipant.index(AbstractFileIndexingParticipant.java:159)
      at com.aptana.index.core.IndexRequestJob.indexFileStores(IndexRequestJob.java:423)
      at com.aptana.index.core.IndexContainerJob.run(IndexContainerJob.java:100)
      at com.aptana.core.build.UnifiedBuilder.fullBuild(UnifiedBuilder.java:215)
      at com.aptana.core.build.UnifiedBuilder.build(UnifiedBuilder.java:122)
      at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
      at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
      at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
      at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
      at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
      at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

        Issue Links

          Activity

          Hide
          mxia Michael Xia added a comment -

          Tracing the exception, and it indicates Display.getCurrent() is null in JFaceResources. Probably need to call SWTUtils.getImage() in the UI thread.

          Show
          mxia Michael Xia added a comment - Tracing the exception, and it indicates Display.getCurrent() is null in JFaceResources. Probably need to call SWTUtils.getImage() in the UI thread.
          Hide
          mxia Michael Xia added a comment -

          Changed to store just the file paths when loading the user agents instead of creating the images right away. This avoids the case of display being null when the extensions are loaded.

          Show
          mxia Michael Xia added a comment - Changed to store just the file paths when loading the user agents instead of creating the images right away. This avoids the case of display being null when the extensions are loaded.
          Hide
          jwitt Joel Witt added a comment -

          Aptana Studio 3, build: 3.0.7.201111101709
          Ubuntu 11.10

          No replication sequence for this item : closing.

          Show
          jwitt Joel Witt added a comment - Aptana Studio 3, build: 3.0.7.201111101709 Ubuntu 11.10 No replication sequence for this item : closing.

            People

            • Assignee:
              mxia Michael Xia
              Reporter:
              ayeung Allen Yeung
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development

                  Poker Sessions

                  This issue is currently not assigned to any Poker Session.