Errors when executing upgrade process for com.liferay.exportimport.service

Issue

  • The ExportImport Service failed during the upgrade from Liferay 6.2 to DXP 7.2:
    ERROR - Failed upgrade process for module com.liferay.exportimport.service
    com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.SQLGrammarException: could not execute query
    ...
    Caused by: com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.SQLGrammarException: could not execute query
    ...
    Caused by: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.SQLGrammarException: could not execute query
    ...
    Caused by: org.hibernate.exception.SQLGrammarException: could not execute query
    ...
    Caused by: java.sql.SQLSyntaxErrorException: ORA-00904: "DBMS_LOB"."SUBSTR": invalid identifier_ [Sanitized]
  • The release.state for the service was -1 when troubleshooting the Upgrade process, therefore tried doing the upgrade again with the command upgrade :execute com.liferay.exportimport.service, but still seeing this error:

    [pipe-upgrade:execute com.liferay.exportimport.service] 02:18:22,004 INFO UpgradeProcess:93 - Upgrading com.liferay.exportimport.internal.upgrade.v1_0_0.UpgradePublisherRequest
    [pipe-upgrade:execute com.liferay.exportimport.service] 02:18:22,013 ERROR JDBCExceptionReporter:234 - ORA-00904: "DBMS_LOB"."SUBSTR": invalid identifier_ [Sanitized]
    [pipe-upgrade:execute com.liferay.exportimport.service] 02:18:22,013 INFO UpgradeProcess:107 - Failed upgrade process com.liferay.exportimport.internal.upgrade.v1_0_0.UpgradePublisherRequest in 9 ms
    [pipe-upgrade:execute com.liferay.exportimport.service] 02:18:22,019 ERROR PortalSynchronousLogListener:93 - bundle com.liferay.portal.upgrade.impl:3.0.19 (540)[com.liferay.portal.upgrade.internal.release.osgi.commands.ReleaseManagerOSGiCommands(1420)] : The activate method has thrown an exception
    com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.SQLGrammarException: could not execute query
    at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:101)
    at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:137)
    at com.liferay.portal.upgrade.internal.executor.UpgradeExecutor$UpgradeInfosRunnable.run(UpgradeExecutor.java:200)
    at com.liferay.portal.output.stream.container.internal.OutputStreamContainerFactoryTrackerImpl.runWithSwappedLog(OutputStreamContainerFactoryTrackerImpl.java:134)
    at com.liferay.portal.upgrade.internal.executor.SwappedLogExecutor.execute(SwappedLogExecutor.java:51)
    at com.liferay.portal.upgrade.internal.executor.UpgradeExecutor.executeUpgradeInfos(UpgradeExecutor.java:155)
    at com.liferay.portal.upgrade.internal.executor.UpgradeExecutor.execute(UpgradeExecutor.java:118)
    at com.liferay.portal.upgrade.internal.release.osgi.commands.ReleaseManagerOSGiCommands.activate(ReleaseManagerOSGiCommands.java:287)
    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)
    .
    .
    .....................................................................................

Environment

  • Liferay DXP 7.2

Resolution

  • Since neither DBMS lob.instr nor DBMS lob.substr worked, the observed errors indicate that the database user does not have permission to perform any DBMS lob functions, which will need to be addressed by the DBA team.

  • The upgrading process will now be able to run the appropriate SQL when the permissions have been granted.

Additional Information

  • Please reference Liferay DXP Whitepapers, particularly Upgrading to Liferay DXP.
  • Third-party technology vendors are responsible for resolving defects in their technology. Liferay Subscription Services can help direct customers to the appropriate third-party technology vendor.
¿Fue útil este artículo?
Usuarios a los que les pareció útil: 0 de 0