在加载下抛出Jetty java.lang.IndexOutOfBoundsException

时间:2016-09-28 09:56:09

标签: java jetty

我有一个简单的嵌入式Jetty设置,可以解决在加载时偶尔会出现以下错误的查询。如果我运行相同的围攻测试,它将始终显示100%完成但偶尔Jetty会抛出以下异常。

我在我的代码中试了一下,但是没有被触发,所以看起来这个例外被Jetty"陷入困境"。 SLF4J:消息肯定不是我的!

任何想法。!?

SLF4J: Failed toString() invocation on an object of type [org.eclipse.jetty.server.HttpConnection]MethodLogger.INIT 2016-09-28T09:51:18.325Z qtp992136656-31 SYSTEM_LOGGER : [Void org.twocows.adtexo.node.jena.dataset.SPARQLJenaDatasetHttpServlet.doGet(HttpServletRequest,HttpServletResponse)]#257 null
MethodLogger.RETURN_VOID 2016-09-28T09:51:18.325Z qtp992136656-31 SYSTEM_LOGGER : [Void org.twocows.adtexo.node.jena.dataset.SPARQLJenaDatasetHttpServlet.doGet(HttpServletRequest,HttpServletResponse)]#257 Void
MethodLogger.INIT 2016-09-28T09:51:18.325Z qtp992136656-35 SYSTEM_LOGGER : [Void org.twocows.adtexo.node.jena.dataset.SPARQLJenaDatasetHttpServlet.doGet(HttpServletRequest,HttpServletResponse)]#258 null
MethodLogger.RETURN_VOID 2016-09-28T09:51:18.325Z qtp992136656-35 SYSTEM_LOGGER : [Void org.twocows.adtexo.node.jena.dataset.SPARQLJenaDatasetHttpServlet.doGet(HttpServletRequest,HttpServletResponse)]#258 Void
MethodLogger.INIT 2016-09-28T09:51:18.325Z qtp992136656-31 SYSTEM_LOGGER : [Void org.twocows.adtexo.node.jena.dataset.SPARQLJenaDatasetHttpServlet$2.run()]#259 null
MethodLogger.INIT 2016-09-28T09:51:18.325Z qtp992136656-35 SYSTEM_LOGGER : [Void org.twocows.adtexo.node.jena.dataset.SPARQLJenaDatasetHttpServlet$2.run()]#260 null

Reported exception:
java.lang.IndexOutOfBoundsException
    at java.nio.Buffer.checkIndex(Buffer.java:540)
    at java.nio.HeapByteBuffer.get(HeapByteBuffer.java:139)
    at org.eclipse.jetty.util.BufferUtil.appendDebugString(BufferUtil.java:1042)
    at org.eclipse.jetty.util.BufferUtil.toDetailString(BufferUtil.java:1021)
    at org.eclipse.jetty.server.HttpConnection.toString(HttpConnection.java:809)
    at org.slf4j.helpers.MessageFormatter.safeObjectAppend(MessageFormatter.java:299)
    at org.slf4j.helpers.MessageFormatter.deeplyAppendParameter(MessageFormatter.java:271)
    at org.slf4j.helpers.MessageFormatter.arrayFormat(MessageFormatter.java:233)
    at org.slf4j.helpers.MessageFormatter.arrayFormat(MessageFormatter.java:173)
    at org.eclipse.jetty.util.log.JettyAwareLogger.log(JettyAwareLogger.java:619)
    at org.eclipse.jetty.util.log.JettyAwareLogger.debug(JettyAwareLogger.java:206)
    at org.eclipse.jetty.util.log.Slf4jLog.debug(Slf4jLog.java:89)
    at org.eclipse.jetty.server.HttpConnection.parseRequestBuffer(HttpConnection.java:346)
    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:226)
    at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:245)
    at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
    at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:75)
    at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:213)
    at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:147)
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654)
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572)
    at java.lang.Thread.run(Thread.java:745)

0 个答案:

没有答案