-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with audit4j 2.5.0 using embedded DatabaseAuditHandler #14
Comments
add conf.setCommands("-batchSize=4"); |
With the code
now I have a NullPointerException on AuditManager.shutdown(); java.lang.NullPointerException Could you please help me ? Regards Franck |
First error is due to different compiled versions of Handler Abstract class, specially in overloaded handle methods. To fix this, you need to re-compile the latest version(2.6.0) of audit4j-core then refer 2.6.0 in audit4j-db handler then recompile audit4j-db handler. Because of this issue, I'm worrying that audit4j-core will not have backward compatibility with handler plugins after 2.6.0. I agree with your second fix. |
The following test fails
The log contains the error
[ringBuffer-18] ERROR reactor.core.action.CallbackAction - org.audit4j.core.handler.Handler.handle(Lorg/audit4j/core/dto/AuditEvent;)V
java.lang.AbstractMethodError: org.audit4j.core.handler.Handler.handle(Lorg/audit4j/core/dto/AuditEvent;)V
at org.audit4j.core.AuditEventProcessor.executeHandlers(AuditEventProcessor.java:73)
at org.audit4j.core.AuditEventProcessor.process(AuditEventProcessor.java:47)
at org.audit4j.core.io.AuditProcessOutputStream.write(AuditProcessOutputStream.java:55)
at org.audit4j.core.io.AuditProcessOutputStream.write(AuditProcessOutputStream.java:31)
at org.audit4j.core.io.AsyncAuditOutputStream$1.accept(AsyncAuditOutputStream.java:81)
at org.audit4j.core.io.AsyncAuditOutputStream$1.accept(AsyncAuditOutputStream.java:78)
at reactor.function.support.Boundary$1.accept(Boundary.java:67)
at reactor.core.action.CallbackAction.doAccept(CallbackAction.java:36)
at reactor.core.action.Action.accept(Action.java:52)
at reactor.core.action.Action.accept(Action.java:32)
at reactor.event.routing.ArgumentConvertingConsumerInvoker.invoke(ArgumentConvertingConsumerInvoker.java:73)
at reactor.event.routing.ConsumerFilteringEventRouter.route(ConsumerFilteringEventRouter.java:78)
at reactor.event.dispatch.AbstractLifecycleDispatcher.route(AbstractLifecycleDispatcher.java:64)
at reactor.event.dispatch.AbstractSingleThreadDispatcher$SingleThreadTask.run(AbstractSingleThreadDispatcher.java:50)
at reactor.event.dispatch.RingBufferDispatcher$3.onEvent(RingBufferDispatcher.java:115)
at reactor.event.dispatch.RingBufferDispatcher$3.onEvent(RingBufferDispatcher.java:112)
at com.lmax.disruptor.BatchEventProcessor.run(BatchEventProcessor.java:128)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
There is no problem with ConsoleAuditHandler
There was no problem with the version 2.4.1 of audit4j
Could you please help me ?
Regards Franck
The text was updated successfully, but these errors were encountered: