分类: 异常

Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986

发表于6年前(Apr 5, 2017 9:53:00 AM)  阅读 12415  评论 3

分类: 异常 Java

标签: RFC 7230 RFC 3986

java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986
	at org.apache.coyote.http11.InternalInputBuffer.parseRequestLine(InternalInputBuffer.java:189)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1000)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
	at org.apache.tomcat.util.n
......

RMI CacheException - problem starting listener for RMICachePeer

发表于7年前(May 24, 2016 2:18:04 PM)  阅读 3738  评论 0

分类: Java 异常

标签: Ehcache CacheException RMICachePeer

在tomcat下使用ehcache时,启动报错。在ehcache官网Tomcat Issues and Best Practices一文中有明确说:

I get the following error:

net.sf.ehcache.CacheException: Problem starting listener for RMICachePeer ... java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is: java.net.MalformedURLException: no protocol: Files/Apache.

What is going on? This issue occurs to any RMI listener

......

A cycle was detected in the build path of project: XXX

发表于7年前(Jun 16, 2015 10:45:32 AM)  阅读 2294  评论 0

分类: Java 开发运维环境 异常

标签: 循环依赖

昨天从公司svn服务器上拉取一个历史遗留项目,项目采取分模块工程方式开发,但是模块间出现了相互依赖的情况,这是很不合理的,我们要避免这种情况的发生。出现这种情况的时候,eclipse给出了A cycle was detected in the build path of project: XXX  错误信息,一个循环依赖被检查到,导致无法编译。

最简单的方法,参照网上给出的,直接将eclipse这个错误级别由error改成warning。

Eclipse Menu -> Window -> Preferences... -> Java -> Compiler -> Building -> Building path problems -> Circular dependencies -> 将Error改成Warning。

以上是将整个工作空间的编译选项都改了,一般建议只修改报错工程的编译选项就行

......

org.apache.tomcat.util.http.parser.TokenMgrError

发表于8年前(May 24, 2015 8:30:46 PM)  阅读 2907  评论 0

分类: Java 异常

标签: TokenMgrError setContentType

1、TokenMgrError

前两天同事搭建项目环境,在eclipse部署完启动项目时出现如下报错:

org.apache.tomcat.util.http.parser.TokenMgrError: Lexical error at line 1, column 16. Encountered: "," (44), after : ""

同事环境跟笔者唯一不同的地方就是tomcat使用的版本是7,而笔者使用的是6。

2、错误定位

根据错误提示,定位到报错的代码应该是如下一行:

this.getRespone().setContentType("text/javascript,charset=UTF-8");

text/javascript是在服务器返回json数据时设置,这里同时设置了字符集为UTF-8,两者之间使用的","分隔,就是这个逗号出现了问题。

......