Ok, than what Mark and Dave wrote (and Russ just added) will have to be
done. Your code should like like:

In the Java class, create a blank constructor:

public IRMark() { }

Within your ColdFusion logic:

<cfset aFileName = ArrayNew(1)>
<cfset aFileName[1] = "input.xml">
<cfscript>
jArray = aFileName.toArray();
</cfscript>
<cfobject action="create" type="Java" class="IRMark" name="myObj">
<cfset myObj.init()>
<cfset ret=myObj.main(jArray)>

That should work. CF hasn't really considered the Java object an
instance until the constructor is called. HTH,

Phil

-----Original Message-----
From: Andrew Whone [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 16, 2007 9:58 AM
To: CF-Talk
Subject: Re: CF and Java

>Andrew,
>
>My 1.2 referred to version 1.2 of the Apache XML Security Library:
>http://xml.apache.org/security/dist/java-library/old/xml-security-bin-1
_
>2_0.zip. I did have to upgrade to the 1.2.96 version of the xmlsec.jar
>file:
>http://xml.apache.org/security/dist/java-library/old/xmlsec-1.2.96.jar.
>What is the exact error you are receiving? Can you look in the CF logs
>or run debugging to capture the error message? Thanks,
>
>Phil
Phil
>From the application.log
"Error","web-4","04/16/07","15:03:39",,"The selected method main was not
found.Either there are no methods with the specified method name and
argument types, or the method main is overloaded with arguments types
that ColdFusion can't decipher reliably. If this is a Java object and
you verified that the method exists, you may need to use the javacast
function to reduce ambiguity. The specific sequence of files included or
processed is: C:\CFusionMX7\wwwroot\tradesmen\tradesman1
\CIS\CISverify1.cfm, line: 339 "
A+



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create Web Applications With ColdFusion MX7 & Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:275364
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to