[
https://jira.jboss.org/jira/browse/JBESB-1951?page=com.atlassian.jira.plu...
]
Kevin Conner closed JBESB-1951.
-------------------------------
Fix Version/s: 4.4 CP1
(was: 4.4 CP2)
Resolution: Done
Unable to use JCA Gateway with custom jcaBridge
------------------------------------------------
Key: JBESB-1951
URL:
https://jira.jboss.org/jira/browse/JBESB-1951
Project: JBoss ESB
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Adapters
Affects Versions: 4.3
Environment: Windows XP, jdk 1.5.0_15, JBoss AS 4.2.2
Reporter: Peter Mischke
Assignee: Kevin Conner
Fix For: 4.4 CP1, 4.5
I'm using the following JCA gateway configuration:
<jca-gateway name="SOAP-Gateway"
endpointClass="com.example.SOAPGateway"
transacted="false"
jcaBridge="com.example.SomeBridge"
adapter="soapadapter-1.0-SNAPSHOT.rar">
<activation-config>
<property name="someName" value="someValue" />
</activation-config>
</jca-gateway>
The important parameter in this example is: jcaBridge="com.example.SomeBridge"
During start-up of the ESB module, I get the following exception:
Caused by: org.jboss.soa.esb.listeners.lifecycle.ManagedLifecycleException: Unexpected
exception while instantiating managed instance
at
org.jboss.soa.esb.listeners.LifecycleUtil.getManagedInstances(LifecycleUtil.java:158)
at org.jboss.soa.esb.listeners.LifecycleUtil.getGateways(LifecycleUtil.java:103)
at org.jboss.soa.esb.listeners.config.Configuration.create(Configuration.java:113)
... 46 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at
org.jboss.soa.esb.listeners.LifecycleUtil.getManagedInstances(LifecycleUtil.java:154)
... 48 more
Caused by: org.jboss.soa.esb.ConfigurationException: Unable to load jcaBridge:
com.example.SomeBridge
at org.jboss.soa.esb.listeners.jca.BaseJcaInflow.<init>(BaseJcaInflow.java:110)
at
org.jboss.soa.esb.listeners.jca.JcaInflowGateway.<init>(JcaInflowGateway.java:44)
... 53 more
Caused by: java.lang.NullPointerException
at
EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap.hash(ConcurrentReaderHashMap.java:298)
at
EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap.get(ConcurrentReaderHashMap.java:410)
at
org.jboss.mx.loading.UnifiedLoaderRepository3.getCachedClass(UnifiedLoaderRepository3.java:222)
at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:403)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.jboss.soa.esb.listeners.jca.BaseJcaInflow.<init>(BaseJcaInflow.java:106)
... 54 more
Looking in the source code (latest version) of
org.jboss.soa.esb.listeners.jca.BaseJcaInflow, I spot the following lines:
String brdg = config.getAttribute(JcaConstants.ATTRIBUTE_JCA_BRIDGE);
if (brdg != null)
{
try
{
bridge = (ActivationBridge) classLoader.loadClass(mt).newInstance();
}
catch (Exception e)
{
throw new ConfigurationException("Unable to load jcaBridge: " +
brdg, e);
}
}
else
{
bridge = new JBoss42ActivationBridge();
}
I suppose, the JCA gateway tries to instantiate the wrong class.
--
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