Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with the FROST Server Java Backend #4

Open
C-Loftus opened this issue Oct 24, 2024 · 2 comments
Open

Issue with the FROST Server Java Backend #4

C-Loftus opened this issue Oct 24, 2024 · 2 comments

Comments

@C-Loftus
Copy link
Member

Type: Exception Report

Message: Servlet execution threw an exception

Description: The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception:
javax.servlet.ServletException: Servlet execution threw an exception
org.apache.catalina.filters.CorsFilter.handleNonCORS(CorsFilter.java:331)
org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:158)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)

Root Cause:
java.lang.NoSuchMethodError: 'com.fasterxml.jackson.databind.JsonMappingException com.fasterxml.jackson.databind.DeserializationContext.mappingException(java.lang.String)'
org.geojson.jackson.LngLatAltDeserializer.extractDouble(LngLatAltDeserializer.java:64)
org.geojson.jackson.LngLatAltDeserializer.deserializeArray(LngLatAltDeserializer.java:27)
org.geojson.jackson.LngLatAltDeserializer.deserialize(LngLatAltDeserializer.java:18)
org.geojson.jackson.LngLatAltDeserializer.deserialize(LngLatAltDeserializer.java:13)
com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:129)
com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:310)
com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeOther(BeanDeserializer.java:215)
com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:187)
com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer._deserializeTypedForId(AsPropertyTypeDeserializer.java:170)
com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer.deserializeTypedFromObject(AsPropertyTypeDeserializer.java:136)
com.fasterxml.jackson.databind.deser.AbstractDeserializer.deserializeWithType(AbstractDeserializer.java:263)
com.fasterxml.jackson.databind.deser.impl.TypeWrappedDeserializer.deserialize(TypeWrappedDeserializer.java:74)
com.fasterxml.jackson.databind.deser.DefaultDeserializationContext.readRootValue(DefaultDeserializationContext.java:342)
com.fasterxml.jackson.databind.ObjectMapper._readValue(ObjectMapper.java:4875)
com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3033)
com.fasterxml.jackson.core.JsonParser.readValueAs(JsonParser.java:2367)
de.fraunhofer.iosb.ilt.frostserver.json.deserialize.custom.GeoJsonDeserializier.deserialize(GeoJsonDeserializier.java:49)
de.fraunhofer.iosb.ilt.frostserver.json.deserialize.custom.CustomEntityDeserializer.deserializeEntityProperty(CustomEntityDeserializer.java:177)
de.fraunhofer.iosb.ilt.frostserver.json.deserialize.custom.CustomEntityDeserializer.deserializeProperty(CustomEntityDeserializer.java:150)
de.fraunhofer.iosb.ilt.frostserver.json.deserialize.custom.CustomEntityDeserializer.deserialize(CustomEntityDeserializer.java:129)
de.fraunhofer.iosb.ilt.frostserver.json.deserialize.custom.CustomEntityDeserializer.deserialiseEntitySet(CustomEntityDeserializer.java:197)
de.fraunhofer.iosb.ilt.frostserver.json.deserialize.custom.CustomEntityDeserializer.deserializeNavigationProperty(CustomEntityDeserializer.java:160)
de.fraunhofer.iosb.ilt.frostserver.json.deserialize.custom.CustomEntityDeserializer.deserializeProperty(CustomEntityDeserializer.java:152)
de.fraunhofer.iosb.ilt.frostserver.json.deserialize.custom.CustomEntityDeserializer.deserialize(CustomEntityDeserializer.java:129)
de.fraunhofer.iosb.ilt.frostserver.json.deserialize.custom.CustomEntityDeserializer.deserializeFull(CustomEntityDeserializer.java:105)
de.fraunhofer.iosb.ilt.frostserver.json.deserialize.JsonReader.parseEntity(JsonReader.java:132)
de.fraunhofer.iosb.ilt.frostserver.service.Service.handlePost(Service.java:480)
de.fraunhofer.iosb.ilt.frostserver.service.Service.executePost(Service.java:423)
de.fraunhofer.iosb.ilt.frostserver.service.Service.execute(Service.java:159)
de.fraunhofer.iosb.ilt.frostserver.plugin.coremodel.PluginCoreService.execute(PluginCoreService.java:139)
de.fraunhofer.iosb.ilt.frostserver.http.common.ServletMain.executeService(ServletMain.java:113)
de.fraunhofer.iosb.ilt.frostserver.http.common.ServletMain.processRequest(ServletMain.java:95)
de.fraunhofer.iosb.ilt.frostserver.http.common.ServletMain.doPost(ServletMain.java:140)
javax.servlet.http.HttpServlet.service(HttpServlet.java:555)
de.fraunhofer.iosb.ilt.frostserver.http.common.ServletMain.service(ServletMain.java:173)
javax.servlet.http.HttpServlet.service(HttpServlet.java:623)
org.apache.catalina.filters.CorsFilter.handleNonCORS(CorsFilter.java:331)
org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:158)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)

