[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-7047) Exception when trying to map from input to XML/XSD template without java class in middle

Tom Fennelly (JIRA) jira-events at lists.jboss.org
Mon Sep 13 17:05:12 EDT 2010


    [ https://jira.jboss.org/browse/JBIDE-7047?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12550649#action_12550649 ] 

Tom Fennelly commented on JBIDE-7047:
-------------------------------------

There's also another issue not fixed here however... JBIDE-7054

> Exception when trying to map from input to XML/XSD template without java class in middle
> ----------------------------------------------------------------------------------------
>
>                 Key: JBIDE-7047
>                 URL: https://jira.jboss.org/browse/JBIDE-7047
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: smooks
>    Affects Versions: 3.2.0.Beta
>            Reporter: Brian Fitzpatrick
>            Assignee: Tom Fennelly
>             Fix For: 3.2.0.Beta
>
>         Attachments: books.xml, NewXMLSchema.xsd
>
>
> While testing the latest round of fixes, I hit upon a weird error. I can map into complex types in the template, but not simple ones at the root of the template model. 
> I'll attach the XML input and XSD output that I used to test, but it fails when I try to map to the book owner element. 
> !ENTRY org.eclipse.ui 4 0 2010-09-09 13:15:41.251
> !MESSAGE Unhandled event loop exception
> !STACK 0
> java.lang.RuntimeException: java.lang.IllegalStateException: Invalid call to getTargetConnectionObjectRef() for non AbstractXMLObject connection source.
> 	at org.jboss.tools.smooks.graphical.editors.SmooksGraphicalEditorPart$1.execute(SmooksGraphicalEditorPart.java:168)
> 	at org.eclipse.gef.tools.AbstractTool.executeCommand(AbstractTool.java:426)
> 	at org.eclipse.gef.tools.AbstractTool.executeCurrentCommand(AbstractTool.java:443)
> 	at org.eclipse.gef.tools.AbstractConnectionCreationTool.handleCreateConnection(AbstractConnectionCreationTool.java:256)
> 	at org.eclipse.gef.tools.ConnectionDragCreationTool.handleButtonUp(ConnectionDragCreationTool.java:63)
> 	at org.eclipse.gef.tools.AbstractTool.mouseUp(AbstractTool.java:1206)
> 	at org.eclipse.gef.tools.SelectionTool.mouseUp(SelectionTool.java:572)
> 	at org.eclipse.gef.EditDomain.mouseUp(EditDomain.java:301)
> 	at org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMouseReleased(DomainEventDispatcher.java:380)
> 	at org.eclipse.draw2d.LightweightSystem$EventHandler.mouseUp(LightweightSystem.java:548)
> 	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:213)
> 	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
> 	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3552)
> 	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3171)
> 	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2629)
> 	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593)
> 	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2427)
> 	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
> 	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> 	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:663)
> 	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
> 	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
> 	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
> 	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:369)
> 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
> 	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:597)
> 	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
> 	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
> 	at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
> 	at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
> Caused by: java.lang.IllegalStateException: Invalid call to getTargetConnectionObjectRef() for non AbstractXMLObject connection source.
> 	at org.jboss.tools.smooks.gef.tree.model.TreeNodeConnection.getTargetConnectionObjectRef(TreeNodeConnection.java:155)
> 	at org.jboss.tools.smooks.graphical.editors.model.freemarker.FreemarkerTemplateNodeGraphicalModel.addTargetConnection(FreemarkerTemplateNodeGraphicalModel.java:189)
> 	at org.jboss.tools.smooks.gef.tree.model.TreeNodeConnection.connectTarget(TreeNodeConnection.java:83)
> 	at org.jboss.tools.smooks.gef.tree.model.TreeNodeConnection.connect(TreeNodeConnection.java:70)
> 	at org.jboss.tools.smooks.gef.tree.editparts.CreateConnectionCommand.execute(CreateConnectionCommand.java:57)
> 	at org.eclipse.gef.commands.CommandStack.execute(CommandStack.java:197)
> 	at org.jboss.tools.smooks.graphical.editors.SmooksGraphicalEditorPart$1.execute(SmooksGraphicalEditorPart.java:163)
> 	... 35 more

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list