# Describe Request : LongHashSet can't handle long element which equal to 0

**URL:** <https://community.stardog.com/t/describe-request-longhashset-cant-handle-long-element-which-equal-to-0/1856>\
**Category:** Bug\
**Created:** [August 28, 2019, 9:24am UTC](https://community.stardog.com/t/describe-request-longhashset-cant-handle-long-element-which-equal-to-0/1856 "2019-08-28T09:24:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![witchBioinformatics](https://avatars.discourse-cdn.com/v4/letter/w/71e660/32.png) [@witchBioinformatics](https://community.stardog.com/u/witchBioinformatics)\
**Post date:** [August 28, 2019, 9:24am UTC](https://community.stardog.com/t/describe-request-longhashset-cant-handle-long-element-which-equal-to-0/1856/1 "2019-08-28T09:24:09Z")

</div>

For my project i've built an html/js page for show a graph with individual from my stardog database. A java server is between the html/js page and the stardog for write sparql request, execute them and then convert the result for the graph.

I use pragma describe.strategy bidirectional for my requests.  
Example : DESCRIBE [http://medicis.univ-rennes1.fr/ontologies/ontospm/OntoMEDIRAD.owl#Patient\_f4df4492-4e04-42f2-a20f-a3208d4021cc](http://medicis.univ-rennes1.fr/ontologies/ontospm/OntoMEDIRAD.owl#Patient_f4df4492-4e04-42f2-a20f-a3208d4021cc)

In some cases i have an error : org.openrdf.query.QueryEvaluationException: LongHashSet can't handle long element which equal to 0

The project and the code are here :  
[https://github.com/MediCIS/semanticTransaltor](https://github.com/MediCIS/semanticTransaltor)

The datas used for test : [https://drive.google.com/file/d/10EHWVmaNmp13cCDmh\_Oms6zqwxOoT2lT/view?usp=sharing](https://drive.google.com/file/d/10EHWVmaNmp13cCDmh_Oms6zqwxOoT2lT/view?usp=sharing)

The requests used are here : [https://docs.google.com/spreadsheets/d/1wuYIV8zQoYTCmX3v--XlimPsQWPo4vHi6JZZH91ckKc/edit?usp=sharing](https://docs.google.com/spreadsheets/d/1wuYIV8zQoYTCmX3v--XlimPsQWPo4vHi6JZZH91ckKc/edit?usp=sharing)

(all of them have no errors when i use the stardog web admin page

My stardog is stil Stardog 5.3.1

Thanks you

The full error (from java logs) :

> 208393 [http-nio-8090-exec-3] ERROR org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/].[dispatcherServlet] - Servlet.service() for servlet [dispatcherServlet] in context with path threw exception [Request processing failed; nested exception is com.complexible.stardog.StardogException: LongHashSet can't handle long element which equal to 0] with root cause  
> org.openrdf.query.QueryEvaluationException: LongHashSet can't handle long element which equal to 0  
> at com.complexible.stardog.protocols.http.client.BaseHttpClient.checkResponseCode(BaseHttpClient.java:491)  
> at com.complexible.stardog.protocols.http.client.BaseHttpClient.execute(BaseHttpClient.java:363)  
> at com.complexible.stardog.protocols.http.client.HttpClientImpl.graph(HttpClientImpl.java:292)  
> at com.complexible.stardog.protocols.http.client.HttpConnection.\_graph(HttpConnection.java:158)  
> at com.complexible.stardog.api.impl.AbstractConnection.executeGraph(AbstractConnection.java:450)  
> at com.complexible.stardog.api.impl.GraphQueryImpl.execute(GraphQueryImpl.java:33)  
> at com.complexible.stardog.api.impl.GraphQueryImpl.execute(GraphQueryImpl.java:23)  
> at repository.RequestBuilder.describeRequest(RequestBuilder.java:383)  
> at repository.RequestBuilder.testClicGraph(RequestBuilder.java:300)  
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
> at java.lang.reflect.Method.invoke(Method.java:498)  
> at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:209)  
> at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)  
> at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:102)  
> at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:870)  
> at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:776)  
> at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)  
> at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991)  
> at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)  
> at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:978)  
> at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:870)  
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:635)  
> at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:855)  
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)

---

<div class="post-metadata">

**Author:** ![pavel](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/pavel/32/18_2.png) [@pavel](https://community.stardog.com/u/pavel)\
**Post date:** [August 28, 2019, 9:27am UTC](https://community.stardog.com/t/describe-request-longhashset-cant-handle-long-element-which-equal-to-0/1856/2 "2019-08-28T09:27:37Z")

</div>

Thanks for the report. This is indeed a bug which we fixed in the 6.2.3 release. Are you able to upgrade to the latest Stardog?

Best,  
Pavel

---

<div class="post-metadata">

**Author:** ![witchBioinformatics](https://avatars.discourse-cdn.com/v4/letter/w/71e660/32.png) [@witchBioinformatics](https://community.stardog.com/u/witchBioinformatics)\
**Post date:** [August 28, 2019, 9:28am UTC](https://community.stardog.com/t/describe-request-longhashset-cant-handle-long-element-which-equal-to-0/1856/3 "2019-08-28T09:28:36Z")

</div>

I can do it for test but it will need to update all others peoples

Thanks you
