> <cfset readFile = createObject("java", "java.io.FileInputStream")
><cfset infile = readFile.init(filePath)>
That class comes with the jvm so you don't need to install anything. The most likely cause is your filePath is wrong or the file you're trying to read is locked. Verify your filepath is correct.
<cfoutput>
filePath = #filePath#<br>
FileExists = #FileExists(filePath)#<br>
</cfoutput>
> Object Instantiation Exception.
> An exception occurred when instantiating a Java object. The class must not be an
> interface or an abstract class. Error: ''.
That's a catch all error message that doesn't tell you much. You have to enable robust debugging in the CF Admin and look at the stack trace to get the true cause of the error.
Main Topics
Browse All Topics





by: SidFishesPosted on 2009-10-02 at 07:56:53ID: 25478525
I'm not a java guy at all but one quick thing to try.. make sure your java app is registered in the classpath in cfadmin
trell/arch ives/2004/ 07/ the_def initive.ht ml
full details here
http://blogs.adobe.com/can
after that...I'm out of ideas.