{"action":"created","issue":{"url":"https://api.github.com/repos/neo4j/neo4j/issues/7648","repository_url":"https://api.github.com/repos/neo4j/neo4j","labels_url":"https://api.github.com/repos/neo4j/neo4j/issues/7648/labels{/name}","comments_url":"https://api.github.com/repos/neo4j/neo4j/issues/7648/comments","events_url":"https://api.github.com/repos/neo4j/neo4j/issues/7648/events","html_url":"https://github.com/neo4j/neo4j/issues/7648","id":167839716,"number":7648,"title":"enterprise cluster: batch operation with rest call throw an exception with message \"No thread local value in scope for proxy...\"","user":{"login":"mmeloni","id":3756718,"avatar_url":"https://avatars.githubusercontent.com/u/3756718?v=3","gravatar_id":"","url":"https://api.github.com/users/mmeloni","html_url":"https://github.com/mmeloni","followers_url":"https://api.github.com/users/mmeloni/followers","following_url":"https://api.github.com/users/mmeloni/following{/other_user}","gists_url":"https://api.github.com/users/mmeloni/gists{/gist_id}","starred_url":"https://api.github.com/users/mmeloni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmeloni/subscriptions","organizations_url":"https://api.github.com/users/mmeloni/orgs","repos_url":"https://api.github.com/users/mmeloni/repos","events_url":"https://api.github.com/users/mmeloni/events{/privacy}","received_events_url":"https://api.github.com/users/mmeloni/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/neo4j/neo4j/labels/3.0","name":"3.0","color":"006b75"},{"url":"https://api.github.com/repos/neo4j/neo4j/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-07-27T12:17:55Z","updated_at":"2016-08-16T13:58:30Z","closed_at":"2016-08-16T13:58:01Z","body":"- Neo4j version: 3.0.3\r\n- Operating system: debian 8\r\n- API/Driver: rest batch operation \r\n- To reproduce install a clean cluster ha \r\n- Actual behavior: throw an exception with message \"No thread local value in scope for proxy of class\"\r\n\r\nWe have installed a clean enterprise cluster and try a batch operation with rest interface.\r\n\r\nEx:\r\n```\r\ncurl -H \"Content-Type: application/json\" -d '[ {\"method\" : \"PUT\",\"to\" : \"/node/496/properties\",\"body\" : {\"age\" : 1},\"id\" : 0}, {\"method\" : \"GET\",\"to\" : \"/node/496\",\"id\" : 1}, {\"method\" : \"POST\",\"to\" : \"/node\",\"body\" : {\"age\" : 1},\"id\" : 2}, {\"method\" : \"POST\",\"to\" : \"/node\",\"body\" : {\"age\" : 1},\"id\" : 3}]' http://127.0.0.1:7474/db/data/batch\r\n```\r\n\r\nActually we have this exception:\r\n```\r\n{\r\n  \"message\" : \"No thread local value in scope for proxy of class com.sun.proxy.$Proxy72\",\r\n  \"exception\" : \"IllegalStateException\",\r\n  \"fullname\" : \"java.lang.IllegalStateException\",\r\n  \"stackTrace\" : [ \"com.sun.proxy.$Proxy72.getRemoteHost(Unknown Source)\", \"org.neo4j.server.rest.web.InternalJettyServletRequest.getRemoteHost(InternalJettyServletRequest.java:222)\", \"org.neo4j.server.web.AsyncRequestLog.log(AsyncRequestLog.java:69)\", \"org.neo4j.server.web.Jetty9WebServer.invokeDirectly(Jetty9WebServer.java:323)\", \"org.neo4j.server.rest.batch.NonStreamingBatchOperations.invoke(NonStreamingBatchOperations.java:56)\", \"org.neo4j.server.rest.batch.BatchOperations.performRequest(BatchOperations.java:215)\", \"org.neo4j.server.rest.batch.BatchOperations.parseAndPerform(BatchOperations.java:183)\", \"org.neo4j.server.rest.batch.NonStreamingBatchOperations.performBatchJobs(NonStreamingBatchOperations.java:49)\", \"org.neo4j.server.rest.web.BatchOperationService.batchProcess(BatchOperationService.java:155)\", \"org.neo4j.server.rest.web.BatchOperationService.performBatchOperations(BatchOperationService.java:85)\", \"java.lang.reflect.Method.invoke(Method.java:498)\", \"org.neo4j.server.rest.transactional.TransactionalRequestDispatcher.dispatch(TransactionalRequestDispatcher.java:144)\", \"org.neo4j.server.rest.web.CollectUserAgentFilter.doFilter(CollectUserAgentFilter.java:69)\", \"java.lang.Thread.run(Thread.java:745)\" ],\r\n  \"errors\" : [ {\r\n    \"code\" : \"Neo.DatabaseError.General.UnknownError\",\r\n    \"stackTrace\" : \"java.lang.IllegalStateException: No thread local value in scope for proxy of class com.sun.proxy.$Proxy72\\n\\tat com.sun.jersey.server.impl.ThreadLocalInvoker.invoke(ThreadLocalInvoker.java:93)\\n\\tat com.sun.proxy.$Proxy72.getRemoteHost(Unknown Source)\\n\\tat org.neo4j.server.rest.web.InternalJettyServletRequest.getRemoteHost(InternalJettyServletRequest.java:222)\\n\\tat org.neo4j.server.web.AsyncRequestLog.log(AsyncRequestLog.java:69)\\n\\tat org.eclipse.jetty.server.handler.RequestLogHandler.handle(RequestLogHandler.java:113)\\n\\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)\\n\\tat org.neo4j.server.web.Jetty9WebServer.invokeDirectly(Jetty9WebServer.java:323)\\n\\tat org.neo4j.server.rest.batch.NonStreamingBatchOperations.invoke(NonStreamingBatchOperations.java:56)\\n\\tat org.neo4j.server.rest.batch.BatchOperations.performRequest(BatchOperations.java:215)\\n\\tat org.neo4j.server.rest.batch.BatchOperations.parseAndPerform(BatchOperations.java:183)\\n\\tat org.neo4j.server.rest.batch.NonStreamingBatchOperations.performBatchJobs(NonStreamingBatchOperations.java:49)\\n\\tat org.neo4j.server.rest.web.BatchOperationService.batchProcess(BatchOperationService.java:155)\\n\\tat org.neo4j.server.rest.web.BatchOperationService.performBatchOperations(BatchOperationService.java:85)\\n\\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\\n\\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\\n\\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\\n\\tat java.lang.reflect.Method.invoke(Method.java:498)\\n\\tat com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)\\n\\tat com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)\\n\\tat com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)\\n\\tat org.neo4j.server.rest.transactional.TransactionalRequestDispatcher.dispatch(TransactionalRequestDispatcher.java:144)\\n\\tat com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)\\n\\tat com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)\\n\\tat com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)\\n\\tat com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)\\n\\tat com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)\\n\\tat com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)\\n\\tat com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)\\n\\tat com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)\\n\\tat com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)\\n\\tat com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)\\n\\tat com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)\\n\\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:790)\\n\\tat org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)\\n\\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)\\n\\tat org.neo4j.server.rest.web.CollectUserAgentFilter.doFilter(CollectUserAgentFilter.java:69)\\n\\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)\\n\\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)\\n\\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221)\\n\\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)\\n\\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)\\n\\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)\\n\\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)\\n\\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)\\n\\tat org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52)\\n\\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)\\n\\tat org.eclipse.jetty.server.handler.RequestLogHandler.handle(RequestLogHandler.java:95)\\n\\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)\\n\\tat org.eclipse.jetty.server.Server.handle(Server.java:497)\\n\\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)\\n\\tat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)\\n\\tat org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)\\n\\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)\\n\\tat org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)\\n\\tat java.lang.Thread.run(Thread.java:745)\\n\",\r\n    \"message\" : \"No thread local value in scope for proxy of class com.sun.proxy.$Proxy72\"\r\n  } ]\r\n}\r\n```\r\n\r\nWe have talk about that on slack channel. Maybe is a bug?\r\n\r\nOur neo4j config is:\r\n\r\n```\r\ndbms.directories.data=/var/lib/neo4j/data\r\ndbms.directories.plugins=/var/lib/neo4j/plugins\r\ndbms.directories.import=import\r\ndbms.security.auth_enabled=false\r\ndbms.connector.bolt.type=BOLT\r\ndbms.connector.bolt.enabled=true\r\ndbms.connector.bolt.tls_level=OPTIONAL\r\ndbms.connector.http.type=HTTP\r\ndbms.connector.http.enabled=true\r\ndbms.connector.http.address=0.0.0.0:7474\r\ndbms.connector.https.type=HTTP\r\ndbms.connector.https.enabled=true\r\ndbms.connector.https.encryption=TLS\r\ndbms.connector.https.address=localhost:7473\r\ndbms.threads.worker_count=5\r\ndbms.logs.http.enabled=true\r\ndbms.logs.query.threshold=0\r\ndbms.logs.query.rotation.keep_number=7\r\ndbms.mode=HA\r\nha.server_id=2\r\nha.initial_hosts=10.2.0.140:5001,10.2.0.122:5001,10.2.0.187:5001\r\nha.host.coordination=10.2.0.140:5001\r\nha.host.data=10.2.0.140:6001\r\nha.pull_interval=10\r\ndbms.security.ha_status_auth_enabled=false\r\ndbms.shell.host=0.0.0.0\r\ndbms.unmanaged_extension_classes=*************************\r\ndbms.directories.logs=/var/log/neo4j\r\ndbms.directories.run=/var/run/neo4j\r\ndbms.directories.lib=/usr/share/neo4j/lib\r\ndbms.directories.certificates=/var/lib/neo4j/certificates\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/neo4j/neo4j/issues/comments/240109856","html_url":"https://github.com/neo4j/neo4j/issues/7648#issuecomment-240109856","issue_url":"https://api.github.com/repos/neo4j/neo4j/issues/7648","id":240109856,"user":{"login":"jimwebber","id":170553,"avatar_url":"https://avatars.githubusercontent.com/u/170553?v=3","gravatar_id":"","url":"https://api.github.com/users/jimwebber","html_url":"https://github.com/jimwebber","followers_url":"https://api.github.com/users/jimwebber/followers","following_url":"https://api.github.com/users/jimwebber/following{/other_user}","gists_url":"https://api.github.com/users/jimwebber/gists{/gist_id}","starred_url":"https://api.github.com/users/jimwebber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimwebber/subscriptions","organizations_url":"https://api.github.com/users/jimwebber/orgs","repos_url":"https://api.github.com/users/jimwebber/repos","events_url":"https://api.github.com/users/jimwebber/events{/privacy}","received_events_url":"https://api.github.com/users/jimwebber/received_events","type":"User","site_admin":false},"created_at":"2016-08-16T13:58:30Z","updated_at":"2016-08-16T13:58:30Z","body":"Thank you for taking the time to feedback to us @mmeloni."}}
{"actor":{"display_login":"jimwebber"}}