Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-70037

Lucene Index Writer triggers exception com.ctc.wstx.exc.WstxUnexpectedCharException when indexing document file titles

    Details

      Description

      Steps:
      1/ Start portal
      2/ Sign in as portal admin user
      3/ Navigate to Control Panel > Server Administration > Log Levels > Update Categories
      4/ Enter text "com.liferay.portal.util" into search field and click "Search" button
      5/ Change logging level from ERROR to WARN
      6/ Scroll down page and click "Save" button.
      7/ Add file to into documents and media.
      8/ Review portal log files.
      Expected outcome: No warning exception.
      Actual outcome: WARN entry "com.ctc.wstx.exc.WstxUnexpectedCharException" reported.

      06:26:52,795 WARN  [http-bio-9090-exec-1][LocalizationImpl:1062] com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'b' (code 98) in prolog; expected '<'__ at [row,col {unknown-source}
      ]: [1,1] [Sanitized]
      com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'b' (code 98) in prolog; expected '<'__ at [row,col {unknown-source}]: [1,1] [Sanitized]
              at com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:623)
              at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2047)
              at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
              at com.ctc.wstx.sr.BasicStreamReader.nextTag(BasicStreamReader.java:1095)
              at com.liferay.portal.util.LocalizationImpl._getRootAttributeValue(LocalizationImpl.java:1055)
              at com.liferay.portal.util.LocalizationImpl.getDefaultLanguageId(LocalizationImpl.java:170)
              at com.liferay.portal.kernel.util.LocalizationUtil.getDefaultLanguageId(LocalizationUtil.java:88)
              at com.liferay.portlet.asset.model.impl.AssetEntryModelImpl.getDefaultLanguageId(AssetEntryModelImpl.java:1224)
              at com.liferay.portal.kernel.search.BaseIndexer.populateMap(BaseIndexer.java:1819)
              at com.liferay.portal.kernel.search.BaseIndexer.addAssetFields(BaseIndexer.java:689)
              at com.liferay.portal.kernel.search.BaseIndexer.getBaseModelDocument(BaseIndexer.java:1631)
              at com.liferay.portlet.documentlibrary.util.DLFileEntryIndexer.doGetDocument(DLFileEntryIndexer.java:358)
              at com.liferay.portal.kernel.search.BaseIndexer.getDocument(BaseIndexer.java:183)
              at com.liferay.portlet.documentlibrary.util.DLFileEntryIndexer.doReindex(DLFileEntryIndexer.java:502)
              at com.liferay.portal.kernel.search.BaseIndexer.reindex(BaseIndexer.java:489)
              at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl.reindex(DLFileEntryLocalServiceImpl.java:2437)
              at com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl.updateStatus(DLFileEntryLocalServiceImpl.java:1871)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:115)
              at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:62)
              at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:51)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
              at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
              at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
              at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
              at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:111)
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  2 years, 32 weeks, 2 days ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 DXP FP11
                  7.0.X
                  7.1.X
                  Master