leeoo / spymemcached

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

IllegalArgumentException: Illegal character(s) in message header value #223

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I follow the website example code and I get this error.

--------------
Exception in thread "main" java.lang.IllegalArgumentException: Illegal 
character(s) in message header value: Basic ZGVmYXVsdDo=
    at sun.net.www.protocol.http.HttpURLConnection.checkMessageHeader(HttpURLConnection.java:316)
    at sun.net.www.protocol.http.HttpURLConnection.setRequestProperty(HttpURLConnection.java:2134)
    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)
    at net.spy.memcached.MemcachedClient.<init>(MemcachedClient.java:255)
    at net.spy.memcached.MemcachedClient.<init>(MemcachedClient.java:216)
    at net.spy.memcached.MemcachedClient.<init>(MemcachedClient.java:340)
    at com.test.Membase.main(Membase.java:43)
----------

Version of the product & Operating system
A: Java Client Library is memcachedclient 2.7.2, and Membase Server is running 
at CentOS 6.0 Final(Kenel Linux 2.6.32-71.el6.i686). Example Code is running at 
WinXP Pro SP3. Example Project's charset is UTF-8.
Thanks very much.

Original issue reported on code.google.com by heyanzhe...@gmail.com on 7 Dec 2011 at 9:33

GoogleCodeExporter commented 9 years ago
Please try 2.7.3, we added some fixes for the authentication headers there.  I 
believe it will solve your issue.  If not, please post a comment and re-open 
this issue.

Original comment by ingen...@gmail.com on 27 Dec 2011 at 10:00