java.io.UnsupportedEncodingException: "utf-8" in ActionInvoker

1,133 views
Skip to first unread message

Jan Mar

unread,
Nov 16, 2011, 8:16:32 AM11/16/11
to play-framework
Hey guys!

I am getting a weird exception when the ActionInvoker tries to handle
a LOCK request with the following headers:

HEADER: content-type=text/xml; charset="utf-8"
HEADER: connection=keep-alive
HEADER: host=localhost:9000
HEADER: content-length=229
HEADER: accept=*/*
HEADER: user-agent=WebDAVFS/1.9.0 (01908000) Darwin/11.2.0 (x86_64)
HEADER: timeout=Second-600
HEADER: depth=0

@68di3kehk
Internal Server Error (500) for request LOCK /logo.png

Oops: UnsupportedEncodingException
An unexpected error occured caused by exception
UnsupportedEncodingException: "utf-8"

play.exceptions.UnexpectedException: Unexpected Error
at play.mvc.ActionInvoker.invoke(ActionInvoker.java:256)
at Invocation.HTTP Request(Play!)
Caused by: java.io.UnsupportedEncodingException: "utf-8"
at java.lang.StringCoding.encode(StringCoding.java:269)
at java.lang.String.getBytes(String.java:946)
at play.mvc.ActionInvoker.invoke(ActionInvoker.java:116)
... 1 more

----------------------------------------------------------------------------------------------------------------

It seems that the encoding is extracted from the content-type header
as "utf-8" including the double quotes. Is this a Play bug or just a
wrong header being sent by Mac OS X Finder?

Best
Jan

Toby Saville

unread,
Mar 1, 2012, 9:38:15 PM3/1/12
to play-fr...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages