[jbosstools-issues] [JBoss JIRA] (JBIDE-13131) Beans XML 1.0 Editor throws XModelException: Cannot add new object to model

Alexey Kazakov (JIRA) jira-events at lists.jboss.org
Tue Dec 4 14:03:22 EST 2012


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

Alexey Kazakov commented on JBIDE-13131:
----------------------------------------

The step #6 is not available anymore. Pushed to master.
                
> Beans XML 1.0 Editor throws XModelException: Cannot add new object to model
> ---------------------------------------------------------------------------
>
>                 Key: JBIDE-13131
>                 URL: https://issues.jboss.org/browse/JBIDE-13131
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: CDI
>    Affects Versions: 4.0.0.CR1
>         Environment: Ubuntu, jbdevstudio-product-eap-universal-6.0.0.CR1-v20121118-2035-B111.jar
>            Reporter: Daniel Azarov
>            Assignee: Viacheslav Kabanovich
>             Fix For: 4.1.0.Alpha1
>
>
> Test case:
> EXECUTE:
> 1. Create CDI project
> 2. Open beans.xml in Beans XML 1.0 Editor
> 3. Select New->Weld->Scan... context menu on beans.xml node in Tree tab
> 4. Select action "Add Include/Exclude" on Scan node, type name "include" then press button "Finish"
> 5. Select action "Add System Property" on node "include", type name and value then press button "Finish"
> 6. Try to Add System Property to System Property
> FAIL:
> {code}
> org.jboss.tools.common.model.XModelException: Cannot add new object to model.
> 	at org.jboss.tools.common.meta.action.impl.handlers.DefaultCreateHandler.addCreatedObject(DefaultCreateHandler.java:182)
> 	at org.jboss.tools.common.meta.action.impl.handlers.DefaultCreateHandler.addCreatedObject(DefaultCreateHandler.java:169)
> 	at org.jboss.tools.common.meta.action.impl.handlers.DefaultCreateHandler.addCreatedObject(DefaultCreateHandler.java:143)
> 	at org.jboss.tools.common.meta.action.impl.handlers.DefaultCreateHandler.executeHandler(DefaultCreateHandler.java:49)
> 	at org.jboss.tools.common.meta.action.impl.XActionImpl.executeHandler(XActionImpl.java:65)
> 	at org.jboss.tools.common.model.ui.wizards.SpecialWizardSupportOneImpl.action(OneStepWizard.java:54)
> 	at org.jboss.tools.common.model.ui.wizards.standard.DefaultStandardWizard.performFinish(DefaultStandardWizard.java:39)
> 	at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:827)
> 	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:432)
> 	at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
> 	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
> 	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1276)
> 	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3554)
> 	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3179)
> 	at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
> 	at org.eclipse.jface.window.Window.open(Window.java:801)
> 	at org.jboss.tools.common.model.ui.wizards.special.DefaultSpecialWizard.execute(DefaultSpecialWizard.java:54)
> 	at org.jboss.tools.common.model.ui.wizards.OneStepWizard.execute(OneStepWizard.java:38)
> 	at org.jboss.tools.common.model.ui.action.XModelObjectAction.actionPerformed(XModelObjectAction.java:114)
> 	at org.jboss.tools.common.model.ui.action.XModelObjectAction$AL.widgetSelected(XModelObjectAction.java:131)
> 	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
> 	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1276)
> 	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3554)
> 	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3179)
> 	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1029)
> 	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> 	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923)
> 	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
> 	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
> 	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> 	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
> 	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
> 	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
> 	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:353)
> 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:601)
> 	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
> 	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
> 	at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
> 	at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list