Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
shailajaj #1
Coldfsuion + Java Instantiation Exception
Hi,
This is the error I am getting:
An exception occurred when instantiating a java object. The cause of this
exception was that: .
when I try to create the following java object:
<cfobject action="create" type="java" class="RequestIF" name="reqif">
<cfset x=reqif.AUTHORIZE>
<cfset req =
createObject('java','com.paymentech.orbital.sdk.re quest.Request').init(#x#)>
Can Somebody please help!!!!!!!
shailajaj Guest
-
Java version Exception
I have cold fusion version: 6,1,0,83762 and I am using j2sdk1.4.1_01 to build my java classes.....when I try to access the java classes..from cold... -
java.sql sql exception
i get a run-time error anytime i run this code, could anyone help. it is an assignment due on monday and i have spent enough hours trying to figure... -
java class instantiation problem
i have a custom java class in ..webinf/classes. the class works fine on my dev box, but fails to instantiate on my prodcution box. both boxes have... -
Object Instantiation Exception on move to CVMX 7
Hi there I am currently migrating from CFMX 6.1 to CFMX 7 and I am having an issue with accessing external java files from within coldfusion even... -
PHP dynamic class instantiation like Java
I've leafed through the docs and user comments on php.net, but haven't been able to find anything related to this. Is there a way to dynamically... -
helpathand #2
Re: Coldfsuion + Java Instantiation Exception
Thanks mxstu, I will try that and let you know how it goes.
mxstu wrote:> Try calling the init(#x#) method in a separate statement.
>
> Maybe this working example might help? It uses java.io.file to list all files
> in the current directory.
>
>
>
> <!--- create file object to lists all files in the current directory --->
> <cfobject action="create" type="java" class="java.io.File" name="obj">
> <cfset myCurrDir = getDirectoryFromPath(getTemplatePath())>
> <cfset dirObj = obj.init(myCurrDir)>
> <cfset dirList = dirObj.list()>
>
> <cfoutput>
> <b>CurrentDirectory:</b> #myCurrDir#<br>
> <cfloop from="1" to="#ArrayLen(dirList)#" index="i">
> #myCurrDir##dirList[i]#<br>
> </cfloop>
> </cfoutput>helpathand Guest
-
shailajaj #3
Re: Coldfsuion + Java Instantiation Exception
That dint work! I am trying to convert the following code to
coldfusion.... thats when I get the error :An exception occurred when
instantiating a java object. The cause of this
exception was that: .
Is there a better way to write this code in coldfusion?
RequestIF request = null;
request = new Request(RequestIF.AUTHORIZE);
shailajaj Guest
-
DaveHatz #4
Re: Coldfsuion + Java Instantiation Exception
shailajaj,
Did you ever get PaymenTech working with ColdFusion?
Dave Hatz
DaveHatz Guest



Reply With Quote

