{"action":"closed","issue":{"url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4829","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4829/labels{/name}","comments_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4829/comments","events_url":"https://api.github.com/repos/orientechnologies/orientdb/issues/4829/events","html_url":"https://github.com/orientechnologies/orientdb/issues/4829","id":102121056,"number":4829,"title":"OServerCommandGetGephi: Database instance is not set in current thread. >> HTTP 500","user":{"login":"hhund","id":13886086,"avatar_url":"https://avatars.githubusercontent.com/u/13886086?v=3","gravatar_id":"","url":"https://api.github.com/users/hhund","html_url":"https://github.com/hhund","followers_url":"https://api.github.com/users/hhund/followers","following_url":"https://api.github.com/users/hhund/following{/other_user}","gists_url":"https://api.github.com/users/hhund/gists{/gist_id}","starred_url":"https://api.github.com/users/hhund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhund/subscriptions","organizations_url":"https://api.github.com/users/hhund/orgs","repos_url":"https://api.github.com/users/hhund/repos","events_url":"https://api.github.com/users/hhund/events{/privacy}","received_events_url":"https://api.github.com/users/hhund/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/orientechnologies/orientdb/labels/waiting%20reply","name":"waiting reply","color":"eb6420"}],"state":"closed","locked":false,"assignee":{"login":"lvca","id":312606,"avatar_url":"https://avatars.githubusercontent.com/u/312606?v=3","gravatar_id":"","url":"https://api.github.com/users/lvca","html_url":"https://github.com/lvca","followers_url":"https://api.github.com/users/lvca/followers","following_url":"https://api.github.com/users/lvca/following{/other_user}","gists_url":"https://api.github.com/users/lvca/gists{/gist_id}","starred_url":"https://api.github.com/users/lvca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lvca/subscriptions","organizations_url":"https://api.github.com/users/lvca/orgs","repos_url":"https://api.github.com/users/lvca/repos","events_url":"https://api.github.com/users/lvca/events{/privacy}","received_events_url":"https://api.github.com/users/lvca/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/orientechnologies/orientdb/milestones/64","html_url":"https://github.com/orientechnologies/orientdb/milestones/2.1.x%20(next%20hotfix)","labels_url":"https://api.github.com/repos/orientechnologies/orientdb/milestones/64/labels","id":1282180,"number":64,"title":"2.1.x (next hotfix)","description":"","creator":{"login":"lvca","id":312606,"avatar_url":"https://avatars.githubusercontent.com/u/312606?v=3","gravatar_id":"","url":"https://api.github.com/users/lvca","html_url":"https://github.com/lvca","followers_url":"https://api.github.com/users/lvca/followers","following_url":"https://api.github.com/users/lvca/following{/other_user}","gists_url":"https://api.github.com/users/lvca/gists{/gist_id}","starred_url":"https://api.github.com/users/lvca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lvca/subscriptions","organizations_url":"https://api.github.com/users/lvca/orgs","repos_url":"https://api.github.com/users/lvca/repos","events_url":"https://api.github.com/users/lvca/events{/privacy}","received_events_url":"https://api.github.com/users/lvca/received_events","type":"User","site_admin":false},"open_issues":127,"closed_issues":24,"state":"open","created_at":"2015-08-31T15:18:49Z","updated_at":"2015-10-07T11:43:42Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-08-20T11:41:47Z","updated_at":"2015-10-07T11:43:42Z","closed_at":"2015-10-07T11:43:42Z","body":"Hi,\r\n\r\nI'm getting a HTTP 500 while running a SQL query against the gephi GET command in orientdb community edition version 2.1.0. Java 1.8.0_51 x64 on Windows 7.\r\n\r\nExample Query:\r\n```\r\nhttp://localhost:2480/gephi/GratefulDeadConcerts/sql/traverse%20V%20from%20written_by/20\r\n````\r\n\r\nHttp Output:\r\n```javascript\r\n{\r\n  \"errors\": [{\r\n      \"code\": 500,\r\n      \"reason\": 500,\r\n      \"content\": \"com.orientechnologies.orient.core.exception.ODatabaseException: Database instance is not set in current thread. Assure to set it with: ODatabaseRecordThreadLocal.INSTANCE.set(db);\"\r\n      }\r\n  ]\r\n}\r\n```\r\n\r\nLog Output:\r\n```\r\n2015-08-20 13:33:20:487 FINE  [ONetworkProtocolHttpAbstract.execute] Requested: GET /gephi/GratefulDeadConcerts/sql/traverse%20V%20from%20written_by/20 [ONetworkProtocolHttpDb]\r\n2015-08-20 13:33:20:488 FINE  {db=GratefulDeadConcerts} Read record #5:0 v.1 size=119 bytes [OLocalPaginatedStorage]\r\n2015-08-20 13:33:20:488 FINE  {db=GratefulDeadConcerts} Read record #4:0 v.2 size=69 bytes [OLocalPaginatedStorage]\r\n2015-08-20 13:33:20:489 FINE  {db=GratefulDeadConcerts} Read record #12:0 v.2 size=34 bytes [OLocalPaginatedStorage]\r\n2015-08-20 13:33:20:489 FINE  {db=GratefulDeadConcerts} Read record #12:1 v.1 size=34 bytes [OLocalPaginatedStorage]\r\n2015-08-20 13:33:20:489 FINE  {db=GratefulDeadConcerts} Read record #12:2 v.1 size=34 bytes [OLocalPaginatedStorage]\r\n2015-08-20 13:33:20:489 FINE  {db=GratefulDeadConcerts} Read record #12:3 v.1 size=34 bytes [OLocalPaginatedStorage]\r\n2015-08-20 13:33:20:489 FINE  {db=GratefulDeadConcerts} Read record #12:4 v.1 size=34 bytes [OLocalPaginatedStorage]\r\n2015-08-20 13:33:20:489 FINE  {db=GratefulDeadConcerts} Read record #12:5 v.2 size=34 bytes [OLocalPaginatedStorage]\r\n2015-08-20 13:33:20:489 FINE  {db=GratefulDeadConcerts} Read record #12:6 v.2 size=34 bytes [OLocalPaginatedStorage]\r\n2015-08-20 13:33:20:489 FINE  {db=GratefulDeadConcerts} Read record #12:7 v.2 size=34 bytes [OLocalPaginatedStorage]\r\n2015-08-20 13:33:20:489 FINE  {db=GratefulDeadConcerts} Read record #12:8 v.2 size=35 bytes [OLocalPaginatedStorage]\r\n2015-08-20 13:33:20:489 FINE  {db=GratefulDeadConcerts} Read record #12:9 v.2 size=35 bytes [OLocalPaginatedStorage]\r\n2015-08-20 13:33:20:489 FINE  {db=GratefulDeadConcerts} Read record #12:10 v.2 size=35 bytes [OLocalPaginatedStorage]\r\n2015-08-20 13:33:20:489 FINE  {db=GratefulDeadConcerts} Read record #12:11 v.1 size=35 bytes [OLocalPaginatedStorage]\r\n2015-08-20 13:33:20:489 FINE  {db=GratefulDeadConcerts} Read record #12:12 v.2 size=35 bytes [OLocalPaginatedStorage]\r\n2015-08-20 13:33:20:489 FINE  {db=GratefulDeadConcerts} Read record #12:13 v.2 size=35 bytes [OLocalPaginatedStorage]\r\n2015-08-20 13:33:20:489 FINE  {db=GratefulDeadConcerts} Read record #12:14 v.2 size=35 bytes [OLocalPaginatedStorage]\r\n2015-08-20 13:33:20:490 FINE  {db=GratefulDeadConcerts} Read record #12:15 v.2 size=35 bytes [OLocalPaginatedStorage]\r\n2015-08-20 13:33:20:490 FINE  {db=GratefulDeadConcerts} Read record #12:16 v.2 size=35 bytes [OLocalPaginatedStorage]\r\n2015-08-20 13:33:20:490 FINE  {db=GratefulDeadConcerts} Read record #12:17 v.2 size=36 bytes [OLocalPaginatedStorage]\r\n2015-08-20 13:33:20:490 FINE  {db=GratefulDeadConcerts} Read record #12:18 v.1 size=36 bytes [OLocalPaginatedStorage]\r\n2015-08-20 13:33:20:490 FINE  {db=GratefulDeadConcerts} Read record #12:19 v.1 size=35 bytes [OLocalPaginatedStorage]Caught exception\r\ncom.orientechnologies.orient.core.exception.ODatabaseException: Database instance is not set in current thread. Assure to set it with: ODatabaseRecordThreadLocal.INSTANCE.set(db);\r\n\tat com.orientechnologies.orient.core.db.ODatabaseRecordThreadLocal.get(ODatabaseRecordThreadLocal.java:51)\r\n\tat com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.checkIfActive(ODatabaseDocumentTx.java:3131)\r\n\tat com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.close(ODatabaseDocumentTx.java:1129)\r\n\tat com.orientechnologies.orient.graph.server.command.OServerCommandGetGephi.execute(OServerCommandGetGephi.java:99)\r\n\tat com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpAbstract.service(ONetworkProtocolHttpAbstract.java:180)\r\n\tat com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpAbstract.execute(ONetworkProtocolHttpAbstract.java:627)\r\n\tat com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:77)\r\n\r\n2015-08-20 13:33:20:493 SEVER Internal server error:\r\ncom.orientechnologies.orient.core.exception.ODatabaseException: Database instance is not set in current thread. Assure to set it with: ODatabaseRecordThreadLocal.INSTANCE.set(db); [ONetworkProtocolHttpDb]\r\n```\r\n\r\nSince I just started trying out orientdb, please advice if this is a bug or a feature.\r\n\r\nRegards, Hauke"}}