Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-654

Search fails if documents do not have the common schema

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Bug
    • Affects Version/s: 5.1 M1
    • Fix Version/s: 5.1 M1
    • Component/s: Query & PageProvider

      Description

      Search (and then DashBoard) fails if some matching documents do not have the common schema.

      This should be at least shielded.

      Partial traceback :
      at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
      at org.jboss.seam.ui.facelet.MethodExpressionHelper.invokeTheExpression(MethodExpressionHelper.java:102)
      at org.jboss.seam.ui.facelet.ParamMethodExpression.invoke(ParamMethodExpression.java:62)
      at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
      ... 66 more
      Caused by: org.nuxeo.ecm.core.query.QueryException: getDocumentModels failed
      at org.nuxeo.ecm.core.jcr.JCRQueryResult.getDocumentModels(JCRQueryResult.java:297)
      at org.nuxeo.ecm.core.api.AbstractSession.query(AbstractSession.java:774)
      ... 228 more
      Caused by: java.lang.NullPointerException
      at org.nuxeo.ecm.core.api.DocumentModelFactory.exportSchema(DocumentModelFactory.java:181)
      at org.nuxeo.ecm.core.api.DocumentModelFactory.createDocumentModel(DocumentModelFactory.java:115)
      at org.nuxeo.ecm.core.jcr.JCRQueryResult.getDocumentModels(JCRQueryResult.java:291)
      ... 229 more

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 4 hours
                  4h
                  Remaining:
                  Remaining Estimate - 4 hours
                  4h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified