我正在使用tomcat 7.0.57和jersey 1.18.3版本,并不时从tomcat请求响应代码500。 在catalina.out中我看到:
SEVERE: Servlet.service() for servlet [{Servlet_name}] in context with path
[/{my war name}] threw exception [Servlet execution threw an exception] with
root cause
java.lang.StackOverflowError
at java.lang.String.toLowerCase(Unknown Source)
at com.sun.jersey.core.util.StringIgnoreCaseKeyComparator.hash(StringIgnoreCaseKeyComparator.java:53)
at com.sun.jersey.core.util.StringIgnoreCaseKeyComparator.hash(StringIgnoreCaseKeyComparator.java:48)
at com.sun.jersey.core.util.KeyComparatorHashMap.keyComparatorHash(KeyComparatorHashMap.java:294)
at com.sun.jersey.core.util.KeyComparatorHashMap.containsKey(KeyComparatorHashMap.java:359)
at com.sun.jersey.api.client.filter.HTTPBasicAuthFilter.handle(HTTPBasicAuthFilter.java:78)
at com.sun.jersey.api.client.filter.HTTPBasicAuthFilter.handle(HTTPBasicAuthFilter.java:81)
它能是什么? 我看到我的代码中没有循环罐子,只有tomcat的...(使用tattletale检查) 是tomcat错误吗? 球衣? 我自己的 ? 请指教......