falcon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ying Zheng (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FALCON-1935) Can't start Falcon with default startup.properties (FalconJPAService fails)
Date Tue, 03 May 2016 22:04:12 GMT
Ying Zheng created FALCON-1935:
----------------------------------

             Summary: Can't start Falcon with default startup.properties (FalconJPAService
fails)
                 Key: FALCON-1935
                 URL: https://issues.apache.org/jira/browse/FALCON-1935
             Project: Falcon
          Issue Type: Bug
            Reporter: Ying Zheng
            Priority: Blocker


When starting Falcon with default startup.properties, it fails when starting FalconJPAService.
See errors below:

<code>
2016-05-03 21:51:16,756 ERROR - [Thread-0:] ~ Failed to destroy service org.apache.falcon.service.FalconJPAService
(ServiceInitializer:62)
java.lang.NullPointerException
	at org.apache.falcon.service.FalconJPAService.destroy(FalconJPAService.java:156)
	at org.apache.falcon.service.ServiceInitializer.destroy(ServiceInitializer.java:60)
	at org.apache.falcon.listener.ContextStartupListener.contextDestroyed(ContextStartupListener.java:86)
	at org.mortbay.jetty.handler.ContextHandler.doStop(ContextHandler.java:601)
	at org.mortbay.jetty.webapp.WebAppContext.doStop(WebAppContext.java:537)
	at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:76)
	at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142)
	at org.mortbay.jetty.Server.doStop(Server.java:283)
	at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:76)
	at org.apache.falcon.util.EmbeddedServer.stop(EmbeddedServer.java:62)
	at org.apache.falcon.FalconServer$ShutDown.run(FalconServer.java:76)
2016-05-03 21:51:16,757 WARN  - [Thread-0:] ~ Error destroying services (ContextStartupListener:88)
org.apache.falcon.FalconException: java.lang.NullPointerException
	at org.apache.falcon.service.ServiceInitializer.destroy(ServiceInitializer.java:63)
	at org.apache.falcon.listener.ContextStartupListener.contextDestroyed(ContextStartupListener.java:86)
	at org.mortbay.jetty.handler.ContextHandler.doStop(ContextHandler.java:601)
	at org.mortbay.jetty.webapp.WebAppContext.doStop(WebAppContext.java:537)
	at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:76)
	at org.mortbay.jetty.handler.HandlerWrapper.doStop(HandlerWrapper.java:142)
	at org.mortbay.jetty.Server.doStop(Server.java:283)
	at org.mortbay.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:76)
	at org.apache.falcon.util.EmbeddedServer.stop(EmbeddedServer.java:62)
	at org.apache.falcon.FalconServer$ShutDown.run(FalconServer.java:76)
Caused by: java.lang.NullPointerException
	at org.apache.falcon.service.FalconJPAService.destroy(FalconJPAService.java:156)
	at org.apache.falcon.service.ServiceInitializer.destroy(ServiceInitializer.java:60)
	... 9 more
<code>

If I disable FalconJPAService in startup.properties, it still throws error:

<code>
java.lang.RuntimeException: org.apache.falcon.FalconException: Unable to get instance for
#                        org.apache.falcon.service.FalconJPAService
	at org.apache.falcon.listener.ContextStartupListener.contextInitialized(ContextStartupListener.java:59)
	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:118)
Caused by: org.apache.falcon.FalconException: Unable to get instance for #               
        org.apache.falcon.service.FalconJPAService
	at org.apache.falcon.util.ReflectionUtils.getInstanceByClassName(ReflectionUtils.java:52)
	at org.apache.falcon.service.ServiceInitializer.initialize(ServiceInitializer.java:43)
	at org.apache.falcon.listener.ContextStartupListener.contextInitialized(ContextStartupListener.java:56)
	... 11 more
Caused by: java.lang.ClassNotFoundException: #                        org.apache.falcon.service.FalconJPAService
	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
	at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:401)
	at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:363)
	at org.apache.falcon.util.ReflectionUtils.getInstanceByClassName(ReflectionUtils.java:44)
	... 13 more
<code>

Should add necessary configurations so we can start Falcon with default property files.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message