Open bart1 opened 2 years ago
Hi, I encounted this case:
curl -v -u bart:** 'https://www.movebank.org/movebank/service/direct-read?entity_type=study&study_id=2911040&attributes=name,id' curl -v -u bart:** 'https://www.movebank.org/movebank/service/direct-read?entity_type=study&study_id=2911040&attributes=name' curl -v -u bart:** 'https://www.movebank.org/movebank/service/direct-read?entity_type=study&study_id=2911040&attributes=id'
Here retrieving id and name,id work without a problem but retrieving name throws this movebank error:
id
name,id
name
!doctype html><html lang="en"><head><title>HTTP Status 500 – Internal Server Error</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 500 – Internal Server Error</h1><hr class="line" /><p><b>Type</b> Exception Report</p><p><b>Message</b> java.lang.RuntimeException: java.lang.Exception: java.lang.NullPointerException</p><p><b>Description</b> The server encountered an unexpected condition that prevented it from fulfilling the request.</p><p><b>Exception</b></p><pre>java.lang.RuntimeException: java.lang.RuntimeException: java.lang.Exception: java.lang.NullPointerException org.movebank.webapp.server.rest.AuthenticationFilter.doFilter(AuthenticationFilter.java:207) org.apache.catalina.filters.CorsFilter.handleNonCORS(CorsFilter.java:364) org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:170) org.movebank.webapp.server.SetCacheHeadersFilter.doFilter(SetCacheHeadersFilter.java:71) </pre><p><b>Root Cause</b></p><pre>java.lang.RuntimeException: java.lang.Exception: java.lang.NullPointerException org.movebank.webapp.server.rest.DirectReadServlet.service(DirectReadServlet.java:964) javax.servlet.http.HttpServlet.service(HttpServlet.java:733) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) org.movebank.webapp.server.rest.AuthenticationFilter$Method$3.execute(AuthenticationFilter.java:123) org.movebank.webapp.server.rest.AuthenticationFilter.doFilter(AuthenticationFilter.java:202) org.apache.catalina.filters.CorsFilter.handleNonCORS(CorsFilter.java:364) org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:170) org.movebank.webapp.server.SetCacheHeadersFilter.doFilter(SetCacheHeadersFilter.java:71) </pre><p><b>Root Cause</b></p><pre>java.lang.Exception: java.lang.NullPointerException org.movebank.context.TransactionContext.__runInContext(TransactionContext.java:55) org.movebank.context.TransactionContext.runInContext(TransactionContext.java:41) org.movebank.context.SessionContext.runInContext(SessionContext.java:53) org.movebank.webapp.server.rest.DirectReadServlet.service(DirectReadServlet.java:889) javax.servlet.http.HttpServlet.service(HttpServlet.java:733) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) org.movebank.webapp.server.rest.AuthenticationFilter$Method$3.execute(AuthenticationFilter.java:123) org.movebank.webapp.server.rest.AuthenticationFilter.doFilter(AuthenticationFilter.java:202) org.apache.catalina.filters.CorsFilter.handleNonCORS(CorsFilter.java:364) org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:170) org.movebank.webapp.server.SetCacheHeadersFilter.doFilter(SetCacheHeadersFilter.java:71) </pre><p><b>Root Cause</b></p><pre>java.lang.RuntimeException: java.lang.NullPointerException org.movebank.webapp.server.rest.DirectReadServlet$14.run(DirectReadServlet.java:958) org.movebank.context.TransactionContext.__runInContext(TransactionContext.java:50) org.movebank.context.TransactionContext.runInContext(TransactionContext.java:41) org.movebank.context.SessionContext.runInContext(SessionContext.java:53) org.movebank.webapp.server.rest.DirectReadServlet.service(DirectReadServlet.java:889) javax.servlet.http.HttpServlet.service(HttpServlet.java:733) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) org.movebank.webapp.server.rest.AuthenticationFilter$Method$3.execute(AuthenticationFilter.java:123) org.movebank.webapp.server.rest.AuthenticationFilter.doFilter(AuthenticationFilter.java:202) org.apache.catalina.filters.CorsFilter.handleNonCORS(CorsFilter.java:364) org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:170) org.movebank.webapp.server.SetCacheHeadersFilter.doFilter(SetCacheHeadersFilter.java:71) </pre><p><b>Root Cause</b></p><pre>java.lang.NullPointerException org.movebank.webapp.server.rest.TableConfig.selectAllowed(TableConfig.java:98) org.movebank.webapp.server.rest.TableConfig.getSelectAttributes(TableConfig.java:177) org.movebank.webapp.server.rest.DirectReadServlet$14.run(DirectReadServlet.java:912) org.movebank.context.TransactionContext.__runInContext(TransactionContext.java:50) org.movebank.context.TransactionContext.runInContext(TransactionContext.java:41) org.movebank.context.SessionContext.runInContext(SessionContext.java:53) org.movebank.webapp.server.rest.DirectReadServlet.service(DirectReadServlet.java:889) javax.servlet.http.HttpServlet.service(HttpServlet.java:733) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) org.movebank.webapp.server.rest.AuthenticationFilter$Method$3.execute(AuthenticationFilter.java:123) org.movebank.webapp.server.rest.AuthenticationFilter.doFilter(AuthenticationFilter.java:202) org.apache.catalina.filters.CorsFilter.handleNonCORS(CorsFilter.java:364) org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:170) org.movebank.webapp.server.SetCacheHeadersFilter.doFilter(SetCacheHeadersFilter.java:71)
This should solve: https://gitlab.com/bartk/move2/-/issues/12
Hi, I encounted this case:
Here retrieving
id
andname,id
work without a problem but retrievingname
throws this movebank error: