最近一个项目要用到FTP做上传下载,我访问ftp的url中有中文名称,结果每次都报如下错: 1 Exception in thread "main" java.lang.IllegalArgumentException 2 at sun.net.www.ParseUtil.decode(Unknown Source) 3 at sun.net.www.protocol.ftp.FtpURLConnection.decodePath(Unknown Source) 4 at sun.ne…
今天没事来写个播放器,照搬书上的原句,其中一句 //用于启动和停止service的Intent final Intent it = new Intent("android.mu.action.music"); 在运行的时候就出了问题,经百度,是Android5.0以后不能这么写了,所以挂了(看来书要读新啊,技术变化太快,旧书过时了). 那么该怎么改? //用于启动和停止service的Intent final Intent it = new Intent(当前类名.this,要调用的S…
报错出现 java.lang.IllegalArgumentException: Control character in cookie value or attribute. at org.apache.tomcat.util.http.CookieSupport.isHttpSeparator(CookieSupport.java:205) at org.apache.tomcat.util.http.CookieSupport.isHttpToken(CookieSupport.java:…
MyEclipse 启动tomcat 报错: java.lang.IllegalArgumentException: Invalid 'log4jConfigLocation' parameter: class path resource [log4j.properties] cannot be resolved to URL because it does not exist 解决办法: 1. 右键项目--properties- Java Build Path --Libraries 中加入…
今天在写智能机器人问答实现的时候遇到了一个问题,就是我发送消息不能输入空格 给我报了一个错误java.lang.IllegalArgumentException: Illegal character in query at index说是我输入的数据有问题,在这里说明因为在我们使用的是get方式传输数据,它会在url后面跟上你所带的参数,所以就存在url的组成数据问题url转换问题解决办法 你只需要在你的Url后面加上下面的语句就行了 String url = baseUrl + "?"…