You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by judesolomonc <ju...@fss.co.in> on 2013/08/23 10:51:08 UTC

Not able to transfer larger bytes of data from one came to another

Hi

I am using camel. And I am transferring Array list with tree Map as a
response from the camel. Till certain limit, I am able to receive the
response. But once it crosses it, the camel does not send response to the
other camel.  Instead, the same camel is called and the same operations gets
executed (as like an indefinite loop). But not getting any exception.  Is
there any restrictions for the size while sending as objects ? If not how to
increase the size (capacity) of bytes that can be transferred using camel or
am i missing any configurations ?

Jude Solomon



--
View this message in context: http://camel.465427.n5.nabble.com/Not-able-to-transfer-larger-bytes-of-data-from-one-came-to-another-tp5737811.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Not able to transfer larger bytes of data from one came to another

Posted by judesolomonc <ju...@fss.co.in>.
I am not using a textline codec. It supports only for String. I am transferring object.  From the external world, it is received using BigEndianHeapChannelBuffer 

                        BigEndianHeapChannelBuffer buf = (BigEndianHeapChannelBuffer) exchange.getIn().getBody();
                      
                          byte [] byt = buf.array();
                     
                        ByteArrayInputStream  in = new ByteArrayInputStream(byt);
                        ObjectInputStream is = new ObjectInputStream(in);
                        
                        TreeMap mapVal = (TreeMap)is.readObject();
                        
                        exchange.getIn().setBody(mapVal,TreeMap.class);

And from here, I am sending as Tree Map to the next camel. The problem occurs only when I send back the response to this Camel. That too only above 1MB.


Jude Solomon 


From: Christian Mueller [via Camel] 
Sent: Tuesday, August 27, 2013 2:57 AM
To: judesolomonc 
Subject: Re: Not able to transfer larger bytes of data from one came to another

I'm wondering which encoder/decoder do you use? You don't specify one. You 
do not use the default codec. You don't use the textline codec... 

The max line length for the textline codec is 1024 as described at [1]. You 
may hit this one? 

[1] http://camel.apache.org/netty.html

Best, 
Christian 
----------------- 

Software Integration Specialist 

Apache Camel committer: https://camel.apache.org/team
V.P. Apache Camel: https://www.apache.org/foundation/
Apache Member: https://www.apache.org/foundation/members.html

https://www.linkedin.com/pub/christian-mueller/11/551/642


On Fri, Aug 23, 2013 at 12:14 PM, judesolomonc <[hidden email]>wrote: 


