Query exception


(Warner Onstine) #1

After getting my hand-written search working through curl I tried to
start testing out the java version and I get this Exception when
running my search:

org.codehaus.jackson.map.JsonMappingException: No serializer found for
class org.elasticsearch.common.BytesHolder and no properties
discovered to create BeanSerializer (to avoid exception, disable
SerializationConfig.Feature.FAIL_ON_EMPTY_BEANS) ) (through reference
chain: org.elasticsearch.action.search.SearchResponse["hits"]->org.elasticsearch.search.internal.InternalSearchHits["hits"]->org.elasticsearch.search.internal.InternalSearchHit["sourceRef"])
at org.codehaus.jackson.map.ser.impl.UnknownSerializer.failForEmpty(UnknownSerializer.java:52)
at org.codehaus.jackson.map.ser.impl.UnknownSerializer.serialize(UnknownSerializer.java:25)
at org.codehaus.jackson.map.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:446)
at org.codehaus.jackson.map.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:150)
at org.codehaus.jackson.map.ser.BeanSerializer.serialize(BeanSerializer.java:112)
at org.codehaus.jackson.map.ser.std.ObjectArraySerializer.serializeContents(ObjectArraySerializer.java:123)
at org.codehaus.jackson.map.ser.std.ObjectArraySerializer.serializeContents(ObjectArraySerializer.java:29)
at org.codehaus.jackson.map.ser.std.StdArraySerializers$ArraySerializerBase.serialize(StdArraySerializers.java:56)
at org.codehaus.jackson.map.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:446)
at org.codehaus.jackson.map.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:150)
at org.codehaus.jackson.map.ser.BeanSerializer.serialize(BeanSerializer.java:112)
at org.codehaus.jackson.map.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:446)
at org.codehaus.jackson.map.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:150)
at org.codehaus.jackson.map.ser.BeanSerializer.serialize(BeanSerializer.java:112)
at org.codehaus.jackson.map.ser.StdSerializerProvider._serializeValue(StdSerializerProvider.java:610)
at org.codehaus.jackson.map.ser.StdSerializerProvider.serializeValue(StdSerializerProvider.java:256)
at org.codehaus.jackson.map.ObjectMapper.writeValue(ObjectMapper.java:1613)
at org.codehaus.jackson.jaxrs.JacksonJsonProvider.writeTo(JacksonJsonProvider.java:558)
at com.sun.jersey.json.impl.provider.entity.JacksonProviderProxy.writeTo(JacksonProviderProxy.java:160)
at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:306)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1451)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1363)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1353)
at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:414)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:708)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:679)

googling around I haven't found anything on this specific one yet, so
wanted to post here to see what might be going on. Anyone have some
ideas? I'm running v.0.19.8.

-warner

--


(Warner Onstine) #2

After some investigation it looks like it might be caused by this
entity in couchdb document coming across into ES:

"_source" : {"tags":[]
....
}

I've seen some examples of how to configure the mapper in other
projects, any suggestions on how to do this for ES?

Thanks!

-warner

On Thu, Aug 16, 2012 at 1:38 PM, Warner Onstine warnero@gmail.com wrote:

After getting my hand-written search working through curl I tried to
start testing out the java version and I get this Exception when
running my search:

org.codehaus.jackson.map.JsonMappingException: No serializer found for
class org.elasticsearch.common.BytesHolder and no properties
discovered to create BeanSerializer (to avoid exception, disable
SerializationConfig.Feature.FAIL_ON_EMPTY_BEANS) ) (through reference
chain: org.elasticsearch.action.search.SearchResponse["hits"]->org.elasticsearch.search.internal.InternalSearchHits["hits"]->org.elasticsearch.search.internal.InternalSearchHit["sourceRef"])
at org.codehaus.jackson.map.ser.impl.UnknownSerializer.failForEmpty(UnknownSerializer.java:52)
at org.codehaus.jackson.map.ser.impl.UnknownSerializer.serialize(UnknownSerializer.java:25)
at org.codehaus.jackson.map.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:446)
at org.codehaus.jackson.map.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:150)
at org.codehaus.jackson.map.ser.BeanSerializer.serialize(BeanSerializer.java:112)
at org.codehaus.jackson.map.ser.std.ObjectArraySerializer.serializeContents(ObjectArraySerializer.java:123)
at org.codehaus.jackson.map.ser.std.ObjectArraySerializer.serializeContents(ObjectArraySerializer.java:29)
at org.codehaus.jackson.map.ser.std.StdArraySerializers$ArraySerializerBase.serialize(StdArraySerializers.java:56)
at org.codehaus.jackson.map.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:446)
at org.codehaus.jackson.map.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:150)
at org.codehaus.jackson.map.ser.BeanSerializer.serialize(BeanSerializer.java:112)
at org.codehaus.jackson.map.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:446)
at org.codehaus.jackson.map.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:150)
at org.codehaus.jackson.map.ser.BeanSerializer.serialize(BeanSerializer.java:112)
at org.codehaus.jackson.map.ser.StdSerializerProvider._serializeValue(StdSerializerProvider.java:610)
at org.codehaus.jackson.map.ser.StdSerializerProvider.serializeValue(StdSerializerProvider.java:256)
at org.codehaus.jackson.map.ObjectMapper.writeValue(ObjectMapper.java:1613)
at org.codehaus.jackson.jaxrs.JacksonJsonProvider.writeTo(JacksonJsonProvider.java:558)
at com.sun.jersey.json.impl.provider.entity.JacksonProviderProxy.writeTo(JacksonProviderProxy.java:160)
at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:306)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1451)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1363)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1353)
at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:414)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:708)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:679)

googling around I haven't found anything on this specific one yet, so
wanted to post here to see what might be going on. Anyone have some
ideas? I'm running v.0.19.8.

-warner

--


(David Pilato) #3

You can use a script to modify your couchDb document before indexing it in ES.
See couchDb river documentation.

David

--

Le 17 août 2012 à 06:52, Warner Onstine warnero@gmail.com a écrit :

After some investigation it looks like it might be caused by this
entity in couchdb document coming across into ES:

"_source" : {"tags":[]
....
}

I've seen some examples of how to configure the mapper in other
projects, any suggestions on how to do this for ES?

Thanks!

-warner

On Thu, Aug 16, 2012 at 1:38 PM, Warner Onstine warnero@gmail.com wrote:

After getting my hand-written search working through curl I tried to
start testing out the java version and I get this Exception when
running my search:

org.codehaus.jackson.map.JsonMappingException: No serializer found for
class org.elasticsearch.common.BytesHolder and no properties
discovered to create BeanSerializer (to avoid exception, disable
SerializationConfig.Feature.FAIL_ON_EMPTY_BEANS) ) (through reference
chain: org.elasticsearch.action.search.SearchResponse["hits"]->org.elasticsearch.search.internal.InternalSearchHits["hits"]->org.elasticsearch.search.internal.InternalSearchHit["sourceRef"])
at org.codehaus.jackson.map.ser.impl.UnknownSerializer.failForEmpty(UnknownSerializer.java:52)
at org.codehaus.jackson.map.ser.impl.UnknownSerializer.serialize(UnknownSerializer.java:25)
at org.codehaus.jackson.map.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:446)
at org.codehaus.jackson.map.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:150)
at org.codehaus.jackson.map.ser.BeanSerializer.serialize(BeanSerializer.java:112)
at org.codehaus.jackson.map.ser.std.ObjectArraySerializer.serializeContents(ObjectArraySerializer.java:123)
at org.codehaus.jackson.map.ser.std.ObjectArraySerializer.serializeContents(ObjectArraySerializer.java:29)
at org.codehaus.jackson.map.ser.std.StdArraySerializers$ArraySerializerBase.serialize(StdArraySerializers.java:56)
at org.codehaus.jackson.map.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:446)
at org.codehaus.jackson.map.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:150)
at org.codehaus.jackson.map.ser.BeanSerializer.serialize(BeanSerializer.java:112)
at org.codehaus.jackson.map.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:446)
at org.codehaus.jackson.map.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:150)
at org.codehaus.jackson.map.ser.BeanSerializer.serialize(BeanSerializer.java:112)
at org.codehaus.jackson.map.ser.StdSerializerProvider._serializeValue(StdSerializerProvider.java:610)
at org.codehaus.jackson.map.ser.StdSerializerProvider.serializeValue(StdSerializerProvider.java:256)
at org.codehaus.jackson.map.ObjectMapper.writeValue(ObjectMapper.java:1613)
at org.codehaus.jackson.jaxrs.JacksonJsonProvider.writeTo(JacksonJsonProvider.java:558)
at com.sun.jersey.json.impl.provider.entity.JacksonProviderProxy.writeTo(JacksonProviderProxy.java:160)
at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:306)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1451)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1363)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1353)
at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:414)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:708)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:679)

