Mantis - Hessian
Viewing Issue Advanced Details
2455 major always 02-21-08 19:19 07-11-08 09:09
mbergens  
 
normal  
closed 3.1.3  
fixed  
none    
none 3.1.6  
0002455: The bug 2024 is still occuring with the version 3.1.3 of Java library and the latest of Flex library
This bug:

http://bugs.caucho.com/bug_view_page.php?bug_id=2024 [^]

is still happening by me, running the version 3.1.3 of the java jar downloaded from here:

http://hessian.caucho.com/ [^]

and the latest snapshot of the Flex library downloaded from the same place.

I do this:

          getUserService = new HessianService("flex");
          var asyncToken: AsyncToken = getUserService.getRandomUser.send();
          asyncToken.addResponder(this);

No error on the java side, the method is called as expected and completes successfully. But on the Flex side, both

  public function fault(data:Object):void {

and
  public function result(data:Object):void {

are called by Hessian, the result gets correct results but the fault gets this error:

Error 0001009: Cannot access a property or method of a null object reference.

This is actually major issue for me: how in the world do I decide if there is an error or not??

Has the bug 2024 been fixed as it is reported fixed? If it has been fixed, has the change any impact on the Flex code, if it does, has it been fixed on the Java side only?

Notes
(0002792)
mbergens   
02-21-08 20:27   
stack traces and error messages:

hessian-flash-3.1.2.swc -

Error 0001009: Cannot access a property or method of a null object reference.
[RPC Fault faultString="Error 0001009: Cannot access a property or method of a null object reference." faultCode="InvokeFailed" faultDetail="null"]
    at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::invoke()[E:\dev\flex_201_borneo\sdk\frameworks\mx\rpc\AbstractInvoker.as:236] [^]
    at hessian.client::HessianOperation/send()[/home/emil/code/resin/modules/flash/src/hessian/client/HessianOperation.as:116]


with the snap for flex:
Key producerSendError was not found in resource bundle messaging
[RPC Fault faultString="Key producerSendError was not found in resource bundle messaging" faultCode="InvokeFailed" faultDetail="null"]
    at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::invoke()[E:\dev\flex_201_borneo\sdk\frameworks\mx\rpc\AbstractInvoker.as:236] [^]
    at hessian.client::HessianOperation/send()[/home/emil/code/resin/modules/flash/src/hessian/client/HessianOperation.as:132]

(0002945)
bdespres   
04-07-08 13:04   
This seems to be the same root problem as bug 0002511 [http://bugs.caucho.com/view.php?id=2511] [^]

It looks like HessianOperation.send() is making a call to mx_internal::invoke() that it shouldn't be making. The following change fixes the problem for me (against both Flex 2.0.1 and Flex 3):

***************
*** 129,135 ****
        msg.headers = new Object();
        msg.headers.DSMessageStore = new Object();
  
! var token:AsyncToken = mx_internal::invoke(msg);
        var stream:URLStream = new URLStream();
  
        _tokens[stream] = token;
--- 129,135 ----
        msg.headers = new Object();
        msg.headers.DSMessageStore = new Object();
  
! var token:AsyncToken = new AsyncToken(msg);
        var stream:URLStream = new URLStream();
  
        _tokens[stream] = token;