You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The problem turns out to be that I had used uppercase lettering in the tags. When I changed my sample so that the elements contained only lower case letters, it worked.
I recommend there be some documentation warning of this case sensitivity.
I'm trying to create a simple search.
I've downloaded 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
< HTTP/1.1 200 OK
< Content-Length: 0
< Server: Jetty(6.1.25)
<
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
< HTTP/1.1 200 OK
< Content-Length: 0
< Server: Jetty(6.1.25)
<
jlpoole@themis ~/work/cleo $
What may I do to provide deeper debugging information? Or am I missing something very basic?
The text was updated successfully, but these errors were encountered: