java.lang.NullPointerException

Appcelerator JIRA | Andrew Natoli | 1 year ago
  1. 0

    Studio hangs whenever generating an autocomplete list when editing an Alloy XML file (not when editing js...) Here's a relevant excerpt from my studio log.... {code} !ENTRY com.aptana.index.core 4 0 2015-06-26 12:42:16.623 !MESSAGE (Build 4.0.1.201506021908) [ERROR] An error occurred while processing the following JSON string {"name":"focus","description":"<p>Fired when the view element gains focus.</p>","since":[],"deprecated":false,"userAgents":null,"owningType":"Titanium.UI.ImageView","properties":[]} !STACK 0 java.lang.NullPointerException at com.aptana.js.core.model.EventElement.fromJSON(EventElement.java:73) at com.aptana.index.core.IndexReader.populateElement(IndexReader.java:207) at com.aptana.index.core.IndexReader.populateElement(IndexReader.java:181) at com.aptana.js.internal.core.index.JSIndexReader.createEvent(JSIndexReader.java:78) at com.aptana.js.internal.core.index.JSIndexReader$1.map(JSIndexReader.java:219) at com.aptana.js.internal.core.index.JSIndexReader$1.map(JSIndexReader.java:1) at com.aptana.core.util.CollectionsUtil.map(CollectionsUtil.java:432) at com.aptana.core.util.CollectionsUtil.map(CollectionsUtil.java:466) at com.aptana.js.internal.core.index.JSIndexReader.getEvents(JSIndexReader.java:215) at com.aptana.js.core.index.JSIndexQueryHelper.getEvents(JSIndexQueryHelper.java:388) at com.appcelerator.titanium.alloy.core.index.AlloyQueryHelper.getElement(AlloyQueryHelper.java:313) at com.appcelerator.titanium.alloy.core.index.AlloyQueryHelper$2.map(AlloyQueryHelper.java:186) at com.appcelerator.titanium.alloy.core.index.AlloyQueryHelper$2.map(AlloyQueryHelper.java:1) at com.aptana.core.util.CollectionsUtil.map(CollectionsUtil.java:432) at com.aptana.core.util.CollectionsUtil.map(CollectionsUtil.java:466) at com.appcelerator.titanium.alloy.core.index.AlloyQueryHelper.getElements(AlloyQueryHelper.java:175) at com.appcelerator.titanium.alloy.internal.ui.contentassist.AlloyViewContentAssistProcessor.getElements(AlloyViewContentAssistProcessor.java:130) at com.aptana.editor.xml.contentassist.XMLContentAssistProcessor.addElementProposals(XMLContentAssistProcessor.java:309) at com.aptana.editor.xml.contentassist.XMLContentAssistProcessor.doComputeCompletionProposals(XMLContentAssistProcessor.java:625) at com.aptana.editor.common.CommonContentAssistProcessor.computeCompletionProposals(CommonContentAssistProcessor.java:417) at com.aptana.editor.common.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:2221) at com.aptana.editor.common.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:394) at com.aptana.editor.common.contentassist.CompletionProposalPopup.access$7(CompletionProposalPopup.java:388) at com.aptana.editor.common.contentassist.CompletionProposalPopup$1.run(CompletionProposalPopup.java:331) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at com.aptana.editor.common.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:325) at com.aptana.editor.common.contentassist.ContentAssistant$AutoAssistListener$1.run(ContentAssistant.java:468) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3983) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) at com.appcelerator.titanium.rcp.IDEApplication.start(IDEApplication.java:126) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:236) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603) at org.eclipse.equinox.launcher.Main.run(Main.java:1465) {code}

    Appcelerator JIRA | 1 year ago | Andrew Natoli
    java.lang.NullPointerException
  2. 0

    Studio hangs whenever generating an autocomplete list when editing an Alloy XML file (not when editing js...) Here's a relevant excerpt from my studio log.... {code} !ENTRY com.aptana.index.core 4 0 2015-06-26 12:42:16.623 !MESSAGE (Build 4.0.1.201506021908) [ERROR] An error occurred while processing the following JSON string {"name":"focus","description":"<p>Fired when the view element gains focus.</p>","since":[],"deprecated":false,"userAgents":null,"owningType":"Titanium.UI.ImageView","properties":[]} !STACK 0 java.lang.NullPointerException at com.aptana.js.core.model.EventElement.fromJSON(EventElement.java:73) at com.aptana.index.core.IndexReader.populateElement(IndexReader.java:207) at com.aptana.index.core.IndexReader.populateElement(IndexReader.java:181) at com.aptana.js.internal.core.index.JSIndexReader.createEvent(JSIndexReader.java:78) at com.aptana.js.internal.core.index.JSIndexReader$1.map(JSIndexReader.java:219) at com.aptana.js.internal.core.index.JSIndexReader$1.map(JSIndexReader.java:1) at com.aptana.core.util.CollectionsUtil.map(CollectionsUtil.java:432) at com.aptana.core.util.CollectionsUtil.map(CollectionsUtil.java:466) at com.aptana.js.internal.core.index.JSIndexReader.getEvents(JSIndexReader.java:215) at com.aptana.js.core.index.JSIndexQueryHelper.getEvents(JSIndexQueryHelper.java:388) at com.appcelerator.titanium.alloy.core.index.AlloyQueryHelper.getElement(AlloyQueryHelper.java:313) at com.appcelerator.titanium.alloy.core.index.AlloyQueryHelper$2.map(AlloyQueryHelper.java:186) at com.appcelerator.titanium.alloy.core.index.AlloyQueryHelper$2.map(AlloyQueryHelper.java:1) at com.aptana.core.util.CollectionsUtil.map(CollectionsUtil.java:432) at com.aptana.core.util.CollectionsUtil.map(CollectionsUtil.java:466) at com.appcelerator.titanium.alloy.core.index.AlloyQueryHelper.getElements(AlloyQueryHelper.java:175) at com.appcelerator.titanium.alloy.internal.ui.contentassist.AlloyViewContentAssistProcessor.getElements(AlloyViewContentAssistProcessor.java:130) at com.aptana.editor.xml.contentassist.XMLContentAssistProcessor.addElementProposals(XMLContentAssistProcessor.java:309) at com.aptana.editor.xml.contentassist.XMLContentAssistProcessor.doComputeCompletionProposals(XMLContentAssistProcessor.java:625) at com.aptana.editor.common.CommonContentAssistProcessor.computeCompletionProposals(CommonContentAssistProcessor.java:417) at com.aptana.editor.common.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:2221) at com.aptana.editor.common.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:394) at com.aptana.editor.common.contentassist.CompletionProposalPopup.access$7(CompletionProposalPopup.java:388) at com.aptana.editor.common.contentassist.CompletionProposalPopup$1.run(CompletionProposalPopup.java:331) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at com.aptana.editor.common.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:325) at com.aptana.editor.common.contentassist.ContentAssistant$AutoAssistListener$1.run(ContentAssistant.java:468) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3983) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) at com.appcelerator.titanium.rcp.IDEApplication.start(IDEApplication.java:126) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:236) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603) at org.eclipse.equinox.launcher.Main.run(Main.java:1465) {code}

    Appcelerator JIRA | 1 year ago | Andrew Natoli
    java.lang.NullPointerException
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.aptana.js.core.model.EventElement.fromJSON()
    2. com.aptana.js
      EventElement.fromJSON
      1. com.aptana.js.core.model.EventElement.fromJSON(EventElement.java:73)
      1 frame
    3. com.aptana.index
      IndexReader.populateElement
      1. com.aptana.index.core.IndexReader.populateElement(IndexReader.java:207)
      2. com.aptana.index.core.IndexReader.populateElement(IndexReader.java:181)
      2 frames
    4. com.aptana.js
      JSIndexReader$1.map
      1. com.aptana.js.internal.core.index.JSIndexReader.createEvent(JSIndexReader.java:78)
      2. com.aptana.js.internal.core.index.JSIndexReader$1.map(JSIndexReader.java:219)
      3. com.aptana.js.internal.core.index.JSIndexReader$1.map(JSIndexReader.java:1)
      3 frames
    5. com.aptana.core
      CollectionsUtil.map
      1. com.aptana.core.util.CollectionsUtil.map(CollectionsUtil.java:432)
      2. com.aptana.core.util.CollectionsUtil.map(CollectionsUtil.java:466)
      2 frames
    6. com.aptana.js
      JSIndexQueryHelper.getEvents
      1. com.aptana.js.internal.core.index.JSIndexReader.getEvents(JSIndexReader.java:215)
      2. com.aptana.js.core.index.JSIndexQueryHelper.getEvents(JSIndexQueryHelper.java:388)
      2 frames
    7. com.appcelerator.titanium
      AlloyQueryHelper$2.map
      1. com.appcelerator.titanium.alloy.core.index.AlloyQueryHelper.getElement(AlloyQueryHelper.java:313)
      2. com.appcelerator.titanium.alloy.core.index.AlloyQueryHelper$2.map(AlloyQueryHelper.java:186)
      3. com.appcelerator.titanium.alloy.core.index.AlloyQueryHelper$2.map(AlloyQueryHelper.java:1)
      3 frames
    8. com.aptana.core
      CollectionsUtil.map
      1. com.aptana.core.util.CollectionsUtil.map(CollectionsUtil.java:432)
      2. com.aptana.core.util.CollectionsUtil.map(CollectionsUtil.java:466)
      2 frames
    9. com.appcelerator.titanium
      AlloyViewContentAssistProcessor.getElements
      1. com.appcelerator.titanium.alloy.core.index.AlloyQueryHelper.getElements(AlloyQueryHelper.java:175)
      2. com.appcelerator.titanium.alloy.internal.ui.contentassist.AlloyViewContentAssistProcessor.getElements(AlloyViewContentAssistProcessor.java:130)
      2 frames
    10. com.aptana.editor
      CompletionProposalPopup$1.run
      1. com.aptana.editor.xml.contentassist.XMLContentAssistProcessor.addElementProposals(XMLContentAssistProcessor.java:309)
      2. com.aptana.editor.xml.contentassist.XMLContentAssistProcessor.doComputeCompletionProposals(XMLContentAssistProcessor.java:625)
      3. com.aptana.editor.common.CommonContentAssistProcessor.computeCompletionProposals(CommonContentAssistProcessor.java:417)
      4. com.aptana.editor.common.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:2221)
      5. com.aptana.editor.common.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:394)
      6. com.aptana.editor.common.contentassist.CompletionProposalPopup.access$7(CompletionProposalPopup.java:388)
      7. com.aptana.editor.common.contentassist.CompletionProposalPopup$1.run(CompletionProposalPopup.java:331)
      7 frames
    11. RWT
      BusyIndicator.showWhile
      1. org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
      1 frame
    12. com.aptana.editor
      ContentAssistant$AutoAssistListener$1.run
      1. com.aptana.editor.common.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:325)
      2. com.aptana.editor.common.contentassist.ContentAssistant$AutoAssistListener$1.run(ContentAssistant.java:468)
      2 frames
    13. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
      2. org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)
      3. org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3983)
      4. org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660)
      4 frames
    14. Eclipse Workbench SWT
      PartRenderingEngine$9.run
      1. org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
      1 frame
    15. Databinding
      Realm.runWithDefault
      1. org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      1 frame
    16. Eclipse Workbench SWT
      PartRenderingEngine.run
      1. org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
      1 frame
    17. Eclipse Workbench
      E4Workbench.createAndRunUI
      1. org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
      1 frame
    18. Eclipse UI
      Workbench$5.run
      1. org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
      1 frame
    19. Databinding
      Realm.runWithDefault
      1. org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      1 frame
    20. Eclipse UI
      Workbench.createAndRunWorkbench
      1. org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
      1 frame
    21. Eclipse UI
      PlatformUI.createAndRunWorkbench
      1. org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
      1 frame
    22. com.appcelerator.titanium
      IDEApplication.start
      1. com.appcelerator.titanium.rcp.IDEApplication.start(IDEApplication.java:126)
      1 frame
    23. Equinox Container
      EclipseAppHandle.run
      1. org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      1 frame
    24. Eclipse OSGi
      EclipseStarter.run
      1. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
      2. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
      3. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)
      4. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:236)
      4 frames
    25. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    26. Equinox
      Main.run
      1. org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
      2. org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
      3. org.eclipse.equinox.launcher.Main.run(Main.java:1465)
      3 frames