CF10 Bug? Could not find the designated method

94 views
Skip to first unread message

Dorioo

unread,
May 26, 2012, 10:30:03 PM5/26/12
to javaloa...@googlegroups.com
Hi Mark,
 
Attached is a test using v1.1 that works perfectly in CF9. I'm loading the JavaCSV library (links below), loading a reader object using  the comma delimited file "mark.txt", looping through each row, and display the row data. Works fine in CF9.
 
 
In CF10, the same code produces the error below. The missing "'Constructor" method is referenced on line 65 of JavaProxy.cfc. If I change that to any other name, then the name I typed in there is the one that's given in the error.
 
Clearly the "init()" in my code is the trigger point but I don't know if this is a CF10 issue or a javaloader bug. Any help or insight is appreciated. Thank you.
Thank you,
Gabriel
 
 
********************************

Could not find the designated method
 
Could not find the method 'Constructor' in the class com.csvreader.CsvReader  
 
 The error occurred in /javaloadertest/javaloader/JavaProxy.cfc: line 351
Called from /javaloadertest/javaloader/JavaProxy.cfc: line 253
Called from /javaloadertest/javaloader/JavaProxy.cfc: line 65
Called from /javaloadertest/index.cfm: line 22

349 :  <cfargument name="message" hint="The message to accompany the exception" type="string" required="Yes">
350 :  <cfargument name="detail" type="string" hint="The detail message for the exception" required="No" default="">
351 :   <cfthrow type="#arguments.type#" message="#arguments.message#" detail="#arguments.detail#">
352 : </cffunction>
353 :
 
 
 
javaloadertest.zip

Mark Mandel

unread,
May 27, 2012, 9:13:27 AM5/27/12
to javaloa...@googlegroups.com

Sounds like an issue in the Java Proxy component, or a need to javacast (haven't had a chance to look at the code). What happens of you turn off "disable access to internal ColdFusion objects"?

Mark

Sent from my mobile doohickey.

--
You received this message because you are subscribed to the Google Groups "javaloader-dev" group.
To view this discussion on the web visit https://groups.google.com/d/msg/javaloader-dev/-/H1Kh4vukRHMJ.
To post to this group, send email to javaloa...@googlegroups.com.
To unsubscribe from this group, send email to javaloader-de...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/javaloader-dev?hl=en.

Dorioo

unread,
May 27, 2012, 9:21:19 AM5/27/12
to javaloa...@googlegroups.com
If I turn that setting off, it works. Thank you. 

- Gabriel
Reply all
Reply to author
Forward
0 new messages