{"action":"created","issue":{"url":"https://api.github.com/repos/awslabs/amazon-kinesis-producer/issues/3","labels_url":"https://api.github.com/repos/awslabs/amazon-kinesis-producer/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/awslabs/amazon-kinesis-producer/issues/3/comments","events_url":"https://api.github.com/repos/awslabs/amazon-kinesis-producer/issues/3/events","html_url":"https://github.com/awslabs/amazon-kinesis-producer/issues/3","id":87936241,"number":3,"title":" Error during socket read: End of file","user":{"login":"Gauravshah","id":620559,"avatar_url":"https://avatars.githubusercontent.com/u/620559?v=3","gravatar_id":"","url":"https://api.github.com/users/Gauravshah","html_url":"https://github.com/Gauravshah","followers_url":"https://api.github.com/users/Gauravshah/followers","following_url":"https://api.github.com/users/Gauravshah/following{/other_user}","gists_url":"https://api.github.com/users/Gauravshah/gists{/gist_id}","starred_url":"https://api.github.com/users/Gauravshah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gauravshah/subscriptions","organizations_url":"https://api.github.com/users/Gauravshah/orgs","repos_url":"https://api.github.com/users/Gauravshah/repos","events_url":"https://api.github.com/users/Gauravshah/events{/privacy}","received_events_url":"https://api.github.com/users/Gauravshah/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-13T05:30:28Z","updated_at":"2015-06-15T17:59:31Z","closed_at":null,"body":"I am trying to use the jar as a library and I am getting the following exception \r\n\r\n`E0612 22:21:52.243887 120803328 io_service_socket.h:196] Error during socket read: End of file; 0 bytes read so far`\r\n\r\n`E0612 22:23:36.134788 120803328 io_service_socket.h:169] Error during socket write: Broken pipe; 0 bytes out of 816 written`\r\n\r\n\r\nEnvironment:\r\n* JRuby 1.7.12 , 1.9 mode\r\n* JDK \"1.8.0_40-ea\"\r\n* Mac OSX 10.10.3\r\n* amazon-kinesis-producer-0.9.0.jar\r\n* protobuf-java-2.6.1.jar\r\n* guava-18.0.jar\r\n* commons-lang-2.6.jar\r\n* commons-compress-1.9.jar\r\n* commons-io-2.4.jar\r\n* slf4j-simple-1.7.12.jar\r\n* slf4j-api-1.7.12.jar\r\n\r\n\r\ncode:\r\n```ruby\r\n          java_import 'com.amazonaws.kinesis.producer.Configuration'\r\n          java_import 'com.amazonaws.kinesis.producer.KinesisProducer'\r\n          java_import 'java.nio.ByteBuffer'\r\n          java_import 'com.google.common.util.concurrent.FutureCallback'\r\n          java_import 'com.google.common.util.concurrent.Futures'\r\n\r\n          kinesis_config = Configuration.new\r\n          kinesis_config.setRegion('us-east-1');\r\n          kinesis_config.setAwsAccessKeyId(\"xxxx\");\r\n          kinesis_config.setAwsSecretKey(\"xxxx\");\r\n          kinesis_config.setMaxConnections(1);\r\n          kinesis_config.setRequestTimeout(60000);\r\n          kinesis_config.setRecordMaxBufferedTime(101);\r\n          @kinesis_producer = KinesisProducer.new(kinesis_config);\r\n\r\n          data = {}\r\n          data[:foo] = :bar\r\n          b= ByteBuffer.wrap(data.to_json.to_java_bytes)\r\n          f = @kinesis_producer.addUserRecord(\"stream_name\",event_id.to_s,b)          \r\n```"},"comment":{"url":"https://api.github.com/repos/awslabs/amazon-kinesis-producer/issues/comments/112153858","html_url":"https://github.com/awslabs/amazon-kinesis-producer/issues/3#issuecomment-112153858","issue_url":"https://api.github.com/repos/awslabs/amazon-kinesis-producer/issues/3","id":112153858,"user":{"login":"kevincdeng","id":11991096,"avatar_url":"https://avatars.githubusercontent.com/u/11991096?v=3","gravatar_id":"","url":"https://api.github.com/users/kevincdeng","html_url":"https://github.com/kevincdeng","followers_url":"https://api.github.com/users/kevincdeng/followers","following_url":"https://api.github.com/users/kevincdeng/following{/other_user}","gists_url":"https://api.github.com/users/kevincdeng/gists{/gist_id}","starred_url":"https://api.github.com/users/kevincdeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevincdeng/subscriptions","organizations_url":"https://api.github.com/users/kevincdeng/orgs","repos_url":"https://api.github.com/users/kevincdeng/repos","events_url":"https://api.github.com/users/kevincdeng/events{/privacy}","received_events_url":"https://api.github.com/users/kevincdeng/received_events","type":"User","site_admin":false},"created_at":"2015-06-15T17:59:30Z","updated_at":"2015-06-15T17:59:30Z","body":"Hi Gaurav,\r\n\r\nThese are usually caused by the server closing sockets. The requests will be retried, so there should be no loss of data.\r\n\r\nWe are aware of the issue and will be working on a fix."}}