googling around I haven't found anything on this specific one yet, so
wanted to post here to see what might be going on. Anyone have some
ideas? I'm running v.0.19.8.

-warner

--

--


(Warner Onstine) #4

I fixed all the documents that had weird tags and changed them to be
"tags": null and I'm still getting the error. I've also tried a query
that has every single field filled in on the document and I'm still
getting that error so something else is going on :/.

-warner

On Fri, Aug 17, 2012 at 12:53 AM, David Pilato david@pilato.fr wrote:

You can use a script to modify your couchDb document before indexing it in ES.
See couchDb river documentation.

David

--

Le 17 août 2012 à 06:52, Warner Onstine warnero@gmail.com a écrit :

After some investigation it looks like it might be caused by this
entity in couchdb document coming across into ES:

"_source" : {"tags":[]
....
}

I've seen some examples of how to configure the mapper in other
projects, any suggestions on how to do this for ES?

Thanks!

-warner

On Thu, Aug 16, 2012 at 1:38 PM, Warner Onstine warnero@gmail.com wrote:

After getting my hand-written search working through curl I tried to
start testing out the java version and I get this Exception when
running my search:

org.codehaus.jackson.map.JsonMappingException: No serializer found for
class org.elasticsearch.common.BytesHolder and no properties
discovered to create BeanSerializer (to avoid exception, disable
SerializationConfig.Feature.FAIL_ON_EMPTY_BEANS) ) (through reference
chain: org.elasticsearch.action.search.SearchResponse["hits"]->org.elasticsearch.search.internal.InternalSearchHits["hits"]->org.elasticsearch.search.internal.InternalSearchHit["sourceRef"])
at org.codehaus.jackson.map.ser.impl.UnknownSerializer.failForEmpty(UnknownSerializer.java:52)
at org.codehaus.jackson.map.ser.impl.UnknownSerializer.serialize(UnknownSerializer.java:25)
at org.codehaus.jackson.map.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:446)
at org.codehaus.jackson.map.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:150)
at org.codehaus.jackson.map.ser.BeanSerializer.serialize(BeanSerializer.java:112)
at org.codehaus.jackson.map.ser.std.ObjectArraySerializer.serializeContents(ObjectArraySerializer.java:123)
at org.codehaus.jackson.map.ser.std.ObjectArraySerializer.serializeContents(ObjectArraySerializer.java:29)
at org.codehaus.jackson.map.ser.std.StdArraySerializers$ArraySerializerBase.serialize(StdArraySerializers.java:56)
at org.codehaus.jackson.map.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:446)
at org.codehaus.jackson.map.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:150)
at org.codehaus.jackson.map.ser.BeanSerializer.serialize(BeanSerializer.java:112)
at org.codehaus.jackson.map.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:446)
at org.codehaus.jackson.map.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:150)
at org.codehaus.jackson.map.ser.BeanSerializer.serialize(BeanSerializer.java:112)
at org.codehaus.jackson.map.ser.StdSerializerProvider._serializeValue(StdSerializerProvider.java:610)
at org.codehaus.jackson.map.ser.StdSerializerProvider.serializeValue(StdSerializerProvider.java:256)
at org.codehaus.jackson.map.ObjectMapper.writeValue(ObjectMapper.java:1613)
at org.codehaus.jackson.jaxrs.JacksonJsonProvider.writeTo(JacksonJsonProvider.java:558)
at com.sun.jersey.json.impl.provider.entity.JacksonProviderProxy.writeTo(JacksonProviderProxy.java:160)
at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:306)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1451)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1363)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1353)
at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:414)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:708)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:679)

googling around I haven't found anything on this specific one yet, so
wanted to post here to see what might be going on. Anyone have some
ideas? I'm running v.0.19.8.

-warner

--

--

--


(Warner Onstine) #5

For reference here's the results returned that fail when calling through java.

{
"took" : 14,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 1,
"max_score" : 0.89827573,
"hits" : [ {
"_index" : "syncrswim",
"_type" : "syncrswim",
"_id" : "54cfd5f94aa7f11e74ea8938a4062a76",
"_score" : 0.89827573, "_source" : {"tags":["Continuing
Education"," Realtor"," Real Estate"," GFE"," HUD","
RESPA"],"docType":"Event","location":{"lon":-110.909524,"lat":32.215437},"lastUpdated":"2012-08-15T21:49:00","links":{"image":"","main":"/syncrswim/events/event/54cfd5f94aa7f11e74ea8938a4062a76"},"provider":"eventbrite","externalId":"4055345648","stopTime":"2012-10-05T07:30:00","_rev":"2-d5b9e526bd3dad2e278e26472580bb8d","startTime":"2012-10-05T16:30:00","externalUpdatedDate":"2012-08-15T21:49:00","title":"Tucson
Summit - 2012 & Looking
Forward","_id":"54cfd5f94aa7f11e74ea8938a4062a76","description":" Join
us to learn:\r\n \r\n2012 - Are We Moving Forward?\r\n \r\nWhat Makes
The Commissioners Phone Ring?\r\n \r\nWhat's Happening With Short
Sales And Deficiency Judgments?\r\n \r\nIs The Mortgage Debt Relief
Act Going Away?\r\n \r\nWhere Are We Going With HOA Liens, Debt Relief
Act And Medical Marijuana?\r\n \r\nWhat Are The Broker And Agent
Responsibilities?","venueId":"54cfd5f94aa7f11e74ea8938a4063a5b"}
} ]
}
}

On Fri, Aug 17, 2012 at 6:57 AM, Warner Onstine warnero@gmail.com wrote:

I fixed all the documents that had weird tags and changed them to be
"tags": null and I'm still getting the error. I've also tried a query
that has every single field filled in on the document and I'm still
getting that error so something else is going on :/.

-warner

On Fri, Aug 17, 2012 at 12:53 AM, David Pilato david@pilato.fr wrote:

You can use a script to modify your couchDb document before indexing it in ES.
See couchDb river documentation.

David

--

Le 17 août 2012 à 06:52, Warner Onstine warnero@gmail.com a écrit :

After some investigation it looks like it might be caused by this
entity in couchdb document coming across into ES:

"_source" : {"tags":[]
....
}

I've seen some examples of how to configure the mapper in other
projects, any suggestions on how to do this for ES?

Thanks!

-warner

On Thu, Aug 16, 2012 at 1:38 PM, Warner Onstine warnero@gmail.com wrote:

After getting my hand-written search working through curl I tried to
start testing out the java version and I get this Exception when
running my search:

org.codehaus.jackson.map.JsonMappingException: No serializer found for
class org.elasticsearch.common.BytesHolder and no properties
discovered to create BeanSerializer (to avoid exception, disable
SerializationConfig.Feature.FAIL_ON_EMPTY_BEANS) ) (through reference
chain: org.elasticsearch.action.search.SearchResponse["hits"]->org.elasticsearch.search.internal.InternalSearchHits["hits"]->org.elasticsearch.search.internal.InternalSearchHit["sourceRef"])
at org.codehaus.jackson.map.ser.impl.UnknownSerializer.failForEmpty(UnknownSerializer.java:52)
at org.codehaus.jackson.map.ser.impl.UnknownSerializer.serialize(UnknownSerializer.java:25)
at org.codehaus.jackson.map.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:446)
at org.codehaus.jackson.map.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:150)
at org.codehaus.jackson.map.ser.BeanSerializer.serialize(BeanSerializer.java:112)
at org.codehaus.jackson.map.ser.std.ObjectArraySerializer.serializeContents(ObjectArraySerializer.java:123)
at org.codehaus.jackson.map.ser.std.ObjectArraySerializer.serializeContents(ObjectArraySerializer.java:29)
at org.codehaus.jackson.map.ser.std.StdArraySerializers$ArraySerializerBase.serialize(StdArraySerializers.java:56)
at org.codehaus.jackson.map.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:446)
at org.codehaus.jackson.map.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:150)
at org.codehaus.jackson.map.ser.BeanSerializer.serialize(BeanSerializer.java:112)
at org.codehaus.jackson.map.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:446)
at org.codehaus.jackson.map.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:150)
at org.codehaus.jackson.map.ser.BeanSerializer.serialize(BeanSerializer.java:112)
at org.codehaus.jackson.map.ser.StdSerializerProvider._serializeValue(StdSerializerProvider.java:610)
at org.codehaus.jackson.map.ser.StdSerializerProvider.serializeValue(StdSerializerProvider.java:256)
at org.codehaus.jackson.map.ObjectMapper.writeValue(ObjectMapper.java:1613)
at org.codehaus.jackson.jaxrs.JacksonJsonProvider.writeTo(JacksonJsonProvider.java:558)
at com.sun.jersey.json.impl.provider.entity.JacksonProviderProxy.writeTo(JacksonProviderProxy.java:160)
at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:306)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1451)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1363)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1353)
at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:414)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:708)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:679)

googling around I haven't found anything on this specific one yet, so
wanted to post here to see what might be going on. Anyone have some
ideas? I'm running v.0.19.8.

-warner

--

--

--


(David Pilato) #6

What is your mapping?

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 17 août 2012 à 16:06, Warner Onstine warnero@gmail.com a écrit :

For reference here's the results returned that fail when calling through java.

{
"took" : 14,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 1,
"max_score" : 0.89827573,
"hits" : [ {
"_index" : "syncrswim",
"_type" : "syncrswim",
"_id" : "54cfd5f94aa7f11e74ea8938a4062a76",
"_score" : 0.89827573, "_source" : {"tags":["Continuing
Education"," Realtor"," Real Estate"," GFE"," HUD","
RESPA"],"docType":"Event","location":{"lon":-110.909524,"lat":32.215437},"lastUpdated":"2012-08-15T21:49:00","links":{"image":"","main":"/syncrswim/events/event/54cfd5f94aa7f11e74ea8938a4062a76"},"provider":"eventbrite","externalId":"4055345648","stopTime":"2012-10-05T07:30:00","_rev":"2-d5b9e526bd3dad2e278e26472580bb8d","startTime":"2012-10-05T16:30:00","externalUpdatedDate":"2012-08-15T21:49:00","title":"Tucson
Summit - 2012 & Looking
Forward","_id":"54cfd5f94aa7f11e74ea8938a4062a76","description":" Join
us to learn:\r\n \r\n2012 - Are We Moving Forward?\r\n \r\nWhat Makes
The Commissioners Phone Ring?\r\n \r\nWhat's Happening With Short
Sales And Deficiency Judgments?\r\n \r\nIs The Mortgage Debt Relief
Act Going Away?\r\n \r\nWhere Are We Going With HOA Liens, Debt Relief
Act And Medical Marijuana?\r\n \r\nWhat Are The Broker And Agent
Responsibilities?","venueId":"54cfd5f94aa7f11e74ea8938a4063a5b"}
} ]
}
}

On Fri, Aug 17, 2012 at 6:57 AM, Warner Onstine warnero@gmail.com wrote:

I fixed all the documents that had weird tags and changed them to be
"tags": null and I'm still getting the error. I've also tried a query
that has every single field filled in on the document and I'm still
getting that error so something else is going on :/.

-warner

On Fri, Aug 17, 2012 at 12:53 AM, David Pilato david@pilato.fr wrote:

You can use a script to modify your couchDb document before indexing it in ES.
See couchDb river documentation.

David

--

Le 17 août 2012 à 06:52, Warner Onstine warnero@gmail.com a écrit :

After some investigation it looks like it might be caused by this
entity in couchdb document coming across into ES:

"_source" : {"tags":[]
....
}

I've seen some examples of how to configure the mapper in other
projects, any suggestions on how to do this for ES?

Thanks!

-warner

On Thu, Aug 16, 2012 at 1:38 PM, Warner Onstine warnero@gmail.com wrote:

After getting my hand-written search working through curl I tried to
start testing out the java version and I get this Exception when
running my search:

org.codehaus.jackson.map.JsonMappingException: No serializer found for
class org.elasticsearch.common.BytesHolder and no properties
discovered to create BeanSerializer (to avoid exception, disable
SerializationConfig.Feature.FAIL_ON_EMPTY_BEANS) ) (through reference
chain: org.elasticsearch.action.search.SearchResponse["hits"]->org.elasticsearch.search.internal.InternalSearchHits["hits"]->org.elasticsearch.search.internal.InternalSearchHit["sourceRef"])
at org.codehaus.jackson.map.ser.impl.UnknownSerializer.failForEmpty(UnknownSerializer.java:52)
at org.codehaus.jackson.map.ser.impl.UnknownSerializer.serialize(UnknownSerializer.java:25)
at org.codehaus.jackson.map.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:446)
at org.codehaus.jackson.map.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:150)
at org.codehaus.jackson.map.ser.BeanSerializer.serialize(BeanSerializer.java:112)
at org.codehaus.jackson.map.ser.std.ObjectArraySerializer.serializeContents(ObjectArraySerializer.java:123)
at org.codehaus.jackson.map.ser.std.ObjectArraySerializer.serializeContents(ObjectArraySerializer.java:29)
at org.codehaus.jackson.map.ser.std.StdArraySerializers$ArraySerializerBase.serialize(StdArraySerializers.java:56)
at org.codehaus.jackson.map.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:446)
at org.codehaus.jackson.map.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:150)
at org.codehaus.jackson.map.ser.BeanSerializer.serialize(BeanSerializer.java:112)
at org.codehaus.jackson.map.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:446)
at org.codehaus.jackson.map.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:150)
at org.codehaus.jackson.map.ser.BeanSerializer.serialize(BeanSerializer.java:112)
at org.codehaus.jackson.map.ser.StdSerializerProvider._serializeValue(StdSerializerProvider.java:610)
at org.codehaus.jackson.map.ser.StdSerializerProvider.serializeValue(StdSerializerProvider.java:256)
at org.codehaus.jackson.map.ObjectMapper.writeValue(ObjectMapper.java:1613)
at org.codehaus.jackson.jaxrs.JacksonJsonProvider.writeTo(JacksonJsonProvider.java:558)
at com.sun.jersey.json.impl.provider.entity.JacksonProviderProxy.writeTo(JacksonProviderProxy.java:160)
at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:306)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1451)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1363)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1353)
at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:414)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:708)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:679)

