Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Problem with quick fix suggestions
Problem with quick fix suggestions [message #254649] Thu, 03 July 2008 03:16 Go to next message
Eclipse UserFriend
Hi,

I'm getting a weird NullPointerException from the JDT in the 3.4 release
build. I'm not sure it's a bug, since it may be my fault, since I'm
working on my own plug-in. However, I'm not going anywhere near the
problem suggestions.

It seems to be originating at the problem suggestions mechanism.

Is anybody else getting this?

Thanks,
Zviki

java.lang.NullPointerException
at
org.eclipse.jdt.internal.ui.text.correction.TypeMismatchSubP rocessor.addTypeMismatchProposals(TypeMismatchSubProcessor.j ava:78)
at
org.eclipse.jdt.internal.ui.text.correction.QuickFixProcesso r.process(QuickFixProcessor.java:304)
at
org.eclipse.jdt.internal.ui.text.correction.QuickFixProcesso r.getCorrections(QuickFixProcessor.java:243)
at
org.eclipse.jdt.internal.ui.text.correction.JavaCorrectionPr ocessor$SafeCorrectionCollector.safeRun(JavaCorrectionProces sor.java:373)
at
org.eclipse.jdt.internal.ui.text.correction.JavaCorrectionPr ocessor$SafeCorrectionProcessorAccess.run(JavaCorrectionProc essor.java:335)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at
org.eclipse.jdt.internal.ui.text.correction.JavaCorrectionPr ocessor$SafeCorrectionProcessorAccess.process(JavaCorrection Processor.java:331)
at
org.eclipse.jdt.internal.ui.text.correction.JavaCorrectionPr ocessor.collectCorrections(JavaCorrectionProcessor.java:460)
at
org.eclipse.jdt.internal.ui.text.java.hover.ProblemHover$Pro blemInfo.getJavaAnnotationFixes(ProblemHover.java:211)
at
org.eclipse.jdt.internal.ui.text.java.hover.ProblemHover$Pro blemInfo.getCompletionProposals(ProblemHover.java:190)
at
org.eclipse.jdt.internal.ui.text.java.hover.AbstractAnnotati onHover$AnnotationInformationControl.deferredCreateContent(A bstractAnnotationHover.java:274)
at
org.eclipse.jdt.internal.ui.text.java.hover.AbstractAnnotati onHover$AnnotationInformationControl.setInput(AbstractAnnota tionHover.java:180)
at
org.eclipse.jface.text.AbstractInformationControlManager.int ernalShowInformationControl(AbstractInformationControlManage r.java:1167)
at
org.eclipse.jface.text.AbstractInformationControlManager.pre sentInformation(AbstractInformationControlManager.java:1136)
at
org.eclipse.jface.text.AbstractHoverInformationControlManage r.presentInformation(AbstractHoverInformationControlManager. java:901)
at
org.eclipse.jface.text.TextViewerHoverManager.doPresentInfor mation(TextViewerHoverManager.java:243)
at
org.eclipse.jface.text.TextViewerHoverManager$5.run(TextView erHoverManager.java:233)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:133)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3338)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3067)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2382)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 98)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:488)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
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(EclipseS tarter.java:382)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
Re: Problem with quick fix suggestions [message #254653 is a reply to message #254649] Thu, 03 July 2008 04:06 Go to previous messageGo to next message
Eclipse UserFriend
Zviki Cohen wrote:
> Hi,
>
> I'm getting a weird NullPointerException from the JDT in the 3.4
> release build. I'm not sure it's a bug, since it may be my fault,
> since I'm working on my own plug-in. However, I'm not going anywhere
> near the problem suggestions.
Please file a bug report against JDT UI
(https://bugs.eclipse.org/bugs/enter_bug.cgi?product=JDT) with a code
example that lets us reproduce the problem.

Dani
> It seems to be originating at the problem suggestions mechanism.
> Is anybody else getting this?
>
> Thanks,
> Zviki
>
> java.lang.NullPointerException
> at
> org.eclipse.jdt.internal.ui.text.correction.TypeMismatchSubP rocessor.addTypeMismatchProposals(TypeMismatchSubProcessor.j ava:78)
>
> at
> org.eclipse.jdt.internal.ui.text.correction.QuickFixProcesso r.process(QuickFixProcessor.java:304)
>
> at
> org.eclipse.jdt.internal.ui.text.correction.QuickFixProcesso r.getCorrections(QuickFixProcessor.java:243)
>
> at
> org.eclipse.jdt.internal.ui.text.correction.JavaCorrectionPr ocessor$SafeCorrectionCollector.safeRun(JavaCorrectionProces sor.java:373)
>
> at
> org.eclipse.jdt.internal.ui.text.correction.JavaCorrectionPr ocessor$SafeCorrectionProcessorAccess.run(JavaCorrectionProc essor.java:335)
>
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
> at
> org.eclipse.jdt.internal.ui.text.correction.JavaCorrectionPr ocessor$SafeCorrectionProcessorAccess.process(JavaCorrection Processor.java:331)
>
> at
> org.eclipse.jdt.internal.ui.text.correction.JavaCorrectionPr ocessor.collectCorrections(JavaCorrectionProcessor.java:460)
>
> at
> org.eclipse.jdt.internal.ui.text.java.hover.ProblemHover$Pro blemInfo.getJavaAnnotationFixes(ProblemHover.java:211)
>
> at
> org.eclipse.jdt.internal.ui.text.java.hover.ProblemHover$Pro blemInfo.getCompletionProposals(ProblemHover.java:190)
>
> at
> org.eclipse.jdt.internal.ui.text.java.hover.AbstractAnnotati onHover$AnnotationInformationControl.deferredCreateContent(A bstractAnnotationHover.java:274)
>
> at
> org.eclipse.jdt.internal.ui.text.java.hover.AbstractAnnotati onHover$AnnotationInformationControl.setInput(AbstractAnnota tionHover.java:180)
>
> at
> org.eclipse.jface.text.AbstractInformationControlManager.int ernalShowInformationControl(AbstractInformationControlManage r.java:1167)
>
> at
> org.eclipse.jface.text.AbstractInformationControlManager.pre sentInformation(AbstractInformationControlManager.java:1136)
>
> at
> org.eclipse.jface.text.AbstractHoverInformationControlManage r.presentInformation(AbstractHoverInformationControlManager. java:901)
>
> at
> org.eclipse.jface.text.TextViewerHoverManager.doPresentInfor mation(TextViewerHoverManager.java:243)
>
> at
> org.eclipse.jface.text.TextViewerHoverManager$5.run(TextView erHoverManager.java:233)
>
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:133)
>
> at
> org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3338)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3067)
> at
> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2382)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 98)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:288)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:488)
>
> at
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at
> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:193)
>
> 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(EclipseS tarter.java:382)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 549)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
>
>
Re: Problem with quick fix suggestions [message #254659 is a reply to message #254653] Thu, 03 July 2008 04:19 Go to previous messageGo to next message
Eclipse UserFriend
Daniel Megert wrote:

> Zviki Cohen wrote:
>> Hi,
>>
>> I'm getting a weird NullPointerException from the JDT in the 3.4
>> release build. I'm not sure it's a bug, since it may be my fault,
>> since I'm working on my own plug-in. However, I'm not going anywhere
>> near the problem suggestions.
> Please file a bug report against JDT UI
> (https://bugs.eclipse.org/bugs/enter_bug.cgi?product=JDT) with a code
> example that lets us reproduce the problem.

> Dani

Hi Dani. As I said, I'm not going near the problem suggestions, so I have
no code example I can provide. Give me some credit - if I had a code
example which causes the problem we wouldn't be having this conversation
in the forums. All I have is the exception posted here.

Do you still want me to open a bug report?
Re: Problem with quick fix suggestions [message #254662 is a reply to message #254659] Thu, 03 July 2008 05:03 Go to previous messageGo to next message
Eclipse UserFriend
Zviki Cohen wrote:
> Daniel Megert wrote:
>
>> Zviki Cohen wrote:
>>> Hi,
>>>
>>> I'm getting a weird NullPointerException from the JDT in the 3.4
>>> release build. I'm not sure it's a bug, since it may be my fault,
>>> since I'm working on my own plug-in. However, I'm not going anywhere
>>> near the problem suggestions.
>> Please file a bug report against JDT UI
>> (https://bugs.eclipse.org/bugs/enter_bug.cgi?product=JDT) with a code
>> example that lets us reproduce the problem.
>
>> Dani
>
> Hi Dani. As I said, I'm not going near the problem suggestions, so I
> have no code example I can provide. Give me some credit - if I had a
> code example which causes the problem we wouldn't be having this
> conversation in the forums. All I have is the exception posted here.
So it only happened once?

Dani
> Do you still want me to open a bug report?
Re: Problem with quick fix suggestions [message #254666 is a reply to message #254662] Thu, 03 July 2008 05:37 Go to previous message
Eclipse UserFriend
Daniel Megert wrote:
> So it only happened once?

No. It happens on occasion. I'm not sure exactly in which circumstances.
I'm not sure whether this is related to my code or not. It may be related
to other plug-ins I'm using. The only relevant plug-in is SpringIDE.

Look, I just wanted to know if anybody encountered a similar problem. IMHO
the underlying JDT code (where I got the exception) is not very robust - I
shouldn't be getting a NullPointerException, but that's just my $0.02.

I will research the problem further and open a defect if I'll come up with
something more substantial.
Previous Topic:How to listen for "Javadoc location" change
Next Topic:How to extract added MethodInvocation?
Goto Forum:
  


Current Time: Wed Jul 16 00:28:06 EDT 2025

Powered by FUDForum. Page generated in 0.04792 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top