facebook

content assist exception in Hibernate Mapping editor

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #261486 Reply

    gadams00
    Member

    I’m using MyEclipse 5.0.1GA with Eclipse 3.2 on Windows XP Pro.

    I’m getting an exception from content assist in the Hibernate mapping editor. It doesn’t happen the first time. It happens if I open a mapping file, use content assist (ctrl-space), close the file, open the file, and use content assist again. The problem persists until I close Eclipse and reopen. Here’s the exception stack trace from the Eclipse error log view:

    java.lang.IllegalStateException: problem getting model
    at org.eclipse.wst.xml.ui.internal.contentassist.AbstractContentAssistProcessor.computeCompletionProposals(AbstractContentAssistProcessor.java:1283)
    at org.eclipse.wst.xml.ui.internal.contentassist.XMLContentAssistProcessor.computeCompletionProposals(XMLContentAssistProcessor.java:113)
    at org.hibernate.eclipse.mapper.editors.HibernateContentAssistProcessor.computeCompletionProposals(HibernateContentAssistProcessor.java:74)
    at org.eclipse.wst.sse.ui.internal.contentassist.CompoundContentAssistProcessor.computeCompletionProposals(CompoundContentAssistProcessor.java:233)
    at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:1612)
    at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:473)
    at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$17(CompletionProposalPopup.java:470)
    at org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run(CompletionProposalPopup.java:405)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
    at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:399)
    at org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleCompletions(ContentAssistant.java:1441)
    at org.eclipse.wst.sse.ui.internal.StructuredTextViewer.doOperation(StructuredTextViewer.java:379)
    at org.eclipse.ui.texteditor.TextOperationAction$1.run(TextOperationAction.java:131)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
    at org.eclipse.ui.texteditor.TextOperationAction.run(TextOperationAction.java:129)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
    at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:185)
    at org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:109)
    at org.eclipse.core.commands.Command.executeWithChecks(Command.java:461)
    at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:424)
    at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:160)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:466)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:799)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:846)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:564)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:506)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:122)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Display.filterEvent(Display.java:982)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:927)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:952)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:937)
    at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:965)
    at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:961)
    at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1275)
    at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:3346)
    at org.eclipse.swt.widgets.Control.windowProc(Control.java:3246)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:4025)
    at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
    at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
    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:585)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
    at org.eclipse.core.launcher.Main.run(Main.java:977)
    at org.eclipse.core.launcher.Main.main(Main.java:952)

    and here’s the session data from the Eclipse error log view:

    eclipse.buildId=M20060629-1905
    java.version=1.5.0_09
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Framework arguments: -product com.genuitec.myeclipse.product.ide
    Command-line arguments: -os win32 -ws win32 -arch x86 -product com.genuitec.myeclipse.product.ide

    #261519 Reply

    Riyad Kalla
    Member

    What are the actual side effects of the problem? Assuming you couldn’t see what is getting written to the log, are you experiencing any other problems? (like autocomplete failing to work?)

    #261522 Reply

    Haris Peco
    Member

    gadams00,

    I can’t reproduce your case.Could you send mapping xml for example

    Thanks,

    #261523 Reply

    gadams00
    Member

    @support-rkalla wrote:

    What are the actual side effects of the problem? Assuming you couldn’t see what is getting written to the log, are you experiencing any other problems? (like autocomplete failing to work?)

    Yes, autocomplete fails to work thereafter.

    #261525 Reply

    gadams00
    Member

    @support-snpe wrote:

    gadams00,

    I can’t reproduce your case.Could you send mapping xml for example

    Thanks,

    Here’s the mapping file:

    <?xml version=”1.0″?>
    <!DOCTYPE hibernate-mapping PUBLIC
    “-//Hibernate/Hibernate Mapping DTD 3.0//EN”
    http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd”&gt;

    <hibernate-mapping package=”com.foo.persist” >

    <class name=”Child” table=”CHI_CHILD” lazy=”true” >
    <id column=”CHI_UID” name=”internalId” type=”long”>
    <generator class=”native” />
    </id>
    <property column=”CHI_ID” name=”childId” type=”string”
    length=”32″>
    </property>

    <many-to-one column=”CHI_PAR_UID” name=”parent” class=”Parent”/>
    </class>

    </hibernate-mapping>

    I tried some more stuff and can’t reliably reproduce either. One way to get it to happen most of the time is to close the mapping editor before the second pane of the content assist shows on screen, then reopen and try to use content assist. Just keep trying to open, use content assist, and use various combinations of saving and discarding changes to the mapping file and reopening and closing the editor. I can easily get it to happen in a minute or so.

    #261575 Reply

    Haris Peco
    Member

    gadams00, ,

    I have reproduced your case and it is filed for fixing.I am not sure when it will be fixed

    Thank you for your feedback and sorry for the inconvience caused

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: content assist exception in Hibernate Mapping editor

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