Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-6855

Creation of ActivationSpec fails when recommended properties are unavailable

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • EAP_EWP 5.1.2 ER1
    • EAP 5.0.1
    • JCA
    • None
    • Hide
      When recommended properties in an activation specification were not available, a DeploymentException error such as the following would occur:

      <screen>
      08:20:50,262 ERROR [AbstractKernelController] Error installing to Start: name=jboss.j2ee:binding=message-driven-bean,jndiName=local/gss_mdb_20@32140521,plugin=invoker,service=EJB state=Create mode=Manual requiredState=Installed
      org.jboss.deployment.DeploymentException: Unable to create activation spec ra=jboss.jca:service=RARDeployment,name='wmq.jmsra.rar'
      ...
      </screen>

      The validation of properties has been changed and the following warning message is now output if an unknown or unsupported configuration property is detected:

      <screen>
      17:52:45,801 WARN [ActivationSpecFactory] Unable to set 'foo' property on org.jboss.resource.adapter.jms.inflow.JmsActivationSpec
      </screen>
      Show
      When recommended properties in an activation specification were not available, a DeploymentException error such as the following would occur: <screen> 08:20:50,262 ERROR [AbstractKernelController] Error installing to Start: name=jboss.j2ee:binding=message-driven-bean,jndiName=local/gss_mdb_20@32140521,plugin=invoker,service=EJB state=Create mode=Manual requiredState=Installed org.jboss.deployment.DeploymentException: Unable to create activation spec ra=jboss.jca:service=RARDeployment,name='wmq.jmsra.rar' ... </screen> The validation of properties has been changed and the following warning message is now output if an unknown or unsupported configuration property is detected: <screen> 17:52:45,801 WARN [ActivationSpecFactory] Unable to set 'foo' property on org.jboss.resource.adapter.jms.inflow.JmsActivationSpec </screen>
    • Documented as Resolved Issue
    • NEW

    Description

      JCA 1.5 B.2 recommends the usage of acknowledgeMode and specifies it as optional. The property is however forced into the activation spec during creation.

      08:20:50,262 ERROR [AbstractKernelController] Error installing to Start: name=jboss.j2ee:binding=message-driven-bean,jndiName=local/gss_mdb_20@32140521,plugin=invoker,service=EJB state=Create mode=Manual requiredState=Installed
      org.jboss.deployment.DeploymentException: Unable to create activation spec ra=jboss.jca:service=RARDeployment,name='wmq.jmsra.rar' messaging-type=javax.jms.MessageListener properties={destination=ActivationConfigProperty(destination=GSS.QUEUE), destinationType=ActivationConfigProperty(destinationType=javax.jms.Queue), useJNDI=ActivationConfigProperty(useJNDI=false), maxMessages=ActivationConfigProperty(maxMessages=1), maxPoolDepth=ActivationConfigProperty(maxPoolDepth=1), channel=ActivationConfigProperty(channel=SYSTEM.DEF.SVRCONN), port=ActivationConfigProperty(port=1414), hostName=ActivationConfigProperty(hostName=10.0.0.124), queueManager=ActivationConfigProperty(queueManager=redhat.queue.manager), transportType=ActivationConfigProperty(transportType=CLIENT)}
      ...
      Caused by: org.jboss.deployers.spi.DeploymentException: Error for ActivationSpec class com.ibm.mq.connector.inbound.ActivationSpecImpl as JavaBean
      	at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
      	at org.jboss.resource.deployment.ActivationSpecFactory.createActivationSpec(ActivationSpecFactory.java:135)
      	at org.jboss.resource.deployers.RARDeployment.createActivationSpec(RARDeployment.java:313)
      	at org.jboss.resource.deployers.RARDeployment.internalInvoke(RARDeployment.java:276)
      	at org.jboss.system.ServiceDynamicMBeanSupport.invoke(ServiceDynamicMBeanSupport.java:156)
      	at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
      	at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
      	at org.jboss.ejb.plugins.inflow.JBossMessageEndpointFactory.createActivationSpec(JBossMessageEndpointFactory.java:449)
      	... 142 more
      Caused by: java.beans.IntrospectionException: No property found for: acknowledgeMode on JavaBean: javax.jms.Queue:SYSTEM.DEFAULT.LOCAL.QUEUE@@localhost
      	at org.jboss.util.propertyeditor.PropertyEditors.mapJavaBeanProperties(PropertyEditors.java:354)
      	at org.jboss.util.propertyeditor.PropertyEditors.mapJavaBeanProperties(PropertyEditors.java:285)
      	at org.jboss.resource.deployment.ActivationSpecFactory.createActivationSpec(ActivationSpecFactory.java:129)
      	... 148 more
      

      Attachments

        1. jboss-jca.jar
          301 kB
        2. ra.xml
          6 kB
        3. server.log
          352 kB
        4. wmq.jmsra-ds.xml
          2 kB

        Issue Links

          Activity

            People

              jaikiran Jaikiran Pai (Inactive)
              rhn-engineering-cdewolf Carlo de Wolf
              Russell Dickenson Russell Dickenson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: