esper illegalStateException和SocketTimeoutException

时间:2018-04-20 14:30:00

标签: java http esper

只要我通过HTTP向Esper Engine发送一个事件,我就会收到一些错误。有谁知道如何解决这个问题?

该事件在配置或部署中定义。

16:08:43,549 [Thread-21] INFO  [EsperHttpServiceClassicRunnable] Incoming connection service 'myservice' from /0:0:0:0:0:0:0:1
16:08:43,550 [Thread-21] INFO  [EsperHttpServiceClassicRunnable] Incoming connection service 'myservice' from /0:0:0:0:0:0:0:1
16:08:43,555 [Thread-21] INFO  [EsperHttpServiceClassicRunnable] Incoming connection service 'myservice' from /0:0:0:0:0:0:0:1
16:08:43,662 [Thread-71] ERROR [EsperHttpRequestHandler] Error processing Http GET request target '/favicon.ico' :Null event type name parameter
java.lang.IllegalStateException: Null event type name parameter
        at com.espertech.esper.event.EventAdapterServiceImpl.getExistsTypeByName(EventAdapterServiceImpl.java:310)
        at com.espertech.esperio.http.EsperHttpRequestHandler.makeCacheEntry(EsperHttpRequestHandler.java:94)
        at com.espertech.esperio.http.EsperHttpRequestHandler.handle(EsperHttpRequestHandler.java:71)
        at com.espertech.esperio.http.EsperHttpRequestHandler.handle(EsperHttpRequestHandler.java:59)
        at org.apache.http.protocol.HttpService.doService(HttpService.java:375)
        at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:290)
        at com.espertech.esperio.http.core.WorkerThread.run(WorkerThread.java:47)
16:08:48,560 [Thread-72] ERROR [WorkerThread] I/O error: Read timed out
java.net.SocketTimeoutException: Read timed out
        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.socketRead(Unknown Source)
        at java.net.SocketInputStream.read(Unknown Source)
        at java.net.SocketInputStream.read(Unknown Source)
        at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:166)
        at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:90)
        at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:281)
        at org.apache.http.impl.io.DefaultHttpRequestParser.parseHead(DefaultHttpRequestParser.java:92)
        at org.apache.http.impl.io.DefaultHttpRequestParser.parseHead(DefaultHttpRequestParser.java:59)
        at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:254)
        at org.apache.http.impl.AbstractHttpServerConnection.receiveRequestHeader(AbstractHttpServerConnection.java:247)
        at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:246)
        at com.espertech.esperio.http.core.WorkerThread.run(WorkerThread.java:47)
16:08:48,560 [Thread-73] ERROR [WorkerThread] I/O error: Read timed out
java.net.SocketTimeoutException: Read timed out
        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.socketRead(Unknown Source)
        at java.net.SocketInputStream.read(Unknown Source)
        at java.net.SocketInputStream.read(Unknown Source)
        at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:166)
        at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:90)
        at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:281)
        at org.apache.http.impl.io.DefaultHttpRequestParser.parseHead(DefaultHttpRequestParser.java:92)
        at org.apache.http.impl.io.DefaultHttpRequestParser.parseHead(DefaultHttpRequestParser.java:59)
        at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:254)
        at org.apache.http.impl.AbstractHttpServerConnection.receiveRequestHeader(AbstractHttpServerConnection.java:247)
        at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:246)
        at com.espertech.esperio.http.core.WorkerThread.run(WorkerThread.java:47)
16:08:48,662 [Thread-71] ERROR [WorkerThread] I/O error: Read timed out
java.net.SocketTimeoutException: Read timed out
        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.socketRead(Unknown Source)
        at java.net.SocketInputStream.read(Unknown Source)
        at java.net.SocketInputStream.read(Unknown Source)
        at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:166)
        at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:90)
        at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:281)
        at org.apache.http.impl.io.DefaultHttpRequestParser.parseHead(DefaultHttpRequestParser.java:92)
        at org.apache.http.impl.io.DefaultHttpRequestParser.parseHead(DefaultHttpRequestParser.java:59)
        at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:254)
        at org.apache.http.impl.AbstractHttpServerConnection.receiveRequestHeader(AbstractHttpServerConnection.java:247)
        at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:246)
        at com.espertech.esperio.http.core.WorkerThread.run(WorkerThread.java:47)

我怀疑它与favicon.ico有关,但我不确定。该请求是通过Chrome完成的。

1 个答案:

答案 0 :(得分:0)

线索是第一个异常" IllegalStateException:Null事件类型名称参数"。显然缺少一个参数,它是事件类型的名称。这可能是造成后续例外的原因。