2011-01-21 3 views
0

数値に「#」文字を渡して呼び出しを開始しようとしています。しかし、私がそのURIを渡すと、次のように例外が発生します。呼び出しを開始する際にIllegalArgumentExceptionが発生しました。#文字

01-21 10:36:21.247:WARN/System.err(383):java.lang.IllegalArgumentException:フラグメントのインデックスが104である不正な文字:

私のコードは、どのように私はそれを解決することができます

 public String getHttpConnectionToServer(String uri, String proxyIP, 
       Integer port, String debugMode) { 

     HttpGet httppost = new HttpGet(uri); 
    HttpResponse response = client.execute(httppost); 
    HttpEntity entity = response.getEntity(); 
    InputStream is = entity.getContent(); 
    BufferedReader reader = new BufferedReader(new InputStreamReader(
     is, "iso-8859-1"), 8); 

    StringBuilder sb = new StringBuilder(); 
} 


Exception is thrown at this line of code : HttpGet httppost = new HttpGet(uri); 

あります?私は、これが問題かもしれないと思う

+0

完全なURIを表示できますか?どのように見えるの? – barmaley

+0

01-21 11:34:42.128:INFO/System.out(458):STRING URI:destinationNo = 12333338 ##### – jennifer

答えて

関連する問題