<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question NiFi 1.19.1 with JAVA 11 fails to start a DBCP Connection Pool in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NiFi-1-19-1-with-JAVA-11-fails-to-start-a-DBCP-Connection/m-p/362386#M238774</link>
    <description>&lt;P&gt;So guys,&lt;BR /&gt;&lt;BR /&gt;Need your help with something with which I have been struggling in the last couple of days. I just installed a NiFi cluster, composed of 5 machines. I have used NiFI 1.19.1 as it is the latest version.&lt;BR /&gt;&lt;BR /&gt;Now, when trying to create a DBCP Connection Pool, I keep on receiving the below error messages. Beside these two, I receive plenty more with other classes. Right now, I am using "openjdk version "11.0.8" 2020-07-14 LTS" so thereafter I have uploaded ojdbc11.jar in my lib folder, on all servers. Afterwards I have restarted each server and tried to create a new DBCP Connection Pool, but kept on receiving the these error messages.&lt;BR /&gt;&lt;SPAN&gt;Database Connection URL&lt;/SPAN&gt; = jdbc:oracle:thin:@HOSTNAME:PORT/SERVICE&lt;BR /&gt;&lt;SPAN&gt;Database Driver Class Name&lt;/SPAN&gt; = oracle.jdbc.driver.OracleDriver&lt;BR /&gt;&lt;SPAN&gt;Database Driver Location(s)&lt;/SPAN&gt; = /opt/nifi-1.19.1/lib/ojdbc11.jar&lt;BR /&gt;&lt;BR /&gt;Do you know what might be the cause of this problem? On a cluster of servers with java 8 I do not encounter such issues.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2023-01-27 18:00:08,841 ERROR [Timer-Driven Process Thread-78] o.a.n.c.s.StandardControllerServiceNode StandardControllerServiceNode[service=DBCPConnectionPool[id=d3031de0-b6a9-311c-beef-d0d9bcb59605], name=[PROD] PostgreSQL DB Connection, active=true] Failed to invoke @OnEnabled method&lt;BR /&gt;java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.dbcp2.BasicDataSource&lt;BR /&gt;at org.apache.nifi.dbcp.AbstractDBCPConnectionPool.onConfigured(AbstractDBCPConnectionPool.java:389)&lt;BR /&gt;at jdk.internal.reflect.GeneratedMethodAccessor611.invoke(Unknown Source)&lt;BR /&gt;at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt;at java.base/java.lang.reflect.Method.invoke(Method.java:566)&lt;BR /&gt;at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:145)&lt;BR /&gt;at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:133)&lt;BR /&gt;at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:78)&lt;BR /&gt;at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotation(ReflectionUtils.java:55)&lt;BR /&gt;at org.apache.nifi.controller.service.StandardControllerServiceNode$2.run(StandardControllerServiceNode.java:598)&lt;BR /&gt;at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)&lt;BR /&gt;at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)&lt;BR /&gt;at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)&lt;BR /&gt;at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)&lt;BR /&gt;at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)&lt;BR /&gt;at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)&lt;BR /&gt;at java.base/java.lang.Thread.run(Thread.java:834)&lt;BR /&gt;2023-01-27 18:01:11,997 ERROR [Timer-Driven Process Thread-50] o.a.n.c.s.StandardControllerServiceNode StandardControllerServiceNode[service=DBCPConnectionPool[id=f3f22e9b-0185-1000-ffff-ffffed3b34e0], name=DBCPConnectionPool, active=true] Failed to invoke @OnEnabled method&lt;BR /&gt;java.lang.NoClassDefFoundError: Could not initialize class oracle.jdbc.OracleDriver&lt;BR /&gt;at java.base/java.lang.Class.forName0(Native Method)&lt;BR /&gt;at java.base/java.lang.Class.forName(Class.java:398)&lt;BR /&gt;at java.sql/java.sql.DriverManager.isDriverAllowed(DriverManager.java:555)&lt;BR /&gt;at java.sql/java.sql.DriverManager.isDriverAllowed(DriverManager.java:547)&lt;BR /&gt;at java.sql/java.sql.DriverManager.getDrivers(DriverManager.java:449)&lt;BR /&gt;at java.sql/java.sql.DriverManager.getDrivers(DriverManager.java:426)&lt;BR /&gt;at org.apache.commons.dbcp2.BasicDataSource.&amp;lt;clinit&amp;gt;(BasicDataSource.java:73)&lt;BR /&gt;at org.apache.nifi.dbcp.AbstractDBCPConnectionPool.onConfigured(AbstractDBCPConnectionPool.java:389)&lt;BR /&gt;at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;BR /&gt;at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt;at java.base/java.lang.reflect.Method.invoke(Method.java:566)&lt;BR /&gt;at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:145)&lt;BR /&gt;at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:133)&lt;BR /&gt;at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:78)&lt;BR /&gt;at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotation(ReflectionUtils.java:55)&lt;BR /&gt;at org.apache.nifi.controller.service.StandardControllerServiceNode$2.run(StandardControllerServiceNode.java:598)&lt;BR /&gt;at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)&lt;BR /&gt;at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)&lt;BR /&gt;at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)&lt;BR /&gt;at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)&lt;BR /&gt;at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)&lt;BR /&gt;at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)&lt;BR /&gt;at java.base/java.lang.Thread.run(Thread.java:834)&lt;/P&gt;</description>
    <pubDate>Fri, 27 Jan 2023 16:42:30 GMT</pubDate>
    <dc:creator>cotopaul</dc:creator>
    <dc:date>2023-01-27T16:42:30Z</dc:date>
    <item>
      <title>NiFi 1.19.1 with JAVA 11 fails to start a DBCP Connection Pool</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-1-19-1-with-JAVA-11-fails-to-start-a-DBCP-Connection/m-p/362386#M238774</link>
      <description>&lt;P&gt;So guys,&lt;BR /&gt;&lt;BR /&gt;Need your help with something with which I have been struggling in the last couple of days. I just installed a NiFi cluster, composed of 5 machines. I have used NiFI 1.19.1 as it is the latest version.&lt;BR /&gt;&lt;BR /&gt;Now, when trying to create a DBCP Connection Pool, I keep on receiving the below error messages. Beside these two, I receive plenty more with other classes. Right now, I am using "openjdk version "11.0.8" 2020-07-14 LTS" so thereafter I have uploaded ojdbc11.jar in my lib folder, on all servers. Afterwards I have restarted each server and tried to create a new DBCP Connection Pool, but kept on receiving the these error messages.&lt;BR /&gt;&lt;SPAN&gt;Database Connection URL&lt;/SPAN&gt; = jdbc:oracle:thin:@HOSTNAME:PORT/SERVICE&lt;BR /&gt;&lt;SPAN&gt;Database Driver Class Name&lt;/SPAN&gt; = oracle.jdbc.driver.OracleDriver&lt;BR /&gt;&lt;SPAN&gt;Database Driver Location(s)&lt;/SPAN&gt; = /opt/nifi-1.19.1/lib/ojdbc11.jar&lt;BR /&gt;&lt;BR /&gt;Do you know what might be the cause of this problem? On a cluster of servers with java 8 I do not encounter such issues.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2023-01-27 18:00:08,841 ERROR [Timer-Driven Process Thread-78] o.a.n.c.s.StandardControllerServiceNode StandardControllerServiceNode[service=DBCPConnectionPool[id=d3031de0-b6a9-311c-beef-d0d9bcb59605], name=[PROD] PostgreSQL DB Connection, active=true] Failed to invoke @OnEnabled method&lt;BR /&gt;java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.dbcp2.BasicDataSource&lt;BR /&gt;at org.apache.nifi.dbcp.AbstractDBCPConnectionPool.onConfigured(AbstractDBCPConnectionPool.java:389)&lt;BR /&gt;at jdk.internal.reflect.GeneratedMethodAccessor611.invoke(Unknown Source)&lt;BR /&gt;at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt;at java.base/java.lang.reflect.Method.invoke(Method.java:566)&lt;BR /&gt;at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:145)&lt;BR /&gt;at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:133)&lt;BR /&gt;at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:78)&lt;BR /&gt;at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotation(ReflectionUtils.java:55)&lt;BR /&gt;at org.apache.nifi.controller.service.StandardControllerServiceNode$2.run(StandardControllerServiceNode.java:598)&lt;BR /&gt;at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)&lt;BR /&gt;at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)&lt;BR /&gt;at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)&lt;BR /&gt;at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)&lt;BR /&gt;at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)&lt;BR /&gt;at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)&lt;BR /&gt;at java.base/java.lang.Thread.run(Thread.java:834)&lt;BR /&gt;2023-01-27 18:01:11,997 ERROR [Timer-Driven Process Thread-50] o.a.n.c.s.StandardControllerServiceNode StandardControllerServiceNode[service=DBCPConnectionPool[id=f3f22e9b-0185-1000-ffff-ffffed3b34e0], name=DBCPConnectionPool, active=true] Failed to invoke @OnEnabled method&lt;BR /&gt;java.lang.NoClassDefFoundError: Could not initialize class oracle.jdbc.OracleDriver&lt;BR /&gt;at java.base/java.lang.Class.forName0(Native Method)&lt;BR /&gt;at java.base/java.lang.Class.forName(Class.java:398)&lt;BR /&gt;at java.sql/java.sql.DriverManager.isDriverAllowed(DriverManager.java:555)&lt;BR /&gt;at java.sql/java.sql.DriverManager.isDriverAllowed(DriverManager.java:547)&lt;BR /&gt;at java.sql/java.sql.DriverManager.getDrivers(DriverManager.java:449)&lt;BR /&gt;at java.sql/java.sql.DriverManager.getDrivers(DriverManager.java:426)&lt;BR /&gt;at org.apache.commons.dbcp2.BasicDataSource.&amp;lt;clinit&amp;gt;(BasicDataSource.java:73)&lt;BR /&gt;at org.apache.nifi.dbcp.AbstractDBCPConnectionPool.onConfigured(AbstractDBCPConnectionPool.java:389)&lt;BR /&gt;at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;BR /&gt;at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt;at java.base/java.lang.reflect.Method.invoke(Method.java:566)&lt;BR /&gt;at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:145)&lt;BR /&gt;at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:133)&lt;BR /&gt;at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:78)&lt;BR /&gt;at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotation(ReflectionUtils.java:55)&lt;BR /&gt;at org.apache.nifi.controller.service.StandardControllerServiceNode$2.run(StandardControllerServiceNode.java:598)&lt;BR /&gt;at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)&lt;BR /&gt;at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)&lt;BR /&gt;at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)&lt;BR /&gt;at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)&lt;BR /&gt;at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)&lt;BR /&gt;at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)&lt;BR /&gt;at java.base/java.lang.Thread.run(Thread.java:834)&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 16:42:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-1-19-1-with-JAVA-11-fails-to-start-a-DBCP-Connection/m-p/362386#M238774</guid>
      <dc:creator>cotopaul</dc:creator>
      <dc:date>2023-01-27T16:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi 1.19.1 with JAVA 11 fails to start a DBCP Connection Pool</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-1-19-1-with-JAVA-11-fails-to-start-a-DBCP-Connection/m-p/363923#M239085</link>
      <description>&lt;P&gt;I was able to identify and solve my problem eventually. It seems that I had an invalid JAR file in the library folder. What I did was to sequentially remove all the "not default" jar files, one by one, restart NiFi after each iteration and eventually I identified the faulty JAR File. Afterwards, I copied all my other JAR Files back into the lib folder, restarted NiFi and that is all, NiFi started without any further issues.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2023 11:02:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-1-19-1-with-JAVA-11-fails-to-start-a-DBCP-Connection/m-p/363923#M239085</guid>
      <dc:creator>cotopaul</dc:creator>
      <dc:date>2023-02-16T11:02:11Z</dc:date>
    </item>
  </channel>
</rss>

