java.lang.NullPointerException

Appcelerator JIRA | James Henestofel | 5 years ago
  1. 0

    We have a php file that is used to render a webpage. We have noscript tags with php, and style code in them to accommodate non JS users. This file has been created for over a year. Tried to open it up today and got the error. Could not open the editor: Editor could not be initialized. Tried to rename the file and didn't fix. I ended up having to 1. download the old file to local machine and open it in notepad(I still couldn't open the file in aptana unless I took out the noscript section) 2. create a new file on the server 3. copy and paste the contents of the old file into the new file 4. delete the old file, and rename the the new file to the old file. Also on the copy and paste of the contents of the old file into the new file I got the error below. Everything copied over but I got the error and the coloring was messed up until I edited a line. If you need the log let me know how to get it because I don't know where its at. "Paste" did not complete normally. Please see the log for more information. java.lang.NullPointerException Now this is only working for me on my machine. The other two people that I work with still cannot open the file and get the error could not open the editor. The highlighting of the text in the file is also messed up. I've attached the file that we are using The full contents of the error are below. java.lang.NullPointerException at com.aptana.editor.common.text.rules.ResumableSingleLineRule.endSequenceDetected(ResumableSingleLineRule.java:72) at org.eclipse.jface.text.rules.PatternRule.doEvaluate(PatternRule.java:187) at com.aptana.editor.common.text.rules.ResumableSingleLineRule.doEvaluate(ResumableSingleLineRule.java:55) at org.eclipse.jface.text.rules.PatternRule.evaluate(PatternRule.java:308) at com.aptana.editor.common.text.rules.CompositePartitionScanner.doResumeContentType(CompositePartitionScanner.java:222) at com.aptana.editor.common.text.rules.CompositePartitionScanner.nextToken(CompositePartitionScanner.java:194) at org.eclipse.jface.text.rules.FastPartitioner.initialize(FastPartitioner.java:176) at org.eclipse.jface.text.rules.FastPartitioner.checkInitialization(FastPartitioner.java:151) at org.eclipse.jface.text.rules.FastPartitioner.connect(FastPartitioner.java:143) at org.eclipse.jface.text.rules.FastPartitioner.connect(FastPartitioner.java:125) at com.aptana.editor.common.CompositeDocumentProvider.connect(CompositeDocumentProvider.java:53) at com.aptana.editor.php.internal.ui.editor.PHPDocumentProvider.connect(PHPDocumentProvider.java:38) at org.eclipse.ui.texteditor.AbstractTextEditor.doSetInput(AbstractTextEditor.java:4056) at org.eclipse.ui.texteditor.StatusTextEditor.doSetInput(StatusTextEditor.java:217) at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.doSetInput(AbstractDecoratedTextEditor.java:1444) at com.aptana.editor.common.AbstractThemeableEditor.doSetInput(AbstractThemeableEditor.java:496) at com.aptana.editor.php.internal.ui.editor.PHPSourceEditor.doSetInput(PHPSourceEditor.java:201) at org.eclipse.ui.texteditor.AbstractTextEditor$19.run(AbstractTextEditor.java:3043) at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372) at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:759) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:756) at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2606) at org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:3061) at org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:3088) at com.aptana.editor.common.AbstractThemeableEditor.init(AbstractThemeableEditor.java:517) at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:798) at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:647) at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465) at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595) at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2863) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2768) at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2760) at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2711) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2707) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2691) at com.aptana.ide.ui.io.navigator.actions.EditorUtils$1$1.runInUIThread(EditorUtils.java:90) at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4041) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at com.aptana.rcp.IDEApplication.start(IDEApplication.java:125) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) 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:620) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575) at org.eclipse.equinox.launcher.Main.run(Main.java:1408)

    Appcelerator JIRA | 5 years ago | James Henestofel
    java.lang.NullPointerException
  2. 0

    We have a php file that is used to render a webpage. We have noscript tags with php, and style code in them to accommodate non JS users. This file has been created for over a year. Tried to open it up today and got the error. Could not open the editor: Editor could not be initialized. Tried to rename the file and didn't fix. I ended up having to 1. download the old file to local machine and open it in notepad(I still couldn't open the file in aptana unless I took out the noscript section) 2. create a new file on the server 3. copy and paste the contents of the old file into the new file 4. delete the old file, and rename the the new file to the old file. Also on the copy and paste of the contents of the old file into the new file I got the error below. Everything copied over but I got the error and the coloring was messed up until I edited a line. If you need the log let me know how to get it because I don't know where its at. "Paste" did not complete normally. Please see the log for more information. java.lang.NullPointerException Now this is only working for me on my machine. The other two people that I work with still cannot open the file and get the error could not open the editor. The highlighting of the text in the file is also messed up. I've attached the file that we are using The full contents of the error are below. java.lang.NullPointerException at com.aptana.editor.common.text.rules.ResumableSingleLineRule.endSequenceDetected(ResumableSingleLineRule.java:72) at org.eclipse.jface.text.rules.PatternRule.doEvaluate(PatternRule.java:187) at com.aptana.editor.common.text.rules.ResumableSingleLineRule.doEvaluate(ResumableSingleLineRule.java:55) at org.eclipse.jface.text.rules.PatternRule.evaluate(PatternRule.java:308) at com.aptana.editor.common.text.rules.CompositePartitionScanner.doResumeContentType(CompositePartitionScanner.java:222) at com.aptana.editor.common.text.rules.CompositePartitionScanner.nextToken(CompositePartitionScanner.java:194) at org.eclipse.jface.text.rules.FastPartitioner.initialize(FastPartitioner.java:176) at org.eclipse.jface.text.rules.FastPartitioner.checkInitialization(FastPartitioner.java:151) at org.eclipse.jface.text.rules.FastPartitioner.connect(FastPartitioner.java:143) at org.eclipse.jface.text.rules.FastPartitioner.connect(FastPartitioner.java:125) at com.aptana.editor.common.CompositeDocumentProvider.connect(CompositeDocumentProvider.java:53) at com.aptana.editor.php.internal.ui.editor.PHPDocumentProvider.connect(PHPDocumentProvider.java:38) at org.eclipse.ui.texteditor.AbstractTextEditor.doSetInput(AbstractTextEditor.java:4056) at org.eclipse.ui.texteditor.StatusTextEditor.doSetInput(StatusTextEditor.java:217) at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.doSetInput(AbstractDecoratedTextEditor.java:1444) at com.aptana.editor.common.AbstractThemeableEditor.doSetInput(AbstractThemeableEditor.java:496) at com.aptana.editor.php.internal.ui.editor.PHPSourceEditor.doSetInput(PHPSourceEditor.java:201) at org.eclipse.ui.texteditor.AbstractTextEditor$19.run(AbstractTextEditor.java:3043) at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372) at org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:759) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:756) at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2606) at org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:3061) at org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:3088) at com.aptana.editor.common.AbstractThemeableEditor.init(AbstractThemeableEditor.java:517) at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:798) at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:647) at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465) at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595) at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2863) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2768) at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2760) at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2711) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2707) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2691) at com.aptana.ide.ui.io.navigator.actions.EditorUtils$1$1.runInUIThread(EditorUtils.java:90) at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4041) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at com.aptana.rcp.IDEApplication.start(IDEApplication.java:125) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) 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:620) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575) at org.eclipse.equinox.launcher.Main.run(Main.java:1408)

    Appcelerator JIRA | 5 years ago | James Henestofel
    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.editor.common.text.rules.ResumableSingleLineRule.endSequenceDetected()
    2. com.aptana.editor
      ResumableSingleLineRule.endSequenceDetected
      1. com.aptana.editor.common.text.rules.ResumableSingleLineRule.endSequenceDetected(ResumableSingleLineRule.java:72)
      1 frame
    3. JFace Text
      PatternRule.doEvaluate
      1. org.eclipse.jface.text.rules.PatternRule.doEvaluate(PatternRule.java:187)
      1 frame
    4. com.aptana.editor
      ResumableSingleLineRule.doEvaluate
      1. com.aptana.editor.common.text.rules.ResumableSingleLineRule.doEvaluate(ResumableSingleLineRule.java:55)
      1 frame
    5. JFace Text
      PatternRule.evaluate
      1. org.eclipse.jface.text.rules.PatternRule.evaluate(PatternRule.java:308)
      1 frame
    6. com.aptana.editor
      CompositePartitionScanner.nextToken
      1. com.aptana.editor.common.text.rules.CompositePartitionScanner.doResumeContentType(CompositePartitionScanner.java:222)
      2. com.aptana.editor.common.text.rules.CompositePartitionScanner.nextToken(CompositePartitionScanner.java:194)
      2 frames
    7. JFace Text
      FastPartitioner.connect
      1. org.eclipse.jface.text.rules.FastPartitioner.initialize(FastPartitioner.java:176)
      2. org.eclipse.jface.text.rules.FastPartitioner.checkInitialization(FastPartitioner.java:151)
      3. org.eclipse.jface.text.rules.FastPartitioner.connect(FastPartitioner.java:143)
      4. org.eclipse.jface.text.rules.FastPartitioner.connect(FastPartitioner.java:125)
      4 frames
    8. com.aptana.editor
      PHPDocumentProvider.connect
      1. com.aptana.editor.common.CompositeDocumentProvider.connect(CompositeDocumentProvider.java:53)
      2. com.aptana.editor.php.internal.ui.editor.PHPDocumentProvider.connect(PHPDocumentProvider.java:38)
      2 frames
    9. Text Editor Framework
      AbstractDecoratedTextEditor.doSetInput
      1. org.eclipse.ui.texteditor.AbstractTextEditor.doSetInput(AbstractTextEditor.java:4056)
      2. org.eclipse.ui.texteditor.StatusTextEditor.doSetInput(StatusTextEditor.java:217)
      3. org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.doSetInput(AbstractDecoratedTextEditor.java:1444)
      3 frames
    10. com.aptana.editor
      PHPSourceEditor.doSetInput
      1. com.aptana.editor.common.AbstractThemeableEditor.doSetInput(AbstractThemeableEditor.java:496)
      2. com.aptana.editor.php.internal.ui.editor.PHPSourceEditor.doSetInput(PHPSourceEditor.java:201)
      2 frames
    11. Text Editor Framework
      AbstractTextEditor$19.run
      1. org.eclipse.ui.texteditor.AbstractTextEditor$19.run(AbstractTextEditor.java:3043)
      1 frame
    12. JFace
      ApplicationWindow$1.run
      1. org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
      2. org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
      3. org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:759)
      3 frames
    13. RWT
      BusyIndicator.showWhile
      1. org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
      1 frame
    14. JFace
      ApplicationWindow.run
      1. org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:756)
      1 frame
    15. Eclipse UI
      WorkbenchWindow.run
      1. org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2606)
      1 frame
    16. Text Editor Framework
      AbstractTextEditor.init
      1. org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:3061)
      2. org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:3088)
      2 frames
    17. com.aptana.editor
      AbstractThemeableEditor.init
      1. com.aptana.editor.common.AbstractThemeableEditor.init(AbstractThemeableEditor.java:517)
      1 frame
    18. Eclipse UI
      WorkbenchPage$10.run
      1. org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:798)
      2. org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:647)
      3. org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
      4. org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
      5. org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289)
      6. org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2863)
      7. org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2768)
      8. org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2760)
      9. org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2711)
      9 frames
    19. RWT
      BusyIndicator.showWhile
      1. org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
      1 frame
    20. Eclipse UI
      WorkbenchPage.openEditor
      1. org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2707)
      2. org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2691)
      2 frames
    21. com.aptana.ide
      EditorUtils$1$1.runInUIThread
      1. com.aptana.ide.ui.io.navigator.actions.EditorUtils$1$1.runInUIThread(EditorUtils.java:90)
      1 frame
    22. Workbench
      UIJob$1.run
      1. org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95)
      1 frame
    23. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
      2. org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
      3. org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4041)
      4. org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3660)
      4 frames
    24. Eclipse UI
      Workbench$7.run
      1. org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
      2. org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
      3. org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
      4. org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
      4 frames
    25. Databinding
      Realm.runWithDefault
      1. org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      1 frame
    26. Eclipse UI
      Workbench.createAndRunWorkbench
      1. org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
      1 frame
    27. Eclipse UI
      PlatformUI.createAndRunWorkbench
      1. org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      1 frame
    28. com.aptana.rcp
      IDEApplication.start
      1. com.aptana.rcp.IDEApplication.start(IDEApplication.java:125)
      1 frame
    29. Equinox Container
      EclipseAppHandle.run
      1. org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      1 frame
    30. Eclipse OSGi
      EclipseStarter.run
      1. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
      2. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
      3. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
      4. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
      4 frames
    31. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    32. Equinox
      Main.run
      1. org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
      2. org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
      3. org.eclipse.equinox.launcher.Main.run(Main.java:1408)
      3 frames