Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Internal Error when creating method/class with Quick Fix(Problem with Java editor)
Internal Error when creating method/class with Quick Fix [message #514689] Tue, 16 February 2010 06:08 Go to next message
Eclipse UserFriend
Hello,

I have been experiencing errors when I create a method or class with the Quick Fix (I type a method which does not exist, and the Quick Fix creates one for me). Usually Eclipse jumps to the newly created method or class, but lately I am getting internal eclipse errors, and it doesn't jump where it should.

I am using Eclipse IDE for Java EE Developers 3.5

StackTrace:
org.eclipse.core.runtime.CoreException: First position: 'lastErrorCounter' at 28220, this position: '' at 5000
at org.eclipse.jdt.internal.ui.text.correction.proposals.CUCorrectionProposal.performChange(CUCorrectionProposal.java:343)
at org.eclipse.jdt.internal.ui.text.correction.proposals.CUCorrectionProposal.apply(CUCorrectionProposal.java:301)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.insertProposal(CompletionProposalPopup.java:931)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.insertSelectedProposalWithMask(CompletionProposalPopup.java:877)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$27(CompletionProposalPopup.java:873)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup$5.widgetDefaultSelected(CompletionProposalPopup.java:655)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:113)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
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:368)
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:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
Caused by: org.eclipse.jface.text.BadLocationException: First position: 'lastErrorCounter' at 28220, this position: '' at 5000
at org.eclipse.jface.text.link.LinkedPositionGroup.enforceEqualContent(LinkedPositionGroup.java:132)
at org.eclipse.jface.text.link.LinkedPositionGroup.addPosition(LinkedPositionGroup.java:113)
at org.eclipse.jdt.internal.ui.viewsupport.LinkedProposalModelPresenter.enterLinkedMode(LinkedProposalModelPresenter.java:82)
at org.eclipse.jdt.internal.ui.text.correction.proposals.CUCorrectionProposal.performChange(CUCorrectionProposal.java:332)
... 30 more

Session Data:
Quote:
eclipse.buildId=M20090917-0800
java.version=1.6.0_17
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product -data N:



Anyone know what is wrong? Is it a bug in JDT?

[Updated on: Tue, 16 February 2010 06:13] by Moderator

Re: Internal Error when creating method/class with Quick Fix [message #514705 is a reply to message #514689] Tue, 16 February 2010 07:01 Go to previous messageGo to next message
Eclipse UserFriend
Mads Stavang wrote:
> Hello,
>
> I have been experiencing errors when I create a method or class with
> the Quick Fix (I type a method which does not exist, and the Quick Fix
> creates one for me). Usually Eclipse jumps to the newly created method
> or class, but lately I am getting internal eclipse errors, and it
> doesn't jump where it should.
That's a bug which got recently fixed:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=195834

Dani
>
> I am using Eclipse IDE for Java EE Developers 3.5
>
> StackTrace:
> org.eclipse.core.runtime.CoreException: First position:
> 'lastErrorCounter' at 28220, this position: '' at 5000
> at
> org.eclipse.jdt.internal.ui.text.correction.proposals.CUCorr ectionProposal.performChange(CUCorrectionProposal.java:343)
>
> at
> org.eclipse.jdt.internal.ui.text.correction.proposals.CUCorr ectionProposal.apply(CUCorrectionProposal.java:301)
>
> at
> org.eclipse.jface.text.contentassist.CompletionProposalPopup .insertProposal(CompletionProposalPopup.java:931)
>
> at
> org.eclipse.jface.text.contentassist.CompletionProposalPopup .insertSelectedProposalWithMask(CompletionProposalPopup.java :877)
>
> at
> org.eclipse.jface.text.contentassist.CompletionProposalPopup .access$27(CompletionProposalPopup.java:873)
>
> at
> org.eclipse.jface.text.contentassist.CompletionProposalPopup $5.widgetDefaultSelected(CompletionProposalPopup.java:655)
>
> at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:113)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3880)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3473)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2405)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
>
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
>
> 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:194)
>
> 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:368)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.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: 559)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
> Caused by: org.eclipse.jface.text.BadLocationException: First
> position: 'lastErrorCounter' at 28220, this position: '' at 5000
> at
> org.eclipse.jface.text.link.LinkedPositionGroup.enforceEqual Content(LinkedPositionGroup.java:132)
>
> at
> org.eclipse.jface.text.link.LinkedPositionGroup.addPosition( LinkedPositionGroup.java:113)
>
> at
> org.eclipse.jdt.internal.ui.viewsupport.LinkedProposalModelP resenter.enterLinkedMode(LinkedProposalModelPresenter.java:8 2)
>
> at
> org.eclipse.jdt.internal.ui.text.correction.proposals.CUCorr ectionProposal.performChange(CUCorrectionProposal.java:332)
>
> .. 30 more
>
> Session Data:
> Quote:
>> eclipse.buildId=M20090917-0800
>> java.version=1.6.0_17
>> java.vendor=Sun Microsystems Inc.
>> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
>> Framework arguments: -product org.eclipse.epp.package.jee.product
>> Command-line arguments: -os win32 -ws win32 -arch x86 -product
>> org.eclipse.epp.package.jee.product -data N:
>
Re: Internal Error when creating method/class with Quick Fix [message #514716 is a reply to message #514689] Tue, 16 February 2010 07:53 Go to previous message
Eclipse UserFriend
Thanks for your answer. It looks like the bugfix is fixed for both 3.5.2 and 3.6. 3.5.2 RC3 is already out, so hopefully it will get released soon Smile
Previous Topic:Can I include Ant tasks as plugins for the Ant External Tools Dialog?
Next Topic:Why are almost all Windows packages (except Classic) only 32-bit?
Goto Forum:
  


Current Time: Mon Mar 17 20:05:49 EDT 2025

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

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

Back to the top