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

rd run crashes with exception com.fasterxml.jackson.databind.JsonMappingException #89

Closed
Alveel opened this Issue Apr 13, 2017 · 2 comments

Comments

Projects
None yet
1 participant
@Alveel
Contributor

Alveel commented Apr 13, 2017

Hi, I recently updated from 1.0.7 to 1.0.9 and now every job I run crashes with exception com.fasterxml.jackson.databind.JsonMappingException after filling in my password (I have RD_URL and RD_USER in my rd.conf).

I've tried running jobs with id, name, etc. to no avail. I've tried to trigger the exception doing other tasks such as listing jobs, executions, administrating the scheduler but that all seems to work fine.

Rundeck API Client Tool (v1.0.9)

Java version:

openjdk version "1.8.0_121"
OpenJDK Runtime Environment (build 1.8.0_121-b13)
OpenJDK 64-Bit Server VM (build 25.121-b13, mixed mode)

Rundeck version:

rundeck:
  version: 2.7.2
  build: 2.7.2-1
  node: internal
  base: /var/lib/rundeck
  apiversion: 18

I saw the default API version was updated to 19, maybe this is related?

Thanks!

@Alveel

This comment has been minimized.

Show comment
Hide comment
@Alveel

Alveel Apr 13, 2017

Contributor

Full stack trace for completeness:

com.fasterxml.jackson.databind.JsonMappingException: No suitable constructor found for type [simple type, class org.rundeck.client.api.model.DateInfo]: can not instantiate from JSON object (missing default constructor or creator, or perhaps need to add/enable type information?)
 at [Source: java.io.InputStreamReader@2df9b86; line: 1, column: 226] (through reference chain: org.rundeck.client.api.model.Execution["date-started"])
        at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:216)
        at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromObjectUsingNonDefault(BeanDeserializerBase.java:1130)
        at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:298)
        at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:133)
        at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:490)
        at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:95)
        at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:260)
        at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:125)
        at com.fasterxml.jackson.databind.ObjectReader._bindAndClose(ObjectReader.java:1575)
        at com.fasterxml.jackson.databind.ObjectReader.readValue(ObjectReader.java:1183)
        at retrofit2.converter.jackson.JacksonResponseBodyConverter.convert(JacksonResponseBodyConverter.java:32)
        at retrofit2.converter.jackson.JacksonResponseBodyConverter.convert(JacksonResponseBodyConverter.java:23)
        at retrofit2.ServiceMethod.toResponse(ServiceMethod.java:117)
        at retrofit2.OkHttpCall.parseResponse(OkHttpCall.java:211)
        at retrofit2.OkHttpCall.execute(OkHttpCall.java:174)
        at org.rundeck.client.util.Client.checkError(Client.java:93)
        at org.rundeck.client.tool.commands.Run.run(Run.java:167)
        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 com.simplifyops.toolbelt.ToolBelt$MethodInvoker.run(ToolBelt.java:778)
        at com.simplifyops.toolbelt.ToolBelt$CommandSet.runCommand(ToolBelt.java:492)
        at com.simplifyops.toolbelt.ToolBelt$CommandSet.run(ToolBelt.java:359)
        at com.simplifyops.toolbelt.ToolBelt$CommandSet.runCommand(ToolBelt.java:492)
        at com.simplifyops.toolbelt.ToolBelt$CommandSet.run(ToolBelt.java:359)
        at com.simplifyops.toolbelt.ToolBelt$CommandSet.runMain(ToolBelt.java:322)
        at org.rundeck.client.tool.Main.main(Main.java:56)

This is when doing rd run --id 'id'

Contributor

Alveel commented Apr 13, 2017

Full stack trace for completeness:

com.fasterxml.jackson.databind.JsonMappingException: No suitable constructor found for type [simple type, class org.rundeck.client.api.model.DateInfo]: can not instantiate from JSON object (missing default constructor or creator, or perhaps need to add/enable type information?)
 at [Source: java.io.InputStreamReader@2df9b86; line: 1, column: 226] (through reference chain: org.rundeck.client.api.model.Execution["date-started"])
        at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:216)
        at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromObjectUsingNonDefault(BeanDeserializerBase.java:1130)
        at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:298)
        at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:133)
        at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:490)
        at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:95)
        at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:260)
        at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:125)
        at com.fasterxml.jackson.databind.ObjectReader._bindAndClose(ObjectReader.java:1575)
        at com.fasterxml.jackson.databind.ObjectReader.readValue(ObjectReader.java:1183)
        at retrofit2.converter.jackson.JacksonResponseBodyConverter.convert(JacksonResponseBodyConverter.java:32)
        at retrofit2.converter.jackson.JacksonResponseBodyConverter.convert(JacksonResponseBodyConverter.java:23)
        at retrofit2.ServiceMethod.toResponse(ServiceMethod.java:117)
        at retrofit2.OkHttpCall.parseResponse(OkHttpCall.java:211)
        at retrofit2.OkHttpCall.execute(OkHttpCall.java:174)
        at org.rundeck.client.util.Client.checkError(Client.java:93)
        at org.rundeck.client.tool.commands.Run.run(Run.java:167)
        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 com.simplifyops.toolbelt.ToolBelt$MethodInvoker.run(ToolBelt.java:778)
        at com.simplifyops.toolbelt.ToolBelt$CommandSet.runCommand(ToolBelt.java:492)
        at com.simplifyops.toolbelt.ToolBelt$CommandSet.run(ToolBelt.java:359)
        at com.simplifyops.toolbelt.ToolBelt$CommandSet.runCommand(ToolBelt.java:492)
        at com.simplifyops.toolbelt.ToolBelt$CommandSet.run(ToolBelt.java:359)
        at com.simplifyops.toolbelt.ToolBelt$CommandSet.runMain(ToolBelt.java:322)
        at org.rundeck.client.tool.Main.main(Main.java:56)

This is when doing rd run --id 'id'

@Alveel

This comment has been minimized.

Show comment
Hide comment
@Alveel

Alveel Apr 14, 2017

Contributor

Thank you, that seems to have fixed the problem 👍

Contributor

Alveel commented Apr 14, 2017

Thank you, that seems to have fixed the problem 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment