freelanceprogrammers.org Forum Index » Cold Fusion

Java trouble


View user's profile Post To page top
janewilliams20 Posted: Mon Jul 25, 2005 7:52 pm


Joined: 12 Jul 2005

Posts: 20
Java trouble
This may possibly be the most unhelpful error message I`ve encountered.

We`re trying to use a rather nice little UDF we found here

http://www.cflib.org/udf.cfm?ID=997

It unzips things. It`s lovely. I assume it works for others.

But when we try to use it, I get this:
---------------
There was an error on the page (unZipDir).
Message: Object Instantiation Exception.
Detail: An exception occurred when instantiating a java object. The
cause of this exception was that: .
Type: Object
---------------

The cause of the exception was a full-stop - I love it!

The relevant lines in unZipDir.cfm look like this:
<cfscript>
unzipFile(toZip,zipPath);
</cfscript>

and that calls unzipfile.cfm, which contains this:

function unzipFile(zipFilePath, outputPath) {
......
zipFile = createObject("java", "java.util.zip.ZipFile");

My knowledge of Java is quite close to zero. Any guesses what I should
be looking for?

I`ve tried a Google search for that error message, and found people with
the same problem (like here
http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=
69&threadid=1021397&enterthread=y ) but no solutions.

I`m running CFMX, recently patched up to 7. I assume Java is working
after a fashion, since CFMX relies on it these days, doesn`t it?
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
China Wholesale - Electronics Products
Character Studio - Tutorials and Help