[Red5] PROBLEM: Red5 Remoting a WebOrb server
Craig Sills
craigsills at hotmail.com
Mon Sep 24 09:51:24 PDT 2007
Hello Everyone.
I'm having an issue with Red5 making remoting calls to my flash remoting service which uses WebOrb.
Red5 is able to make the Method call fine and a simple type of string is sent back to Red5. All this occurs as expected. The error occurs in Red5's RemotingClient.java file where it is trying to allocate the buffer size based on the content length returned.
resultBuffer = ByteBuffer.allocate((int) post.getResponseContentLength());
The following exception occurs:
[ERROR] 38703 Thread-25:( RemotingClient.invokeMethod ) Error while invoking remoting method. java.lang.IllegalArgumentException at java.nio.ByteBuffer.allocate(Unknown Source) at org.apache.mina.common.SimpleByteBufferAllocator.allocate(SimpleByteBufferAllocator.java:51) at org.apache.mina.common.ByteBuffer.allocate(ByteBuffer.java:235) at org.apache.mina.common.ByteBuffer.allocate(ByteBuffer.java:223) at org.red5.server.net.remoting.RemotingClient.invokeMethod(RemotingClient.java:311)
I assume the getResponseContentLength() call is not returning the correct length even though i am sending data back.
Any thoughts or suggestions on this would be appreciated.
Thanx in advance.
_________________________________________________________________
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20070924/4555a24e/attachment.html
More information about the Red5
mailing list