Uploaded image for project: 'Chemistry (Retired)'
  1. Chemistry (Retired)
  2. CMIS-387

ClassCastException while updating properties through AtomPub binding

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • OpenCMIS 0.3.0
    • OpenCMIS 0.4.0
    • opencmis-server
    • None

    Description

      The server-side exception I got while updating properties:
      org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException
      at org.apache.chemistry.opencmis.server.shared.Dispatcher.dispatch(Dispatcher.java:95)
      at org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet.dispatch(CmisAtomPubServlet.java:220)
      at org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet.service(CmisAtomPubServlet.java:163)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      at com.o3spaces.osgi.services.http.OsgiServlet.service(OsgiServlet.java:104)
      at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427)
      at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:832)
      at com.o3spaces.util.logging.NDCFilter.doFilter(NDCFilter.java:34)
      at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:823)
      at com.o3spaces.security.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:50)
      at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:823)
      at com.o3spaces.security.authentication.PrincipalAuthenticationFilter.doFilter(PrincipalAuthenticationFilter.java:66)
      at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:823)
      at com.o3spaces.security.authentication.trustednetwork.impl.TrustedNetworkFilter.doFilter(TrustedNetworkFilter.java:37)
      at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:823)
      at com.o3spaces.services.context.ContextFilter.doFilter(ContextFilter.java:67)
      at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:823)
      at com.o3spaces.services.context.URLSessionAcceptorFilter.doFilter(URLSessionAcceptorFilter.java:54)
      at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:823)
      at com.o3spaces.server.j2ee.CacheControlFilter.doFilter(CacheControlFilter.java:27)
      at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:823)
      at com.o3spaces.util.CleanupFilter.doFilter(CleanupFilter.java:41)
      at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:823)
      at com.o3spaces.server.license.LicenseFilter.doFilter(LicenseFilter.java:32)
      at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:823)
      at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:473)
      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1565)
      at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:635)
      at org.mortbay.http.HttpContext.handle(HttpContext.java:1517)
      at org.mortbay.jetty.plus.PlusWebAppContext.handle(PlusWebAppContext.java:158)
      at org.mortbay.http.HttpServer.service(HttpServer.java:954)
      at org.mortbay.http.HttpConnection.service(HttpConnection.java:814)
      at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981)
      at org.mortbay.http.HttpConnection.handle(HttpConnection.java:831)
      at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
      at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
      at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
      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:86)
      ... 37 more
      Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.reset(XMLDocumentFragmentScannerImpl.java:663)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.reset(XMLDocumentScannerImpl.java:297)
      at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.reset(XMLNSDocumentScannerImpl.java:113)
      at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.reset(XMLStreamReaderImpl.java:265)
      at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.init(XMLStreamReaderImpl.java:239)
      at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.<init>(XMLStreamReaderImpl.java:189)
      at com.sun.xml.internal.stream.XMLInputFactoryImpl.getXMLStreamReaderImpl(XMLInputFactoryImpl.java:264)
      at com.sun.xml.internal.stream.XMLInputFactoryImpl.createXMLStreamReader(XMLInputFactoryImpl.java:131)
      at org.apache.chemistry.opencmis.server.impl.atompub.AtomEntryParser.parse(AtomEntryParser.java:176)
      at org.apache.chemistry.opencmis.server.impl.atompub.AtomEntryParser.<init>(AtomEntryParser.java:90)
      at org.apache.chemistry.opencmis.server.impl.atompub.ObjectService.updateProperties(ObjectService.java:447)
      ... 42 more

      Attachments

        1. CMIS-387.diff
          0.9 kB
          Hinse ter Schuur

        Activity

          People

            fmui Florian Müller
            haterschuur Hinse ter Schuur
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: