On 28/11/2007, James Chamberlain <[EMAIL PROTECTED]> wrote:
> >> Then I ran into issues with it being able to convert from byte[] to
> >> ByteBuffer, none of the built in converters know how to perform that
> >> conversion.
> >
> > Hmm - this is a MINA ByteBuffer right? Does the
> > MinaConverter.toByteArray() not get invoked? (The src/main/resources
> > must be on the classpath to auto-discover the MINA type conversions)
> >
>
> Actually ByteBuffer -> byte[] works just fine. It's going from byte[] -
>  > ByteBuffer that is the problem. The DefaultTypeCoverter does not
> have a suitable converter for that. So the follow call (in
> toByteBuffer) returns null.
>
>         ByteBuffer answer = convertTo(ByteBuffer.class, message);
>
> That's where the problem is.

Got it - patch applied! :)

-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://open.iona.com

Reply via email to