[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [pdt-dev] "Format Document": java.lang.NullPointerException
|
Hello,
Actually, my error is not 100% reproducible but it always happen often in a day's work. I would gladly zip my workspace, but when you are talking about the workspace, do you also need the actual project (the project source files) ?
My project resides outside the workspace, and I would have a problem sending it to you since it is my company confidential source code.
If you need it, I will try to remove most of the files, to the point I can have something that reproduces the bug but does not contain a lot in terms of source code.
Jean-Noël
On 4/11/07, Gadi Goldbarg <gadi@xxxxxxxx> wrote:
Hi Jean,
I have encountered the same error – but it
was not reproducible for me (after changing to a clean workspace).
Can you please zip the workspace and send
it to us, it seems that something is corrupt in the workspace and we want to
track that down.
After zipping the problematic workspace,
try to switch to a clean workspace and see if it helps.
Thanks a lot for your input,
Hello, I have the
following bug: whenever I try to format a document, I obtain a
NullPointerException.
Sometimes a NullPointerException also happens when I paste some text. I will
look at the log to see if the cause is the same.
I also would like to point out that the mirrors don't work for PDT updates.
Only the original site allows me to update my PDT plugin.
I am running the latest "stable" version 0.7 20070401. For me this
release is not at all stable, there are lots and lots of problems but I am
reporting this one first because I feel that all the problems maybe have the
same source.
Actually I had these problems in the previous version too, and was waiting for
the new one to see if they had been fixed, but they have not.
Here is my trace (the bug is 100% reproductable on my machine - Sun Java 1.5.0.10, Linux 64, Eclipse 3.2.2):
!ENTRY org.eclipse.ui 4 4 2007-04-11 11:17:11.335
!MESSAGE "Format Document" did not complete normally. Please
see the log for more information.
!ENTRY org.eclipse.ui 4 0 2007-04-11 11:17:11.335
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at
org.eclipse.php.internal.core.phpModel.parser.PHPWorkspaceModelManager.getProjectForModel
(Unknown Source)
at
org.eclipse.php.internal.core.format.FormatPreferencesSupport.verifyValidity(Unknown
Source)
at
org.eclipse.php.internal.core.format.FormatPreferencesSupport.getIndentationSize(Unknown
Source)
at
org.eclipse.php.internal.core.format.CaseDefaultIndentationStrategy.placeMatchingBlanks(Unknown
Source)
at org.eclipse.php.internal.core.format.PhpFormatter.formatLine(Unknown
Source)
at
org.eclipse.php.internal.core.format.PhpFormatter.format(Unknown Source)
at
org.eclipse.php.internal.core.format.PhpFormatter.formatNode(Unknown Source)
at org.eclipse.php.internal.core.format.PhpFormatter.format
(Unknown Source)
at
org.eclipse.php.internal.core.format.PhpFormatter.format(Unknown Source)
at
org.eclipse.php.internal.core.format.htmlFormatters.HTMLElementFormatterNoPHP.formatChildNodes(Unknown
Source)
at
org.eclipse.wst.html.core.internal.format.HTMLElementFormatter.formatNode(HTMLElementFormatter.java:123)
at
org.eclipse.php.internal.core.format.htmlFormatters.HTMLElementFormatterNoPHP.formatNode
(Unknown Source)
at org.eclipse.wst.html.core.internal.format.HTMLFormatter.format(HTMLFormatter.java:233)
at
org.eclipse.wst.html.core.internal.format.HTMLFormatter.format(HTMLFormatter.java:219)
at
org.eclipse.wst.html.core.internal.format.HTMLFormatter.format(HTMLFormatter.java:212)
at
org.eclipse.php.internal.core.format.htmlFormatters.HTMLElementFormatterNoPHP.formatChildNodes(Unknown
Source)
at
org.eclipse.php.internal.core.format.htmlFormatters.HTMLElementFormatterNoPHP.insertBreakBefore(Unknown
Source)
at
org.eclipse.wst.html.core.internal.format.HTMLFormatter.format(HTMLFormatter.java
:231)
at
org.eclipse.wst.html.core.internal.format.HTMLFormatter.format(HTMLFormatter.java:219)
at
org.eclipse.wst.sse.core.internal.format.AbstractStructuredFormatProcessor.formatNode(AbstractStructuredFormatProcessor.java
:405)
at
org.eclipse.wst.sse.core.internal.format.AbstractStructuredFormatProcessor.formatModel(AbstractStructuredFormatProcessor.java:346)
at org.eclipse.php.internal.core.format.PhpFormatProcessorImpl.formatModel
(Unknown Source)
at
org.eclipse.php.internal.core.format.PhpFormatProcessorImpl.formatDocument(Unknown
Source)
at
org.eclipse.wst.sse.ui.internal.format.StructuredFormattingStrategy.format(StructuredFormattingStrategy.java
:58)
at
org.eclipse.jface.text.formatter.MultiPassContentFormatter.formatMaster(MultiPassContentFormatter.java:192)
at
org.eclipse.jface.text.formatter.MultiPassContentFormatter.format(MultiPassContentFormatter.java
:141)
at
org.eclipse.php.internal.ui.editor.PHPStructuredTextViewer.doOperation(Unknown
Source)
at
org.eclipse.ui.texteditor.TextOperationAction$1.run(TextOperationAction.java:131)
at
org.eclipse.swt.custom.BusyIndicator.showWhile (BusyIndicator.java:67)
at
org.eclipse.ui.texteditor.TextOperationAction.run(TextOperationAction.java:129)
at
org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
at
org.eclipse.ui.commands.ActionHandler.execute (ActionHandler.java:185)
at
org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:109)
at
org.eclipse.core.commands.Command.executeWithChecks(Command.java:461)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:424)
at
org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:160)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand
(WorkbenchKeyboard.java:466)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:799)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java
:846)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:564)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:506)
at
org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:122)
at
org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at
org.eclipse.swt.widgets.Display.filterEvent (Display.java:1357)
at
org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1084)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1109)
at
org.eclipse.swt.widgets.Widget.sendEvent( Widget.java:1094)
at
org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1121)
at
org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.java:655)
at
org.eclipse.swt.widgets.Control.gtk_key_press_event (Control.java:2090)
at
org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java:637)
at
org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1434)
at
org.eclipse.swt.widgets.Display.windowProc (Display.java:3812)
at
org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
at
org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:5291)
at org.eclipse.swt.widgets.Display.eventProc
(Display.java:1149)
at
org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
at
org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1437)
at
org.eclipse.swt.widgets.Display.readAndDispatch (Display.java:2854)
at
org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1930)
at
org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench (Workbench.java:422)
at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at
org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run (PlatformActivator.java:78)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start
(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java
:25)
at
java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at
org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at
org.eclipse.core.launcher.Main.run(Main.java:977)
at
org.eclipse.core.launcher.Main.main(Main.java:952)
_______________________________________________
pdt-dev mailing list
pdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pdt-dev