Details

      Description

      Bootup portal from empty db triggers upgrade failure.

          [junit] 06:01:31,635 ERROR [com_liferay_portal_upgrade:97] FrameworkEvent ERROR 
          [junit] java.lang.RuntimeException: com.liferay.portal.kernel.upgrade.UpgradeException: java.sql.SQLSyntaxErrorException: user lacks privilege or object not found: PORTLET
          [junit] 	at com.liferay.youtube.web.upgrade.YouTubeWebUpgrade._upgradeRelease(YouTubeWebUpgrade.java:57)
          [junit] 	at com.liferay.youtube.web.upgrade.YouTubeWebUpgrade.register(YouTubeWebUpgrade.java:35)
          [junit] 	at com.liferay.portal.upgrade.registry.UpgradeStepRegistratorTracker$UpgradeStepRegistratorServiceTrackerCustomizer.addingService(UpgradeStepRegistratorTracker.java:177)
          [junit] 	at com.liferay.portal.upgrade.registry.UpgradeStepRegistratorTracker$UpgradeStepRegistratorServiceTrackerCustomizer.addingService(UpgradeStepRegistratorTracker.java:158)
          [junit] 	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)
          [junit] 	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:1)
          [junit] 	at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
          [junit] 	at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
          [junit] 	at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:901)
          [junit] 	at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:109)
          [junit] 	at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:917)
          [junit] 	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
          [junit] 	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
          [junit] 	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:862)
          [junit] 	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:801)
          [junit] 	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:127)
          [junit] 	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:225)
          [junit] 	at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:464)
          [junit] 	at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:869)
          [junit] 	at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:857)
          [junit] 	at org.apache.felix.scr.impl.manager.RegistrationManager.changeRegistration(RegistrationManager.java:133)
          [junit] 	at org.apache.felix.scr.impl.manager.AbstractComponentManager.registerService(AbstractComponentManager.java:915)
          [junit] 	at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:715)
          [junit] 	at org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.addedService(DependencyManager.java:954)
          [junit] 	at org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.addedService(DependencyManager.java:915)
          [junit] 	at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1215)
          [junit] 	at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1136)
          [junit] 	at org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.trackAdding(ServiceTracker.java:945)
          [junit] 	at org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.track(ServiceTracker.java:881)
          [junit] 	at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:1167)
          [junit] 	at org.apache.felix.scr.impl.BundleComponentActivator$ListenerInfo.serviceChanged(BundleComponentActivator.java:120)
          [junit] 	at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:109)
          [junit] 	at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:917)
          [junit] 	at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
          [junit] 	at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
          [junit] 	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:862)
          [junit] 	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:801)
          [junit] 	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:127)
          [junit] 	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:225)
          [junit] 	at org.eclipse.osgi.internal.framework.BundleContextImpl.registerService(BundleContextImpl.java:464)
          [junit] 	at com.liferay.portal.bootstrap.ModuleFrameworkImpl._registerService(ModuleFrameworkImpl.java:1042)
          [junit] 	at com.liferay.portal.bootstrap.ModuleFrameworkImpl._registerApplicationContext(ModuleFrameworkImpl.java:1009)
          [junit] 	at com.liferay.portal.bootstrap.ModuleFrameworkImpl.registerContext(ModuleFrameworkImpl.java:333)
          [junit] 	at com.liferay.portal.module.framework.ModuleFrameworkUtilAdapter.registerContext(ModuleFrameworkUtilAdapter.java:71)
          [junit] 	at com.liferay.portal.util.InitUtil.registerContext(InitUtil.java:238)
          [junit] 	at com.liferay.portal.util.InitUtil.initWithSpring(InitUtil.java:222)
          [junit] 	at com.liferay.portal.test.rule.LiferayIntegrationTestRule$1$1.evaluate(LiferayIntegrationTestRule.java:125)
          [junit] 	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:81)
          [junit] 	at com.liferay.portal.kernel.test.rule.BaseTestRule$2.evaluate(BaseTestRule.java:81)
          [junit] 	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
          [junit] 	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
          [junit] 	at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:38)
          [junit] 	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:532)
          [junit] 	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1179)
          [junit] 	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:1001)
          [junit] Caused by: com.liferay.portal.kernel.upgrade.UpgradeException: java.sql.SQLSyntaxErrorException: user lacks privilege or object not found: PORTLET
          [junit] 	at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:91)
          [junit] 	at com.liferay.youtube.web.upgrade.YouTubeWebUpgrade._upgradeRelease(YouTubeWebUpgrade.java:54)
          [junit] 	... 54 more
          [junit] Caused by: java.sql.SQLSyntaxErrorException: user lacks privilege or object not found: PORTLET
          [junit] 	at org.hsqldb.jdbc.JDBCUtil.sqlException(JDBCUtil.java:376)
          [junit] 	at org.hsqldb.jdbc.JDBCUtil.sqlException(JDBCUtil.java:247)
          [junit] 	at org.hsqldb.jdbc.JDBCPreparedStatement.<init>(JDBCPreparedStatement.java:3888)
          [junit] 	at org.hsqldb.jdbc.JDBCConnection.prepareStatement(JDBCConnection.java:641)
          [junit] 	at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
          [junit] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          [junit] 	at java.lang.reflect.Method.invoke(Method.java:606)
          [junit] 	at org.apache.tomcat.jdbc.pool.ProxyConnection.invoke(ProxyConnection.java:126)
          [junit] 	at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:108)
          [junit] 	at org.apache.tomcat.jdbc.pool.interceptor.ConnectionState.invoke(ConnectionState.java:152)
          [junit] 	at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:108)
          [junit] 	at org.apache.tomcat.jdbc.pool.TrapException.invoke(TrapException.java:40)
          [junit] 	at org.apache.tomcat.jdbc.pool.JdbcInterceptor.invoke(JdbcInterceptor.java:108)
          [junit] 	at org.apache.tomcat.jdbc.pool.DisposableConnectionFacade.invoke(DisposableConnectionFacade.java:81)
          [junit] 	at com.sun.proxy.$Proxy7.prepareStatement(Unknown Source)
          [junit] 	at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
          [junit] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          [junit] 	at java.lang.reflect.Method.invoke(Method.java:606)
          [junit] 	at org.springframework.jdbc.datasource.LazyConnectionDataSourceProxy$LazyConnectionInvocationHandler.invoke(LazyConnectionDataSourceProxy.java:376)
          [junit] 	at com.sun.proxy.$Proxy8.prepareStatement(Unknown Source)
          [junit] 	at com.liferay.youtube.web.upgrade.util.UpgradePluginRelease._hasPortlet(UpgradePluginRelease.java:72)
          [junit] 	at com.liferay.youtube.web.upgrade.util.UpgradePluginRelease.doUpgrade(UpgradePluginRelease.java:37)
          [junit] 	at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:88)
          [junit] 	... 55 more
          [junit] Caused by: org.hsqldb.HsqlException: user lacks privilege or object not found: PORTLET
          [junit] 	at org.hsqldb.error.Error.error(Error.java:83)
          [junit] 	at org.hsqldb.error.Error.error(Error.java:72)
          [junit] 	at org.hsqldb.ParserDQL.readTableName(ParserDQL.java:6072)
          [junit] 	at org.hsqldb.ParserDQL.readTableOrSubquery(ParserDQL.java:1961)
          [junit] 	at org.hsqldb.ParserDQL.XreadTableReference(ParserDQL.java:1291)
          [junit] 	at org.hsqldb.ParserDQL.XreadFromClause(ParserDQL.java:1276)
          [junit] 	at org.hsqldb.ParserDQL.XreadTableExpression(ParserDQL.java:1196)
          [junit] 	at org.hsqldb.ParserDQL.XreadQuerySpecification(ParserDQL.java:1189)
          [junit] 	at org.hsqldb.ParserDQL.XreadSimpleTable(ParserDQL.java:1171)
          [junit] 	at org.hsqldb.ParserDQL.XreadQueryPrimary(ParserDQL.java:1100)
          [junit] 	at org.hsqldb.ParserDQL.XreadQueryTerm(ParserDQL.java:1066)
          [junit] 	at org.hsqldb.ParserDQL.XreadQueryExpressionBody(ParserDQL.java:1045)
          [junit] 	at org.hsqldb.ParserDQL.XreadQueryExpression(ParserDQL.java:1017)
          [junit] 	at org.hsqldb.ParserDQL.compileCursorSpecification(ParserDQL.java:6230)
          [junit] 	at org.hsqldb.ParserCommand.compilePart(ParserCommand.java:147)
          [junit] 	at org.hsqldb.ParserCommand.compileStatement(ParserCommand.java:64)
          [junit] 	at org.hsqldb.Session.compileStatement(Session.java:933)
          [junit] 	at org.hsqldb.StatementManager.compile(StatementManager.java:375)
          [junit] 	at org.hsqldb.Session.execute(Session.java:1037)
          [junit] 	at org.hsqldb.jdbc.JDBCPreparedStatement.<init>(JDBCPreparedStatement.java:3885)
          [junit] 	... 75 more
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 2 weeks, 1 day ago