PUBLIC - Liferay Portal Community Edition
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-46400

UnsupportedOperationException thrown when using JasperReports and DBStore

    Details

    • Branch Version/s:
      6.2.x, 6.1.x
    • Backported to Branch:
      Committed
    • Story Points:
      9
    • Similar Issues:
      Show 5 results 

      Description

      1. Start with a clean bundle with no documents
      2. Place the following in portal-ext.properties prior to start bundle.
      dl.store.impl=com.liferay.portlet.documentlibrary.store.DBStore

      3. Deploy Jasper Reports EE and Reports EE.
      4. Navigate to Control Panel > Reports Admin > Definitions
      5. Click Add Report Definition
      6. Click Browse and select attached template.
      7. Click Save
      8. On new definition name, click Actions > Add Report > Generate
      9. Errors are thrown

      Results of Testing
      Expected behavior: Reports should be created.
      Actual behavior: Instead, the error below is thrown.

        Activity

        Hide
        Lu Liu added a comment -

        Testing of master is blocked by LPS-45895.

        Show
        Lu Liu added a comment - Testing of master is blocked by LPS-45895.
        Hide
        Lu Liu added a comment - - edited

        PASSED Manual Testing following the steps in the description.

        Reproduced on:
        Tomcat 7.0.42 + MySQL 5.5.21. Portal ee-6.2.x EE GIT ID: 79d056c6b315c2c2b15b471116531b6b4c67b35e.
        Plugins ee-6.2.x EE GIT ID: c7c02a1ccace6399900601316da5e188fcfb0832.

        The error below is thrown:

        07:08:52,881 ERROR [liferay/reports_admin-1][SerialDestination:68] Unable to process message {destinationName=liferay/reports_admin, response=null, responseDestinationName=null, responseId=10533, payload=com.liferay.portal.kernel.bi.reporting.ByteArrayReportResultContainer@58c5bb66, values={defaultLocale=en_US, groupId=0, permissionChecker=com.liferay.portal.kernel.util.TransientValue@1d925312, principalName=10199, siteDefaultLocale=en_US, companyId=10155, themeDisplayLocale=en_US}}
        com.liferay.portal.kernel.messaging.MessageListenerException: java.lang.UnsupportedOperationException
                at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:32)
                at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72)
                at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:65)
                at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:682)
                at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:593)
                at java.lang.Thread.run(Thread.java:744)
        Caused by: java.lang.UnsupportedOperationException
                at com.liferay.portlet.documentlibrary.store.BaseStore.getFile(BaseStore.java:291)
                at com.liferay.portlet.documentlibrary.store.BaseStore.getFile(BaseStore.java:257)
                at com.liferay.portlet.documentlibrary.store.StoreProxyImpl.getFile(StoreProxyImpl.java:124)
                at com.liferay.portlet.documentlibrary.store.SafeFileNameStoreWrapper.getFile(SafeFileNameStoreWrapper.java:176)
                at com.liferay.portlet.documentlibrary.store.DLStoreImpl.getFile(DLStoreImpl.java:246)
                at com.liferay.portlet.documentlibrary.store.DLStoreUtil.getFile(DLStoreUtil.java:326)
                at com.liferay.reports.service.impl.EntryLocalServiceImpl.sendEmails(EntryLocalServiceImpl.java:323)
                at com.liferay.reports.service.impl.EntryLocalServiceImpl.updateEntry(EntryLocalServiceImpl.java:390)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                at java.lang.reflect.Method.invoke(Method.java:606)
                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)
                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)
                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)
                at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175)
                at com.sun.proxy.$Proxy477.updateEntry(Unknown Source)
                at com.liferay.reports.service.EntryLocalServiceUtil.updateEntry(EntryLocalServiceUtil.java:364)
                at com.liferay.reports.admin.messaging.AdminMessageListener.doReceive(AdminMessageListener.java:46)
                at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
                ... 5 more
        

        Fixed on:
        Tomcat 7.0.42 + MySQL 5.5.21. Portal ee-6.2.x EE GIT ID: 79d056c6b315c2c2b15b471116531b6b4c67b35e.
        Plugins ee-6.2.x EE GIT ID: 2b3c46cd68f8ed885ba1ff468e14e8ae7262ac10.

        Reports are able to be created.

        Show
        Lu Liu added a comment - - edited PASSED Manual Testing following the steps in the description. Reproduced on: Tomcat 7.0.42 + MySQL 5.5.21. Portal ee-6.2.x EE GIT ID: 79d056c6b315c2c2b15b471116531b6b4c67b35e. Plugins ee-6.2.x EE GIT ID: c7c02a1ccace6399900601316da5e188fcfb0832. The error below is thrown: 07:08:52,881 ERROR [liferay/reports_admin-1][SerialDestination:68] Unable to process message {destinationName=liferay/reports_admin, response=null, responseDestinationName=null, responseId=10533, payload=com.liferay.portal.kernel.bi.reporting.ByteArrayReportResultContainer@58c5bb66, values={defaultLocale=en_US, groupId=0, permissionChecker=com.liferay.portal.kernel.util.TransientValue@1d925312, principalName=10199, siteDefaultLocale=en_US, companyId=10155, themeDisplayLocale=en_US}} com.liferay.portal.kernel.messaging.MessageListenerException: java.lang.UnsupportedOperationException at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:32) at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:72) at com.liferay.portal.kernel.messaging.SerialDestination$1.run(SerialDestination.java:65) at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:682) at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:593) at java.lang.Thread.run(Thread.java:744) Caused by: java.lang.UnsupportedOperationException at com.liferay.portlet.documentlibrary.store.BaseStore.getFile(BaseStore.java:291) at com.liferay.portlet.documentlibrary.store.BaseStore.getFile(BaseStore.java:257) at com.liferay.portlet.documentlibrary.store.StoreProxyImpl.getFile(StoreProxyImpl.java:124) at com.liferay.portlet.documentlibrary.store.SafeFileNameStoreWrapper.getFile(SafeFileNameStoreWrapper.java:176) at com.liferay.portlet.documentlibrary.store.DLStoreImpl.getFile(DLStoreImpl.java:246) at com.liferay.portlet.documentlibrary.store.DLStoreUtil.getFile(DLStoreUtil.java:326) at com.liferay.reports.service.impl.EntryLocalServiceImpl.sendEmails(EntryLocalServiceImpl.java:323) at com.liferay.reports.service.impl.EntryLocalServiceImpl.updateEntry(EntryLocalServiceImpl.java:390) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) 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) 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) 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) at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:175) at com.sun.proxy.$Proxy477.updateEntry(Unknown Source) at com.liferay.reports.service.EntryLocalServiceUtil.updateEntry(EntryLocalServiceUtil.java:364) at com.liferay.reports.admin.messaging.AdminMessageListener.doReceive(AdminMessageListener.java:46) at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26) ... 5 more Fixed on: Tomcat 7.0.42 + MySQL 5.5.21. Portal ee-6.2.x EE GIT ID: 79d056c6b315c2c2b15b471116531b6b4c67b35e. Plugins ee-6.2.x EE GIT ID: 2b3c46cd68f8ed885ba1ff468e14e8ae7262ac10. Reports are able to be created.
        Hide
        Lu Liu added a comment - - edited

        PASSED Manual Testing following the steps in the description.

        Fixed on:
        Tomcat 7.0.42 + MySQL 5.5.21. Portal master GIT ID: 2a7cb4e6e23e97acf6d3fc2a78de5196e50a5f34.
        Plugins ee-7.0.x EE GIT ID: a062fd71be1549d71ddc23d4c79f9586d39efb7a.

        Reports are able to be created.

        Show
        Lu Liu added a comment - - edited PASSED Manual Testing following the steps in the description. Fixed on: Tomcat 7.0.42 + MySQL 5.5.21. Portal master GIT ID: 2a7cb4e6e23e97acf6d3fc2a78de5196e50a5f34. Plugins ee-7.0.x EE GIT ID: a062fd71be1549d71ddc23d4c79f9586d39efb7a. Reports are able to be created.
        Hide
        Lu Liu added a comment -

        PASSED Manual Testing following the steps in the description.

        Tomcat 7.0.40 + MySQL 5.5.21. Portal ee-6.1.x EE GIT ID: 44ab6717a3f4f86708b1006faf83167ff341023e.
        Plugins ee-6.1.x EE GIT ID: 1c455489fb467f1162b31082f418b7361051891f.

        Reports are able to be created.

        Show
        Lu Liu added a comment - PASSED Manual Testing following the steps in the description. Tomcat 7.0.40 + MySQL 5.5.21. Portal ee-6.1.x EE GIT ID: 44ab6717a3f4f86708b1006faf83167ff341023e. Plugins ee-6.1.x EE GIT ID: 1c455489fb467f1162b31082f418b7361051891f. Reports are able to be created.

          People

          • Assignee:
            Lu Liu
            Reporter:
            Jonathan McCann
            Recent user:
            Jenny Chen
            Participants of an Issue:
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since last comment:
              47 weeks, 6 days ago

              Development

                Structure Helper Panel