Community
Participate
Working Groups
I20030730 Getting lots of these in my log !ENTRY org.eclipse.jdt.core 4 4 Jul 31, 2003 12:34:10.775 !MESSAGE Exception occurred during problem detection: !STACK 0 java.lang.NullPointerException at org.eclipse.jdt.internal.compiler.ast.ExplicitConstructorCall.analyseCode(ExplicitConstructorCall.java:69) at org.eclipse.jdt.internal.compiler.ast.ConstructorDeclaration.analyseCode(ConstructorDeclaration.java:92) at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.internalAnalyseCode(TypeDeclaration.java:615) at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.analyseCode(TypeDeclaration.java:211) at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.internalAnalyseCode(TypeDeclaration.java:597) at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.analyseCode(TypeDeclaration.java:251) at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.analyseCode(CompilationUnitDeclaration.java:77) at org.eclipse.jdt.internal.compiler.Compiler.resolve(Compiler.java:595) at org.eclipse.jdt.internal.core.CompilationUnitProblemFinder.process(CompilationUnitProblemFinder.java:172) at org.eclipse.jdt.internal.core.CompilationUnit.buildStructure(CompilationUnit.java:139) at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:198) at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:448) at org.eclipse.jdt.internal.core.CompilationUnit.makeConsistent(CompilationUnit.java:881) at org.eclipse.jdt.internal.core.ReconcileWorkingCopyOperation.executeOperation(ReconcileWorkingCopyOperation.java:48) at org.eclipse.jdt.internal.core.JavaModelOperation.execute(JavaModelOperation.java:365) at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:704) at org.eclipse.jdt.internal.core.JavaElement.runOperation(JavaElement.java:484) at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:994) at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:970) at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:963) at org.eclipse.jdt.internal.ui.browsing.JavaBrowsingPart.getElementForInputAt(JavaBrowsingPart.java:1294) at org.eclipse.jdt.internal.ui.browsing.JavaBrowsingPart.setSelectionFromEditor(JavaBrowsingPart.java:1146) at org.eclipse.jdt.internal.ui.browsing.JavaBrowsingPart.selectionChanged(JavaBrowsingPart.java:698) at org.eclipse.ui.internal.AbstractSelectionService$4.run(AbstractSelectionService.java:178) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1015) at org.eclipse.core.runtime.Platform.run(Platform.java:420) at org.eclipse.ui.internal.AbstractSelectionService.firePostSelection(AbstractSelectionService.java:176) at org.eclipse.ui.internal.AbstractSelectionService$2.selectionChanged(AbstractSelectionService.java:76) at org.eclipse.jface.text.TextViewer.firePostSelectionChanged(TextViewer.java:2099) at org.eclipse.jface.text.TextViewer.firePostSelectionChanged(TextViewer.java:2052) at org.eclipse.jface.text.TextViewer$4.run(TextViewer.java:2031) at org.eclipse.swt.widgets.Display.runTimer(Display.java:2230) at org.eclipse.swt.widgets.Display.messageProc(Display.java:1764) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1338) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1876) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1680) at org.eclipse.ui.internal.Workbench.run(Workbench.java:1663) at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461) 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:324) at org.eclipse.core.launcher.Main.basicRun(Main.java:291) at org.eclipse.core.launcher.Main.run(Main.java:747) at org.eclipse.core.launcher.Main.main(Main.java:583)
Would you have a test case to reproduce it?
No, found it in .log (many of those) but nothing in the UI.
Do you get this if you do a full build of jdt/ui code? You can try removing your .log file and start a full build. If you get it again, let me know. I will try to reproduce it on my side. Thanks.
I have auto-build on. I think it happened while editing code and then the other views tried to update. I rebuilt all, but the NPE did not happen again.
This error occured while compiling the constructor of a member class. I suspect that the constructor is calling a super constructor. Without further details, it is difficult to fix it or reproduce it. It definitely happened during the reconciling. If you have a change to see it again, please provide a test case.
I was editing constructors in the file DefaultInformationControl. But they call this(...) not super(...).
The problem occurs in a constructor of a member type according to the stack trace.
Created attachment 5730 [details] Edited Source file from org.eclipse.jdt.ui, which evokes NPE if selection is around line 160 Maybe I have a test case: The attachment is a copy & paste snapshot of my editing of the file InstanceMethodMover.java. I was editing around line 160, when the Error Log started to fill up with the stack trace from the bug description. Afterwards, I couldn't even save the file ("Save could not be completed" because of NPE), and each time, an additional NPE was logged shortly after the editor got focus again. Note: when I remove the opening brace at the end of line 160, it stops logging errors. Build id: 200308060800
Additional environment info: - auto-build off - Preferences > Java > Work in Progress: - "Smart Semicolon" on - "Smart Opening Brace" on Suggest increasing severity, since NPE on save should not happen.
Reproduced. I will investigate.
I found a problem in the recovery that might be responsible for this problem. The problem is the creation of a default constructor for interfaces. An interface cannot have a constructor. Removing it fixed the problem. I need to isolate a small test case to add it to the regression tests.
Fixed and released in HEAD.
*** Bug 41642 has been marked as a duplicate of this bug. ***
*** Bug 41711 has been marked as a duplicate of this bug. ***
Verified.