
|
If you were logged in you would be able to see more operations.
|
|
|
WebWork
Created: 09/Sep/04 03:44 PM
Updated: 10/Sep/04 01:17 PM
|
|
| Component/s: |
Dispatch
|
| Affects Version/s: |
2.1.1
|
| Fix Version/s: |
2.1.2
|
|
|
Environment:
|
Tomcat 5.0.27, Jakarta File Upload
|
|
|
Ripped from my blog...
After much debugging and code walking I found that this piece of code on (JakartaMultiPartRequest:67):
values.add(item.getString(servletRequest.getCharacterEncoding()));
Would throw "NullPointerException: charsetName" when I had a form that had mixed content (i.e. normal fields and file uploads). I am running Tomcat 5.0.27, which I could see potentially being be the ultimate culprit. My cheap workaround was to patch the WebWork jar to have the line read:
values.add(item.getString("UTF-8));
Which is likely a horrible and dangerous hack...
|
|
Description
|
Ripped from my blog...
After much debugging and code walking I found that this piece of code on (JakartaMultiPartRequest:67):
values.add(item.getString(servletRequest.getCharacterEncoding()));
Would throw "NullPointerException: charsetName" when I had a form that had mixed content (i.e. normal fields and file uploads). I am running Tomcat 5.0.27, which I could see potentially being be the ultimate culprit. My cheap workaround was to patch the WebWork jar to have the line read:
values.add(item.getString("UTF-8));
Which is likely a horrible and dangerous hack... |
Show » |
|