chainsaw with CustomSQLDBReceiver

K

karen

I am using CustomSQLDBReceiver with chainsaw. When chainsaw is
launched,
I am getting a null pointer exception. Any thoughts on what the issue
might be?

I have included my configuration file below.

The execution of the job threw an exception
java.lang.NullPointerException
at org.apache.log4j.CategoryKey.<init>(CategoryKey.java:30)
at org.apache.log4j.Hierarchy.getLogger(Hierarchy.java:483)
at org.apache.log4j.Hierarchy.getLogger(Hierarchy.java:465)
at org.apache.log4j.LogManager.getLogger(LogManager.java:256)
at org.apache.log4j.Logger.getLogger(Logger.java:64)
at
org.apache.log4j.db.CustomSQLDBReceiver$CustomReceiverJob.execute(CustomSQLDBReceiver.java:326)
at
org.apache.log4j.scheduler.Scheduler.executeInABox(Scheduler.java:195)
at org.apache.log4j.scheduler.Scheduler.run(Scheduler.java:173)


<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration >
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<plugin name="MyCustomDBReceiver"
class="org.apache.log4j.db.CustomSQLDBReceiver">
<connectionSource
class="org.apache.log4j.db.DriverManagerConnectionSource">
<param name="driverClass"
value="oracle.jdbc.driver.OracleDriver"/>
<param name="password" value="pass"/>
<param name="user" value="user"/>
<param name="url"
value="jdbc:eek:racle:thin:mad:server:1521:servicename"/>
</connectionSource>
<param name="IDField" value="log_id"/>
<param name="refreshMillis" value="3000"/>
<param name="sql" value="SELECT line as LINE, application as
APPLICATION, log_level as &quot;LEVEL&quot;, message as MESSAGE,
hostname
as HOSTNAME, src_file as &quot;FILE&quot;, stack as THREAD, log_time as

TIMESTAMP, '' AS NDC, '' AS MDC, '' AS CLASS, '' AS METHOD,
CONCAT('{{USERID,'||USER_ID||',log4jid,'||log_id||'}}','') AS
PROPERTIES,
'' AS EXCEPTION, '' AS LOGGER from bu_log"/>
</plugin>
<root>
<level value="debug"/>
</root>
</log4j:configuration>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top