Git Product home page Git Product logo

cleo-primer's Issues

Automatic ID generation

Instead of specifying the ID in the request , the ID should be auto generated.
Specifying a unique ID for each insert sounds lot inconvenient.

Unable to create simple instance

I'm trying to create a simple search.
I've downloaded cleo-primer:

  git clone --depth 1 https://github.com/jingwei/cleo-primer.git cleo-primer

I've been using git clean to start anew in case previous attempts to load data caused some sort of corruption.

Here's the upload script log as well as a "cat" of the data:

jlpoole@themis ~/work/cleo $ ./post-element-list.sh dat/three.xml

  • About to connect() to localhost port 8080 (#0)
  • Trying 127.0.0.1...
  • connected
  • Connected to localhost (127.0.0.1) port 8080 (#0)

    POST /cleo-primer/rest/elements/ HTTP/1.1
    User-Agent: curl/7.26.0
    Host: localhost:8080
    Content-type: application/xml
    Accept: application/xml
    Content-Length: 859

  • upload completely sent off: 859 out of 859 bytes
    < HTTP/1.1 200 OK
    < Content-Length: 0
    < Server: Jetty(6.1.25)
    <
  • Connection #0 to host localhost left intact
  • Closing connection #0
    jlpoole@themis ~/work/cleo $ cat dat/three.xml 1 Aaron Brown <title>Burgundy red, yellow red watermark</title> http://google.com 1.0 Aaron Brown Herr 06 2 Abraham Lincoln <title>Rose lavender with violet watermark and edge above green throat </title> http://google.com 1.0 Abraham Lincoln Rice 08 3 Absolute Treasure? <title>Orchid Rose Self, Fra</title> http://google.com 1.0 Absolute Treasure? Stamile 97 jlpoole@themis ~/work/cleo $

Finally, here's the log of the instance running (I clicked Control-C to terminate it):

themis cleo-primer # git clean -dfx
Removing generic-typeahead/
Removing target/
themis cleo-primer # MAVEN_OPTS="-Xms1g -Xmx1g" mvn jetty:run -Dcleo.instance.name=Company -Dcleo.instance.type=cleo.primer.GenericTypeaheadInstance -Dcleo.instance.conf=src/main/resources/config/generic-typeahead
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building cleo-primer
[INFO] task-segment: [jetty:run]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing jetty:run
[INFO] [resources:resources {execution: default-resources}]
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 4 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 9 source files to /usr/local/src/cleo-primer/target/classes
[INFO] [resources:testResources {execution: default-testResources}]
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /usr/local/src/cleo-primer/src/test/resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] No sources to compile
[INFO] [jetty:run {execution: default-cli}]
[INFO] Configuring Jetty for project: cleo-primer
[INFO] Webapp source directory = /usr/local/src/cleo-primer/src/main/webapp
[INFO] Reload Mechanic: manual
[INFO] Classes = /usr/local/src/cleo-primer/target/classes
2012-10-30 06:02:08.624:INFO::Logging to STDERR via org.mortbay.log.StdErrLog
[INFO] Context path = /cleo-primer
[INFO] Tmp directory = determined at runtime
[INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml
[INFO] Web overrides = none
[INFO] web.xml file = /usr/local/src/cleo-primer/src/main/webapp/WEB-INF/web.xml
[INFO] Webapp directory = /usr/local/src/cleo-primer/src/main/webapp
[INFO] Starting jetty 6.1.25 ...
2012-10-30 06:02:08.736:INFO::jetty-6.1.25
2012-10-30 06:02:08.980:INFO::No Transaction manager found - if your webapp requires one, please configure one.
2012-10-30 06:02:09.156:INFO:/cleo-primer:Initializing Spring root WebApplicationContext
Oct 30, 2012 6:02:09 AM com.sun.jersey.api.core.PackagesResourceConfig init
INFO: Scanning for root resource and provider classes in the packages:
cleo.primer.rest.resources
Oct 30, 2012 6:02:09 AM com.sun.jersey.api.core.ScanningResourceConfig logClasses
INFO: Root resource classes found:
class cleo.primer.rest.resources.ElementsResource
Oct 30, 2012 6:02:09 AM com.sun.jersey.api.core.ScanningResourceConfig init
INFO: No provider classes found.
Oct 30, 2012 6:02:09 AM com.sun.jersey.spi.spring.container.servlet.SpringServlet getContext
INFO: Using default applicationContext
Oct 30, 2012 6:02:09 AM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.12 02/15/2012 04:51 PM'
2012-10-30 06:02:10.523:INFO::Started [email protected]:8080
[INFO] Started Jetty Server
[INFO] Console reloading is ENABLED. Hit ENTER on the console to restart the context.
src/main/resources/config/generic-typeahead/i002.config
-- listing properties --
cleo.search.generic.typeahead.config.partition.count=1000000
cleo.search.generic.typeahead.config.connectionsStoreCapacity=1000000
cleo.search.generic.typeahead.config.elementStoreDir=generic-typeahead/i002/element-store
cleo.search.generic.typeahead.config.connectionsStoreSegmentMB=32
cleo.search.generic.typeahead.config.name=i002
cleo.search.generic.typeahead.config.elementSerializer.class=cleo.search.ElementJavaSerializer
cleo.search.generic.typeahead.config.elementStoreCapacity=1000000
cleo.search.generic.typeahead.config.homeDir=generic-typeahead/i002
cleo.search.generic.typeahead.config.elementStoreSegmentMB=32
cleo.search.generic.typeahead.config.elementStoreCached=true
cleo.search.generic.typeahead.config.filterPrefixLength=2
cleo.search.generic.typeahead.config.partition.start=1000000
cleo.search.generic.typeahead.config.elementStoreIndexStart=1000000
cleo.search.generic.typeahead.config.connectionsStoreDir=generic-typeahead/i002/connections-store
cleo.search.generic.typeahead.config.connectionsStoreIndexSegmentMB=8
cleo.search.generic.typeahead.config.maxKeyLength=5
src/main/resources/config/generic-typeahead/i001.config
-- listing properties --
cleo.search.generic.typeahead.config.partition.count=1000000
cleo.search.generic.typeahead.config.connectionsStoreCapacity=1000000
cleo.search.generic.typeahead.config.elementStoreDir=generic-typeahead/i001/element-store
cleo.search.generic.typeahead.config.connectionsStoreSegmentMB=32
cleo.search.generic.typeahead.config.name=i001
cleo.search.generic.typeahead.config.elementSerializer.class=cleo.search.ElementJavaSerializer
cleo.search.generic.typeahead.config.elementStoreCapacity=1000000
cleo.search.generic.typeahead.config.homeDir=generic-typeahead/i001
cleo.search.generic.typeahead.config.elementStoreSegmentMB=32
cleo.search.generic.typeahead.config.elementStoreCached=true
cleo.search.generic.typeahead.config.filterPrefixLength=2
cleo.search.generic.typeahead.config.partition.start=0
cleo.search.generic.typeahead.config.elementStoreIndexStart=0
cleo.search.generic.typeahead.config.connectionsStoreDir=generic-typeahead/i001/connections-store
cleo.search.generic.typeahead.config.connectionsStoreIndexSegmentMB=8
cleo.search.generic.typeahead.config.maxKeyLength=5

[INFO] restarting org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@1bd97d0d{/cleo-primer,/usr/local/src/cleo-primer/src/main/webapp}
2012-10-30 06:02:47.635:INFO:/cleo-primer:Closing Spring root WebApplicationContext
[INFO] Webapp source directory = /usr/local/src/cleo-primer/src/main/webapp
[INFO] Reload Mechanic: manual
[INFO] Classes = /usr/local/src/cleo-primer/target/classes
[INFO] Context path = /cleo-primer
[INFO] Tmp directory = determined at runtime
[INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml
[INFO] Web overrides = none
[INFO] web.xml file = /usr/local/src/cleo-primer/src/main/webapp/WEB-INF/web.xml
[INFO] Webapp directory = /usr/local/src/cleo-primer/src/main/webapp
2012-10-30 06:02:47.774:INFO::No Transaction manager found - if your webapp requires one, please configure one.
2012-10-30 06:02:47.902:INFO:/cleo-primer:Initializing Spring root WebApplicationContext
Oct 30, 2012 6:02:48 AM com.sun.jersey.api.core.PackagesResourceConfig init
INFO: Scanning for root resource and provider classes in the packages:
cleo.primer.rest.resources
Oct 30, 2012 6:02:48 AM com.sun.jersey.api.core.ScanningResourceConfig logClasses
INFO: Root resource classes found:
class cleo.primer.rest.resources.ElementsResource
Oct 30, 2012 6:02:48 AM com.sun.jersey.api.core.ScanningResourceConfig init
INFO: No provider classes found.
Oct 30, 2012 6:02:48 AM com.sun.jersey.spi.spring.container.servlet.SpringServlet getContext
INFO: Using default applicationContext
Oct 30, 2012 6:02:48 AM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.12 02/15/2012 04:51 PM'
[INFO] Restart completed at Tue Oct 30 06:02:48 PDT 2012
src/main/resources/config/generic-typeahead/i002.config
-- listing properties --
cleo.search.generic.typeahead.config.partition.count=1000000
cleo.search.generic.typeahead.config.connectionsStoreCapacity=1000000
cleo.search.generic.typeahead.config.elementStoreDir=generic-typeahead/i002/element-store
cleo.search.generic.typeahead.config.connectionsStoreSegmentMB=32
cleo.search.generic.typeahead.config.name=i002
cleo.search.generic.typeahead.config.elementSerializer.class=cleo.search.ElementJavaSerializer
cleo.search.generic.typeahead.config.elementStoreCapacity=1000000
cleo.search.generic.typeahead.config.homeDir=generic-typeahead/i002
cleo.search.generic.typeahead.config.elementStoreSegmentMB=32
cleo.search.generic.typeahead.config.elementStoreCached=true
cleo.search.generic.typeahead.config.filterPrefixLength=2
cleo.search.generic.typeahead.config.partition.start=1000000
cleo.search.generic.typeahead.config.elementStoreIndexStart=1000000
cleo.search.generic.typeahead.config.connectionsStoreDir=generic-typeahead/i002/connections-store
cleo.search.generic.typeahead.config.connectionsStoreIndexSegmentMB=8
cleo.search.generic.typeahead.config.maxKeyLength=5
src/main/resources/config/generic-typeahead/i001.config
-- listing properties --
cleo.search.generic.typeahead.config.partition.count=1000000
cleo.search.generic.typeahead.config.connectionsStoreCapacity=1000000
cleo.search.generic.typeahead.config.elementStoreDir=generic-typeahead/i001/element-store
cleo.search.generic.typeahead.config.connectionsStoreSegmentMB=32
cleo.search.generic.typeahead.config.name=i001
cleo.search.generic.typeahead.config.elementSerializer.class=cleo.search.ElementJavaSerializer
cleo.search.generic.typeahead.config.elementStoreCapacity=1000000
cleo.search.generic.typeahead.config.homeDir=generic-typeahead/i001
cleo.search.generic.typeahead.config.elementStoreSegmentMB=32
cleo.search.generic.typeahead.config.elementStoreCached=true
cleo.search.generic.typeahead.config.filterPrefixLength=2
cleo.search.generic.typeahead.config.partition.start=0
cleo.search.generic.typeahead.config.elementStoreIndexStart=0
cleo.search.generic.typeahead.config.connectionsStoreDir=generic-typeahead/i001/connections-store
cleo.search.generic.typeahead.config.connectionsStoreIndexSegmentMB=8
cleo.search.generic.typeahead.config.maxKeyLength=5
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at cleo.primer.ElementDAO.(ElementDAO.java:48)
at cleo.primer.ElementDAO.(ElementDAO.java:35)
at cleo.primer.rest.resources.ElementsResource.search(ElementsResource.java:157)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)
at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)
at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1483)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1414)
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:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:440)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:926)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
Caused by: java.lang.OutOfMemoryError: Java heap space
at krati.core.segment.MemorySegment.initByteBuffer(MemorySegment.java:89)
at krati.core.segment.MemorySegment.init(MemorySegment.java:44)
at krati.core.segment.AbstractSegment.(AbstractSegment.java:55)
at krati.core.segment.MemorySegment.(MemorySegment.java:39)
at krati.core.segment.MemorySegmentFactory.createSegment(MemorySegmentFactory.java:32)
at krati.core.segment.SegmentManager.nextSegment(SegmentManager.java:392)
at krati.core.segment.SegmentManager.nextSegment(SegmentManager.java:242)
at krati.core.array.SimpleDataArray.init(SimpleDataArray.java:294)
at krati.core.array.SimpleDataArray.(SimpleDataArray.java:157)
at cleo.search.store.KratiArrayStore.(KratiArrayStore.java:115)
at cleo.search.store.KratiBufferedInts.initExtension(KratiBufferedInts.java:169)
at cleo.search.store.KratiBufferedInts.(KratiBufferedInts.java:113)
at cleo.search.store.KratiBufferedInts.(KratiBufferedInts.java:95)
at cleo.search.store.StoreFactory.createConnectionsStore(StoreFactory.java:138)
at cleo.search.tool.GenericTypeaheadInitializer.createTypeahead(GenericTypeaheadInitializer.java:70)
at cleo.search.tool.GenericTypeaheadInitializer.(GenericTypeaheadInitializer.java:50)
at cleo.primer.GenericTypeaheadInstance.createTypeahead(GenericTypeaheadInstance.java:97)
at cleo.primer.GenericTypeaheadInstance.(GenericTypeaheadInstance.java:62)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at cleo.primer.ElementDAO.(ElementDAO.java:48)
at cleo.primer.ElementDAO.(ElementDAO.java:35)
at cleo.primer.rest.resources.ElementsResource.search(ElementsResource.java:157)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)
at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
Oct 30, 2012 6:02:57 AM com.sun.jersey.spi.container.ContainerResponse mapMappableContainerException
SEVERE: The RuntimeException could not be mapped to a response, re-throwing to the HTTP container
java.lang.NullPointerException
at cleo.primer.ElementDAO.getSearcher(ElementDAO.java:59)
at cleo.primer.rest.resources.ElementsResource.search(ElementsResource.java:157)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)
at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)
at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1483)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1414)
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:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:440)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:926)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
2012-10-30 06:02:57.175:WARN::/cleo-primer/rest/elements/search
java.lang.NullPointerException
at cleo.primer.ElementDAO.getSearcher(ElementDAO.java:59)
at cleo.primer.rest.resources.ElementsResource.search(ElementsResource.java:157)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)
at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)
at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1483)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1414)
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:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:440)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:926)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
^C2012-10-30 06:03:27.536:INFO::Shutdown hook executing
2012-10-30 06:03:27.536:INFO::Stopped [email protected]:8080
2012-10-30 06:03:28.037:INFO:/cleo-primer:Closing Spring root WebApplicationContext
[INFO] 2012-10-30 06:03:28.139:INFO::Shutdown hook completeJetty server exiting.

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 22 seconds
[INFO] Finished at: Tue Oct 30 06:03:28 PDT 2012
[INFO] Final Memory: 851M/981M
[INFO] ------------------------------------------------------------------------
themis cleo-primer #

