You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Ratha v <vi...@gmail.com> on 2014/12/17 10:02:56 UTC

java.lang.IllegalArgumentException: at ChunkEncoder

Hi all;
We use apache http core_nio(v 4.2.3) , httpcore-v4.30 libraries in apache
synapse passthru transport.
In one error condition, (which i could not reproduce now) we got the
following error[1]

Could someone point me what type of network error caused this issue?

[1]ERROR {org.apache.synapse.transport.passthru.TargetHandler} - Error
occurred while writing data to the target
{org.apache.synapse.transport.passthru.TargetHandler}
java.lang.IllegalArgumentException
        at java.nio.Buffer.limit(Buffer.java:267)
        at
org.apache.http.impl.nio.codecs.ChunkEncoder.write(ChunkEncoder.java:100)
        at
org.apache.synapse.transport.passthru.Pipe.consume(Pipe.java:140)
        at
org.apache.synapse.transport.passthru.TargetRequest.write(TargetRequest.java:360)
        at
org.apache.synapse.transport.passthru.TargetHandler.outputReady(TargetHandler.java:186)
        at
org.apache.http.impl.nio.DefaultNHttpClientConnection.produceOutput(DefaultNHttpClientConnection.java:230)
        at
org.apache.synapse.transport.http.conn.LoggingNHttpClientConnection.produceOutput(LoggingNHttpClientConnection.java:114)
        at
org.apache.synapse.transport.passthru.ClientIODispatch.onOutputReady(ClientIODispatch.java:88)
        at
org.apache.synapse.transport.passthru.ClientIODispatch.onOutputReady(ClientIODispatch.java:41)
        at
org.apache.http.impl.nio.reactor.AbstractIODispatch.outputReady(AbstractIODispatch.java:141)
        at
org.apache.http.impl.nio.reactor.BaseIOReactor.writable(BaseIOReactor.java:181)


Thanks
-- 
-Ratha
http://vvratha.blogspot.com/

Re: java.lang.IllegalArgumentException: at ChunkEncoder

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Wed, 2014-12-17 at 14:56 +0530, Ratha v wrote:
> Hi Oleg;
> Thanks for the reply..Issue here is, i could not reproduce this behavior
>  now..So, updating the version of HC components also, i can not make sure
> they will solve the original issue i faced..
> 

The only thing certain in this world is that everything is uncertain.
When it comes to software, though, testing generally helps make things
somewhat less uncertain.

Oleg

> Thanks
> -Ratha
> 
> On 17 December 2014 at 14:44, Oleg Kalnichevski <ol...@apache.org> wrote:
> >
> > On Wed, 2014-12-17 at 14:32 +0530, Ratha v wrote:
> > > Hi all;
> > > We use apache http core_nio(v 4.2.3) , httpcore-v4.30 libraries in apache
> > > synapse passthru transport.
> > > In one error condition, (which i could not reproduce now) we got the
> > > following error[1]
> > >
> > > Could someone point me what type of network error caused this issue?
> > >
> >
> > This is more likely to be a logical error in ChunkEncoder than a network
> > error of any sort. Regardless, please upgrade to HC 4.3 or 4.4 as 4.2 is
> > no longer actively maintained.
> >
> > Oleg
> >
> > > [1]ERROR {org.apache.synapse.transport.passthru.TargetHandler} - Error
> > > occurred while writing data to the target
> > > {org.apache.synapse.transport.passthru.TargetHandler}
> > > java.lang.IllegalArgumentException
> > >         at java.nio.Buffer.limit(Buffer.java:267)
> > >         at
> > > org.apache.http.impl.nio.codecs.ChunkEncoder.write(ChunkEncoder.java:100)
> > >         at
> > > org.apache.synapse.transport.passthru.Pipe.consume(Pipe.java:140)
> > >         at
> > >
> > org.apache.synapse.transport.passthru.TargetRequest.write(TargetRequest.java:360)
> > >         at
> > >
> > org.apache.synapse.transport.passthru.TargetHandler.outputReady(TargetHandler.java:186)
> > >         at
> > >
> > org.apache.http.impl.nio.DefaultNHttpClientConnection.produceOutput(DefaultNHttpClientConnection.java:230)
> > >         at
> > >
> > org.apache.synapse.transport.http.conn.LoggingNHttpClientConnection.produceOutput(LoggingNHttpClientConnection.java:114)
> > >         at
> > >
> > org.apache.synapse.transport.passthru.ClientIODispatch.onOutputReady(ClientIODispatch.java:88)
> > >         at
> > >
> > org.apache.synapse.transport.passthru.ClientIODispatch.onOutputReady(ClientIODispatch.java:41)
> > >         at
> > >
> > org.apache.http.impl.nio.reactor.AbstractIODispatch.outputReady(AbstractIODispatch.java:141)
> > >         at
> > >
> > org.apache.http.impl.nio.reactor.BaseIOReactor.writable(BaseIOReactor.java:181)
> > >
> > >
> > > Thanks
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> > For additional commands, e-mail: dev-help@hc.apache.org
> >
> >
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: java.lang.IllegalArgumentException: at ChunkEncoder

