Established Member.. santafebound
Established Member..
885 views

DharmaException: Failed to create operations

Jump to solution

Never seen this before. My project compiles perfectly. What's causing this?

 

I should note that one of my dependencies is downloaded online:

 

<dependency>
<groupId>net.sf.jacob-project</groupId>
<artifactId>jacob</artifactId>
<version>1.14.3</version>
</dependency>

 

 I get this error while importing my plugin to Studio.:

 

com.iconclude.dharma.commons.exception.DharmaException: Failed to create operations
at com.iconclude.dharma.app.dialogue.ActionImportDialog$ArchiveTreeNode.loadChildren(ActionImportDialog.java:157)
at com.iconclude.dharma.app.dialogue.ActionImportDialog$4.valueChanged(ActionImportDialog.java:381)
at javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(DefaultTreeSelectionModel.java:635)
at javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(DefaultTreeSelectionModel.java:1093)
at com.jidesoft.swing.CheckBoxTreeSelectionModel.notifyPathChange(Unknown Source)
at javax.swing.tree.DefaultTreeSelectionModel.addSelectionPaths(DefaultTreeSelectionModel.java:412)
at com.jidesoft.swing.CheckBoxTreeSelectionModel.setBatchMode(Unknown Source)
at com.jidesoft.swing.CheckBoxTreeSelectionModel.addSelectionPaths(Unknown Source)
at com.jidesoft.swing.CheckBoxTreeSelectionModel.addSelectionPaths(Unknown Source)
at com.jidesoft.swing.CheckBoxTree$Handler.toggleSelections(Unknown Source)
at com.jidesoft.swing.CheckBoxTree$Handler.mousePressed(Unknown Source)
at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279)
at java.awt.Component.processMouseEvent(Component.java:6522)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6290)
at java.awt.Container.processEvent(Container.java:2234)
at java.awt.Component.dispatchEventImpl(Component.java:4881)
at java.awt.Container.dispatchEventImpl(Container.java:2292)
at java.awt.Component.dispatchEvent(Component.java:4703)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4530)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462)
at java.awt.Container.dispatchEventImpl(Container.java:2278)
at java.awt.Window.dispatchEventImpl(Window.java:2750)
at java.awt.Component.dispatchEvent(Component.java:4703)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.awt.EventQueue$4.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at com.iconclude.dharma.app.util.DharmaEventQueue.dispatchEvent(DharmaEventQueue.java:123)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109)
at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:184)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:229)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:227)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:227)
at java.awt.Dialog.show(Dialog.java:1084)
at java.awt.Component.show(Component.java:1654)
at java.awt.Component.setVisible(Component.java:1606)
at java.awt.Window.setVisible(Window.java:1014)
at java.awt.Dialog.setVisible(Dialog.java:1005)
at com.iconclude.dharma.app.libraryTreeView.MultiLibTreeActionModel$20.doExecute(MultiLibTreeActionModel.java:2168)
at com.iconclude.dharma.app.actions.AbstractSecureApplicationAction.execute(AbstractSecureApplicationAction.java:22)
at com.iconclude.dharma.app.libraryTreeView.MultiLibTreeActionModel.importWSAction(MultiLibTreeActionModel.java:2208)
at com.iconclude.dharma.app.OperationStudio$16.approve(OperationStudio.java:3048)
at com.iconclude.dharma.app.dialogue.ImportPluginDialog.ok(ImportPluginDialog.java:340)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.iconclude.dharma.app.util.ActionBinding.fireAction(ActionBinding.java:292)
at com.iconclude.dharma.app.util.ActionBinding.actionPerformed(ActionBinding.java:332)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2346)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6525)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6290)
at java.awt.Container.processEvent(Container.java:2234)
at java.awt.Component.dispatchEventImpl(Component.java:4881)
at java.awt.Container.dispatchEventImpl(Container.java:2292)
at java.awt.Component.dispatchEvent(Component.java:4703)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4533)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462)
at java.awt.Container.dispatchEventImpl(Container.java:2278)
at java.awt.Window.dispatchEventImpl(Window.java:2750)
at java.awt.Component.dispatchEvent(Component.java:4703)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.awt.EventQueue$4.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at com.iconclude.dharma.app.util.DharmaEventQueue.dispatchEvent(DharmaEventQueue.java:123)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109)
at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:184)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:229)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:227)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:227)
at java.awt.Dialog.show(Dialog.java:1084)
at java.awt.Component.show(Component.java:1654)
at java.awt.Component.setVisible(Component.java:1606)
at java.awt.Window.setVisible(Window.java:1014)
at java.awt.Dialog.setVisible(Dialog.java:1005)
at com.iconclude.dharma.app.dialogue.ImportPluginDialog.showDialog(ImportPluginDialog.java:68)
at com.iconclude.dharma.app.OperationStudio.importPlugin(OperationStudio.java:3066)
at com.iconclude.dharma.app.libraryTreeView.MultiLibTreeActionModel.importPlugin(MultiLibTreeActionModel.java:2147)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.iconclude.dharma.app.util.ActionBinding.fireAction(ActionBinding.java:292)
at com.iconclude.dharma.app.util.ActionBinding.actionPerformed(ActionBinding.java:332)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2346)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
at com.jidesoft.plaf.vsnet.VsnetMenuItemUI.doClick(Unknown Source)
at com.jidesoft.plaf.vsnet.VsnetMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Component.java:6525)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6290)
at java.awt.Container.processEvent(Container.java:2234)
at java.awt.Component.dispatchEventImpl(Component.java:4881)
at java.awt.Container.dispatchEventImpl(Container.java:2292)
at java.awt.Component.dispatchEvent(Component.java:4703)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4533)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462)
at java.awt.Container.dispatchEventImpl(Container.java:2278)
at java.awt.Window.dispatchEventImpl(Window.java:2750)
at java.awt.Component.dispatchEvent(Component.java:4703)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.awt.EventQueue$4.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at com.iconclude.dharma.app.util.DharmaEventQueue.dispatchEvent(DharmaEventQueue.java:123)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: java.lang.RuntimeException: Failed to resolve goals for plugin [myGroupTest-generate:myArtifactTest-generate-plugin:1.0.0]
at com.hp.oo.maven.PluginAdapterImpl.createPluginGoals(PluginAdapterImpl.java:439)
at com.hp.oo.maven.PluginAdapterImpl.getPluginGoals(PluginAdapterImpl.java:397)
at com.hp.oo.maven.PluginAdapterImpl.getActionMetadata(PluginAdapterImpl.java:282)
at com.iconclude.dharma.services.PluginExecutorServiceImpl.executeActionsMetadata(PluginExecutorServiceImpl.java:62)
at com.iconclude.dharma.services.PluginManagementUtility.loadActionsMetadata(PluginManagementUtility.java:127)
at com.iconclude.dharma.services.PluginManagementUtility.loadActionsMetadata(PluginManagementUtility.java:107)
at com.iconclude.dharma.app.libraryTreeView.ImportPluginCommand.importSinglePlugin(ImportPluginCommand.java:38)
at com.iconclude.dharma.app.dialogue.ImportPluginDialog.executeImport(ImportPluginDialog.java:333)
at com.iconclude.dharma.app.OperationStudio$16$1.construct(OperationStudio.java:3028)
at com.iconclude.dharma.app.dialogue.TaskProgressDialog$1.doInBackground(TaskProgressDialog.java:346)
at javax.swing.SwingWorker$1.call(SwingWorker.java:295)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at javax.swing.SwingWorker.run(SwingWorker.java:334)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: Unable to execute mojo: java.lang.reflect.InvocationTargetException
at com.hp.oo.maven.execution.PluginExecutorImpl.execute(PluginExecutorImpl.java:298)
at com.hp.oo.maven.execution.PluginExecutorImpl.execute(PluginExecutorImpl.java:242)
at com.hp.oo.maven.PluginAdapterImpl.getPluginMetadata(PluginAdapterImpl.java:469)
at com.hp.oo.maven.PluginAdapterImpl.createPluginGoals(PluginAdapterImpl.java:413)
... 15 more
Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to execute mojo
at org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo(MojoExecutor.java:96)
at com.hp.oo.maven.execution.PluginExecutorImpl.execute(PluginExecutorImpl.java:288)
... 18 more
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at org.twdata.maven.mojoexecutor.MavenCompatibilityHelper.loadPluginDescriptor(MavenCompatibilityHelper.java:78)
at org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo(MojoExecutor.java:85)
... 19 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.twdata.maven.mojoexecutor.MavenCompatibilityHelper.loadPluginDescriptor(MavenCompatibilityHelper.java:73)
... 20 more
Caused by: org.apache.maven.plugin.PluginResolutionException: Plugin myGroupTest-generate:myArtifactTest-generate-plugin:1.0.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for myGroupTest-generate:myArtifactTest-generate-plugin:jar:1.0.0
at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:122)
at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getPluginDescriptor(DefaultMavenPluginManager.java:148)
at org.apache.maven.plugin.DefaultBuildPluginManager.loadPlugin(DefaultBuildPluginManager.java:81)
... 25 more
Caused by: org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for myGroupTest-generate:myArtifactTest-generate-plugin:jar:1.0.0
at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:370)
at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:217)
at org.eclipse.aether.internal.impl.DefaultRepositorySystem.readArtifactDescriptor(DefaultRepositorySystem.java:288)
at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:108)
... 27 more
Caused by: org.apache.maven.model.resolution.UnresolvableModelException: Cannot access (C:\Users\MNXE\.oo\data\maven) in offline mode and the artifact myGroupTest-generate:myArtifactTest-generate:pom:1.0.0 has not been downloaded from it before.
at org.apache.maven.repository.internal.DefaultModelResolver.resolveModel(DefaultModelResolver.java:126)
at org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:817)
at org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:669)
at org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:307)
at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:361)
... 30 more
Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Cannot access (C:\Users\MNXE\.oo\data\maven) in offline mode and the artifact myGroupTest-generate:myArtifactTest-generate:pom:1.0.0 has not been downloaded from it before.
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:459)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:262)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:239)
at org.apache.maven.repository.internal.DefaultModelResolver.resolveModel(DefaultModelResolver.java:122)
... 34 more
Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Cannot access (C:\Users\MNXE\.oo\data\maven) in offline mode and the artifact myGroupTest-generate:myArtifactTest-generate:pom:1.0.0 has not been downloaded from it before.
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:406)
... 37 more
Caused by: org.eclipse.aether.transfer.RepositoryOfflineException: Cannot access (C:\Users\MNXE\.oo\data\maven) in offline mode
at org.eclipse.aether.internal.impl.DefaultOfflineController.checkOffline(DefaultOfflineController.java:83)
at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:402)
... 37 more

Labels (1)
0 Likes
1 Solution

Accepted Solutions
ligia_centea
New Member.

Re: DharmaException: Failed to create operations

Jump to solution

Hi,

I suppose that you also have a content pack named myArtifactTest-generate-cp-[version].jar. If you successfully built your OO project, you will find this cp under myArtifactTest-generate-cp/target folder. You could try to import this CP in Studio first, in order to import all its dependencies in the OO maven repository.

After that, whenever you modify your plugin, you will be able to reimport it, because all its dependencies will already be in the repository

Hope it helps,

Ligia 

2 Replies
ligia_centea
New Member.

Re: DharmaException: Failed to create operations

Jump to solution

Hi,

I suppose that you also have a content pack named myArtifactTest-generate-cp-[version].jar. If you successfully built your OO project, you will find this cp under myArtifactTest-generate-cp/target folder. You could try to import this CP in Studio first, in order to import all its dependencies in the OO maven repository.

After that, whenever you modify your plugin, you will be able to reimport it, because all its dependencies will already be in the repository

Hope it helps,

Ligia 

Established Member.. santafebound
Established Member..

Re: DharmaException: Failed to create operations

Jump to solution

Awesome. This worked. Thanks.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.