I'm running the following:
themis cleo-primer # uname -a
Linux themis 3.3.8-gentoo #1 SMP Tue Oct 16 17:30:17 PDT 2012 x86_64 Intel(R) Core(TM) i5 CPU M 460 @ 2.53GHz GenuineIntel GNU/Linux
themis cleo-primer # java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.4) (Gentoo build 1.6.0_24-b24)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
themis cleo-primer # mvn -version
Apache Maven 2.2.1 (r801777; 2009-08-06 12:16:01-0700)
Java version: 1.6.0_24
Java home: /opt/icedtea-bin-6.1.11.4/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "3.3.8-gentoo" arch: "amd64" Family: "unix"
themis cleo-primer #

I also tried switching the encoding to "UTF-8" in the xml and it loaded fine:
jlpoole@themis ~/work/cleo $ ./post-element-list.sh dat/three.xml

  • About to connect() to localhost port 8080 (#0)
  • Trying 127.0.0.1...
  • connected
  • Connected to localhost (127.0.0.1) port 8080 (#0)

    POST /cleo-primer/rest/elements/ HTTP/1.1
    User-Agent: curl/7.26.0
    Host: localhost:8080
    Content-type: application/xml
    Accept: application/xml
    Content-Length: 856

  • upload completely sent off: 856 out of 856 bytes
    < HTTP/1.1 200 OK
    < Content-Length: 0
    < Server: Jetty(6.1.25)
    <
  • Connection #0 to host localhost left intact
  • Closing connection #0
    jlpoole@themis ~/work/cleo $

What may I do to provide deeper debugging information? Or am I missing something very basic?

maven-jetty-plugin' does not exist

Following the instructions at:
http://sna-projects.com/cleo/quickstart.php

I did the following:

themis src # git clone --depth 1 https://github.com/jingwei/cleo-primer.git cleo-primer
Cloning into 'cleo-primer'...
remote: Counting objects: 61, done.
remote: Compressing objects: 100% (48/48), done.
remote: Total 61 (delta 11), reused 36 (delta 4)
Unpacking objects: 100% (61/61), done.
themis src #  MAVEN_OPTS="-Xms1g -Xmx1g" mvn jetty:run \
>   -Dcleo.instance.name=Company \
>   -Dcleo.instance.type=cleo.primer.GenericTypeaheadInstance \
>   -Dcleo.instance.conf=src/main/resources/config/generic-typeahead
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'jetty'.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-jetty-plugin' does not exist or no valid version could be found
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Mon Oct 29 13:46:37 PDT 2012
[INFO] Final Memory: 6M/981M
[INFO] ------------------------------------------------------------------------
themis src # mvn --version
Apache Maven 2.2.1 (r801777; 2009-08-06 12:16:01-0700)
Java version: 1.6.0_24
Java home: /opt/icedtea-bin-6.1.11.4/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "3.3.8-gentoo" arch: "amd64" Family: "unix"
themis src #

Issue with terms which are slight variant of name

Hey,

I have been using the cleo-primer from
https://github.com/jingwei/cleo-primer

and have found one seriously annoying issue. For eg. see this element in my data file.
12205
420.000000
angel investor
angel investings
angel investing
angel investments
angel investment
angel investors
angel investor
business angel
informal investor
angel
investor

It gives null when queried with 'angel investments', 'angel investings'. On rigourous testings I have found out that it only shows this type of null when the queried term is just a slight variant of the name in the end. Please let me know how to solve this or is this really a bug in cleo-primer.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.