You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Harrouchi Taher (Jira)" <ji...@apache.org> on 2025/03/14 15:48:00 UTC

[jira] [Commented] (NIFI-14370) Unable to connect to Tibco EMS 8.5 with ConsumeJMS 2.2.0

    [ https://issues.apache.org/jira/browse/NIFI-14370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17935570#comment-17935570 ] 

Harrouchi Taher commented on NIFI-14370:
----------------------------------------

Hi,

Same probleme with version 2.3.0.

BR,

> Unable to connect to Tibco EMS 8.5 with ConsumeJMS 2.2.0
> --------------------------------------------------------
>
>                 Key: NIFI-14370
>                 URL: https://issues.apache.org/jira/browse/NIFI-14370
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: NiFi API
>    Affects Versions: 2.2.0
>            Reporter: Harrouchi Taher
>            Priority: Blocker
>
> Hi, 
> I'm currently facing a problem connecting to Tibco EMS 8.5 with NiFi 2.2.0 . Here's the error:
> {code:java}
> 2025-03-14 09:28:44,174 ERROR [Verify Controller Service Config Thread-1] o.a.n.c.s.StandardControllerServiceNode Failed to perform verification of Controller Service's configuration for StandardControllerServiceNode[service=JMSConnectionFactoryProvider[id=8728cf04-0195-1000-bdcd-b345ae774819], name=JMSConnectionFactoryProvider, active=false]
> java.lang.IllegalStateException: java.lang.ClassCastException: class com.tibco.tibjms.naming.TibjmsInitialContextFactory cannot be cast to class jakarta.jms.ConnectionFactory (com.tibco.tibjms.naming.TibjmsInitialContextFactory is in unnamed module of loader org.apache.nifi.nar.InstanceClassLoader @35a7d916; jakarta.jms.ConnectionFactory is in unnamed module of loader org.apache.nifi.nar.NarClassLoader @14f3c6fc)
>     at org.apache.nifi.jms.cf.JMSConnectionFactoryHandler.createConnectionFactory(JMSConnectionFactoryHandler.java:76)
>     at org.apache.nifi.jms.cf.CachedJMSConnectionFactoryHandler.getConnectionFactory(CachedJMSConnectionFactoryHandler.java:38)
>     at org.apache.nifi.jms.cf.AbstractJMSConnectionFactoryProvider.verify(AbstractJMSConnectionFactoryProvider.java:77)
>     at org.apache.nifi.controller.service.StandardControllerServiceNode.verifyConfiguration(StandardControllerServiceNode.java:524)
>     at org.apache.nifi.web.dao.impl.StandardControllerServiceDAO.verifyConfiguration(StandardControllerServiceDAO.java:436)
>     at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
>     at java.base/java.lang.reflect.Method.invoke(Method.java:580)
>     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:359)
>     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:196)
>     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
>     at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
>     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:184)
>     at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:727)
>     at org.apache.nifi.web.dao.impl.StandardControllerServiceDAO$$SpringCGLIB$$0.verifyConfiguration(<generated>)
>     at org.apache.nifi.web.StandardNiFiServiceFacade.performControllerServiceConfigVerification(StandardNiFiServiceFacade.java:2972)
>     at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
>     at java.base/java.lang.reflect.Method.invoke(Method.java:580)
>     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:359)
>     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:196)
>     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
>     at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
>     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:184)
>     at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:727)
>     at org.apache.nifi.web.StandardNiFiServiceFacade$$SpringCGLIB$$0.performControllerServiceConfigVerification(<generated>)
>     at org.apache.nifi.web.api.ControllerServiceResource.lambda$performAsyncConfigVerification$28(ControllerServiceResource.java:1084)
>     at org.apache.nifi.web.api.concurrent.AsyncRequestManager.lambda$submitRequest$2(AsyncRequestManager.java:117)
>     at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
>     at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
>     at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
>     at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
>     at java.base/java.lang.Thread.run(Thread.java:1583)
> Caused by: java.lang.ClassCastException: class com.tibco.tibjms.naming.TibjmsInitialContextFactory cannot be cast to class jakarta.jms.ConnectionFactory (com.tibco.tibjms.naming.TibjmsInitialContextFactory is in unnamed module of loader org.apache.nifi.nar.InstanceClassLoader @35a7d916; jakarta.jms.ConnectionFactory is in unnamed module of loader org.apache.nifi.nar.NarClassLoader @14f3c6fc)
>     at org.apache.nifi.jms.cf.JMSConnectionFactoryHandler.createConnectionFactoryInstance(JMSConnectionFactoryHandler.java:86)
>     at org.apache.nifi.jms.cf.JMSConnectionFactoryHandler.createConnectionFactory(JMSConnectionFactoryHandler.java:70)
>     ... 30 common frames omitted {code}
> *I have correctly entered the lib at the config level
> Note that I had no issues with version 1.28.1.
>  
> Best Regards
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)