Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-21199

"Could not locate ordinal parameter" error when using search XWikiAuthServiceImpl#findUser

    XMLWordPrintable

Details

    • Easy
    • N/A
    • N/A

    Description

      the first parameter indes should be 1, not 0, right?

      [2023-08-02 11:33:58] [info] Caused by: java.lang.IllegalArgumentException: Could not locate ordinal parameter [0], expecting one of [1, 2] 
      [2023-08-02 11:33:58] [info] #011at org.hibernate.query.internal.ParameterMetadataImpl.getOrdinalParameterDescriptor(ParameterMetadataImpl.java:154) 
      [2023-08-02 11:33:58] [info] #011at org.hibernate.query.internal.ParameterMetadataImpl.getQueryParameter(ParameterMetadataImpl.java:204) 
      [2023-08-02 11:33:58] [info] #011at org.hibernate.query.internal.QueryParameterBindingsImpl.getBinding(QueryParameterBindingsImpl.java:183) 
      [2023-08-02 11:33:58] [info] #011at org.hibernate.query.internal.AbstractProducedQuery.setParameter(AbstractProducedQuery.java:519) 
      [2023-08-02 11:33:58] [info] #011at org.hibernate.query.internal.AbstractProducedQuery.setParameter(AbstractProducedQuery.java:122) 
      [2023-08-02 11:33:58] [info] #011at com.xpn.xwiki.store.XWikiHibernateStore.lambda$search$21(XWikiHibernateStore.java:2541)
      

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              hengels Holger Engels
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: