nifi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (NIFI-869) The logger used by processors, controller services, etc. produces odd message when logging exception
Date Sat, 31 Oct 2015 13:19:27 GMT

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

ASF GitHub Bot commented on NIFI-869:
-------------------------------------

Github user olegz closed the pull request at:

    https://github.com/apache/nifi/pull/110


> The logger used by processors, controller services, etc. produces odd message when logging
exception
> ----------------------------------------------------------------------------------------------------
>
>                 Key: NIFI-869
>                 URL: https://issues.apache.org/jira/browse/NIFI-869
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Mark Payne
>            Assignee: Oleg Zhurakousky
>            Priority: Minor
>             Fix For: 0.4.0
>
>
> An easy way to reproduce this is to add a DBCPConnectionPool controller service and use
an invalid driver class name and attempt to enable the service. You'll see a log message that
indicates "Failed to invoke @OnEnabled method due to {}" as seen below. The "due to {}" part
is weird and should either log a toString of the Exception or should not include the {}
> 2015-08-18 23:01:57,200 ERROR [pool-27-thread-1] o.a.n.c.s.StandardControllerServiceNode
[DBCPConnectionPool[id=a2639013-c688-4080-8bbc-3a604122ae15]] Failed to invoke @OnEnabled
method due to {}
> org.apache.nifi.reporting.InitializationException: org.apache.commons.dbcp.SQLNestedException:
Cannot load JDBC driver class 'com.bogusville.net'
> at org.apache.nifi.dbcp.DBCPConnectionPool.onConfigured(DBCPConnectionPool.java:175)
~[nifi-dbcp-service-0.3.0-SNAPSHOT.jar:0.3.0-SNAPSHOT]
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_45]
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_45]
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[na:1.8.0_45]
> at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_45]
> at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:102)
~[na:na]
> at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotation(ReflectionUtils.java:47)
~[na:na]
> at org.apache.nifi.controller.scheduling.StandardProcessScheduler$6.run(StandardProcessScheduler.java:644)
~[na:na]
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_45]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_45]
> at java.lang.Thread.run(Thread.java:745) [na:1.8.0_45]
> Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot load JDBC driver class
'com.bogusville.net'
> at org.apache.commons.dbcp.BasicDataSource.createConnectionFactory(BasicDataSource.java:1429)
~[commons-dbcp-1.4.jar:1.4]
> at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1371)
~[commons-dbcp-1.4.jar:1.4]
> at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:1044) ~[commons-dbcp-1.4.jar:1.4]
> at org.apache.nifi.dbcp.DBCPConnectionPool.onConfigured(DBCPConnectionPool.java:169)
~[nifi-dbcp-service-0.3.0-SNAPSHOT.jar:0.3.0-SNAPSHOT]
> ... 10 common frames omitted
> Caused by: java.lang.ClassNotFoundException: com.bogusville.net
> at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_45]
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_45]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message