googling around I haven't found anything on this specific one yet, so
wanted to post here to see what might be going on. Anyone have some
ideas? I'm running v.0.19.8.

-warner

--

--

--

--


(Warner Onstine) #7

I just noticed that the root of the error isn't with ES itself but
with Jersey (which I'm using to push out my search results, along with
a whole bunch of other things).

Sorry for the confusion! Now to try and figure out why Jersey is complaining.

-warner

On Fri, Aug 17, 2012 at 8:02 AM, David Pilato david@pilato.fr wrote:

What is your mapping?

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 17 août 2012 à 16:06, Warner Onstine warnero@gmail.com a écrit :

For reference here's the results returned that fail when calling through java.

{
"took" : 14,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 1,
"max_score" : 0.89827573,
"hits" : [ {
"_index" : "syncrswim",
"_type" : "syncrswim",
"_id" : "54cfd5f94aa7f11e74ea8938a4062a76",
"_score" : 0.89827573, "_source" : {"tags":["Continuing
Education"," Realtor"," Real Estate"," GFE"," HUD","
RESPA"],"docType":"Event","location":{"lon":-110.909524,"lat":32.215437},"lastUpdated":"2012-08-15T21:49:00","links":{"image":"","main":"/syncrswim/events/event/54cfd5f94aa7f11e74ea8938a4062a76"},"provider":"eventbrite","externalId":"4055345648","stopTime":"2012-10-05T07:30:00","_rev":"2-d5b9e526bd3dad2e278e26472580bb8d","startTime":"2012-10-05T16:30:00","externalUpdatedDate":"2012-08-15T21:49:00","title":"Tucson
Summit - 2012 & Looking
Forward","_id":"54cfd5f94aa7f11e74ea8938a4062a76","description":" Join
us to learn:\r\n \r\n2012 - Are We Moving Forward?\r\n \r\nWhat Makes
The Commissioners Phone Ring?\r\n \r\nWhat's Happening With Short
Sales And Deficiency Judgments?\r\n \r\nIs The Mortgage Debt Relief
Act Going Away?\r\n \r\nWhere Are We Going With HOA Liens, Debt Relief
Act And Medical Marijuana?\r\n \r\nWhat Are The Broker And Agent
Responsibilities?","venueId":"54cfd5f94aa7f11e74ea8938a4063a5b"}
} ]
}
}

On Fri, Aug 17, 2012 at 6:57 AM, Warner Onstine warnero@gmail.com wrote:

I fixed all the documents that had weird tags and changed them to be
"tags": null and I'm still getting the error. I've also tried a query
that has every single field filled in on the document and I'm still
getting that error so something else is going on :/.

-warner

On Fri, Aug 17, 2012 at 12:53 AM, David Pilato david@pilato.fr wrote:

You can use a script to modify your couchDb document before indexing it in ES.
See couchDb river documentation.

David

--

Le 17 août 2012 à 06:52, Warner Onstine warnero@gmail.com a écrit :

After some investigation it looks like it might be caused by this
entity in couchdb document coming across into ES:

"_source" : {"tags":[]
....
}

I've seen some examples of how to configure the mapper in other
projects, any suggestions on how to do this for ES?

Thanks!

-warner

On Thu, Aug 16, 2012 at 1:38 PM, Warner Onstine warnero@gmail.com wrote:

After getting my hand-written search working through curl I tried to
start testing out the java version and I get this Exception when
running my search:

org.codehaus.jackson.map.JsonMappingException: No serializer found for
class org.elasticsearch.common.BytesHolder and no properties
discovered to create BeanSerializer (to avoid exception, disable
SerializationConfig.Feature.FAIL_ON_EMPTY_BEANS) ) (through reference
chain: org.elasticsearch.action.search.SearchResponse["hits"]->org.elasticsearch.search.internal.InternalSearchHits["hits"]->org.elasticsearch.search.internal.InternalSearchHit["sourceRef"])
at org.codehaus.jackson.map.ser.impl.UnknownSerializer.failForEmpty(UnknownSerializer.java:52)
at org.codehaus.jackson.map.ser.impl.UnknownSerializer.serialize(UnknownSerializer.java:25)
at org.codehaus.jackson.map.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:446)
at org.codehaus.jackson.map.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:150)
at org.codehaus.jackson.map.ser.BeanSerializer.serialize(BeanSerializer.java:112)
at org.codehaus.jackson.map.ser.std.ObjectArraySerializer.serializeContents(ObjectArraySerializer.java:123)
at org.codehaus.jackson.map.ser.std.ObjectArraySerializer.serializeContents(ObjectArraySerializer.java:29)
at org.codehaus.jackson.map.ser.std.StdArraySerializers$ArraySerializerBase.serialize(StdArraySerializers.java:56)
at org.codehaus.jackson.map.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:446)
at org.codehaus.jackson.map.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:150)
at org.codehaus.jackson.map.ser.BeanSerializer.serialize(BeanSerializer.java:112)
at org.codehaus.jackson.map.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:446)
at org.codehaus.jackson.map.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:150)
at org.codehaus.jackson.map.ser.BeanSerializer.serialize(BeanSerializer.java:112)
at org.codehaus.jackson.map.ser.StdSerializerProvider._serializeValue(StdSerializerProvider.java:610)
at org.codehaus.jackson.map.ser.StdSerializerProvider.serializeValue(StdSerializerProvider.java:256)
at org.codehaus.jackson.map.ObjectMapper.writeValue(ObjectMapper.java:1613)
at org.codehaus.jackson.jaxrs.JacksonJsonProvider.writeTo(JacksonJsonProvider.java:558)
at com.sun.jersey.json.impl.provider.entity.JacksonProviderProxy.writeTo(JacksonProviderProxy.java:160)
at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:306)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1451)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1363)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1353)
at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:414)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:708)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:679)

googling around I haven't found anything on this specific one yet, so
wanted to post here to see what might be going on. Anyone have some
ideas? I'm running v.0.19.8.

-warner

--

--

--

--

--


(system) #8