org.molgenis.data.MolgenisDataException: Attribute [id] query value is of type [String] instead of [Integer]

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by fdlk
, 1 year ago
Attribute [id] query value is of type [String] instead of [Integer]
via GitHub by Mark-de-Haan
, 10 months ago
Attribute [xboolnillable] query value is of type [String] instead of [Boolean]
via GitHub by Mark-de-Haan
, 10 months ago
Attribute [id] query value is of type [String] instead of [Integer]
org.molgenis.data.MolgenisDataException: Attribute [id] query value is of type [String] instead of [Integer]
at org.molgenis.data.postgresql.PostgreSqlUtils.getPostgreSqlQueryValue(PostgreSqlUtils.java:192)
at org.molgenis.data.postgresql.PostgreSqlQueryGenerator.getSqlWhere(PostgreSqlQueryGenerator.java:575)
at org.molgenis.data.postgresql.PostgreSqlQueryGenerator.getSqlCount(PostgreSqlQueryGenerator.java:370)
at org.molgenis.data.postgresql.PostgreSqlRepository.count(PostgreSqlRepository.java:139)
at org.molgenis.data.AbstractRepositoryDecorator.count(AbstractRepositoryDecorator.java:67)
at org.molgenis.data.AbstractRepositoryDecorator.count(AbstractRepositoryDecorator.java:67)
at org.molgenis.data.elasticsearch.IndexedRepositoryDecorator.count(IndexedRepositoryDecorator.java:231)
at org.molgenis.data.AbstractRepositoryDecorator.count(AbstractRepositoryDecorator.java:67)
at org.molgenis.data.EntityReferenceResolverDecorator.count(EntityReferenceResolverDecorator.java:67)
at org.molgenis.data.listeners.EntityListenerRepositoryDecorator.count(EntityListenerRepositoryDecorator.java:86)
at org.molgenis.data.validation.RepositoryValidationDecorator.count(RepositoryValidationDecorator.java:138)
at org.molgenis.data.AutoValueRepositoryDecorator.count(AutoValueRepositoryDecorator.java:117)
at org.molgenis.data.RepositorySecurityDecorator.count(RepositorySecurityDecorator.java:76)
at org.molgenis.data.support.DataServiceImpl.count(DataServiceImpl.java:61)
at org.molgenis.data.support.DataServiceImpl$$FastClassBySpringCGLIB$$2e5f77dc.invoke()
at org.molgenis.data.support.DataServiceImpl$$EnhancerBySpringCGLIB$$4cb2cc46.count()
at org.molgenis.data.rest.v2.RestControllerV2.createEntityCollectionResponse(RestControllerV2.java:602)
at org.molgenis.data.rest.v2.RestControllerV2.retrieveEntityCollection(RestControllerV2.java:223)
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:221)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:775)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:705)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:967)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.