[jopr-issues] [JBoss JIRA] Created: (JOPR-107) jboss-as-5 plugin: Attempt to create new XA ConnectionFactory Resource fails with ClassCastException while converting "config-property" property from ManagedProperty to RHQ Property

Ian Springer (JIRA) jira-events at lists.jboss.org
Fri Mar 20 15:21:24 EDT 2009


jboss-as-5 plugin: Attempt to create new XA ConnectionFactory Resource fails with ClassCastException while converting "config-property" property from ManagedProperty to RHQ Property
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: JOPR-107
                 URL: https://jira.jboss.org/jira/browse/JOPR-107
             Project: Jopr
          Issue Type: Bug
          Components: Plugin - JBoss AS 5
    Affects Versions: 2.1
            Reporter: Ian Springer
            Assignee: Ian Springer
             Fix For: 2.2


Here's the full stack:

13:43:23,812 INFO  [CreateResourceRunner] Creating resource through report: CreateResourceReport: ResourceType=[ResourceType[id=0, category=Service, name=XA Con
nectionFactory, plugin=JBossAS5]], ResourceKey=[null]
13:43:23,844 DEBUG [ApplicationServerComponent] BEFORE CREATE:
Properties for DeploymentTemplateInfo [TxConnectionFactoryTemplate]:
  name=allocation-retry, mappedName=null, viewUse=NONE, required=false, value=  SimpleMetaType:java.lang.Integer:0
  name=allocation-retry-wait-millis, mappedName=null, viewUse=NONE, required=false, value=  SimpleMetaType:java.lang.Long:5000
* name=background-validation, mappedName=null, viewUse=NONE, required=true, value=  SimpleMetaType:java.lang.Boolean:false
  name=background-validation-millis, mappedName=null, viewUse=NONE, required=false, value=  SimpleMetaType:java.lang.Long:0
* name=blocking-timeout-millis, mappedName=null, viewUse=NONE, required=true, value=  SimpleMetaType:java.lang.Long:30000
  name=config-property, mappedName=null, viewUse=NONE, required=false, type=SimpleMetaType, value=  <<<null>>>
* name=connection-definition, mappedName=null, viewUse=NONE, required=true, type=SimpleMetaType, value=  <<<null>>>
  name=depends, mappedName=null, viewUse=NONE, required=false, type=CollectionMetaType, value=  <<<null>>>
* name=idle-timeout-minutes, mappedName=null, viewUse=NONE, required=true, value=  SimpleMetaType:java.lang.Integer:30
  name=interleaving, mappedName=null, viewUse=NONE, required=false, type=SimpleMetaType, value=  <<<null>>>
* name=isSameRM-override-value, mappedName=null, viewUse=NONE, required=true, type=SimpleMetaType, value=  <<<null>>>
* name=jmx-invoker-name, mappedName=null, viewUse=NONE, required=true, type=SimpleMetaType, value=  <<<null>>>
* name=jndi-name, mappedName=null, viewUse=NONE, required=true, value=  SimpleMetaType:java.lang.String:
* name=local-transaction, mappedName=null, viewUse=NONE, required=true, type=SimpleMetaType, value=  <<<null>>>
* name=max-pool-size, mappedName=null, viewUse=NONE, required=true, value=  SimpleMetaType:java.lang.Integer:10
  name=metadata, mappedName=null, viewUse=NONE, required=false, type=MutableCompositeMetaType, value=  <<<null>>>
* name=min-pool-size, mappedName=null, viewUse=NONE, required=true, value=  SimpleMetaType:java.lang.Integer:0
* name=no-tx-separate-pools, mappedName=null, viewUse=NONE, required=true, type=SimpleMetaType, value=  <<<null>>>
* name=prefill, mappedName=null, viewUse=NONE, required=true, type=SimpleMetaType, value=  <<<null>>>
* name=rar-name, mappedName=null, viewUse=NONE, required=true, type=SimpleMetaType, value=  <<<null>>>
  name=security-domain, mappedName=null, viewUse=NONE, required=false, type=GenericMetaType, value=  <<<null>>>
* name=statistics-formatter, mappedName=null, viewUse=NONE, required=true, type=SimpleMetaType, value=  <<<null>>>
  name=track-connection-by-tx, mappedName=null, viewUse=NONE, required=false, value=  SimpleMetaType:java.lang.Boolean:true
* name=type-mapping, mappedName=null, viewUse=NONE, required=true, type=SimpleMetaType, value=  <<<null>>>
* name=use-java-context, mappedName=null, viewUse=NONE, required=true, value=  SimpleMetaType:java.lang.Boolean:true
* name=use-strict-min, mappedName=null, viewUse=NONE, required=true, type=SimpleMetaType, value=  <<<null>>>
* name=validate-on-match, mappedName=null, viewUse=NONE, required=true, value=  SimpleMetaType:java.lang.Boolean:true
* name=xa-resource-timeout, mappedName=null, viewUse=NONE, required=true, value=  SimpleMetaType:java.lang.Integer:0
* name=xa-transaction, mappedName=null, viewUse=NONE, required=true, type=SimpleMetaType, value=  <<<null>>>

13:43:23,859 DEBUG [ConversionUtils] Converting property PropertyMap[id=0, name=config-property, map={}] with definition PropertyDefinitionMap[id=0, name=config
-property, config=XA ConnectionFactory, group=advanced] to MetaValue with type CollectionMetaType{type=org.jboss.metatype.api.values.CompositeValue elementType=
MutableCompositeMetaType{org.jboss.resource.metadata.mcf.ManagedConnectionFactoryPropertyMetaData}...
13:43:23,859 ERROR [ApplicationServerComponent] Unable to process create request
java.lang.ClassCastException: org.rhq.core.domain.configuration.PropertyMap cannot be cast to org.rhq.core.domain.configuration.PropertyList
        at org.rhq.plugins.jbossas5.adapter.impl.configuration.PropertyListToCollectionValueAdapter.convertToMetaValue(PropertyListToCollectionValueAdapter.java
:48)
        at org.rhq.plugins.jbossas5.util.ConversionUtils.convertConfigurationToManagedProperties(ConversionUtils.java:281)
        at org.rhq.plugins.jbossas5.ApplicationServerComponent.createConfigurationBasedResource(ApplicationServerComponent.java:209)
        at org.rhq.plugins.jbossas5.ApplicationServerComponent.createResource(ApplicationServerComponent.java:131)
        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.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:449)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)
13:43:23,859 WARN  [CreateResourceRunner] Throwable was found in creation report for request [1]: java.lang.ClassCastException: org.rhq.core.domain.configuratio
n.PropertyMap cannot be cast to org.rhq.core.domain.configuration.PropertyList - Enable DEBUG logging to see the stack trace.
13:43:23,859 INFO  [CreateResourceRunner] Sending create response to server: CreateResourceResponse[RequestId=1, Status=Failure]


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

        



More information about the jopr-issues mailing list