Login

    Register

Managed Hosting

PROJECT CATEGORIES

 

DataFaucet ORM
Project Home Blog Forums Wiki Known Issues External Project Link Contact Project

DataFaucet ORM Issue: waterlog calling non-existent method

Name: waterlog calling non-existent method
ID: 9
Project: DataFaucet ORM
Type: Bug
Area: Code
Severity: Normal
Status: Fixed
Related URL:
Creator: Jay
Created: 10/20/08 12:58 PM
Updated: 11/06/08 3:11 PM
Description: Trying out the examples with the latest version oof DataFaucet. Walked through and all sampes appear fine.
Then trying "Waterlog". After setting up datasource and entering it and database type ("waterlog", "MSAccess") in the form, I receive an error message indicating that the "getBlogUsername" method is not found.

Running ColdFusion 7.02 on Vista, and logged in as administrator of my development workstation (same box running Dreamweaver and CF 7.02).

Error Occurred While Processing Request
The method 'getBlogUsername' could not be found in component C:\CFusionMX7\wwwroot\datafaucet\waterlog\bloguseractiverecord.cfc.
Check to ensure that the method is defined, and that it is spelled correctly.

The error occurred in C:\CFusionMX7\wwwroot\datafaucet\waterlog\Application.cfc: line 100

98 :             <cfset callThePlumber() />
99 :             <cfset owner = application.WaterLog.getOwner() />
100 :             <cfif not len(trim(owner.getBlogUsername()))>
101 :                <cfset session.bloguser = owner />
102 :                <cfset setupUser() />
History: Created by jayDee (Jay) : 10/20/08 12:58 PM

Comment by ike (Isaac Dealey) : 11/06/08 12:48 PM
Oh ... thanks for pointing that out Jay -- that's my fault, getBlogUsername() is supported by a CF8 only feature -- which isn't supposed to be in the sample application. The sample app should read getValue("blogUsername"). I'll try and fix that soon.

Updated by ike (Isaac Dealey) : 11/06/08 3:11 PM
I believe it's fixed -- there were several calls to onMissingMethod driven getters. I haven't tested it on CF7 though. If you still have the problem, I can reopen this issue.

To add a comment to this bug, please login using the link above.