Issue with Audit4j-db version 2.5.0 during AuditManager.shutdown();

26 views
Skip to first unread message

Franck Benault

unread,
Jan 13, 2018, 1:06:01 PM1/13/18
to Audit4j
Hello,

I have opened the issue https://github.com/audit4j/audit4j-db/issues/14

the following code is failing :

@Test
public void testSendEvents() {
    Configuration conf = new Configuration();
    List<Handler> handlers = new ArrayList<Handler>();
    DatabaseAuditHandler handler = new DatabaseAuditHandler();
    handlers.add(handler);
    conf.setHandlers(handlers);
    conf.setLayout(new SimpleLayout());
    conf.setMetaData(new DummyMetaData());
            
    AuditManager manager = (AuditManager) AuditManager.startWithConfiguration(conf);
    AuditEvent auditEvent = new EventBuilder().addActor("Init Actor").addAction("Init").addField("Init Param", "Init")
            .build();
    manager.audit(auditEvent);
    
    AuditManager.shutdown(); //NullPointerException !!!				
}


Franck Benault

unread,
Jan 13, 2018, 1:23:11 PM1/13/18
to Audit4j
Hello,

this pull request
https://github.com/audit4j/audit4j-core/pull/65

should fix the issue

Regards Franck

Janith Bandara

unread,
Jan 15, 2018, 12:11:34 AM1/15/18
to Audit4j
Hi Franck,

Thanks, Merged the PR
Reply all
Reply to author
Forward
0 new messages