Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

File Upload Error

$
0
0
Hi everyone,

I was trying to add a file upload component to a page. After adding the
tapestry-upload dependency to my POM, I kept getting exceptions trying to
convert CoffeeScript Files to JavaScript files:

[ERROR] TapestryModule.RequestExceptionHandler Processing of request failed
with uncaught exception: java.lang.NoSuchMethodError:
org.apache.commons.io.IOUtils.toString(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Ljava/lang/String;

java.lang.NoSuchMethodError:
org.apache.commons.io.IOUtils.toString(Ljava/io/InputStream;Ljava/nio/charset/Charset;)Ljava/lang/String;

After doing a little exploring, I found the commons-io dependency in
tapestry-upload:

<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.0.1</version>
<scope>compile</scope>
</dependency>

I then overrode tapestry-upload's commons-io with version 2.4 and the
exception went away and CoffeeScript to JavaScript conversion started
working again.

Has anyone else used tapestry-upload in 5.4? Did you encounter issues with
this JAR and/or have to update the version?

Thanks,

mrg

Viewing all articles
Browse latest Browse all 5648

Trending Articles