Bug 737442 - Invalid metadata in ra.xml file
Summary: Invalid metadata in ra.xml file
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-jca
Version: 2.0
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
: ---
Assignee: messaging-bugs
QA Contact: MRG Quality Engineering
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-12 06:33 UTC by Jiri Pechanec
Modified: 2011-09-12 06:44 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-09-12 06:44:25 UTC


Attachments (Terms of Use)

Description Jiri Pechanec 2011-09-12 06:33:39 UTC
We have received a new build of RA - located here
http://download.devel.redhat.com/devel/candidates/misc/qpid_mrg_jca/

In at least one case there are wrong metadata for activation properties. userName was renamed to default username
----------------------
ra.xml
    <config-property>
      <description>User Name</description>
      <config-property-name>UserName</config-property-name>
      <config-property-type>java.lang.String</config-property-type>
      <config-property-value></config-property-value>
    </config-property>

------------------
[jpechane@jpechane deploy]$ javap -classpath qpid-ra-0.10.jar org.apache.qpid.ra.QpidResourceAdapter
Compiled from "QpidResourceAdapter.java"
public class org.apache.qpid.ra.QpidResourceAdapter extends java.lang.Object implements javax.resource.spi.ResourceAdapter,java.io.Serializable{
    public org.apache.qpid.ra.QpidResourceAdapter();
    public javax.transaction.TransactionManager getTM();
    public void endpointActivation(javax.resource.spi.endpoint.MessageEndpointFactory, javax.resource.spi.ActivationSpec)       throws javax.resource.ResourceException;
    public void endpointDeactivation(javax.resource.spi.endpoint.MessageEndpointFactory, javax.resource.spi.ActivationSpec);
    public javax.transaction.xa.XAResource[] getXAResources(javax.resource.spi.ActivationSpec[])       throws javax.resource.ResourceException;
    public void start(javax.resource.spi.BootstrapContext)       throws javax.resource.spi.ResourceAdapterInternalException;
    public void stop();
    public java.lang.String getDefaultUserName();
    public void setDefaultUserName(java.lang.String);
    public java.lang.String getDefaultPassword();
    public void setDefaultPassword(java.lang.String);
    public java.lang.String getClientId();
    public void setClientId(java.lang.String);
    public java.lang.String getHost();
    public void setHost(java.lang.String);
    public java.lang.Integer getPort();
    public void setPort(java.lang.Integer);
    public java.lang.String getPath();
    public void setPath(java.lang.String);
    public java.lang.String getConnectionURL();
    public void setConnectionURL(java.lang.String);
    public java.lang.String getTransactionManagerLocatorClass();
    public void setTransactionManagerLocatorClass(java.lang.String);
    public java.lang.String getTransactionManagerLocatorMethod();
    public void setTransactionManagerLocatorMethod(java.lang.String);
    public java.lang.Boolean getUseLocalTx();
    public void setUseLocalTx(java.lang.Boolean);
    public java.lang.Integer getSetupAttempts();
    public void setSetupAttempts(java.lang.Integer);
    public java.lang.Long getSetupInterval();
    public void setSetupInterval(java.lang.Long);
    public boolean equals(java.lang.Object);
    public int hashCode();
    public javax.resource.spi.work.WorkManager getWorkManager();
    public javax.jms.XASession createXASession(org.apache.qpid.client.XAConnectionImpl)       throws java.lang.Exception;
    public javax.jms.Session createSession(org.apache.qpid.client.AMQConnection, int, boolean, java.lang.Integer, java.lang.Integer)       throws java.lang.Exception;
    protected org.apache.qpid.ra.QpidRAProperties getProperties();
    protected void setup()       throws org.apache.qpid.ra.QpidRAException;
    public org.apache.qpid.client.AMQConnectionFactory getDefaultAMQConnectionFactory()       throws javax.resource.ResourceException;
    public org.apache.qpid.client.AMQConnectionFactory createAMQConnectionFactory(org.apache.qpid.ra.ConnectionFactoryProperties)       throws org.apache.qpid.ra.QpidRAException;
    public java.util.Map overrideConnectionParameters(java.util.Map, java.util.Map);
    static {};
}
----------------
Exception thrown
2011-09-12 08:16:48,563 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController:419] (main) Error installing to Start: name=jboss.jca:name='a.zip',service=RARDeployment state=Create mode=Manual requiredState=Installed
org.jboss.deployers.spi.DeploymentException: Error for resource adapter class org.apache.qpid.ra.QpidResourceAdapter accessing property setter ConfigPropertyMetaData@662ca90c[name=UserName type=java.lang.String value=guest descriptions=[DescriptionMetaData@270b5037[language=en description=Default User Name]]]
        at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
        at org.jboss.resource.deployment.ResourceAdapterFactory.applyProperty(ResourceAdapterFactory.java:116)
        at org.jboss.resource.deployment.ResourceAdapterFactory.createResourceAdapter(ResourceAdapterFactory.java:96)
        at org.jboss.resource.deployment.ResourceAdapterFactory.createResourceAdapter(ResourceAdapterFactory.java:60)
        at org.jboss.resource.deployers.RARDeployment.startService(RARDeployment.java:149)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:322)
        at org.jboss.system.ServiceDynamicMBeanSupport.invoke(ServiceDynamicMBeanSupport.java:124)
        at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
        at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:189)

Comment 1 Jiri Pechanec 2011-09-12 06:44:25 UTC
My bad, I accidentally put two different versions of RA into the same server.


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