I finally got to the bottom of this, one of the sickest bugs I've ever seen.





In fact, as is often the case, it was two bugs, one disguising the other.



The root cause of failure was a convention I have from years back of naming 
constants with uppercase, preceded by a single character lowercase character 
indicating datatype, thusly:



int iUSA = 1;

String sUSA = "us";



int iUNITED_KINGDOM = 44;

String sUNITED_KINGDOM = "uk";





This causes JSP page error ....


Quote:
"Problem managing Home: Could not find a getter for iUNITED_KINGDOM in 
class...."
(end of quote)


A getter is created by the Spring cartridge code generation, but evidently not 
the same as the one as is created during BPM4Struts code generation (or on the 
fly in JSP, or however it works).



That was the root cause!



The second bug was that, for some reason I have yet to figure out, I wasn't 
getting that JSP error message text!



Instead, all I got was 
Quote:
"en-US"
(end of quote)
in red text.



The thing that drives me hysterical is that the moment I identified the above 
cause of the error, the error message I would have needed to quickly solve the 
problem, appeared in the JSP page!!!



Now I simply cannot figure out why it wasn't there nor what I could have done 
to make it appear.  It makes me sick to think of the time I've lost over 
something so trivial.
--
Regards,

Hasan
_________________________________________________________
Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=3908#3908
Posting to http://forum.andromda.org/ is preferred over posting to the mailing 
list!


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Andromda-user mailing list
Andromda-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/andromda-user

Reply via email to