facebook

Refactoring error "invalid thread access"

  1. MyEclipse IDE
  2.  > 
  3. Comments
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #215757 Reply

    I can’t seem to rename anything in my Eclipse project. When I refactor/change name — I get an “Invalid Thread Access” error.

    Lee

    #215761 Reply

    Riyad Kalla
    Member

    Are you running under Linux? Do you have Eclipse and ME installed as different users? Are you trying to use them as a different user than they were installed?

    #215762 Reply

    Running under windows — running as same user (as far as I know anyway)

    Lee

    #215764 Reply

    Riyad Kalla
    Member

    Lee,
    When you say “rename” what are you renaming and how are you doing it? Also is this a Java Project? Simple Project? Web Project? And anything in your .log file?

    #215770 Reply

    @support-rkalla wrote:

    Lee,
    When you say “rename” what are you renaming and how are you doing it? Also is this a Java Project? Simple Project? Web Project? And anything in your .log file?

    It’s a web project and I wanted to rename a jsp file. I right click, choose refactor/rename

    
    eclipse.buildId=unknown
    java.version=1.4.1_02
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    !ENTRY org.eclipse.ltk.ui.refactoring 4 10000 Sep 22, 2004 10:45:39.909
    !MESSAGE Internal Error
    !STACK 0
    java.lang.reflect.InvocationTargetException
        at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:283)
        at org.eclipse.ltk.internal.ui.refactoring.RefactoringWizardDialog2.run(RefactoringWizardDialog2.java:282)
        at org.eclipse.ltk.ui.refactoring.RefactoringWizard.internalPerformFinish(RefactoringWizard.java:533)
        at org.eclipse.ltk.ui.refactoring.UserInputWizardPage.performFinish(UserInputWizardPage.java:153)
        at org.eclipse.ltk.ui.refactoring.RefactoringWizard.performFinish(RefactoringWizard.java:599)
        at org.eclipse.ltk.internal.ui.refactoring.RefactoringWizardDialog2.okPressed(RefactoringWizardDialog2.java:406)
        at org.eclipse.jface.dialogs.Dialog.buttonPressed(Dialog.java:365)
        at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:506)
        at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2716)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2382)
        at org.eclipse.jface.window.Window.runEventLoop(Window.java:668)
        at org.eclipse.jface.window.Window.open(Window.java:648)
        at org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation.run(RefactoringWizardOpenOperation.java:121)
        at org.eclipse.jdt.internal.ui.refactoring.actions.RefactoringStarter.activate(RefactoringStarter.java:40)
        at org.eclipse.jdt.internal.ui.refactoring.UserInterfaceStarter.activate(UserInterfaceStarter.java:54)
        at org.eclipse.jdt.internal.ui.refactoring.reorg.RenameUserInterfaceStarter.activate(RenameUserInterfaceStarter.java:113)
        at org.eclipse.jdt.internal.ui.refactoring.actions.RenameResourceAction.run(RenameResourceAction.java:64)
        at org.eclipse.jdt.ui.actions.RenameAction.run(RenameAction.java:118)
        at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:212)
        at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:188)
        at org.eclipse.jface.action.Action.runWithEvent(Action.java:881)
        at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:915)
        at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:866)
        at org.eclipse.jface.action.ActionContributionItem$7.handleEvent(ActionContributionItem.java:785)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2716)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2382)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1363)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1334)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:253)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141)
        at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96)
        at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:334)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:128)
        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.basicRun(Main.java:185)
        at org.eclipse.core.launcher.Main.run(Main.java:638)
        at org.eclipse.core.launcher.Main.main(Main.java:622)
    Caused by: org.eclipse.swt.SWTException: Invalid thread access
        at org.eclipse.swt.SWT.error(SWT.java:2691)
        at org.eclipse.swt.SWT.error(SWT.java:2616)
        at org.eclipse.swt.SWT.error(SWT.java:2587)
        at org.eclipse.swt.widgets.Widget.error(Widget.java:381)
        at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:284)
        at org.eclipse.swt.widgets.Control.isVisible(Control.java:1245)
        at com.ibm.xmleditor.internal.tabletree.XMLTableTreeViewer.refresh(Unknown Source)
        at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:882)
        at com.ibm.xmleditor.internal.tabletree.XMLTableTreeViewer.refresh(Unknown Source)
        at com.ibm.xmleditor.internal.tabletree.XMLTableTreeViewer$InternalModelStateListener.modelChanged(Unknown Source)
        at com.ibm.sse.model.AbstractStructuredModel.fireModelChanged(Unknown Source)
        at com.ibm.sse.model.AbstractStructuredModel.changedModel(Unknown Source)
        at com.ibm.sse.model.xml.internal.document.XMLModelImpl.changedModel(Unknown Source)
        at com.ibm.sse.editor.StructuredTextUndoManagerImpl.endCompoundChange(Unknown Source)
        at org.eclipse.jface.text.TextViewer$RewriteTarget.endCompoundChange(TextViewer.java:937)
        at org.eclipse.ltk.internal.ui.refactoring.UIPerformChangeOperation.endCompoundChange(UIPerformChangeOperation.java:97)
        at org.eclipse.ltk.internal.ui.refactoring.UIPerformChangeOperation.executeChange(UIPerformChangeOperation.java:85)
        at org.eclipse.ltk.core.refactoring.PerformChangeOperation.run(PerformChangeOperation.java:185)
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1673)
        at org.eclipse.ltk.internal.ui.refactoring.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:58)
        at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
    Root exception:
    org.eclipse.swt.SWTException: Invalid thread access
        at org.eclipse.swt.SWT.error(SWT.java:2691)
        at org.eclipse.swt.SWT.error(SWT.java:2616)
        at org.eclipse.swt.SWT.error(SWT.java:2587)
        at org.eclipse.swt.widgets.Widget.error(Widget.java:381)
        at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:284)
        at org.eclipse.swt.widgets.Control.isVisible(Control.java:1245)
        at com.ibm.xmleditor.internal.tabletree.XMLTableTreeViewer.refresh(Unknown Source)
        at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:882)
        at com.ibm.xmleditor.internal.tabletree.XMLTableTreeViewer.refresh(Unknown Source)
        at com.ibm.xmleditor.internal.tabletree.XMLTableTreeViewer$InternalModelStateListener.modelChanged(Unknown Source)
        at com.ibm.sse.model.AbstractStructuredModel.fireModelChanged(Unknown Source)
        at com.ibm.sse.model.AbstractStructuredModel.changedModel(Unknown Source)
        at com.ibm.sse.model.xml.internal.document.XMLModelImpl.changedModel(Unknown Source)
        at com.ibm.sse.editor.StructuredTextUndoManagerImpl.endCompoundChange(Unknown Source)
        at org.eclipse.jface.text.TextViewer$RewriteTarget.endCompoundChange(TextViewer.java:937)
        at org.eclipse.ltk.internal.ui.refactoring.UIPerformChangeOperation.endCompoundChange(UIPerformChangeOperation.java:97)
        at org.eclipse.ltk.internal.ui.refactoring.UIPerformChangeOperation.executeChange(UIPerformChangeOperation.java:85)
        at org.eclipse.ltk.core.refactoring.PerformChangeOperation.run(PerformChangeOperation.java:185)
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1673)
        at org.eclipse.ltk.internal.ui.refactoring.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:58)
        at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
    
    

    Lee

    #215772 Reply

    Riyad Kalla
    Member

    Lee,
    I have asked some of the devs if they have seen this before, hang tight.

    #215786 Reply

    Riyad Kalla
    Member

    Lee,
    We are hoping this is fixed in 3.8.2, please wait for the release (end of this week) and let us know.

    #215811 Reply

    No problem…will wait (eagerly) for the update. Actually, I’d be willing to endure this issue for quite awhile longer if I could get a good manual on how to best use the Hibernate and Struts capabilities in MyEclipse 🙂

    Lee

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: Refactoring error "invalid thread access"

You must be logged in to post in the forum log in