[prev in list] [next in list] [prev in thread] [next in thread]
List: jboss-user
Subject: [jboss-user] [JBoss Portal] - Re: npe for wiki attachments
From: PeterJ <do-not-reply () jboss ! com>
Date: 2008-03-31 18:47:18
Message-ID: 14837467.1206989238252.JavaMail.jboss () colo-br-02 ! atl ! jboss ! com
[Download RAW message or body]
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
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic