Created
April 4, 2013 19:46
-
-
Save jdwyah/5313560 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Caused by: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException ("Unrecognized field "hubspotUserId" (class com.hubspot.socialmonitoring.StreamItemAction), not marked as ignorable (8 known properties: , "streamItemActionsGuid", "userId", "type", "createdAt", "text", "streamItemId", "updatedAt", "url"]) at [Source: org.eclipse.jetty.server.HttpInput@541d511a; line: 1, column: 92] (through reference chain: com.hubspot.socialmonitoring.StreamItemAction["hubspotUserId"])") ? at line -1 | |
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException ? in from at line 79 | |
com.fasterxml.jackson.databind.DeserializationContext ? in reportUnknownProperty at line 579 | |
com.fasterxml.jackson.databind.deser.std.StdDeserializer ? in handleUnknownProperty at line 672 | |
com.fasterxml.jackson.databind.deser.BeanDeserializerBase ? in handleUnknownProperty at line 906 | |
com.fasterxml.jackson.databind.deser.BeanDeserializer ? in deserializeFromObject at line 328 | |
com.fasterxml.jackson.databind.deser.BeanDeserializer ? in deserialize at line 121 | |
com.fasterxml.jackson.databind.ObjectReader ? in _bind at line 1169 | |
com.fasterxml.jackson.databind.ObjectReader ? in readValue at line 625 | |
com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider ? in readFrom at line 448 | |
com.yammer.dropwizard.jersey.JacksonMessageBodyProvider ? in readFrom at line 61 | |
com.yammer.dropwizard.jersey.OptionalResourceMethodDispatchAdapter$OptionalRequestDispatcher ? in dispatch at line 37 | |
org.eclipse.jetty.servlet.ServletHolder ? in handle at line 669 | |
org.eclipse.jetty.servlet.ServletHandler$CachedChain ? in doFilter at line 1336 | |
org.eclipse.jetty.servlet.ServletHandler$CachedChain ? in doFilter at line 1307 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Caused by: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException ("Unrecognized field "hubspotUserId" (class com.hubspot.socialmonitoring.StreamItemAction), not marked as ignorable (8 known properties: , "streamItemActionsGuid", "userId", "type", "createdAt", "text", "streamItemId", "updatedAt", "url"]) at [Source: org.eclipse.jetty.server.HttpInput@60356eb0; line: 1, column: 92] (through reference chain: com.hubspot.socialmonitoring.StreamItemAction["hubspotUserId"])") ? at line -1 | |
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException ? in from at line 79 | |
com.fasterxml.jackson.databind.DeserializationContext ? in reportUnknownProperty at line 579 | |
com.fasterxml.jackson.databind.deser.std.StdDeserializer ? in handleUnknownProperty at line 672 | |
com.fasterxml.jackson.databind.deser.BeanDeserializerBase ? in handleUnknownProperty at line 906 | |
com.fasterxml.jackson.databind.deser.BeanDeserializer ? in deserializeFromObject at line 328 | |
com.fasterxml.jackson.databind.deser.BeanDeserializer ? in deserialize at line 121 | |
com.fasterxml.jackson.databind.ObjectReader ? in _bind at line 1169 | |
com.fasterxml.jackson.databind.ObjectReader ? in readValue at line 625 | |
com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider ? in readFrom at line 448 | |
com.yammer.dropwizard.jersey.JacksonMessageBodyProvider ? in readFrom at line 61 | |
com.yammer.dropwizard.jersey.OptionalResourceMethodDispatchAdapter$OptionalRequestDispatcher ? in dispatch at line 37 | |
org.eclipse.jetty.servlet.ServletHolder ? in handle at line 669 | |
org.eclipse.jetty.servlet.ServletHandler$CachedChain ? in doFilter at line 1336 | |
org.eclipse.jetty.servlet.ServletHandler$CachedChain ? in doFilter at line 1307 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stacktrace 1: | |
at [Source: org.eclipse.jetty.server.HttpInput@541d511a; line: 1, column: 92] | |
stacktrace 2: | |
at [Source: org.eclipse.jetty.server.HttpInput@60356eb0; line: 1, column: 92] |
Hmm. gsub to the rescue?
if(java & stackTraceLine){
line = line.gsub(/\w+@(\w{8});/,"")
}
or something like that?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In Java,
Object
defines atoString()
method (to allow anyObject
to be displayed as a String). By default (if not overridden by the class of the current object), it will result inname.of.the.Class@objectHashCode
*.So basically what happened here is that an
HttpInput
has been displayed as a String, butHttpInput
doesn't overridetoString()
to display it properly.hashCode()
isn't overwritten itself it will probably be the internal address.