{"action":"created","issue":{"url":"https://api.github.com/repos/openlink/virtuoso-opensource/issues/551","repository_url":"https://api.github.com/repos/openlink/virtuoso-opensource","labels_url":"https://api.github.com/repos/openlink/virtuoso-opensource/issues/551/labels{/name}","comments_url":"https://api.github.com/repos/openlink/virtuoso-opensource/issues/551/comments","events_url":"https://api.github.com/repos/openlink/virtuoso-opensource/issues/551/events","html_url":"https://github.com/openlink/virtuoso-opensource/issues/551","id":148075974,"number":551,"title":"virtuoso.jdbc4.VirtuosoInputStream/convByte2UTF causes ArrayIndexOutOfBoundsException","user":{"login":"fgiasson","id":216022,"avatar_url":"https://avatars.githubusercontent.com/u/216022?v=3","gravatar_id":"","url":"https://api.github.com/users/fgiasson","html_url":"https://github.com/fgiasson","followers_url":"https://api.github.com/users/fgiasson/followers","following_url":"https://api.github.com/users/fgiasson/following{/other_user}","gists_url":"https://api.github.com/users/fgiasson/gists{/gist_id}","starred_url":"https://api.github.com/users/fgiasson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fgiasson/subscriptions","organizations_url":"https://api.github.com/users/fgiasson/orgs","repos_url":"https://api.github.com/users/fgiasson/repos","events_url":"https://api.github.com/users/fgiasson/events{/privacy}","received_events_url":"https://api.github.com/users/fgiasson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"smalinin","id":765462,"avatar_url":"https://avatars.githubusercontent.com/u/765462?v=3","gravatar_id":"","url":"https://api.github.com/users/smalinin","html_url":"https://github.com/smalinin","followers_url":"https://api.github.com/users/smalinin/followers","following_url":"https://api.github.com/users/smalinin/following{/other_user}","gists_url":"https://api.github.com/users/smalinin/gists{/gist_id}","starred_url":"https://api.github.com/users/smalinin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smalinin/subscriptions","organizations_url":"https://api.github.com/users/smalinin/orgs","repos_url":"https://api.github.com/users/smalinin/repos","events_url":"https://api.github.com/users/smalinin/events{/privacy}","received_events_url":"https://api.github.com/users/smalinin/received_events","type":"User","site_admin":false},"milestone":null,"comments":9,"created_at":"2016-04-13T14:17:54Z","updated_at":"2016-04-18T18:23:57Z","closed_at":null,"body":"I am using the latest version of the `[virt_sesame4.jar](https://github.com/openlink/virtuoso-opensource/tree/develop/7/binsrc/sesame4)` and I am getting this exception while getting results for a query:\r\n\r\n```\r\n3. Unhandled org.openrdf.query.QueryEvaluationException\r\n2. Caused by virtuoso.jdbc4.VirtuosoException\r\n1. Caused by java.lang.ArrayIndexOutOfBoundsException\r\n   45\r\n\r\n  VirtuosoInputStream.java:  325  virtuoso.jdbc4.VirtuosoInputStream/convByte2UTF\r\n  VirtuosoInputStream.java:  158  virtuoso.jdbc4.VirtuosoInputStream/read_object\r\n  VirtuosoInputStream.java:  492  virtuoso.jdbc4.VirtuosoInputStream/readRdfBox\r\n  VirtuosoInputStream.java:  259  virtuoso.jdbc4.VirtuosoInputStream/read_object\r\n  VirtuosoInputStream.java:   70  virtuoso.jdbc4.VirtuosoInputStream/read_object\r\n  VirtuosoInputStream.java:   70  virtuoso.jdbc4.VirtuosoInputStream/read_object\r\n  VirtuosoInputStream.java:   70  virtuoso.jdbc4.VirtuosoInputStream/read_object\r\n   VirtuosoConnection.java:  482  virtuoso.jdbc4.VirtuosoConnection/read_request\r\n       VirtuosoFuture.java:   55  virtuoso.jdbc4.VirtuosoFuture/nextResult\r\n    VirtuosoResultSet.java:  215  virtuoso.jdbc4.VirtuosoResultSet/process_result\r\n    VirtuosoResultSet.java:  857  virtuoso.jdbc4.VirtuosoResultSet/next\r\n     ResultSetWrapper.java:   69  virtuoso.jdbc4.ResultSetWrapper/next\r\nVirtuosoRepositoryConnection.java: 3166  virtuoso.sesame4.driver.VirtuosoRepositoryConnection$CloseableIterationBase/moveForward\r\nVirtuosoRepositoryConnection.java: 3114  virtuoso.sesame4.driver.VirtuosoRepositoryConnection$CloseableIterationBase/hasNext\r\n     IterationWrapper.java:   68  info.aduna.iteration.IterationWrapper/hasNext\r\n                 query.clj:  270  cognonto-rdf.query/bindings->sparql-edn-seq/fn\r\n```\r\n\r\nOne of the problem I see is that the line numbers does not fit what I can see here:\r\n\r\n- https://github.com/openlink/virtuoso-opensource/blob/ea51ed3b81a43250ed2e3cfa77ee6e0116388b4b/libsrc/JDBCDriverType4/virtuoso/jdbc2/VirtuosoInputStream.java\r\n\r\nThis problem occurs when I am creating a lazy sequence that convert Convert a TupleQueryResult (a set of bindings) into a SPARQL Results EDN structure. This happens when I all `.hasNext` on the TupleQueryResult object.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/openlink/virtuoso-opensource/issues/comments/211514143","html_url":"https://github.com/openlink/virtuoso-opensource/issues/551#issuecomment-211514143","issue_url":"https://api.github.com/repos/openlink/virtuoso-opensource/issues/551","id":211514143,"user":{"login":"fgiasson","id":216022,"avatar_url":"https://avatars.githubusercontent.com/u/216022?v=3","gravatar_id":"","url":"https://api.github.com/users/fgiasson","html_url":"https://github.com/fgiasson","followers_url":"https://api.github.com/users/fgiasson/followers","following_url":"https://api.github.com/users/fgiasson/following{/other_user}","gists_url":"https://api.github.com/users/fgiasson/gists{/gist_id}","starred_url":"https://api.github.com/users/fgiasson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fgiasson/subscriptions","organizations_url":"https://api.github.com/users/fgiasson/orgs","repos_url":"https://api.github.com/users/fgiasson/repos","events_url":"https://api.github.com/users/fgiasson/events{/privacy}","received_events_url":"https://api.github.com/users/fgiasson/received_events","type":"User","site_admin":false},"created_at":"2016-04-18T18:23:56Z","updated_at":"2016-04-18T18:23:56Z","body":"@smalinin any news on that?"}}