Thank you. It worked. So I guess if a string is passed we dont need to worry about Javacast. So for my problem I had to specify the type of the arguments with two things. Javacast for primitive types and I have to explicitly create a Java Date object "abc". Assign the output of cal.getTime() to "abc" and pass this argument instead of specifying cal.getTime() in the argument list (Like we do in Java).
The coldfusion errors especially in this case was hard to decipher. Does anyone happen to know a way to find out what arguments get passed to a Java method. Like an "ide" debugger giving more information. Cheers, Mullai ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:251311 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

