- This topic has 1 reply, 2 voices, and was last updated 14 years, 2 months ago by support-shalini.
-
AuthorPosts
-
andrewbMemberThe Hibernate functions seem awfully buggy/broken by default. I am trying to figure out whats going on but no luck.
I create a new Java Project, add hibernate capabilities. I create a class and then select Add Hibernate Annotations. The dialogs show me the refactoring to occur, I click finish, and I get a dialog telling me An exception has been caught while processing the refactoring ‘Update {0} query’. Reason : Invalid thread access.
Can anyone let me know whats going on? Hibernate automation is a key reason for looking at myeclipse and if tis broken out of the box Im concerned. Hopefully its something Ive done wrong but I cant tell what.
In my log file I have the following
!ENTRY org.eclipse.ltk.ui.refactoring 4 10000 2010-09-09 13:15:09.512
!MESSAGE Internal Error
!STACK 0
org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.swt.SWT.error(SWT.java:3884)
at org.eclipse.swt.SWT.error(SWT.java:3799)
at org.eclipse.swt.SWT.error(SWT.java:3770)
at org.eclipse.swt.widgets.Widget.error(Widget.java:463)
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:355)
at org.eclipse.swt.custom.StyledText.getBlockSelection(StyledText.java:3484)
at org.eclipse.jface.text.TextViewer.getSelection(TextViewer.java:2523)
at org.eclipse.jface.text.TextViewer$ViewerState.connect(TextViewer.java:1283)
at org.eclipse.jface.text.TextViewer$ViewerState.<init>(TextViewer.java:1172)
at org.eclipse.jface.text.TextViewer.disableRedrawing(TextViewer.java:5071)
at org.eclipse.jface.text.TextViewer.setRedraw(TextViewer.java:5109)
at org.eclipse.jface.text.TextViewer.setRedraw(TextViewer.java:5089)
at org.eclipse.jface.text.TextViewer$RewriteTarget.setRedraw(TextViewer.java:1065)
at org.eclipse.jface.text.TextViewer$DocumentRewriteSessionListener.documentRewriteSessionChanged(TextViewer.java:1465)
at org.eclipse.jface.text.AbstractDocument.fireRewriteSessionChanged(AbstractDocument.java:1524)
at org.eclipse.jface.text.AbstractDocument.startRewriteSession(AbstractDocument.java:1550)
at org.eclipse.core.internal.filebuffers.SynchronizableDocument.startRewriteSession(SynchronizableDocument.java:98)
at org.eclipse.ltk.core.refactoring.TextChange.performEdits(TextChange.java:271)
at org.eclipse.ltk.core.refactoring.TextChange.perform(TextChange.java:238)
at org.eclipse.ltk.core.refactoring.CompositeChange.perform(CompositeChange.java:278)
at org.eclipse.ltk.core.refactoring.CompositeChange.perform(CompositeChange.java:278)
at org.eclipse.ltk.core.refactoring.PerformChangeOperation$1.run(PerformChangeOperation.java:260)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
at org.eclipse.ltk.core.refactoring.PerformChangeOperation.executeChange(PerformChangeOperation.java:308)
at org.eclipse.ltk.internal.ui.refactoring.UIPerformChangeOperation.executeChange(UIPerformChangeOperation.java:92)
at org.eclipse.ltk.core.refactoring.PerformChangeOperation.run(PerformChangeOperation.java:225)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
at org.eclipse.ltk.internal.ui.refactoring.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:87)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)!ENTRY org.eclipse.ltk.ui.refactoring 4 4 2010-09-09 13:15:09.513
!MESSAGE Invalid thread access
!STACK 0
org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.swt.SWT.error(SWT.java:3884)
at org.eclipse.swt.SWT.error(SWT.java:3799)
at org.eclipse.swt.SWT.error(SWT.java:3770)
at org.eclipse.swt.widgets.Widget.error(Widget.java:463)
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:355)
at org.eclipse.swt.custom.StyledText.getBlockSelection(StyledText.java:3484)
at org.eclipse.jface.text.TextViewer.getSelection(TextViewer.java:2523)
at org.eclipse.jface.text.TextViewer$ViewerState.connect(TextViewer.java:1283)
at org.eclipse.jface.text.TextViewer$ViewerState.<init>(TextViewer.java:1172)
at org.eclipse.jface.text.TextViewer.disableRedrawing(TextViewer.java:5071)
at org.eclipse.jface.text.TextViewer.setRedraw(TextViewer.java:5109)
at org.eclipse.jface.text.TextViewer.setRedraw(TextViewer.java:5089)
at org.eclipse.jface.text.TextViewer$RewriteTarget.setRedraw(TextViewer.java:1065)
at org.eclipse.jface.text.TextViewer$DocumentRewriteSessionListener.documentRewriteSessionChanged(TextViewer.java:1465)
at org.eclipse.jface.text.AbstractDocument.fireRewriteSessionChanged(AbstractDocument.java:1524)
at org.eclipse.jface.text.AbstractDocument.startRewriteSession(AbstractDocument.java:1550)
at org.eclipse.core.internal.filebuffers.SynchronizableDocument.startRewriteSession(SynchronizableDocument.java:98)
at org.eclipse.ltk.core.refactoring.TextChange.performEdits(TextChange.java:271)
at org.eclipse.ltk.core.refactoring.TextChange.perform(TextChange.java:238)
at org.eclipse.ltk.core.refactoring.CompositeChange.perform(CompositeChange.java:278)
at org.eclipse.ltk.core.refactoring.CompositeChange.perform(CompositeChange.java:278)
at org.eclipse.ltk.core.refactoring.PerformChangeOperation$1.run(PerformChangeOperation.java:260)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
at org.eclipse.ltk.core.refactoring.PerformChangeOperation.executeChange(PerformChangeOperation.java:308)
at org.eclipse.ltk.internal.ui.refactoring.UIPerformChangeOperation.executeChange(UIPerformChangeOperation.java:92)
at org.eclipse.ltk.core.refactoring.PerformChangeOperation.run(PerformChangeOperation.java:225)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
at org.eclipse.ltk.internal.ui.refactoring.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:87)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
support-shaliniMemberandrewb,
I could replicate this at my end. I have raised a PR with the dev team.
Thank you for bringing this up. -
AuthorPosts