You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by Sagara Paranagama <sa...@gmail.com> on 2012/08/08 10:59:53 UTC
Create and Delete Folder test throwing Unexpected Exception
Hi all,
I'm running the Create and Delete Folder test from the workbench. However I
keep getting this exception,
UNEXPECTED_EXCEPTION: CRUD Test Group (ATOMPUB)/Create and Delete Folder
Test: Exception:
org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: null
(AbstractSessionTest.java: 152)
I've debugged my program and realized that folders were created and
deleted. However when the test is checking whether they were really
deleted, it performs the getObject service again. My implementation throws
a new CmisObjectNotFoundException when it tries to get the deleted folder
object. Still the above exception is encountered.
Any idea as to what is wrong?
Thanks,
Sagara
Re: Create and Delete Folder test throwing Unexpected Exception
Posted by Sagara Paranagama <sa...@gmail.com>.
Hi Florian,
I didn't know the HTML source had the stacktrace. Thanks for that tip!!. It
seems there was a Null Pointer Exception somewhere in my implementation.
I'll look into it. I'm sure that was the problem. Anyway the stacktrace is
provided below.
org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: null
at
org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:452)
at
org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.read(AbstractAtomPubService.java:554)
at
org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.getObjectInternal(AbstractAtomPubService.java:778)
at
org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.getObjectByPath(ObjectServiceImpl.java:518)
at
org.apache.chemistry.opencmis.client.runtime.SessionImpl.getObjectByPath(SessionImpl.java:430)
at
org.apache.chemistry.opencmis.tck.impl.AbstractSessionTest.checkChild(AbstractSessionTest.java:1674)
at
org.apache.chemistry.opencmis.tck.impl.AbstractSessionTest.checkChildren(AbstractSessionTest.java:1542)
at
org.apache.chemistry.opencmis.tck.tests.crud.CreateAndDeleteFolderTest.run(CreateAndDeleteFolderTest.java:66)
at
org.apache.chemistry.opencmis.tck.impl.AbstractSessionTest.run(AbstractSessionTest.java:149)
at
org.apache.chemistry.opencmis.tck.impl.AbstractCmisTestGroup.run(AbstractCmisTestGroup.java:109)
at
org.apache.chemistry.opencmis.tck.runner.AbstractRunner.run(AbstractRunner.java:250)
at
org.apache.chemistry.opencmis.workbench.TckDialog$TckTask.doInBackground(TckDialog.java:658)
at
org.apache.chemistry.opencmis.workbench.TckDialog$TckTask.doInBackground(TckDialog.java:646)
at javax.swing.SwingWorker$1.call(SwingWorker.java:277)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at javax.swing.SwingWorker.run(SwingWorker.java:316)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException
at
org.apache.chemistry.opencmis.server.support.CmisServiceWrapper.createCmisException(CmisServiceWrapper.java:139)
at
org.apache.chemistry.opencmis.server.support.CmisServiceWrapper.getObjectByPath(CmisServiceWrapper.java:841)
at
org.apache.chemistry.opencmis.server.impl.atompub.ObjectService.getObjectByPath(ObjectService.java:345)
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:92)
at
org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet.dispatch(CmisAtomPubServlet.java:229)
at
org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet.service(CmisAtomPubServlet.java:178)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1001)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NullPointerException
at
org.mycmis.registry.chemistry.greg.impl.DocumentTypeHandler.getGregNode(DocumentTypeHandler.java:74)
at
org.mycmis.registry.chemistry.greg.GregFolder.create(GregFolder.java:377)
at
org.mycmis.registry.chemistry.greg.GregObject.getNode(GregObject.java:205)
at
org.mycmis.registry.chemistry.greg.GregRepository.getObjectByPath(GregRepository.java:593)
at
org.mycmis.registry.chemistry.greg.GregService.getObjectByPath(GregService.java:247)
at
org.apache.chemistry.opencmis.server.support.CmisServiceWrapper.getObjectByPath(CmisServiceWrapper.java:838)
... 25 more
Thanks again!
Sagara
Re: Create and Delete Folder test throwing Unexpected Exception
Posted by Florian Müller <fm...@apache.org>.
Hi Sagara,
Could you please provide a stacktrace?
(You should find it in a text report of a TCK run or in the HTML source
of a HTML report.)
Thanks,
Florian
> Hi all,
>
> I'm running the Create and Delete Folder test from the workbench.
> However I
> keep getting this exception,
>
> UNEXPECTED_EXCEPTION: CRUD Test Group (ATOMPUB)/Create and Delete
> Folder
> Test: Exception:
>
> org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException:
> null
> (AbstractSessionTest.java: 152)
>
> I've debugged my program and realized that folders were created and
> deleted. However when the test is checking whether they were really
> deleted, it performs the getObject service again. My implementation
> throws
> a new CmisObjectNotFoundException when it tries to get the deleted
> folder
> object. Still the above exception is encountered.
>
> Any idea as to what is wrong?
>
> Thanks,
> Sagara