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] |
In Java, Object
defines a toString()
method (to allow any Object
to be displayed as a String). By default (if not overridden by the class of the current object), it will result in name.of.the.Class@objectHashCode
*.
So basically what happened here is that an HttpInput
has been displayed as a String, but HttpInput
doesn't override toString()
to display it properly.
- I previously said the internal address of the object in memory, that's technically wrong, but if
hashCode()
isn't overwritten itself it will probably be the internal address.
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
It looks like the problem in both of these is this specific line:
org.eclipse.jetty.server.HttpInput@60356eb0
I wonder if this is something we can solve in the java client pretty easily.
I'm not super familiar w/ Java constructs, but is this an anonymous function of some sorts? Otherwise what does the @ indicate? Is it a version tag?