Yes, please file. If possible give us a
simple Java class that simulates the problem, that way we can ensure Flex 2 will
handle it better.
Matt
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf
Of Clint Modien
Sent: Sunday, January 15, 2006
11:41 AM
To: [email protected]
Subject: [flexcoders] Java
RemoteObject never returns
Wanted to post this for
future ref... it's a silent failure and it's taken 4 hours to track it down.
Problem:
Created a java service that returned a Map (HashMap) back to my flex app.
The service was working fine. After adding a bunch of code I ran the test
app to test my service again... and the service didn't return. Couldn't
for the life of me figure out why. Finally I narrowed it down to the call
stopping @ the AMF Gateway.
The call looked like this:
Flex App ---> AMF Gateway --> Java Object |
\|/
(no answer) <-- AMF Gateway <-- Java Object
I knew it was dying at the AMF Gateway because the Java Object was returning
when I stepped through it with the debugger.
Solution:
An entry was added to the database (while I was working) that had a null value
in the column that I was using as the key for the HashMap. Java didn't
choke on it. but the AMF gateway was and not throwing an error about
it.
I've taken 2 steps to prevent the problem:
1. Told the dba to make the column not null.
2. My java code checks for null.
Anyone think I should file a bug?
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
|