VEuPathDB / service-eda-compute

Apache License 2.0
0 stars 0 forks source link

Auth header in job payload is not jackson compatible. #8

Closed Foxcapades closed 2 years ago

Foxcapades commented 2 years ago
2022-06-28 14:10:23.344 [rid:     ][jid:91cb0f62eabe1c9213549d72122f90b5][p:] ERROR QueueWrapper:98 - job execution failed with an exception for job 91cb0f62eabe1c9213549d72122f90b5
 java.lang.IllegalArgumentException: Unrecognized field "Auth-Key" (class org.gusdb.fgputil.Tuples$TwoTuple), not marked as ignorable (one known property: "value"])
 at [Source: UNKNOWN; byte offset: #UNKNOWN] (through reference chain: org.veupathdb.service.eda.compute.exec.PluginJobPayload["authHeader"]->org.gusdb.fgputil.Tuples$TwoTuple["Auth-Key"])
  at com.fasterxml.jackson.databind.ObjectMapper._convert(ObjectMapper.java:4393) ~[service.jar:1.0.0]
  at com.fasterxml.jackson.databind.ObjectMapper.convertValue(ObjectMapper.java:4324) ~[service.jar:1.0.0]
  at org.veupathdb.service.eda.compute.exec.PluginExecutor.execute(PluginExecutor.kt:104) ~[service.jar:1.0.0]
  at org.veupathdb.lib.compute.platform.intern.jobs.JobExecutionHandler.execute(JobExecutionHandler.kt:86) ~[service.jar:1.0.0]
  at org.veupathdb.lib.compute.platform.intern.queues.QueueWrapper.onJob(QueueWrapper.kt:93) ~[service.jar:1.0.0]
  at org.veupathdb.lib.compute.platform.intern.queues.QueueWrapper.access$onJob(QueueWrapper.kt:28) ~[service.jar:1.0.0]
  at org.veupathdb.lib.compute.platform.intern.queues.QueueWrapper$3.handle(QueueWrapper.kt:59) ~[service.jar:1.0.0]
  at org.veupathdb.lib.rabbit.jobs.pools.JobHandlers.execute(JobHandlers.kt:18) ~[service.jar:1.0.0]
  at org.veupathdb.lib.rabbit.jobs.QueueWorker.initCallbacks$lambda-5$lambda-3$lambda-2(QueueWorker.kt:82) ~[service.jar:1.0.0]
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
  at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "Auth-Key" (class org.gusdb.fgputil.Tuples$TwoTuple), not marked as ignorable (one known property: "value"])
 at [Source: UNKNOWN; byte offset: #UNKNOWN] (through reference chain: org.veupathdb.service.eda.compute.exec.PluginJobPayload["authHeader"]->org.gusdb.fgputil.Tuples$TwoTuple["Auth-Key"])
  at com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException.from(UnrecognizedPropertyException.java:61) ~[service.jar:1.0.0]
  at com.fasterxml.jackson.databind.DeserializationContext.handleUnknownProperty(DeserializationContext.java:1127) ~[service.jar:1.0.0]
  at com.fasterxml.jackson.databind.deser.std.StdDeserializer.handleUnknownProperty(StdDeserializer.java:2023) ~[service.jar:1.0.0]
  at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownProperty(BeanDeserializerBase.java:1700) ~[service.jar:1.0.0]
  at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.handleUnknownVanilla(BeanDeserializerBase.java:1678) ~[service.jar:1.0.0]
  at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:319) ~[service.jar:1.0.0]
  at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:176) ~[service.jar:1.0.0]
  at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:542) ~[service.jar:1.0.0]
  at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeWithErrorWrapping(BeanDeserializer.java:563) ~[service.jar:1.0.0]
  at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeUsingPropertyBased(BeanDeserializer.java:438) ~[service.jar:1.0.0]
  at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromObjectUsingNonDefault(BeanDeserializerBase.java:1405) ~[service.jar:1.0.0]
  at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:351) ~[service.jar:1.0.0]
  at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:184) ~[service.jar:1.0.0]
  at com.fasterxml.jackson.databind.ObjectMapper._convert(ObjectMapper.java:4388) ~[service.jar:1.0.0]
  ... 11 more
2022-06-28 14:10:23.346 [rid:     ][jid:91cb0f62eabe1c9213549d72122f90b5][p:] DEBUG QueueWorker:55 - sending error notification ErrorNotification: {
  "jobID" : "91cb0f62eabe1c9213549d72122f90b5",
  "code" : 1,
  "message" : "Unrecognized field \"Auth-Key\" (class org.gusdb.fgputil.Tuples$TwoTuple), not marked as ignorable (one known property: \"value\"])\n at [Source: UNKNOWN; byte offset: #UNKNOWN] (through reference chain: org.veupathdb.service.eda.compute.exec.PluginJobPayload[\"authHeader\"]->org.gusdb.fgputil.Tuples$TwoTuple[\"Auth-Key\"])"
}