plantbreeding / brapi-Java-TestServer

BrAPI Java Spring-Boot Test Server
https://brapi.org
MIT License
5 stars 7 forks source link

Internal Server Error in /brapi/v2/germplasm?studyDbId= #45

Closed nahuel-soldevilla closed 3 years ago

nahuel-soldevilla commented 3 years ago

https://test-server.brapi.org/brapi/v2/germplasm?studyDbId=study1&page=0&pageSize=20

There was an unexpected error (type=Internal Server Error, status=500).
org.hibernate.hql.internal.ast.QuerySyntaxException: Invalid path: 'study.id' [SELECT entity FROM org.brapi.test.BrAPITestServer.model.entity.germ.GermplasmEntity entity where 1=1 AND study.id in :_study_id ]; nested exception is java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException: Invalid path: 'study.id' [SELECT entity FROM org.brapi.test.BrAPITestServer.model.entity.germ.GermplasmEntity entity where 1=1 AND study.id in :_study_id ]

https://test-server.brapi.org/brapi/v2/studies?studyDbId=study1&page=0&pageSize=1000


_Also add brapi-fieldmap into the list of suspects that might be pushing invalid/incomplete data into the server, specially into observationUnits :see_noevil:

nahuel-soldevilla commented 3 years ago

Thanks Peter