camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephan Burkard <sburk...@gmail.com>
Subject Re: Bug in LevelDB aggregator? NPE when completionSize 1
Date Wed, 22 Jan 2014 16:14:52 GMT
OK I created CAMEL-7146 and attached a small example project.

If I feel very self-confident, I will have look and try to fix the bug :-)

Stephan



On Tue, Jan 21, 2014 at 4:28 PM, Claus Ibsen <claus.ibsen@gmail.com> wrote:

> Hi
>
> Yeah you are welcome to raise a JIRA.
> And as we love contributions, a bug fix is appreciated.
>
> On Tue, Jan 21, 2014 at 4:25 PM, Stephan Burkard <sburkard@gmail.com>
> wrote:
> > Hi
> >
> > By accident I noticed that when I configure a LevelDB aggregator
> > persistence with completionSize = 1 (yes I know, this is kind of an
> > aggregator that does not aggregate), I get the stacktrace below on every
> > message.
> >
> > As soon as I set a completionSize > 1, everything runs fine.
> >
> > I guess this is a bug, since it worked fine with the old HawtDB
> repository.
> > If completionSize = 1 is totally useless it would be better to throw an
> > explicit error when starting the context.
> >
> > Should I create a Jira issue for this?
> >
> > Thanks
> > Stephan
> >
> >
> >
> >
> > java.lang.NullPointerException
> >     at
> >
> org.apache.camel.component.leveldb.LevelDBAggregationRepository.remove(LevelDBAggregationRepository.java:155)
> >     at
> >
> org.apache.camel.processor.aggregate.AggregateProcessor.onCompletion(AggregateProcessor.java:459)
> >     at
> >
> org.apache.camel.processor.aggregate.AggregateProcessor.doAggregation(AggregateProcessor.java:343)
> >     at
> >
> org.apache.camel.processor.aggregate.AggregateProcessor.doProcess(AggregateProcessor.java:247)
> >     at
> >
> org.apache.camel.processor.aggregate.AggregateProcessor.process(AggregateProcessor.java:179)
> >     at
> >
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)
> >     at
> >
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:398)
> >     at
> >
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:105)
> >     at
> >
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:279)
> >     at
> >
> org.apache.camel.processor.DefaultErrorHandler.process(DefaultErrorHandler.java:56)
> >     at
> >
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:166)
> >     at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)
> >     at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)
> >     at
> >
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:398)
> >     at
> >
> org.apache.camel.spring.spi.TransactionErrorHandler.processByErrorHandler(TransactionErrorHandler.java:218)
> >     at
> >
> org.apache.camel.spring.spi.TransactionErrorHandler.process(TransactionErrorHandler.java:99)
> >     at
> >
> org.apache.camel.spring.spi.TransactionErrorHandler.process(TransactionErrorHandler.java:112)
> >     at
> >
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)
> >     at
> >
> org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:398)
> >     at
> >
> org.apache.camel.spring.spi.TransactionErrorHandler.processByErrorHandler(TransactionErrorHandler.java:218)
> >     at
> >
> org.apache.camel.spring.spi.TransactionErrorHandler$1.doInTransactionWithoutResult(TransactionErrorHandler.java:181)
> >     at
> >
> org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33)
> >     at
> >
> org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:131)
> >     at
> >
> org.apache.camel.spring.spi.TransactionErrorHandler.doInTransactionTemplate(TransactionErrorHandler.java:174)
> >     at
> >
> org.apache.camel.spring.spi.TransactionErrorHandler.processInTransaction(TransactionErrorHandler.java:134)
> >     at
> >
> org.apache.camel.spring.spi.TransactionErrorHandler.process(TransactionErrorHandler.java:103)
> >     at
> >
> org.apache.camel.spring.spi.TransactionErrorHandler.process(TransactionErrorHandler.java:112)
> >     at
> >
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
> >     at
> >
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
> >     at
> >
> org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:105)
> >     at
> >
> org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:87)
> >     at
> >
> org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:103)
> >     at
> >
> org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:562)
> >     at
> >
> org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:500)
> >     at
> >
> org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:468)
> >     at
> >
> org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:325)
> >     at
> >
> org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:243)
> >     at
> >
> org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1103)
> >     at
> >
> org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1095)
> >     at
> >
> org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:992)
> >     at
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> >     at
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>
>
>
> --
> Claus Ibsen
> -----------------
> Red Hat, Inc.
> Email: cibsen@redhat.com
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen
> Make your Camel applications look hawt, try: http://hawt.io
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message