#232 IllegalArgumentException: Argument not valid

closed-duplicate
nobody
Editor (234)
5
2006-08-05
2005-12-20
Anonymous
No

I think there is a problem with Eclipse 3.2M4 and
EPIC 0.3.12:

Opening a Perl file ends in the following StackTrace:

java.lang.IllegalArgumentException: Argument not valid
at org.eclipse.swt.SWT.error(SWT.java:3267)
at org.eclipse.swt.SWT.error(SWT.java:3206)
at org.eclipse.swt.SWT.error(SWT.java:3177)
at
org.eclipse.swt.custom.StyledText.setStyleRanges
(StyledText.java:7703)
at
org.eclipse.swt.custom.StyledText.setStyleRanges
(StyledText.java:7798)
at
org.eclipse.jface.text.TextViewer.applyTextPresentatio
n(TextViewer.java:4235)
at
org.eclipse.jface.text.TextViewer.changeTextPresentati
on(TextViewer.java:4287)
at
org.eclipse.jface.text.presentation.PresentationReconc
iler.applyTextRegionCollection
(PresentationReconciler.java:573)
at
org.eclipse.jface.text.presentation.PresentationReconc
iler.processDamage(PresentationReconciler.java:562)
at
org.eclipse.jface.text.presentation.PresentationReconc
iler.access$3(PresentationReconciler.java:558)
at
org.eclipse.jface.text.presentation.PresentationReconc
iler$InternalListener.inputDocumentChanged
(PresentationReconciler.java:118)
at
org.eclipse.jface.text.TextViewer.fireInputDocumentCha
nged(TextViewer.java:2440)
at
org.eclipse.jface.text.TextViewer.setDocument
(TextViewer.java:2489)
at
org.eclipse.jface.text.source.SourceViewer.setDocument
(SourceViewer.java:502)
at
org.eclipse.jface.text.source.projection.ProjectionVie
wer.setDocument(ProjectionViewer.java:370)
at
org.eclipse.jface.text.source.SourceViewer.setDocument
(SourceViewer.java:434)
at
org.epic.perleditor.editors.PerlEditor.createActions
(PerlEditor.java:128)
at
org.eclipse.ui.texteditor.AbstractTextEditor.createPar
tControl(AbstractTextEditor.java:2661)
at
org.eclipse.ui.texteditor.StatusTextEditor.createPartC
ontrol(StatusTextEditor.java:53)
at
org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.
createPartControl
(AbstractDecoratedTextEditor.java:341)
at
org.epic.perleditor.editors.PerlEditor.createPartContr
ol(PerlEditor.java:605)
at
org.eclipse.ui.internal.EditorReference.createPartHelp
er(EditorReference.java:598)
at
org.eclipse.ui.internal.EditorReference.createPart
(EditorReference.java:374)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart
(WorkbenchPartReference.java:552)
at org.eclipse.ui.internal.PartPane.setVisible
(PartPane.java:285)
at
org.eclipse.ui.internal.presentations.PresentablePart.
setVisible(PresentablePart.java:140)
at
org.eclipse.ui.internal.presentations.util.Presentable
PartFolder.select(PresentablePartFolder.java:264)
at
org.eclipse.ui.internal.presentations.util.LeftToRight
TabOrder.select(LeftToRightTabOrder.java:65)
at
org.eclipse.ui.internal.presentations.util.TabbedStack
Presentation.selectPart
(TabbedStackPresentation.java:394)
at
org.eclipse.ui.internal.PartStack.refreshPresentationS
election(PartStack.java:1140)
at
org.eclipse.ui.internal.PartStack.setSelection
(PartStack.java:1093)
at org.eclipse.ui.internal.PartStack.showPart
(PartStack.java:1312)
at org.eclipse.ui.internal.PartStack.showPart
(PartStack.java:1278)
at org.eclipse.ui.internal.PartStack.add
(PartStack.java:453)
at org.eclipse.ui.internal.EditorStack.add
(EditorStack.java:101)
at org.eclipse.ui.internal.PartStack.add
(PartStack.java:440)
at org.eclipse.ui.internal.EditorStack.add
(EditorStack.java:110)
at
org.eclipse.ui.internal.EditorSashContainer.addEditor
(EditorSashContainer.java:60)
at
org.eclipse.ui.internal.EditorAreaHelper.addToLayout
(EditorAreaHelper.java:214)
at
org.eclipse.ui.internal.EditorAreaHelper.addEditor
(EditorAreaHelper.java:204)
at
org.eclipse.ui.internal.EditorManager.createEditorTab
(EditorManager.java:764)
at
org.eclipse.ui.internal.EditorManager.openEditorFromDe
scriptor(EditorManager.java:671)
at
org.eclipse.ui.internal.EditorManager.openEditor
(EditorManager.java:634)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBa
tched(WorkbenchPage.java:2381)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor
(WorkbenchPage.java:2316)
at
org.eclipse.ui.internal.WorkbenchPage.access$10
(WorkbenchPage.java:2308)
at org.eclipse.ui.internal.WorkbenchPage$9.run
(WorkbenchPage.java:2294)
at
org.eclipse.swt.custom.BusyIndicator.showWhile
(BusyIndicator.java:69)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor
(WorkbenchPage.java:2289)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor
(WorkbenchPage.java:2274)
at org.eclipse.ui.ide.IDE.openEditor
(IDE.java:372)
at org.eclipse.ui.ide.IDE.openEditor
(IDE.java:335)
at
org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.o
penInEditor(EditorUtility.java:254)
at
org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.o
penInEditor(EditorUtility.java:139)
at
org.eclipse.jdt.internal.ui.actions.OpenActionUtil.ope
n(OpenActionUtil.java:49)
at org.eclipse.jdt.ui.actions.OpenAction.run
(OpenAction.java:169)
at org.eclipse.jdt.ui.actions.OpenAction.run
(OpenAction.java:153)
at
org.eclipse.jdt.ui.actions.SelectionDispatchAction.dis
patchRun(SelectionDispatchAction.java:249)
at
org.eclipse.jdt.ui.actions.SelectionDispatchAction.run
(SelectionDispatchAction.java:225)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplore
rActionGroup.handleOpen
(PackageExplorerActionGroup.java:296)
at
org.eclipse.jdt.internal.ui.packageview.PackageExplore
rPart$4.open(PackageExplorerPart.java:869)
at
org.eclipse.jface.viewers.StructuredViewer$2.run
(StructuredViewer.java:741)
at org.eclipse.core.runtime.SafeRunner.run
(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run
(Platform.java:785)
at org.eclipse.ui.internal.JFaceUtil$1.run
(JFaceUtil.java:44)
at org.eclipse.jface.util.SafeRunnable.run
(SafeRunnable.java:148)
at
org.eclipse.jface.viewers.StructuredViewer.fireOpen
(StructuredViewer.java:739)
at
org.eclipse.jface.viewers.StructuredViewer.handleOpen
(StructuredViewer.java:968)
at
org.eclipse.jface.viewers.StructuredViewer$6.handleOpe
n(StructuredViewer.java:1067)
at
org.eclipse.jface.util.OpenStrategy.fireOpenEvent
(OpenStrategy.java:244)
at
org.eclipse.jface.util.OpenStrategy.access$2
(OpenStrategy.java:239)
at
org.eclipse.jface.util.OpenStrategy$1.handleEvent
(OpenStrategy.java:278)
at
org.eclipse.swt.widgets.EventTable.sendEvent
(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent
(Widget.java:914)
at
org.eclipse.swt.widgets.Display.runDeferredEvents
(Display.java:3285)
at
org.eclipse.swt.widgets.Display.readAndDispatch
(Display.java:2905)
at
org.eclipse.ui.internal.Workbench.runEventLoop
(Workbench.java:1762)
at org.eclipse.ui.internal.Workbench.runUI
(Workbench.java:1726)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbenc
h(Workbench.java:397)
at
org.eclipse.ui.PlatformUI.createAndRunWorkbench
(PlatformUI.java:143)
at
org.eclipse.ui.internal.ide.IDEApplication.run
(IDEApplication.java:106)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.
run(PlatformActivator.java:109)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLa
uncher.runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLa
uncher.start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:379)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:177)
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.core.launcher.Main.invokeFramework
(Main.java:338)
at org.eclipse.core.launcher.Main.basicRun
(Main.java:282)
at org.eclipse.core.launcher.Main.run
(Main.java:977)
at org.eclipse.core.launcher.Main.main
(Main.java:952)