Note: The full stack trace of the root cause is available in the server logs.

Apache Tomcat/9.0.91

@C-Loftus
Copy link
Member Author

Just putting this here for my own future reference

@C-Loftus
Copy link
Member Author

C-Loftus commented Oct 27, 2024

This happens when loading in station metadata, not even the associated datastreams

g/wis2box/oregon/main.py:165} INFO - Generating data for station 11497550
[2024-10-27T14:24:35Z] {/usr/local/lib/python3.9/site-packages/wis2box-0.6.dev1-py3.9.egg/wis2box/api/backend/sensorthings.py:125} ERROR - b'<!doctype html><html lang="en"><head><title>HTTP Status 500 \xe2\x80\x93 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 \xe2\x80\x93 Internal Server Error</h1><hr class="line" /><p><b>Type</b> Exception Report</p><p><b>Message</b> Servlet execution threw an exception</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>javax.servlet.ServletException: Servlet execution threw an exception\n\torg.apache.catalina.filters.CorsFilter.handleNonCORS(CorsFilter.java:331)\n\torg.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:158)\n\torg.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)\n</pre><p><b>Root Cause</b></p><pre>java.lang.NoSuchMethodError: &#39;com.fasterxml.jackson.databind.JsonMappingException com.fasterxml.jackson.databind.DeserializationContext.mappingException(java.lang.String)&#39;\n\torg.geojson.jackson.LngLatAltDeserializer.extractDouble(LngLatAltDeserializer.java:64)\n\torg.geojson.jackson.LngLatAltDeserializer.deserializeArray(LngLatAltDeserializer.java:27)\n\torg.geojson.jackson.LngLatAltDeserializer.deserialize(LngLatAltDeserializer.java:18)\n\torg.geojson.jackson.LngLatAltDeserializer.deserialize(LngLatAltDeserializer.java:13)\n\tcom.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:129)\n\tcom.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:310)\n\tcom.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeOther(BeanDeserializer.java:215)\n\tcom.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:187)\n\tcom.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer._deserializeTypedForId(AsPropertyTypeDeserializer.java:170)\n\tcom.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer.deserializeTypedFromObject(AsPropertyTypeDeserializer.java:136)\n\tcom.fasterxml.jackson.databind.deser.AbstractDeserializer.deserializeWithType(AbstractDeserializer.java:263)\n\tcom.fasterxml.jackson.databind.deser.impl.TypeWrappedDeserializer.deserialize(TypeWrappedDeserializer.java:74)\n\tcom.fasterxml.jackson.databind.deser.DefaultDeserializationContext.readRootValue(DefaultDeserializationContext.java:342)\n\tcom.fasterxml.jackson.databind.ObjectMapper._readValue(ObjectMapper.java:4875)\n\tcom.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3033)\n\tcom.fasterxml.jackson.core.JsonParser.readValueAs(JsonParser.java:2367)\n\tde.fraunhofer.iosb.ilt.frostserver.json.deserialize.custom.GeoJsonDeserializier.deserialize(GeoJsonDeserializier.java:49)\n\tde.fraunhofer.iosb.ilt.frostserver.json.deserialize.custom.CustomEntityDeserializer.deserializeEntityProperty(CustomEntityDeserializer.java:177)\n\tde.fraunhofer.iosb.ilt.frostserver.json.deserialize.custom.CustomEntityDeserializer.deserializeProperty(CustomEntityDeserializer.java:150)\n\tde.fraunhofer.iosb.ilt.frostserver.json.deserialize.custom.CustomEntityDeserializer.deserialize(CustomEntityDeserializer.java:129)\n\tde.fraunhofer.iosb.ilt.frostserver.json.deserialize.custom.CustomEntityDeserializer.deserialiseEntitySet(CustomEntityDeserializer.java:197)\n\tde.fraunhofer.iosb.ilt.frostserver.json.deserialize.custom.CustomEntityDeserializer.deserializeNavigationProperty(CustomEntityDeserializer.java:160)\n\tde.fraunhofer.iosb.ilt.frostserver.json.deserialize.custom.CustomEntityDeserializer.deserializeProperty(CustomEntityDeserializer.java:152)\n\tde.fraunhofer.iosb.ilt.frostserver.json.deserialize.custom.CustomEntityDeserializer.deserialize(CustomEntityDeserializer.java:129)\n\tde.fraunhofer.iosb.ilt.frostserver.json.deserialize.custom.CustomEntityDeserializer.deserializeFull(CustomEntityDeserializer.java:105)\n\tde.fraunhofer.iosb.ilt.frostserver.json.deserialize.JsonReader.parseEntity(JsonReader.java:132)\n\tde.fraunhofer.iosb.ilt.frostserver.service.Service.handlePost(Service.java:480)\n\tde.fraunhofer.iosb.ilt.frostserver.service.Service.executePost(Service.java:423)\n\tde.fraunhofer.iosb.ilt.frostserver.service.Service.execute(Service.java:159)\n\tde.fraunhofer.iosb.ilt.frostserver.plugin.coremodel.PluginCoreService.execute(PluginCoreService.java:139)\n\tde.fraunhofer.iosb.ilt.frostserver.http.common.ServletMain.executeService(ServletMain.java:113)\n\tde.fraunhofer.iosb.ilt.frostserver.http.common.ServletMain.processRequest(ServletMain.java:95)\n\tde.fraunhofer.iosb.ilt.frostserver.http.common.ServletMain.doPost(ServletMain.java:140)\n\tjavax.servlet.http.HttpServlet.service(HttpServlet.java:555)\n\tde.fraunhofer.iosb.ilt.frostserver.http.common.ServletMain.service(ServletMain.java:173)\n\tjavax.servlet.http.HttpServlet.service(HttpServlet.java:623)\n\torg.apache.catalina.filters.CorsFilter.handleNonCORS(CorsFilter.java:331)\n\torg.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:158)\n\torg.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)\n</pre><p><b>Note</b> The full stack trace of the root cause is available in the server logs.</p><hr class="line" /><h3>Apache Tomcat/9.0.91</h3></body></html>'
[2024-10-27T14:24:35Z] {/usr/local/lib/python3.9/site-packages/wis2box-0.6.dev1-py3.9.egg/wis2box/oregon/main.py:165} INFO - Generating data for station 11500500
[2024-10-27T14:24:36Z] {/usr/local/lib/python3.9/site-packages/wis2box-0.6.dev1-py3.9.egg/wis2box/api/backend/sensorthings.py:125} ERROR - b'<!doctype html><html lang="en"><head><title>HTTP Status 500 \xe2\x80\x93 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 \xe2\x80\x93 Internal Server Error</h1><hr class="line" /><p><b>Type</b> Exception Report</p><p><b>Message</b> Servlet execution threw an exception</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>javax.servlet.ServletException: Servlet execution threw an exception\n\torg.apache.catalina.filters.CorsFilter.handleNonCORS(CorsFilter.java:331)\n\torg.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:158)\n\torg.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)\n</pre><p><b>Root Cause</b></p><pre>java.lang.NoSuchMethodError: &#39;com.fasterxml.jackson.databind.JsonMappingException com.fasterxml.jackson.databind.DeserializationContext.mappingException(java.lang.String)&#39;\n\torg.geojson.jackson.LngLatAltDeserializer.extractDouble(LngLatAltDeserializer.java:64)\n\torg.geojson.jackson.LngLatAltDeserializer.deserializeArray(LngLatAltDeserializer.java:27)\n\torg.geojson.jackson.LngLatAltDeserializer.deserialize(LngLatAltDeserializer.java:18)\n\torg.geojson.jackson.LngLatAltDeserializer.deserialize(LngLatAltDeserializer.java:13)\n\tcom.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:129)\n\tcom.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:310)\n\tcom.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeOther(BeanDeserializer.java:215)\n\tcom.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:187)\n\tcom.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer._deserializeTypedForId(AsPropertyTypeDeserializer.java:170)\n\tcom.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer.deserializeTypedFromObject(AsPropertyTypeDeserializer.java:136)\n\tcom.fasterxml.jackson.databind.deser.AbstractDeserializer.deserializeWithType(AbstractDeserializer.java:263)\n\tcom.fasterxml.jackson.databind.deser.impl.TypeWrappedDeserializer.deserialize(TypeWrappedDeserializer.java:74)\n\tcom.fasterxml.jackson.databind.deser.DefaultDeserializationContext.readRootValue(DefaultDeserializationContext.java:342)\n\tcom.fasterxml.jackson.databind.ObjectMapper._readValue(ObjectMapper.java:4875)\n\tcom.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3033)\n\tcom.fasterxml.jackson.core.JsonParser.readValueAs(JsonParser.java:2367)\n\tde.fraunhofer.iosb.ilt.frostserver.json.deserialize.custom.GeoJsonDeserializier.deserialize(GeoJsonDeserializier.java:49)\n\tde.fraunhofer.iosb.ilt.frostserver.json.deserialize.custom.CustomEntityDeserializer.deserializeEntityProperty(CustomEntityDeserializer.java:177)\n\tde.fraunhofer.iosb.ilt.frostserver.json.deserialize.custom.CustomEntityDeserializer.deserializeProperty(CustomEntityDeserializer.java:150)\n\tde.fraunhofer.iosb.ilt.frostserver.json.deserialize.custom.CustomEntityDeserializer.deserialize(CustomEntityDeserializer.java:129)\n\tde.fraunhofer.iosb.ilt.frostserver.json.deserialize.custom.CustomEntityDeserializer.deserialiseEntitySet(CustomEntityDeserializer.java:197)\n\tde.fraunhofer.iosb.ilt.frostserver.json.deserialize.custom.CustomEntityDeserializer.deserializeNavigationProperty(CustomEntityDeserializer.java:160)\n\tde.fraunhofer.iosb.ilt.frostserver.json.deserialize.custom.CustomEntityDeserializer.deserializeProperty(CustomEntityDeserializer.java:152)\n\tde.fraunhofer.iosb.ilt.frostserver.json.deserialize.custom.CustomEntityDeserializer.deserialize(CustomEntityDeserializer.java:129)\n\tde.fraunhofer.iosb.ilt.frostserver.json.deserialize.custom.CustomEntityDeserializer.deserializeFull(CustomEntityDeserializer.java:105)\n\tde.fraunhofer.iosb.ilt.frostserver.json.deserialize.JsonReader.parseEntity(JsonReader.java:132)\n\tde.fraunhofer.iosb.ilt.frostserver.service.Service.handlePost(Service.java:480)\n\tde.fraunhofer.iosb.ilt.frostserver.service.Service.executePost(Service.java:423)\n\tde.fraunhofer.iosb.ilt.frostserver.service.Service.execute(Service.java:159)\n\tde.fraunhofer.iosb.ilt.frostserver.plugin.coremodel.PluginCoreService.execute(PluginCoreService.java:139)\n\tde.fraunhofer.iosb.ilt.frostserver.http.common.ServletMain.executeService(ServletMain.java:113)\n\tde.fraunhofer.iosb.ilt.frostserver.http.common.ServletMain.processRequest(ServletMain.java:95)\n\tde.fraunhofer.iosb.ilt.frostserver.http.common.ServletMain.doPost(ServletMain.java:140)\n\tjavax.servlet.http.HttpServlet.service(HttpServlet.java:555)\n\tde.fraunhofer.iosb.ilt.frostserver.http.common.ServletMain.service(ServletMain.java:173)\n\tjavax.servlet.http.HttpServlet.service(HttpServlet.java:623)\n\torg.apache.catalina.filters.CorsFilter.handleNonCORS(CorsFilter.java:331)\n\torg.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:158)\n\torg.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)\n</pre><p><b>Note</b> The full stack trace of the root cause is available in the server logs.</p><hr class="line" /><h3>Apache Tomcat/9.0.91</h3></body></html>'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant