Repository: tchiotludo/akhq

Issue #1035: Error for Consume with options {}
Created: 2022-03-08T17:29:00Z
Hello,
When publishing and empty message on topic we have this error on AKHQ (0.20).
Any idea ?
2022-03-08 17:17:35,177 ERROR r-thread-4 o.a.c.ErrorController      Error for Consume with options {}
java.lang.RuntimeException: Error for Consume with options {}
        at org.akhq.utils.Debug.call(Debug.java:74)
        at org.akhq.repositories.RecordRepository.consume(RecordRepository.java:120)
        at org.akhq.controllers.TopicController.data(TopicController.java:204)
        at org.akhq.controllers.$TopicController$Definition$Exec.dispatch(Unknown Source)
        at io.micronaut.context.AbstractExecutableMethodsDefinition$DispatchedExecutableMethod.invoke(AbstractExecutableMethodsDefinition.java:351)
        at io.micronaut.context.DefaultBeanContext$4.invoke(DefaultBeanContext.java:583)
        at io.micronaut.web.router.AbstractRouteMatch.execute(AbstractRouteMatch.java:303)
        at io.micronaut.web.router.RouteMatch.execute(RouteMatch.java:111)
        at io.micronaut.http.context.ServerRequestContext.with(ServerRequestContext.java:103)
        at io.micronaut.http.server.RouteExecutor.lambda$executeRoute$14(RouteExecutor.java:656)
        at reactor.core.publisher.FluxDeferContextual.subscribe(FluxDeferContextual.java:49)
        at reactor.core.publisher.InternalFluxOperator.subscribe(InternalFluxOperator.java:62)
        at reactor.core.publisher.FluxSubscribeOn$SubscribeOnSubscriber.run(FluxSubscribeOn.java:194)
        at io.micronaut.reactive.reactor.instrument.ReactorInstrumentation.lambda$null$0(ReactorInstrumentation.java:62)
        at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:84)
        at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:37)
        at io.micrometer.core.instrument.composite.CompositeTimer.recordCallable(CompositeTimer.java:68)
        at io.micrometer.core.instrument.Timer.lambda$wrap$1(Timer.java:171)
        at io.micronaut.scheduling.instrument.InvocationInstrumenterWrappedCallable.call(InvocationInstrumenterWrappedCallable.java:53)
        at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException: null
        at org.akhq.repositories.AvroWireFormatConverter.convertValueToWireFormat(AvroWireFormatConverter.java:39)
        at org.akhq.repositories.RecordRepository.newRecord(RecordRepository.java:467)
        at org.akhq.repositories.RecordRepository.lambda$consumeNewest$14(RecordRepository.java:312)
        at java.base/java.util.stream.ReferencePipeline$7$1.accept(Unknown Source)
        at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
        at java.base/java.util.stream.ReferencePipeline$2$1.accept(Unknown Source)
        at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
        at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source)
        at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
        at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
        at java.base/java.util.stream.Nodes$CollectorTask.doLeaf(Unknown Source)
        at java.base/java.util.stream.Nodes$CollectorTask$OfRef.doLeaf(Unknown Source)
        at java.base/java.util.stream.AbstractTask.compute(Unknown Source)
        at java.base/java.util.concurrent.CountedCompleter.exec(Unknown Source)
        at java.base/java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
        at java.base/java.util.concurrent.ForkJoinTask.doInvoke(Unknown Source)
        at java.base/java.util.concurrent.ForkJoinTask.invoke(Unknown Source)
        at java.base/java.util.stream.Nodes.collect(Unknown Source)
        at java.base/java.util.stream.ReferencePipeline.evaluateToNode(Unknown Source)
        at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
        at java.base/java.util.stream.SortedOps$OfRef.opEvaluateParallel(Unknown Source)
        at java.base/java.util.stream.AbstractPipeline.opEvaluateParallelLazy(Unknown Source)
        at java.base/java.util.stream.AbstractPipeline.sourceSpliterator(Unknown Source)
        at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
        at java.base/java.util.stream.ReferencePipeline.collect(Unknown Source)
        at org.akhq.repositories.RecordRepository.consumeNewest(RecordRepository.java:328)
        at org.akhq.repositories.RecordRepository.lambda$consume$4(RecordRepository.java:126)
        at org.akhq.utils.Debug.call(Debug.java:67)
        ... 22 common frames omitted

Duplicate issue #1146: Null Error after login to AKHQ 0.21.0
Created: 2022-07-11T09:50:51Z
Hey,
I experience an issue right after login to AKHQ in version 0.21.0. I have permission to view all topics and get an null error.
AKHQ shows that I have ~20 pages of topics. Some topics are quite large around 7 or 8 GB of data.
This is the screenshot

As you can see I have topics without consumers or a consumer which isn't active.
I get the following Java NullPointer error.
java.lang.NullPointerException: null
at org.akhq.repositories.AvroWireFormatConverter.convertValueToWireFormat(AvroWireFormatConverter.java:39)
	at org.akhq.repositories.RecordRepository.newRecord(RecordRepository.java:454)
	at org.akhq.repositories.RecordRepository.lambda$getLastRecord$3(RecordRepository.java:109)
	at java.base/java.lang.Iterable.forEach(Unknown Source)
	at org.akhq.repositories.RecordRepository.getLastRecord(RecordRepository.java:107)
	at org.akhq.controllers.TopicController.lastRecord(TopicController.java:224)
	at org.akhq.controllers.$TopicController$Definition$Exec.dispatch(Unknown Source)
	at io.micronaut.context.AbstractExecutableMethodsDefinition$DispatchedExecutableMethod.invoke(AbstractExecutableMethodsDefinition.java:351)
	at io.micronaut.context.DefaultBeanContext$4.invoke(DefaultBeanContext.java:583)
	at io.micronaut.web.router.AbstractRouteMatch.execute(AbstractRouteMatch.java:303)
	at io.micronaut.web.router.RouteMatch.execute(RouteMatch.java:111)
	at io.micronaut.http.context.ServerRequestContext.with(ServerRequestContext.java:103)
	at io.micronaut.http.server.RouteExecutor.lambda$executeRoute$14(RouteExecutor.java:656)
	at reactor.core.publisher.FluxDeferContextual.subscribe(FluxDeferContextual.java:49)
	at reactor.core.publisher.InternalFluxOperator.subscribe(InternalFluxOperator.java:62)
	at reactor.core.publisher.FluxSubscribeOn$SubscribeOnSubscriber.run(FluxSubscribeOn.java:194)
	at io.micronaut.reactive.reactor.instrument.ReactorInstrumentation.lambda$null$0(ReactorInstrumentation.java:62)
	at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:84)
	at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:37)
	at io.micrometer.core.instrument.composite.CompositeTimer.recordCallable(CompositeTimer.java:68)
	at io.micrometer.core.instrument.Timer.lambda$wrap$1(Timer.java:171)
	at io.micronaut.scheduling.instrument.InvocationInstrumenterWrappedCallable.call(InvocationInstrumenterWrappedCallable.java:53)
	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)

Any Ideas on that? Thank you very much

Closing comment (2022-09-26T12:58:51Z): Hello @tchiotludo I did some further research and I'm quite sure, that my issue #1147 is related to #1035.
I deployed AKHQ 0.22 and I can't read messages with tombstone records. Based on the description in #1035 I read the topic and looked for tombstones and found them. Also I got the confirmation from the producer, that tombstone records are written.
The first records of the topic look like this
AA:AA:TEXT1	null
AA:AA:TEXT2	null

Is this anything you can look into? Thanks