On Saturday, September 7, 2002, at 09:08 , Joe Eugene wrote:
>  I am trying to invoke a java class with CFobject and CFMX doesnt
>  like something...
>
> <cfobject action="Create" type="Java" class="chkString" name="obj">
> <cfset x=obj.getString()>
>
> it creates the object "obj" but says there is an error on "obj.getString(
> )"

Use <cfdump var="#obj#"> to see exactly what you created - it will dump 
out a Java object will all the methods.

It doesn't look like you're calling init() either - CF requires that you 
call init() after creating the object so that it is correctly constructed.
  I think your code should read:

<cfobject action="Create" type="Java" class="chkString" name="obj">
<cfset obj.init()>
<cfset x=obj.getString()>

Sean A Corfield -- http://www.corfield.org/blog/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to