Raymond Camden wrote:

A user is reporting an error on one of my projects and it doesn't make
any kind of sense. The code in question does...

<cfset iBean = createObject("component","components.IssueBean")>
crap, crap, crap
<cfset iBean = application.IssueDAO.create(iBean)>

IssueDAO throws this error:

The argument IBEAN passed to function create() is not of type IssueBean.

Which doesn't make any kind of sense. I did a dump of iBean, and
getMetaData on iBean. It is definitely a component. The name is a bit
odd though:

farcry.Public.www.lighthousepro.components.IssueBean

Shouldn't the last entry on the item be all that matters?


Ray,
I've gotten this error many times...however, I remember exactly I did to correct it...


1. Have you tried just making the type="issueBean" without any path?
2. I assume issueBean returns THIS on the init()? I don't see the cfc returning itself in the example code...


.peter

--
Peter J. Farrell :: Maestro Publishing

blog    :: http://blog.maestropublishing.com
email   :: [EMAIL PROTECTED]

Create boilerplate beans!
Check out the Mach-II Bean Creator - free download.
http://blog.maestropublishing.com/mach-ii_beaner.htm



----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]




Reply via email to