Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002455 [Hessian] major always 02-21-08 19:19 07-11-08 09:09
Reporter mbergens View Status public  
Assigned To
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.1.6 Product Version 3.1.3
  Product Build
Summary 0002455: The bug 2024 is still occuring with the version 3.1.3 of Java library and the latest of Flex library
Description 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?
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0002792)
mbergens
02-21-08 20:27
edited on: 02-22-08 16:25

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;
 

- Issue History
Date Modified Username Field Change
02-21-08 19:19 mbergens New Issue
02-21-08 19:28 mbergens Issue Monitored: mbergens
02-21-08 20:27 mbergens Note Added: 0002792
02-22-08 16:25 mbergens Note Edited: 0002792
03-05-08 20:53 ferg Project Resin => Hessian
04-07-08 13:04 bdespres Note Added: 0002945
07-11-08 09:09 emil Status new => closed
07-11-08 09:09 emil Resolution open => fixed
07-11-08 09:09 emil Fixed in Version  => 3.1.6


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
37 total queries executed.
31 unique queries executed.
Powered by Mantis Bugtracker