Greetings all, Wish I could bring easy questions, but no, I’ve got to throw out the real headscratchers.
I’m connecting to Powerbuilder App Server via the CFObject construct. I’m able to call a routine by the name of “web_calculate_interest”, but when I make a new routine called “web_calculate_interest_monthly”, I get a CFML error: java.lang.NoSuchMethodError. The frustrating issue is that a co-worker, running CF9, can call the new routine with no problems. My first thought is that OpenBD has a length of variable name issue. I would really appreciate hearing any other thoughts. Or any pointers on where I can look to debug this. Here is the error: CFML Runtime Error its_web.br_web_business_rules.web_calculate_interest_monthly(Ljava/ lang/String;LMJD/Date;LMJD/Date;Ljava/lang/String;Ljava/lang/ String;Ljava/lang/String;)LBCD/Decimal; Request /webclient2_v4.cfm File Trace C:/xampp/xampp/tomcat/webapps/dut5_test/webclient2_v4.cfm Type java.lang.NoSuchMethodError Tag Context CFTRY (C:/xampp/xampp/tomcat/webapps/dut5_test/ webclient2_v4.cfm, Line=27, Column=1) | +-- CFSET (C:/xampp/xampp/tomcat/webapps/dut5_test/webclient2_v4.cfm, Line=36, Column=1) Source 33: 34: <cfset d = PBWrp.cf_reg_getpermitgroup(account_number)><!------> 35: 36: <cfset b = PBWrp.cfstr_web_calculate_interest_monthly(acct_nbr, fund_class, tax_period, pen_rate_nm, measure)> 37: ^ Snippet from underlying CFML source Here is the structure: C:\xampp\xampp\tomcat\webapps\dut5_test\webclient.cfm C:\xampp\xampp\OpenBD\classes\PBWrp.class C:\xampp\xampp\OpenBD\lib\pb_objs.jar (yes, both functions are defined here) My webclient code is like this: <cfobject action="connect" type="java" class="PBWrp" name="PBWrp"> <cftry> <cfset initPBObj = PBWrp.init(pb_host)> <cfset b = PBWrp.cfstr_web_calculate_penalty_monthly(acct_nbr, fund_class, tax_period, pen_rate_nm, measure)> My PBWrp code is like this: public Double cf_web_calculate_interest_monthly(String acct_nbr, String fund_class, String tax_period, String int_rate_nm, String measure) throws IOException ... ldbl_interest = (SQL.getBigDecimal(webbr.web_calculate_interest_monthly(acct_nbr +fund_class, IDL.getDate((java.sql.Date)ldt_today_util),IDL.getDate((java.sql.Date)ldt_due_date_util), int_rate_nm, measure, tax_period))).doubleValue(); and public String cf_web_calculate_interest(String acct_nbr, String fund_class, String tax_period, String int_rate_nm, String measure) throws IOException ... ldbl_interest = (SQL.getBigDecimal(webbr.web_calculate_interest(acct_nbr+fund_class, IDL.getDate((java.sql.Date)ldt_today_util),IDL.getDate((java.sql.Date)ldt_due_date_util), int_rate_nm, measure))).doubleValue(); -- Open BlueDragon Public Mailing List http://www.openbluedragon.org/ http://twitter.com/OpenBlueDragon online manual: http://www.openbluedragon.org/manual/ mailing list - http://groups.google.com/group/openbd?hl=en
