T5.0.7 still can not resolve encoding.
3 Message(s) by 3 Author(s) originally posted in tapestry java
| From: yuan gogo |
Date: Thursday, December 27, 2007
|
------=_Part_9666_28447749.1198810752396
Content-Disposition: inline
I got t5.0.7 this morning. As I'm a Chinese user, I use utf-8 encoding for
my application.
But, while
upload file and some text, I got this:
JAVA.lang.NullPointerException: charsetName
JAVA.lang.String.
<init>(String.JAVA:442)
JAVA.lang.String.
<init>(String.JAVA:516)
org .apache.commons.fileupload.disk.DiskFileItem.getString(DiskFileItem.JAVA:349)
org.apache.tapestry.upload.services.MultipartDecoderImpl.processFileItems(MultipartDecoderImpl.JAVA:117)
org.apache.tapestry.upload.services.MultipartDecoderImpl.decode(MultipartDecoderImpl.JAVA:65)
$MultipartDecoder_1171ead916b.decode($MultipartDecoder_1171ead916b.JAVA)
$MultipartDecoder_1171ead911d.decode($MultipartDecoder_1171ead911d.JAVA)
org.apache.tapestry.upload.services.MultipartServletRequestFilter.service(MultipartServletRequestFilter.JAVA:40)
$HttpServletRequestHandler_1171ead911f.service($HttpServletRequestHandler_1171ead911f.JAVA)
$HttpServletRequestHandler_1171ead911c.service($HttpServletRequestHandler_1171ead911c.JAVA)
org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.JAVA:164)Alrough I solve this problem by add
<filter>
<filter-name>SetCharacterEncoding
</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter
</filter-class>
<init-param>
<param-name>encoding
</param-name>
<param-value>utf-8
</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>SetCharacterEncoding
</filter-name>
<url-pattern>/*
</url-pattern>
</filter-mapping>
in my web.xml.
But I hope this can be handled by tapestry. And a NULL check for charset
name is necessary.
Thank you all !
------=_Part_9666_28447749.1198810752396--
| From: Howard Lewis Ship |
Date: Friday, December 28, 2007
|
Thanks, will look into this.
wrote in message:
I got t5.0.7 this morning. As I'm a Chinese user, I use utf-8 encoding for
my application.
But, while upload file and some text, I got this:
JAVA.lang.NullPointerException: charsetName
JAVA.lang.String.<init>(String.JAVA:442)
JAVA.lang.String.<init>(String.JAVA:516)
org.apache.commons.fileupload.disk.DiskFileItem.getString(DiskFileItem.JAVA:349)
org.apache.tapestry.upload.services.MultipartDecoderImpl.processFileItems(MultipartDecoderImpl.JAVA:117)
org.apache.tapestry.upload.services.MultipartDecoderImpl.decode(MultipartDecoderImpl.JAVA:65)
$MultipartDecoder_1171ead916b.decode($MultipartDecoder_1171ead916b.JAVA)
$MultipartDecoder_1171ead911d.decode($MultipartDecoder_1171ead911d.JAVA)
org.apache.tapestry.upload.services.MultipartServletRequestFilter.service(MultipartServletRequestFilter.JAVA:40)
$HttpServletRequestHandler_1171ead911f.service($HttpServletRequestHandler_1171ead911f.JAVA)
$HttpServletRequestHandler_1171ead911c.service($HttpServletRequestHandler_1171ead911c.JAVA)
org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.JAVA:164)
Alrough I solve this problem by add
<filter>
<filter-name>SetCharacterEncoding</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter
</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>utf-8</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>SetCharacterEncoding</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
in my web.xml.
But I hope this can be handled by tapestry. And a NULL check for charset
name is necessary.
Thank you all !
--
Howard M. Lewis Ship
Creator
Apache Tapestry and Apache HiveMind
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxx
| From: Michael Lake |
Date: Friday, December 28, 2007
|
I'm also having this issue and i'm not even chinese.I did find this
though:
http://wiki.apache.org/tapestry/Tapestry5Utf8Encoding
i will give it a shot with 5.0.8-SNAPSHOT though
wrote in message:
Thanks, will look into this.
wrote in message:
I got t5.0.7 this morning. As I'm a Chinese user, I use utf-8
encoding for
my application.
But, while upload file and some text, I got this:
JAVA.lang.NullPointerException: charsetName
JAVA.lang.String.<init>(String.JAVA:442)
JAVA.lang.String.<init>(String.JAVA:516)
org
.apache
.commons.fileupload.disk.DiskFileItem.getString(DiskFileItem.JAVA:
349)
org
.apache
.tapestry
.upload
.services
.MultipartDecoderImpl.processFileItems(MultipartDecoderImpl.JAVA:117)
org
.apache
.tapestry
.upload
.services.MultipartDecoderImpl.decode(MultipartDecoderImpl.JAVA:65)
$
MultipartDecoder_1171ead916b
.decode($MultipartDecoder_1171ead916b.JAVA)
$
MultipartDecoder_1171ead911d
.decode($MultipartDecoder_1171ead911d.JAVA)
org
.apache
.tapestry
.upload
.services
.MultipartServletRequestFilter
.service(MultipartServletRequestFilter.JAVA:40)
$
HttpServletRequestHandler_1171ead911f
.service($HttpServletRequestHandler_1171ead911f.JAVA)
$
HttpServletRequestHandler_1171ead911c
.service($HttpServletRequestHandler_1171ead911c.JAVA)
org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.JAVA:164)
Alrough I solve this problem by add
<filter>
<filter-name>SetCharacterEncoding</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter
</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>utf-8</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>SetCharacterEncoding</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
in my web.xml.
But I hope this can be handled by tapestry. And a NULL check for
charset
name is necessary.
Thank you all !
--
Howard M. Lewis Ship
Creator Apache Tapestry and Apache HiveMind
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxx
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxx
Next Message: [T4]: Execute arbitrary JS from EventListener