[jboss-user] [JBoss Portal] - Re: npe for wiki attachments
PeterJ
do-not-reply at jboss.com
Mon Mar 31 14:47:18 EDT 2008
In the MultipartStream class, both methods readBytes() and makeAvailable() contain the statement:
notifier.noteBytesRead(bytesRead);
I simply added a check for null:
if (notifier != null) {
| notifier.noteBytesRead(bytesRead);
| }
To apply this patch:
1) download the fileupload 1.2 source
2) Edit the MultipartStream.java source file
3) Compile only that Java source file, placing the commons fileupload jar in the classpath (you will get 5 class files - there are 4 embedded classes)
4) Replace the existing MultipartStream class files in the jar file with the newly compiled ones.
5) Place the updated jar file into the portal's lib directory.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140258#4140258
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140258
More information about the jboss-user
mailing list