bkahlerventer / xcmis

Automatically exported from code.google.com/p/xcmis
0 stars 0 forks source link

can't add a file with cmis-explorer #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When I'm trying to add a file with CMIS-Explorer
(http://code.google.com/p/cmis-explorer/) I'm getting a NullPointerException.

Stacktrace:
10.02.2010 10:41:12 *ERROR* [http-8080-13] RequestHandlerImpl: Internal
error occurs. (RequestHandlerImpl.java, line 222) 
java.lang.NullPointerException
    at
org.xcmis.restatom.collections.FolderChildrenCollection.postEntry(FolderChildren
Collection.java:212)
    at org.xcmis.restatom.AtomCmisService.createItem(AtomCmisService.java:743)
    at org.xcmis.restatom.AtomCmisService.createChild(AtomCmisService.java:194)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
org.exoplatform.services.rest.impl.method.DefaultMethodInvoker.invokeMethod(Defa
ultMethodInvoker.java:140)
    at
org.exoplatform.services.rest.impl.RequestDispatcher.invokeSubResourceMethod(Req
uestDispatcher.java:302)
    at
org.exoplatform.services.rest.impl.RequestDispatcher.dispatch(RequestDispatcher.
java:244)
    at
org.exoplatform.services.rest.impl.RequestDispatcher.dispatch(RequestDispatcher.
java:147)
    at
org.exoplatform.services.rest.impl.RequestHandlerImpl.handleRequest(RequestHandl
erImpl.java:136)
    at
org.exoplatform.services.rest.servlet.RestServlet.onService(RestServlet.java:82)
    at
org.exoplatform.container.web.AbstractHttpServlet.service(AbstractHttpServlet.ja
va:116)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:290)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:206)
    at
org.exoplatform.services.rest.servlet.RestEncodingFilter.doFilter(RestEncodingFi
lter.java:58)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:235)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:206)
    at
org.exoplatform.frameworks.jcr.web.ThreadLocalSessionProviderInitializedFilter.d
oFilter(ThreadLocalSessionProviderInitializedFilter.java:116)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:235)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:206)
    at
org.exoplatform.services.security.web.SetCurrentIdentityFilter.doFilter(SetCurre
ntIdentityFilter.java:76)
    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilt
erChain.java:235)
    at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.
java:206)
    at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:2
33)
    at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:1
91)
    at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.jav
a:525)
    at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109
)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
    at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Pr
otocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
    at java.lang.Thread.run(Thread.java:637)

Original issue reported on code.google.com by jerem...@gmail.com on 10 Feb 2010 at 2:47

GoogleCodeExporter commented 9 years ago
Problem is cmis-explorer  send Atom document that does not contains CMIS 
elements.
We are not supported it at the moment. But will add this possibility soon.
This described in specification:
-----
POSTing other document formats: (AtomPub)
The behavior is repository specific when a non Atom entry or an atom document 
without the
CMIS elements is posted to a folder collection.
For example, the repository MAY auto-create a document with a specific type
(document) the
client could edit.
If the repository does not support this scenario or another exception occurs, 
then
the repository
MUST return the appropriate HTTP status code.
----
Any way NPE is unacceptable.

Original comment by andrew...@gmail.com on 12 Feb 2010 at 7:19