Hello, I'm trying to set up a project where we develop and test code first
against the cmis in-memory server before moving to alfresco.
When I run the GettingStarted.java sample (0.6.0-SNAPSHOT checked out this
morning) against the same built in-memory server running on Jetty, I get the
following results.
Query1: SELECT * FROM cmis:document WHERE cmis:name LIKE 'test%
Query2: SELECT * FROM cmis:document WHERE cmis:name LIKE 'test%.txt' AND
CONTAINS('test')
(both throw the exact same error, but I can't see whats causing in. The
in-memory server is unit-tested here.)
ClientSide:
Query...
--------
***results from query SELECT * FROM cmis:document WHERE cmis:name LIKE 'test%'
Exception in thread "main"
org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: null
at
org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:450)
at
org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.post(AbstractAtomPubService.java:568)
at
org.apache.chemistry.opencmis.client.bindings.spi.atompub.DiscoveryServiceImpl.query(DiscoveryServiceImpl.java:141)
at
org.apache.chemistry.opencmis.client.runtime.SessionImpl$3.fetchPage(SessionImpl.java:557)
at
org.apache.chemistry.opencmis.client.runtime.util.AbstractIterator.getCurrentPage(AbstractIterator.java:132)
at
org.apache.chemistry.opencmis.client.runtime.util.CollectionIterator.hasNext(CollectionIterator.java:48)
at
org.apache.chemistry.opencmis.doc.GettingStarted.main(GettingStarted.java:501)
ServerSide:
10/11/2011 2:52:46 PM
org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet printError
SEVERE: null
org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException
at
org.apache.chemistry.opencmis.server.shared.Dispatcher.dispatch(Dispatcher.java:90)
at
org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet.dispatch(CmisAtomPubServlet.java:218)
at
org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet.service(CmisAtomPubServlet.java:167)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:558)
at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:488)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520)
at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:233)
at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:973)
at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:417)
at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192)
at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:907)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
at org.eclipse.jetty.server.Server.handle(Server.java:346)
at
org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:442)
at
org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:941)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:893)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:218)
at
org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:51)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:586)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:44)
at
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598)
at
org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.chemistry.opencmis.server.shared.Dispatcher.dispatch(Dispatcher.java:83)
... 27 more
Caused by: java.lang.NullPointerException
at
org.apache.chemistry.opencmis.inmemory.query.InMemoryQueryProcessor$InMemoryWhereClauseWalker.walkLike(InMemoryQueryProcessor.java:468)
at
org.apache.chemistry.opencmis.server.support.query.AbstractPredicateWalker.walkPredicate(AbstractPredicateWalker.java:72)
at
org.apache.chemistry.opencmis.inmemory.query.InMemoryQueryProcessor.evalWhereNode(InMemoryQueryProcessor.java:271)
at
org.apache.chemistry.opencmis.inmemory.query.InMemoryQueryProcessor.evalWhereTree(InMemoryQueryProcessor.java:253)
at
org.apache.chemistry.opencmis.inmemory.query.InMemoryQueryProcessor.match(InMemoryQueryProcessor.java:246)
at
org.apache.chemistry.opencmis.inmemory.query.InMemoryQueryProcessor.query(InMemoryQueryProcessor.java:101)
at
org.apache.chemistry.opencmis.inmemory.storedobj.impl.StoreManagerImpl.query(StoreManagerImpl.java:491)
at
org.apache.chemistry.opencmis.inmemory.server.InMemoryDiscoveryServiceImpl.query(InMemoryDiscoveryServiceImpl.java:112)
at
org.apache.chemistry.opencmis.inmemory.server.InMemoryService.query(InMemoryService.java:357)
at
org.apache.chemistry.opencmis.server.impl.atompub.DiscoveryService.query(DiscoveryService.java:126)
... 32 more
====================================================================================
This e-mail message and attachments do not necessarily reflect the views of
the New Zealand Ministry of Justice and may contain
information that is confidential and may be subject to legal privilege. If you
are not the intended recipient, you are hereby notified that you must not use,
disseminate, distribute or copy this e-mail message or its attachments. If you
received this message in error, please notify the Ministry of Justice
by telephone (call collect: 00-64-4-918-8800) or return the
original message to us by e-mail, and destroy any copies.
Thank you.
====================================================================================