Posted by Ratha v <vi...@gmail.com>.
Hi Oleg;
Thanks for the reply..Issue here is, i could not reproduce this behavior
 now..So, updating the version of HC components also, i can not make sure
they will solve the original issue i faced..

Thanks
-Ratha

On 17 December 2014 at 14:44, Oleg Kalnichevski <ol...@apache.org> wrote:
>
> On Wed, 2014-12-17 at 14:32 +0530, Ratha v wrote:
> > Hi all;
> > We use apache http core_nio(v 4.2.3) , httpcore-v4.30 libraries in apache
> > synapse passthru transport.
> > In one error condition, (which i could not reproduce now) we got the
> > following error[1]
> >
> > Could someone point me what type of network error caused this issue?
> >
>
> This is more likely to be a logical error in ChunkEncoder than a network
> error of any sort. Regardless, please upgrade to HC 4.3 or 4.4 as 4.2 is
> no longer actively maintained.
>
> Oleg
>
> > [1]ERROR {org.apache.synapse.transport.passthru.TargetHandler} - Error
> > occurred while writing data to the target
> > {org.apache.synapse.transport.passthru.TargetHandler}
> > java.lang.IllegalArgumentException
> >         at java.nio.Buffer.limit(Buffer.java:267)
> >         at
> > org.apache.http.impl.nio.codecs.ChunkEncoder.write(ChunkEncoder.java:100)
> >         at
> > org.apache.synapse.transport.passthru.Pipe.consume(Pipe.java:140)
> >         at
> >
> org.apache.synapse.transport.passthru.TargetRequest.write(TargetRequest.java:360)
> >         at
> >
> org.apache.synapse.transport.passthru.TargetHandler.outputReady(TargetHandler.java:186)
> >         at
> >
> org.apache.http.impl.nio.DefaultNHttpClientConnection.produceOutput(DefaultNHttpClientConnection.java:230)
> >         at
> >
> org.apache.synapse.transport.http.conn.LoggingNHttpClientConnection.produceOutput(LoggingNHttpClientConnection.java:114)
> >         at
> >
> org.apache.synapse.transport.passthru.ClientIODispatch.onOutputReady(ClientIODispatch.java:88)
> >         at
> >
> org.apache.synapse.transport.passthru.ClientIODispatch.onOutputReady(ClientIODispatch.java:41)
> >         at
> >
> org.apache.http.impl.nio.reactor.AbstractIODispatch.outputReady(AbstractIODispatch.java:141)
> >         at
> >
> org.apache.http.impl.nio.reactor.BaseIOReactor.writable(BaseIOReactor.java:181)
> >
> >
> > Thanks
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> For additional commands, e-mail: dev-help@hc.apache.org
>
>

-- 
-Ratha
http://vvratha.blogspot.com/

Re: java.lang.IllegalArgumentException: at ChunkEncoder

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Wed, 2014-12-17 at 14:32 +0530, Ratha v wrote:
> Hi all;
> We use apache http core_nio(v 4.2.3) , httpcore-v4.30 libraries in apache
> synapse passthru transport.
> In one error condition, (which i could not reproduce now) we got the
> following error[1]
> 
> Could someone point me what type of network error caused this issue?
> 

This is more likely to be a logical error in ChunkEncoder than a network
error of any sort. Regardless, please upgrade to HC 4.3 or 4.4 as 4.2 is
no longer actively maintained.

Oleg 

> [1]ERROR {org.apache.synapse.transport.passthru.TargetHandler} - Error
> occurred while writing data to the target
> {org.apache.synapse.transport.passthru.TargetHandler}
> java.lang.IllegalArgumentException
>         at java.nio.Buffer.limit(Buffer.java:267)
>         at
> org.apache.http.impl.nio.codecs.ChunkEncoder.write(ChunkEncoder.java:100)
>         at
> org.apache.synapse.transport.passthru.Pipe.consume(Pipe.java:140)
>         at
> org.apache.synapse.transport.passthru.TargetRequest.write(TargetRequest.java:360)
>         at
> org.apache.synapse.transport.passthru.TargetHandler.outputReady(TargetHandler.java:186)
>         at
> org.apache.http.impl.nio.DefaultNHttpClientConnection.produceOutput(DefaultNHttpClientConnection.java:230)
>         at
> org.apache.synapse.transport.http.conn.LoggingNHttpClientConnection.produceOutput(LoggingNHttpClientConnection.java:114)
>         at
> org.apache.synapse.transport.passthru.ClientIODispatch.onOutputReady(ClientIODispatch.java:88)
>         at
> org.apache.synapse.transport.passthru.ClientIODispatch.onOutputReady(ClientIODispatch.java:41)
>         at
> org.apache.http.impl.nio.reactor.AbstractIODispatch.outputReady(AbstractIODispatch.java:141)
>         at
> org.apache.http.impl.nio.reactor.BaseIOReactor.writable(BaseIOReactor.java:181)
> 
> 
> Thanks



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org