jnan77 / jsonrpc4j

Automatically exported from code.google.com/p/jsonrpc4j
0 stars 0 forks source link

JsonMappingException on server when client closes connection #58

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create StreamServer, JsonRpcClient
2. Make a call, then close client connection
3.

What is the expected output? What do you see instead?
Server's log:

SEVERE: Exception while handling request
com.fasterxml.jackson.databind.JsonMappingException: No content to map due to 
end-of-input
 at [Source: com.googlecode.jsonrpc4j.NoCloseInputStream@3e0ebb; line: 1, column: 1]
    at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:163)
    at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:2620)
    at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:2562)
    at com.fasterxml.jackson.databind.ObjectMapper.readTree(ObjectMapper.java:1500)
    at com.googlecode.jsonrpc4j.JsonRpcServer.handle(JsonRpcServer.java:224)
    at com.googlecode.jsonrpc4j.StreamServer$Server.run(StreamServer.java:214)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)

What version of the product are you using? On what operating system?
Ubuntu 12.10, jsonrpc4j 0.28

Please provide any additional information below.
There is a test case in attached file

Original issue reported on code.google.com by Galiulin...@gmail.com on 27 Jun 2013 at 4:18

Attachments:

GoogleCodeExporter commented 8 years ago
0.29-SNAPSHOT contains this problem too

Original comment by Galiulin...@gmail.com on 27 Jun 2013 at 4:22

GoogleCodeExporter commented 8 years ago
Thanks, will address it in the next release.

Original comment by brian.di...@gmail.com on 27 Jun 2013 at 6:00

GoogleCodeExporter commented 8 years ago
moving to github: https://github.com/briandilley/jsonrpc4j/issues

Original comment by brian.di...@gmail.com on 18 Oct 2013 at 11:29

GoogleCodeExporter commented 8 years ago
Anyone know when this will be fixed.

Original comment by ales.jan...@gmail.com on 17 Jun 2014 at 9:49