[jboss-jira] [JBoss JIRA] (WFLY-9302) JCA Classes expect new wildfly/elytron metadata class types when processing metadata

Flavia Rainone (JIRA) issues at jboss.org
Wed Sep 6 03:44:00 EDT 2017


Flavia Rainone created WFLY-9302:
------------------------------------

             Summary: JCA Classes expect new wildfly/elytron metadata class types when processing metadata
                 Key: WFLY-9302
                 URL: https://issues.jboss.org/browse/WFLY-9302
             Project: WildFly
          Issue Type: Bug
          Components: JCA
            Reporter: Flavia Rainone
            Assignee: Flavia Rainone
            Priority: Critical
             Fix For: 11.0.0.Final


The classes that process metadata inside JBoss AS are always enforcing and expecting the new metadata classes.
As a result, if, say, an old version of the ironjacamar.xml file is processed, the IronJacamar metadata types will be returned instead of the new ones, added to Wildfly, and those class cast/and assertions will fail.
This will result in stack traces as the one below:

{code}
Caused by: org.jboss.jca.deployers.common.DeployException: IJ020056: Deployment failed: file:/store/work/tc-work/a31d203e70e89f90/testsuite/integration/basic/target/jbossas/standalone/tmp/vfs/temp/tempbab5c471e16347e3/content-8f35152e79af20d3/contents/ at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:2064) at org.jboss.as.connector.services.resourceadapters.deployment.ResourceAdapterDeploymentService$WildFLyRaDeployer.doDeploy(ResourceAdapterDeploymentService.java:226) at org.jboss.as.connector.services.resourceadapters.deployment.ResourceAdapterDeploymentService.start(ResourceAdapterDeploymentService.java:124) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955) 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.AssertionError at org.jboss.as.connector.services.resourceadapters.deployment.AbstractResourceAdapterDeploymentService$AbstractWildFlyRaDeployer.getSubjectFactory(AbstractResourceAdapterDeploymentService.java:624) at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:1610) ... 7 more{code}

A thorough check has to be made to reverse those casts and replace them by checks only when Elytron data is needed.





--
This message was sent by Atlassian JIRA
(v7.2.3#72005)



More information about the jboss-jira mailing list