Nadeem, You should not be placing any jar file into nifi’s lib directory. Doing so will load the jar into all classloaders in the system. Instead, you should place the jar outside of the lib/ directory and then configure the controller service to point to the jar file, wherever it is placed.
Thanks -Mark Sent from my iPhone > On Dec 27, 2017, at 9:33 AM, Mohammed Nadeem <[email protected]> wrote: > > Thanks Milan, I have doubt here. > > When i execute my custom processor keeping ojdbc14.jar for Oracle 8i in my > nifi-lib folder then custom processor works fine, but when i execute > processor for Oracle 11 g then its throwing me an error "NoSuchMethodError > Oracle.jdbc.OracleConnection.createOracleArray()" though i have ojdbc7.jar > as my dependency in my maven setup. I think it is trying to load only > ojdbc14.jar from where its not able to find that method ( I decompiled the > ojdbc14.jar and it doesn't support that method) only ojdbc7.jar supports. If > do reverse where i place ojdbc7.jar first then oracle 8i is throwing error. > > I feel like dbcp connection pool is loading only one driver which will be > enabled first. if ojdbc7.jar is enabled then only that will be used through > out Nifi instance.. Loading other ojdbc driver will be useless i feel. Not > Sure whether im correct or not. > > Could you please help me here. > > > > -- > Sent from: http://apache-nifi-developer-list.39713.n7.nabble.com/
