Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
0.8
-
None
-
None
Description
If falcon is configured to run with mysql db, and user does not create db then server start should fail and throw error for the same. But server starts successfully as of now. Although error is logged in server logs saying :
2015-12-21 13:41:01,899 ERROR - [main:] ~ Failed to initialize service org.apache.falcon.state.store.service.FalconJPAService (ServiceInitializer:49) <openjpa-2.4.0-r422266:1674604 fatal general error> org.apache.openjpa.persistence.PersistenceException: Cannot create PoolableConnectionFactory (Access denied for user 'sa'@'localhost' (using password: NO)) at org.apache.openjpa.jdbc.sql.DBDictionaryFactory.newDBDictionary(DBDictionaryFactory.java:106) at org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getDBDictionaryInstance(JDBCConfigurationImpl.java:603) at org.apache.openjpa.jdbc.meta.MappingRepository.endConfiguration(MappingRepository.java:1518) at org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:533) at org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:458) at org.apache.openjpa.lib.conf.PluginValue.instantiate(PluginValue.java:121) at org.apache.openjpa.conf.MetaDataRepositoryValue.instantiate(MetaDataRepositoryValue.java:68) at org.apache.openjpa.lib.conf.ObjectValue.instantiate(ObjectValue.java:83) at org.apache.openjpa.conf.OpenJPAConfigurationImpl.newMetaDataRepositoryInstance(OpenJPAConfigurationImpl.java:967) at org.apache.openjpa.conf.OpenJPAConfigurationImpl.getMetaDataRepositoryInstance(OpenJPAConfigurationImpl.java:958) at org.apache.openjpa.kernel.AbstractBrokerFactory.makeReadOnly(AbstractBrokerFactory.java:642) at org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java:202) at org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(DelegatingBrokerFactory.java:154) at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:226) at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:153) at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:59) at org.apache.falcon.state.store.service.FalconJPAService.getEntityManager(FalconJPAService.java:169) at org.apache.falcon.state.store.service.FalconJPAService.init(FalconJPAService.java:91) at org.apache.falcon.service.ServiceInitializer.initialize(ServiceInitializer.java:47) at org.apache.falcon.listener.ContextStartupListener.contextInitialized(ContextStartupListener.java:56) at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:550) at org.mortbay.jetty.servlet.Context.startContext(Context.java:136) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:519) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130) at org.mortbay.jetty.Server.doStart(Server.java:224) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50) at org.apache.falcon.util.EmbeddedServer.start(EmbeddedServer.java:57) at org.apache.falcon.FalconServer.main(FalconServer.java:102) Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Access denied for user 'sa'@'localhost' (using password: NO))
Attachments
Attachments
Issue Links
- is related to
-
FALCON-1760 Upgrade jetty version and fix Falcon start issue while Application initialization fails
- Open
- links to