Hi,
After calling webdav search command where search query is: "//element(*,
corona:directory)", I received the following exception:
15.12.2006 13:01:35 *ERROR* SearchResourceImpl: exception while
retrieving values from client row (SearchResourceImpl.java, line 171)
java.lang.NullPointerException
at
org.apache.jackrabbit.rmi.value.StatefulValueAdapter.getType(StatefulVal
ueAdapter.java:98)
at
org.apache.jackrabbit.rmi.value.SerialValue.(SerialValue.java:65)
at
org.apache.jackrabbit.rmi.value.SerialValueFactory.makeSerialValue(Seria
lValueFactory.java:100)
at
org.apache.jackrabbit.rmi.value.SerialValueFactory.makeSerialValueArray(
SerialValueFactory.java:77)
at
org.apache.jackrabbit.rmi.server.ServerRow.getValues(ServerRow.java:58)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
at sun.rmi.transport.Transport$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown
Source)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown
Source)
at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at
org.apache.jackrabbit.rmi.server.ServerRow_Stub.getValues(Unknown
Source)
at
org.apache.jackrabbit.rmi.client.ClientRow.getValues(ClientRow.java:53)
at
org.apache.jackrabbit.webdav.jcr.search.SearchResourceImpl.queryResultTo
MultiStatus(SearchResourceImpl.java:169)
at
org.apache.jackrabbit.webdav.jcr.search.SearchResourceImpl.search(Search
ResourceImpl.java:86)
at
org.apache.jackrabbit.webdav.jcr.AbstractResource.search(AbstractResourc
e.java:622)
at
org.apache.jackrabbit.server.AbstractWebdavServlet.doSearch(AbstractWebd
avServlet.java:1017)
at
org.apache.jackrabbit.server.AbstractWebdavServlet.execute(AbstractWebda
vServlet.java:271)
at
org.apache.jackrabbit.server.AbstractWebdavServlet.service(AbstractWebda
vServlet.java:187)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:86
9)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc
essConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
erWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:684)
at java.lang.Thread.run(Unknown Source)
What is the reason of such exception?
I tested this query with the JCR Browser and it returned valid results.
To get any response I surrounded row.getValues with try-catch inside
org.apache.jackrabbit.webdav.jcr.search.SearchResourceImpl.queryResultTo
MultiStatus (plus do not instantiate SearchResultProperty if there are
no values) - after this I received such response:
207 Multi-Status
content-type: text/xml;charset=UTF-8
date: Fri, 15 Dec 2006 12:01:35 GMT
content-length: 1331
server: Apache-Coyote/1.1
http://localhost:8080/org.eclipse.corona.jackrabbit.web/server/J
ackrabbitDemoWorkspace/corona%3aroot/DemoDirectory/http://localhost:8080/org.eclipse.corona.jackrabbit.web/server/J
ackrabbitDemoWorkspace/corona%3aroot/DemoDirectory/edka4/http://localhost:8080/org.eclipse.corona.jackrabbit.web/server/J
ackrabbitDemoWorkspace/corona%3aroot/DemoDirectory_copy/edka4/http://localhost:8080/org.eclipse.corona.jackrabbit.web/server/J
ackrabbitDemoWorkspace/test2/http://localhost:8080/org.eclipse.corona.jackrabbit.web/server/J
ackrabbitDemoWorkspace/corona%3aroot/test/http://localhost:8080/org.eclipse.corona.jackrabbit.web/server/J
ackrabbitDemoWorkspace/corona%3aroot/http://localhost:8080/org.eclipse.corona.jackrabbit.web/server/J
ackrabbitDemoWorkspace/corona%3aroot/DemoDirectory_copy/
Best regards
Edyta
The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it.