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

Existing MySQL connector not compatible with MySQL 8.0

    Details

      Description

      Steps to reproduce issue:

      1. Build portal using LPS-89456 fix for restricted words and keywords for MySQL 8.0
      2. Start portal using MySQL 8.0 database

      Expected result: Portal starts up successfully
      Actual result: Multiple exceptions are thrown; portal does not start up successfully.

      2019-02-04 18:05:37.349 ERROR [main][HikariPool:541] HikariPool-1 - Exception during pool initialization.
      java.sql.SQLException: java.lang.ClassCastException: java.math.BigInteger cannot be cast to java.lang.Long
              at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1074)
              at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:988)
              at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:974)
              at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:919)
              at com.mysql.jdbc.ConnectionImpl.buildCollationMapping(ConnectionImpl.java:1062)
              at com.mysql.jdbc.ConnectionImpl.initializePropsFromServer(ConnectionImpl.java:3556)
              at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2513)
              at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2283)
              at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:822)
              at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
              at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
              at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:404)
              at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:317)
              at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:112)
              at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:118)
              at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:358)
              at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:201)
              at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:443)
              at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:514)
              at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:111)
              at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:97)
              at com.liferay.portal.spring.hibernate.DialectDetector.getDialect(DialectDetector.java:55)
              at com.liferay.portal.dao.jdbc.DataSourceFactoryImpl.initDataSource(DataSourceFactoryImpl.java:205)
              at com.liferay.portal.kernel.dao.jdbc.DataSourceFactoryUtil.initDataSource(DataSourceFactoryUtil.java:39)
              at com.liferay.portal.dao.jdbc.spring.DataSourceFactoryBean.createInstance(DataSourceFactoryBean.java:44)
              at com.liferay.portal.dao.jdbc.spring.DataSourceFactoryBean.createInstance(DataSourceFactoryBean.java:30)
              at org.springframework.beans.factory.config.AbstractFactoryBean.afterPropertiesSet(AbstractFactoryBean.java:135)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1689)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1627)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)
              at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)
              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
              at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)
              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
              at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:742)
              at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
              at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
              at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
              at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
              at com.liferay.portal.spring.context.ArrayApplicationContext.<init>(ArrayApplicationContext.java:33)
              at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:253)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4643)
              at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5109)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:742)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:718)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:703)
              at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
              at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1840)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
              at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
              at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:525)
              at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:424)
              at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1585)
              at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:308)
              at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
              at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:424)
              at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:367)
              at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:966)
              at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:839)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1427)
              at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1417)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
              at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
              at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:943)
              at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:258)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.startup.Catalina.start(Catalina.java:682)
              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 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)
              at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
      Caused by: java.lang.ClassCastException: java.math.BigInteger cannot be cast to java.lang.Long
              at com.mysql.jdbc.ConnectionImpl.buildCollationMapping(ConnectionImpl.java:1007)
              ... 82 more
      2019-02-04 18:05:37.358 ERROR [main][DialectDetector:147] java.sql.SQLException: java.lang.ClassCastException: java.math.BigInteger cannot be cast to java.lang.Long
      java.sql.SQLException: java.lang.ClassCastException: java.math.BigInteger cannot be cast to java.lang.Long
              at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1074)
              at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:988)
              at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:974)
              at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:919)
              at com.mysql.jdbc.ConnectionImpl.buildCollationMapping(ConnectionImpl.java:1062)
              at com.mysql.jdbc.ConnectionImpl.initializePropsFromServer(ConnectionImpl.java:3556)
              at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2513)
              at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2283)
              at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:822)
              at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
              at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
              at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
              at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:404)
              at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:317)
              at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:112)
              at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:118)
              at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:358)
              at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:201)
              at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:443)
              at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:514)
              at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:111)
              at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:97)
              at com.liferay.portal.spring.hibernate.DialectDetector.getDialect(DialectDetector.java:55)
              at com.liferay.portal.dao.jdbc.DataSourceFactoryImpl.initDataSource(DataSourceFactoryImpl.java:205)
              at com.liferay.portal.kernel.dao.jdbc.DataSourceFactoryUtil.initDataSource(DataSourceFactoryUtil.java:39)
              at com.liferay.portal.dao.jdbc.spring.DataSourceFactoryBean.createInstance(DataSourceFactoryBean.java:44)
              at com.liferay.portal.dao.jdbc.spring.DataSourceFactoryBean.createInstance(DataSourceFactoryBean.java:30)
              at org.springframework.beans.factory.config.AbstractFactoryBean.afterPropertiesSet(AbstractFactoryBean.java:135)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1689)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1627)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)
              at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)
              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
              at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)
              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
              at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:742)
              at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
              at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
              at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
              at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
              at com.liferay.portal.spring.context.ArrayApplicationContext.<init>(ArrayApplicationContext.java:33)
              at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:253)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4643)
              at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5109)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:742)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:718)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:703)
              at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
              at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1840)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
              at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
              at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:525)
              at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:424)
              at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1585)
              at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:308)
              at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
              at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:424)
              at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:367)
              at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:966)
              at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:839)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1427)
              at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1417)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
              at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
              at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:943)
              at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:258)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.startup.Catalina.start(Catalina.java:682)
              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 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)
              at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
      Caused by: java.lang.ClassCastException: java.math.BigInteger cannot be cast to java.lang.Long
              at com.mysql.jdbc.ConnectionImpl.buildCollationMapping(ConnectionImpl.java:1007)
              ... 82 more
      04-Feb-2019 18:05:37.368 SEVERE [main] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class [com.liferay.portal.spring.context.PortalContextLoaderListener]
       java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liferayDataSourceImpl' defined in class path resource [META-INF/infrastructure-spring.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: No dialect found
              at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:261)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4643)
              at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5109)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:742)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:718)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:703)
              at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
              at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1840)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
              at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
              at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:525)
              at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:424)
              at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1585)
              at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:308)
              at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
              at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:424)
              at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:367)
              at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:966)
              at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:839)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1427)
              at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1417)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
              at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
              at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:943)
              at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:258)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.startup.Catalina.start(Catalina.java:682)
              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 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)
              at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liferayDataSourceImpl' defined in class path resource [META-INF/infrastructure-spring.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: No dialect found
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1631)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)
              at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)
              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
              at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)
              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
              at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:742)
              at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
              at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
              at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
              at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
              at com.liferay.portal.spring.context.ArrayApplicationContext.<init>(ArrayApplicationContext.java:33)
              at com.liferay.portal.spring.context.PortalContextLoaderListener.contextInitialized(PortalContextLoaderListener.java:253)
              ... 41 more
      Caused by: java.lang.RuntimeException: No dialect found
              at com.liferay.portal.spring.hibernate.DialectDetector.getDialect(DialectDetector.java:152)
              at com.liferay.portal.dao.jdbc.DataSourceFactoryImpl.initDataSource(DataSourceFactoryImpl.java:205)
              at com.liferay.portal.kernel.dao.jdbc.DataSourceFactoryUtil.initDataSource(DataSourceFactoryUtil.java:39)
              at com.liferay.portal.dao.jdbc.spring.DataSourceFactoryBean.createInstance(DataSourceFactoryBean.java:44)
              at com.liferay.portal.dao.jdbc.spring.DataSourceFactoryBean.createInstance(DataSourceFactoryBean.java:30)
              at org.springframework.beans.factory.config.AbstractFactoryBean.afterPropertiesSet(AbstractFactoryBean.java:135)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1689)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1627)
              ... 54 more
      
      04-Feb-2019 18:05:37.369 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
      04-Feb-2019 18:05:37.370 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors
      2019-02-04 18:05:37.435 ERROR [main][PortalContextLoaderListener:142] java.lang.NullPointerException
      java.lang.NullPointerException
              at com.liferay.portal.kernel.servlet.DirectServletRegistryUtil.clearServlets(DirectServletRegistryUtil.java:25)
              at com.liferay.portal.spring.context.PortalContextLoaderListener.contextDestroyed(PortalContextLoaderListener.java:139)
              at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4690)
              at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5331)
              at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:187)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:742)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:718)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:703)
              at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
              at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1840)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
              at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
              at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:525)
              at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:424)
              at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1585)
              at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:308)
              at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
              at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:424)
              at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:367)
              at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:966)
              at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:839)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1427)
              at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1417)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
              at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
              at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:943)
              at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:258)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.startup.Catalina.start(Catalina.java:682)
              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 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)
              at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
      2019-02-04 18:05:37.438 ERROR [main][PortalContextLoaderListener:149] java.lang.NullPointerException
      java.lang.NullPointerException
              at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.reset(HotDeployUtil.java:50)
              at com.liferay.portal.spring.context.PortalContextLoaderListener.contextDestroyed(PortalContextLoaderListener.java:146)
              at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4690)
              at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5331)
              at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:187)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:742)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:718)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:703)
              at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
              at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1840)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
              at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
              at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:525)
              at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:424)
              at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1585)
              at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:308)
              at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
              at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:424)
              at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:367)
              at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:966)
              at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:839)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1427)
              at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1417)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
              at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
              at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:943)
              at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:258)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.startup.Catalina.start(Catalina.java:682)
              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 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)
              at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
      2019-02-04 18:05:37.441 ERROR [main][PortalBeanLocatorUtil:66] BeanLocator is null
      04-Feb-2019 18:05:37.441 SEVERE [main] org.apache.catalina.core.StandardContext.listenerStop Exception sending context destroyed event to listener instance of class [com.liferay.portal.spring.context.PortalContextLoaderListener]
       com.liferay.portal.kernel.bean.BeanLocatorException: BeanLocator is not set
              at com.liferay.portal.kernel.bean.PortalBeanLocatorUtil.locate(PortalBeanLocatorUtil.java:68)
              at com.liferay.portal.spring.context.PortalContextLoaderListener.closeDataSource(PortalContextLoaderListener.java:409)
              at com.liferay.portal.spring.context.PortalContextLoaderListener.contextDestroyed(PortalContextLoaderListener.java:159)
              at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4690)
              at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5331)
              at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:187)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:742)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:718)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:703)
              at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
              at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1840)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
              at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)
              at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:525)
              at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:424)
              at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1585)
              at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:308)
              at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
              at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:424)
              at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:367)
              at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:966)
              at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:839)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1427)
              at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1417)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
              at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
              at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:943)
              at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:258)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
              at org.apache.catalina.startup.Catalina.start(Catalina.java:682)
              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 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)
              at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
      

      Reproduced on:
      Tomcat 9.0.10 + MySQL 5.7
      Portal master GIT ID: fd98fdbf6469dc24030b24659228f69dabc3aea9
      MySQL Connector 5.1.23

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                anthony.chu Anthony Chu
                Reporter:
                anthony.chu Anthony Chu
                Participants of an Issue:
                Recent user:
                Hai Yu
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 18 weeks, 3 days ago

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days
                  2d

                    Packages

                    Version Package
                    Master