Bug 1116788 - Unable to create resource-adapter resource
Summary: Unable to create resource-adapter resource
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: Plugin -- JBoss EAP 6
Version: JON 3.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: JON 3.3.1
Assignee: Libor Zoubek
QA Contact: Mike Foley
URL:
Whiteboard:
: 1135614 (view as bug list)
Depends On: 1129400
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-07-07 10:18 UTC by Libor Zoubek
Modified: 2018-12-06 17:54 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-09-08 14:57:10 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 1175413 0 None None None 2018-12-06 17:54:18 UTC

Description Libor Zoubek 2014-07-07 10:18:23 UTC
Description of problem:

I am not able to create resource-adapter. 

Version-Release number of selected component (if applicable):
RHQ 4.12-master + EAP 6.2.4

How reproducible: always


Steps to Reproduce:
1. deploy a .rar archive on your standalone EAP (ie http://search.maven.org/remotecontent?filepath=org/apache/activemq/activemq-rar/5.10.0/activemq-rar-5.10.0.rar)
2. go to resource-adapters subsystem
3. create new "Resource Adapter" resource, set archive to "activemq-rar.rar"

Actual results:
it fails
JBAS014749: Operation handler failed: null, rolled-back=true

Expected results:
resource is created


Additional info:

I've been investigating this and there seems to be bug in EAP.

via CLI, i can successfully create adapter using 

/subsystem=resource-adapters/resource-adapter=xxx:add(archive=activemq-rar.rar,transaction-support=NoTransaction)

but when AS7 plugin sends it's request via EAP6 HTTP API, it fails

{"operation":"add","address":[{"subsystem":"resource-adapters"},{"resource-adapter":"xxx"}],"archive":"activemq-rar.rar","transaction-support":"NoTransaction"}

Comment 1 Libor Zoubek 2014-07-07 10:25:54 UTC
EAP6 stacktrace


12:24:26,557 ERROR [org.jboss.as.controller.management-operation] (HttpManagementService-threads - 6) JBAS014612: Operation ("add") failed - address: ([
    {"subsystem" => "resource-adapters"},
    {"resource-adapter" => "xxx"}
]): java.lang.IllegalArgumentException
	at org.jboss.dmr.ModelValue.getChild(ModelValue.java:120) [jboss-dmr-1.2.0.Final-redhat-1.jar:1.2.0.Final-redhat-1]
	at org.jboss.dmr.ModelNode.get(ModelNode.java:903) [jboss-dmr-1.2.0.Final-redhat-1.jar:1.2.0.Final-redhat-1]
	at org.jboss.as.connector.subsystems.resourceadapters.RaOperationUtil.buildResourceAdaptersObject(RaOperationUtil.java:145)
	at org.jboss.as.connector.subsystems.resourceadapters.RaAdd.performRuntime(RaAdd.java:76)
	at org.jboss.as.controller.AbstractAddStepHandler$1.execute(AbstractAddStepHandler.java:76) [jboss-as-controller-7.3.4.Final-redhat-1.jar:7.3.4.Final-redhat-1]
	at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:601) [jboss-as-controller-7.3.4.Final-redhat-1.jar:7.3.4.Final-redhat-1]
	at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:479) [jboss-as-controller-7.3.4.Final-redhat-1.jar:7.3.4.Final-redhat-1]

Comment 2 Michael Burman 2014-09-06 09:33:02 UTC
*** Bug 1135614 has been marked as a duplicate of this bug. ***

Comment 3 Jay Shaughnessy 2014-09-08 14:51:26 UTC
This is due to EAP6 Bug 1129400 which is fixed and slated for release in EAP 6.4.  It should work on EAP 6.4 or equivalent WildFly.  Until then the JBoss CLI workaround is likely the way to do this.


Note You need to log in before you can comment on or make changes to this bug.