camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim TSes'ko (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Edited] (CAMEL-4277) camel-kestrel: Cannot cache data larger than 1048576 bytes
Date Thu, 28 Jul 2011 15:02:09 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-4277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13072390#comment-13072390
] 

Vadim TSes'ko edited comment on CAMEL-4277 at 7/28/11 3:01 PM:
---------------------------------------------------------------

OK, I'll look into it. There are two possibilities: it might be {{kestrel}} constraint or
it might be some {{spymemcached}} setting. In the latter case some support from {{camel-kestrel}}
might be needed.

Nevertheless I'll report the results here.

      was (Author: incubos):
    OK, I'll look into it. There are two possibilities: it might be ##kestrel## constraint
or it might be some ##spymemcached## setting. In the latter case some support from ##camel-kestrel##
might be needed.

Nevertheless I'll report the results here.
  
> camel-kestrel: Cannot cache data larger than 1048576 bytes
> ----------------------------------------------------------
>
>                 Key: CAMEL-4277
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4277
>             Project: Camel
>          Issue Type: Improvement
>    Affects Versions: 2.7.0
>         Environment: MacOS 10.6.8, java 1.6.0_26, kestrel 2.1.0, camel-* 2.7.0, memcached
2.5 (got as an Ivy dependency of camel-kestrel 2.7.0)
>            Reporter: Vadim TSes'ko
>            Priority: Minor
>              Labels: camel-kestrel, kestrel
>
> Please add {{camel-kestrel}} as a component in JIRA.
> I call {{ProducerTemplate.sendBody(Set<...>)}}. The set is serialized into 10 MB
of pure bytes and then I get {{CamelExchangeException}}. With the data smaller than 1 MB everything
is OK.
> The full stack trace:
> {code}
> org.apache.camel.CamelExchangeException: Error sending to: feeds. Exchange[Message: Set(...
[Body clipped after 1000 chars, total length is 10891852]]. Caused by: [java.lang.IllegalArgumentException
- Cannot cache data larger than 1048576 bytes (you tried to cache a 1235078 byte object)]
> 	at org.apache.camel.component.kestrel.KestrelProducer.process(KestrelProducer.java:49)
~[camel-kestrel-2.7.0.jar:2.7.0]
> 	at org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:50)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:104)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:272) [camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:98) [camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:99)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.processor.interceptor.StreamCachingInterceptor.process(StreamCachingInterceptor.java:53)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:299)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:208)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:269) [camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:139)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:61)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:109)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:103)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:85)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.processor.UnitOfWorkProducer.process(UnitOfWorkProducer.java:63)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.impl.ProducerCache$1.doInProducer(ProducerCache.java:333) [camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.impl.ProducerCache$1.doInProducer(ProducerCache.java:303) [camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:208) [camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:303) [camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.impl.ProducerCache.send(ProducerCache.java:154) [camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:110)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:123)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:341)
[camel-core-2.7.0.jar:2.7.0]
> 	...
> 	at scala.collection.mutable.HashMap$$anonfun$foreach$1.apply(HashMap.scala:93) [scala-library.jar:na]
> 	at scala.collection.mutable.HashMap$$anonfun$foreach$1.apply(HashMap.scala:93) [scala-library.jar:na]
> 	at scala.collection.Iterator$class.foreach(Iterator.scala:652) [scala-library.jar:na]
> 	at scala.collection.mutable.HashTable$$anon$1.foreach(HashTable.scala:157) [scala-library.jar:na]
> 	at scala.collection.mutable.HashTable$class.foreachEntry(HashTable.scala:190) [scala-library.jar:na]
> 	at scala.collection.mutable.HashMap.foreachEntry(HashMap.scala:43) [scala-library.jar:na]
> 	at scala.collection.mutable.HashMap.foreach(HashMap.scala:93) [scala-library.jar:na]
> 	...
> 	at sun.reflect.GeneratedMethodAccessor133.invoke(Unknown Source) ~[na:na]
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
~[na:1.6.0_24]
> 	at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_24]
> 	at org.apache.camel.component.bean.MethodInfo.invoke(MethodInfo.java:322) [camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.component.bean.MethodInfo$1.proceed(MethodInfo.java:224) [camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:167) [camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:103)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.component.bean.BeanProcessor.process(BeanProcessor.java:74) [camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.impl.ProcessorEndpoint.onExchange(ProcessorEndpoint.java:102) [camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.impl.ProcessorEndpoint$1.process(ProcessorEndpoint.java:72) [camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:50)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProcessor.java:104)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.java:272) [camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:98) [camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:99)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.processor.interceptor.StreamCachingInterceptor.process(StreamCachingInterceptor.java:53)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:299)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:208)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:269) [camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:109)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:330)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:157)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:121)
[camel-core-2.7.0.jar:2.7.0]
> 	at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:97) [camel-core-2.7.0.jar:2.7.0]
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [na:1.6.0_24]
> 	at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [na:1.6.0_24]
> 	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [na:1.6.0_24]
> 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
[na:1.6.0_24]
> 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
[na:1.6.0_24]
> 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
[na:1.6.0_24]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[na:1.6.0_24]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_24]
> 	at java.lang.Thread.run(Thread.java:680) [na:1.6.0_24]
> Caused by: java.lang.IllegalArgumentException: Cannot cache data larger than 1048576
bytes (you tried to cache a 1235078 byte object)
> 	at net.spy.memcached.CachedData.<init>(CachedData.java:30) ~[memcached-2.5.jar:]
> 	at net.spy.memcached.transcoders.SerializingTranscoder.encode(SerializingTranscoder.java:152)
~[memcached-2.5.jar:]
> 	at net.spy.memcached.MemcachedClient.asyncStore(MemcachedClient.java:301) ~[memcached-2.5.jar:]
> 	at net.spy.memcached.MemcachedClient.set(MemcachedClient.java:691) ~[memcached-2.5.jar:]
> 	at org.apache.camel.component.kestrel.KestrelProducer.process(KestrelProducer.java:47)
~[camel-kestrel-2.7.0.jar:2.7.0]
> 	... 93 common frames omitted
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message