> Version 2.10.5 
> Using via Netty 
> Limit 1MB 
> 
> Route 
> 
> from("netty:tcp://10.44.71.52:4567?allowDefaultCodec=false&textline=false 
> ") 
>         .to("netty:tcp://10.44.71.52:5678?textline=false") 
> 
> 
> 
> 
> 
> -- 
> View this message in context: 
> http://camel.465427.n5.nabble.com/Not-able-to-transfer-larger-bytes-of-data-from-one-came-to-another-tp5737811p5737827.html
> Sent from the Camel - Users mailing list archive at Nabble.com. 
> 




--------------------------------------------------------------------------------

If you reply to this email, your message will be added to the discussion below:
http://camel.465427.n5.nabble.com/Not-able-to-transfer-larger-bytes-of-data-from-one-came-to-another-tp5737811p5738004.html 
To unsubscribe from Not able to transfer larger bytes of data from one came to another, click here.
NAML 

DISCLAIMER:
==========================================================================================================================================================The information contained in this e-mail message may be privileged and/or confidential and protected from disclosure under applicable law. It is intended only for the individual to whom or entity to which it is addressed as shown at the beginning of the message. If the reader of this message is not the intended recipient, or if the employee or agent responsible for delivering the message is not an employee or agent of the intended recipient, you are hereby notified that any review, dissemination,distribution, use, or copying of this message is strictly prohibited. If you have received this message in error, please notify us immediately by return e-mail and permanently delete this message and your reply to the extent it includes this message. Any views or opinions presented in this message or attachments are those of the author and do not necessarily represent those of the Company. All e-mails and attachments sent and received are subject to monitoring, reading, and archival by the Company.==========================================================================================================================================================




--
View this message in context: http://camel.465427.n5.nabble.com/Not-able-to-transfer-larger-bytes-of-data-from-one-came-to-another-tp5737811p5738010.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Not able to transfer larger bytes of data from one came to another

Posted by judesolomonc <ju...@fss.co.in>.
I am not using a textline codec. It supports only for String. I am
transferring object.  From the external world, it is received using
BigEndianHeapChannelBuffer 
 
                        BigEndianHeapChannelBuffer buf =
(BigEndianHeapChannelBuffer) exchange.getIn().getBody();
                      
                          byte [] byt = buf.array();
                     
                        ByteArrayInputStream  in = new
ByteArrayInputStream(byt);
                        ObjectInputStream is = new ObjectInputStream(in);
                        
                        TreeMap mapVal = (TreeMap)is.readObject();
                        
                        exchange.getIn().setBody(mapVal,TreeMap.class);
 
And from here, I am sending as Tree Map to the next camel. The problem
occurs only when I send back the response to this Camel. That too only above
1MB.
 

Jude Solomon 




--
View this message in context: http://camel.465427.n5.nabble.com/Not-able-to-transfer-larger-bytes-of-data-from-one-came-to-another-tp5737811p5738011.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Not able to transfer larger bytes of data from one came to another

Posted by Christian Müller <ch...@gmail.com>.
I'm wondering which encoder/decoder do you use? You don't specify one. You
do not use the default codec. You don't use the textline codec...

The max line length for the textline codec is 1024 as described at [1]. You
may hit this one?

[1] http://camel.apache.org/netty.html

Best,
Christian
-----------------

Software Integration Specialist

Apache Camel committer: https://camel.apache.org/team
V.P. Apache Camel: https://www.apache.org/foundation/
Apache Member: https://www.apache.org/foundation/members.html

https://www.linkedin.com/pub/christian-mueller/11/551/642


On Fri, Aug 23, 2013 at 12:14 PM, judesolomonc <ju...@fss.co.in>wrote:

> Version 2.10.5
> Using via Netty
> Limit 1MB
>
> Route
>
> from("netty:tcp://10.44.71.52:4567?allowDefaultCodec=false&textline=false
> ")
>         .to("netty:tcp://10.44.71.52:5678?textline=false")
>
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Not-able-to-transfer-larger-bytes-of-data-from-one-came-to-another-tp5737811p5737827.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Re: Not able to transfer larger bytes of data from one came to another

Posted by judesolomonc <ju...@fss.co.in>.
Version 2.10.5
Using via Netty
Limit 1MB 

Route

from("netty:tcp://10.44.71.52:4567?allowDefaultCodec=false&textline=false")
	.to("netty:tcp://10.44.71.52:5678?textline=false")





--
View this message in context: http://camel.465427.n5.nabble.com/Not-able-to-transfer-larger-bytes-of-data-from-one-came-to-another-tp5737811p5737827.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Not able to transfer larger bytes of data from one came to another

Posted by Christian Müller <ch...@gmail.com>.
There is no limit build in by Camel. Can you provide more details please.
- What version do you use?
- Which component(s) do you use?
- How does your route looks like?
- What's the limit you are facing?
- ...

Best,
Christian
-----------------

Software Integration Specialist

Apache Camel committer: https://camel.apache.org/team
V.P. Apache Camel: https://www.apache.org/foundation/
Apache Member: https://www.apache.org/foundation/members.html

https://www.linkedin.com/pub/christian-mueller/11/551/642


On Fri, Aug 23, 2013 at 10:51 AM, judesolomonc <ju...@fss.co.in>wrote:

> Hi
>
> I am using camel. And I am transferring Array list with tree Map as a
> response from the camel. Till certain limit, I am able to receive the
> response. But once it crosses it, the camel does not send response to the
> other camel.  Instead, the same camel is called and the same operations
> gets
> executed (as like an indefinite loop). But not getting any exception.  Is
> there any restrictions for the size while sending as objects ? If not how
> to
> increase the size (capacity) of bytes that can be transferred using camel
> or
> am i missing any configurations ?
>
> Jude Solomon
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Not-able-to-transfer-larger-bytes-of-data-from-one-came-to-another-tp5737811.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>