shixin42 / spymemcached

Automatically exported from code.google.com/p/spymemcached
0 stars 0 forks source link

IllegalArgumentException after Switching from SpyMemcached 2.7 to 2.7.1 #204

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What version of the product are you using? On what operating system?
SpyMemcached 2.7.1
Windows XT
JDK 1.6.0_24

Tell me more...
I have been using SpyMemcached 2.7 with no issues.  Just tried to use the new 
2.7.1 release and received the following exception:
java.lang.IllegalArgumentException: Illegal character(s) in message header 
value: Basic bWJidWNrZXQ6YmF0Yj9wYXNz

    at sun.net.www.protocol.http.HttpURLConnection.checkMessageHeader(HttpURLConnection.java:428)
    at sun.net.www.protocol.http.HttpURLConnection.isExternalMessageHeaderAllowed(HttpURLConnection.java:394)
    at sun.net.www.protocol.http.HttpURLConnection.setRequestProperty(HttpURLConnection.java:2378)
    at net.spy.memcached.vbucket.ConfigurationProviderHTTP.urlConnBuilder(ConfigurationProviderHTTP.java:236)
    at net.spy.memcached.vbucket.ConfigurationProviderHTTP.readPools(ConfigurationProviderHTTP.java:105)
    at net.spy.memcached.vbucket.ConfigurationProviderHTTP.getBucketConfiguration(ConfigurationProviderHTTP.java:87)

Please find the attached pom.xml file.  There is no changes other than the 
version of SpyMemcached was changed from 2.7 to 2.7.1.

Your help is greatly appreciated.

Original issue reported on code.google.com by zeming....@gmail.com on 13 Sep 2011 at 6:55

Attachments:

GoogleCodeExporter commented 8 years ago
You need to upgrade your commons-codec jar to version 1.5. Im going to close 
this issue as invalid, please reopen it if my proposed solution doesn't fix the 
problem.

Also on a side note, the release of Spy 2.7.2 will support commons-codec 1.4 
and 1.5.

Original comment by mikewie...@gmail.com on 13 Sep 2011 at 9:54

GoogleCodeExporter commented 8 years ago
Spy 2.7.3 and commons-codec 1.4 and 1.6 still have this problem.
Very appreciated.

Original comment by heyanzhe...@gmail.com on 7 Dec 2011 at 9:48