java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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)
    via by James Henestofel,
  • 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)
    via by James Henestofel,
    • 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)
    No Bugmate found.