Discussion

  • Pete McKinstry

    Pete McKinstry - 2006-01-11

    Logged In: YES
    user_id=288842

    I get the same error under Eclipse 3.2M4 & EPIC 0.3.0

    Is there a workaround or anything?

     
  • Nobody/Anonymous

    Logged In: NO

    I'm seeing this same error. This is what causes it:

    my($class, $email) = @_;

    It's the first and only line in the sub definition.

     
  • Nobody/Anonymous

    Logged In: NO

    I see a similar error with Eclipse 3.1.2 and EPIC 0.3.0. I
    can't open any perl files.

    java.lang.IllegalArgumentException
    at
    org.eclipse.ui.part.FileEditorInput.<init>(FileEditorInput.java:43)
    at
    org.epic.core.util.FileUtilities.getFileEditorInput(FileUtilities.java:77)
    at
    org.epic.perleditor.editors.PerlEditor.doSetInput(PerlEditor.java:281)
    at
    org.eclipse.ui.texteditor.AbstractTextEditor$16.run(AbstractTextEditor.java:2360)
    at
    org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:346)
    at
    org.eclipse.jface.operation.ModalContext.run(ModalContext.java:291)
    at
    org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:624)
    at
    org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
    at
    org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:621)
    at
    org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2134)
    at
    org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:2378)
    at
    org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:2405)
    at
    org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:778)
    at
    org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:596)
    at
    org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:384)
    at
    org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:552)
    at
    org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:283)
    at
    org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:126)
    at
    org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:269)
    at
    org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
    at
    org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:391)
    at
    org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1102)
    at
    org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1051)
    at
    org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1256)
    at org.eclipse.ui.internal.PartStack.add(PartStack.java:442)
    at
    org.eclipse.ui.internal.EditorStack.add(EditorStack.java:109)
    at
    org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:60)
    at
    org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:212)
    at
    org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:202)
    at
    org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:758)
    at
    org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:665)
    at
    org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:628)
    at
    org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2360)
    at
    org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2295)
    at
    org.eclipse.ui.internal.WorkbenchPage.access$9(WorkbenchPage.java:2287)
    at
    org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:2273)
    at
    org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
    at
    org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2268)
    at
    org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2241)
    at
    org.eclipse.ui.internal.ReopenEditorMenu.open(ReopenEditorMenu.java:265)
    at
    org.eclipse.ui.internal.ReopenEditorMenu.access$2(ReopenEditorMenu.java:249)
    at
    org.eclipse.ui.internal.ReopenEditorMenu$3.widgetSelected(ReopenEditorMenu.java:217)
    at
    org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
    at
    org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021)
    at
    org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2867)
    at
    org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2572)
    at
    org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
    at
    org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
    at
    org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
    at
    org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
    at
    org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
    at
    org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
    at
    org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
    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.invokeFramework(Main.java:334)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
    at org.eclipse.core.launcher.Main.run(Main.java:973)
    at org.eclipse.core.launcher.Main.main(Main.java:948)

     
  • Wolfgang Baron

    Wolfgang Baron - 2006-07-31

    Logged In: YES
    user_id=822853

    Same on eclipse 3.2 and epic 0.3.0, it seems to be the parser,
    independently of the versions or oses. It chokes on simple
    things like:

    print $^O;

    It will give you the stackdumps mentioned above.

     
  • Wolfgang Baron

    Wolfgang Baron - 2006-07-31

    Logged In: YES
    user_id=822853

    Same on eclipse 3.2 and epic 0.3.0, it seems to be the parser,
    independently of the versions or oses. It chokes on simple
    things like:

    print $^O;

    It will give you the stackdumps mentioned above.

     
  • Wolfgang Baron

    Wolfgang Baron - 2006-07-31

    Logged In: YES
    user_id=822853

    Same on eclipse 3.2 and epic 0.3.0, it seems to be the parser,
    independently of the versions or oses. It chokes on simple
    things like:

    print $^O;

    It will give you the stackdumps mentioned above.

     
  • Wolfgang Baron

    Wolfgang Baron - 2006-07-31

    Logged In: YES
    user_id=822853

    Same on eclipse 3.2 and epic 0.3.0, it seems to be the parser,
    independently of the versions or oses. It chokes on simple
    things like:

    print $^O;

    It will give you the stackdumps mentioned above.

     
  • Wolfgang Baron

    Wolfgang Baron - 2006-07-31

    Logged In: YES
    user_id=822853

    Oops, I get internal server errors when trying to post, but now
    it is posted several times. Sorry!

     
  • Jan Ploski

    Jan Ploski - 2006-08-05
    • status: open --> closed-duplicate
     
  • Jan Ploski

    Jan Ploski - 2006-08-05

    Logged In: YES
    user_id=86907

    Closing as duplicate of:

    https://sourceforge.net/tracker/index.php?
    func=detail&aid=1408436&group_id=75859&atid=545274

    Fixed as of 0.4.0.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks