Nullpointer exception on jersey put/post - heroku

i'm trying to do a put or post method on a jersey project hosted in heroku. Im getting this error trying to do a put. I'm getting the same error doing a post.
2015-05-20T21:30:29.145683+00:00 app[web.1]: java.lang.NullPointerException
2015-05-20T21:30:29.146362+00:00 app[web.1]: at com.wings.wingcore.JerseyCreates.register(JerseyCreates.java:49)
2015-05-20T21:30:29.146503+00:00 app[web.1]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2015-05-20T21:30:29.146782+00:00 app[web.1]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
2015-05-20T21:30:29.147313+00:00 app[web.1]: at java.lang.reflect.Method.invoke(Method.java:606)
2015-05-20T21:30:29.160539+00:00 app[web.1]: at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:601)
2015-05-20T21:30:29.148228+00:00 app[web.1]: at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:164)
2015-05-20T21:30:29.149055+00:00 app[web.1]: at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:203)
2015-05-20T21:30:29.160207+00:00 app[web.1]: at org.eclipse.jetty.server.Server.handle(Server.java:445)
2015-05-20T21:30:29.160210+00:00 app[web.1]: at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:269)
2015-05-20T21:30:29.160211+00:00 app[web.1]: at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:229)
2015-05-20T21:30:29.160804+00:00 app[web.1]: at java.lang.Thread.run(Thread.java:745)
2015-05-20T21:30:29.160213+00:00 app[web.1]: at org.eclipse.jetty.io.AbstractConnection$ReadCallback.run(AbstractConnection.java:358)
2015-05-20T21:30:29.160544+00:00 app[web.1]: at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:532)
2015-05-20T21:30:29.146168+00:00 app[web.1]: at com.wings.wingcore.utils.UserController.createUser(UserController.java:85)
2015-05-20T21:30:29.150841+00:00 app[web.1]: at org.glassfish.jersey.internal.Errors.process(Errors.java:267)
2015-05-20T21:30:29.151920+00:00 app[web.1]: at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:222)
2015-05-20T21:30:29.152067+00:00 app[web.1]: at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:698)
2015-05-20T21:30:29.147166+00:00 app[web.1]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2015-05-20T21:30:29.150836+00:00 app[web.1]: at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
2015-05-20T21:30:29.151625+00:00 app[web.1]: at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:386)
2015-05-20T21:30:29.152241+00:00 app[web.1]: at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:519)
2015-05-20T21:30:29.147721+00:00 app[web.1]: at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81)
2015-05-20T21:30:29.152384+00:00 app[web.1]: at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:138)
2015-05-20T21:30:29.148645+00:00 app[web.1]: at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:181)
2015-05-20T21:30:29.150002+00:00 app[web.1]: at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)
2015-05-20T21:30:29.150006+00:00 app[web.1]: at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
2015-05-20T21:30:29.151154+00:00 app[web.1]: at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:288)
2015-05-20T21:30:29.151476+00:00 app[web.1]: at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:401)
2015-05-20T21:30:29.149323+00:00 app[web.1]: at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:101)
2015-05-20T21:30:29.151772+00:00 app[web.1]: at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:335)
2015-05-20T21:30:29.150004+00:00 app[web.1]: at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)
2015-05-20T21:30:29.150995+00:00 app[web.1]: at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
2015-05-20T21:30:29.152529+00:00 app[web.1]: at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:564)
2015-05-20T21:30:29.150053+00:00 app[web.1]: at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:305)
2015-05-20T21:30:29.150168+00:00 app[web.1]: at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
2015-05-20T21:30:29.151314+00:00 app[web.1]: at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1110)
2015-05-20T21:30:29.150504+00:00 app[web.1]: at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
2015-05-20T21:30:29.152675+00:00 app[web.1]: at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:213)
2015-05-20T21:30:29.152851+00:00 app[web.1]: at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1097)
2015-05-20T21:30:29.153416+00:00 app[web.1]: at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:136)
2015-05-20T21:30:29.150671+00:00 app[web.1]: at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
2015-05-20T21:30:29.153001+00:00 app[web.1]: at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:446)
2015-05-20T21:30:29.159652+00:00 app[web.1]: at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
2015-05-20T21:30:29.153412+00:00 app[web.1]: at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:175)
2015-05-20T21:30:29.153414+00:00 app[web.1]: at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1031)
My put/post method:
#Path("addedit")
public class JerseyCreates {
Gson gson = new GsonBuilder().setDateFormat(
"yyyy-MM-dd HH:mm:ss").create();
#PUT
#Path("/register")
#Consumes(MediaType.APPLICATION_JSON)
#Produces(MediaType.APPLICATION_JSON)
public String register(String juserlogin) throws Exception {
JUserLogin ju;
String msg = "error";
try{
ju = gson.fromJson(juserlogin, JUserLogin.class);
UserController.createUser(ju);
msg = "done";
}catch(Exception e){
e.printStackTrace();
}
return msg;
}
}

Related

Heroku deployment failed : FATAL: role "ckinvlxnnpaagi" is not permitted to log in

I upload the sample app to heroku and I have created the postgress database and I was able to connect using the heroku client using the same credentials provided by heroku database and when I go my app https://spring-boot-api-crud.herokuapp.com/
heroku logs --tail --app spring-boot-api-crud
Any idea what is the error about?
2021-01-22T01:44:00.404332+00:00 app[web.1]: at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:888) [hibernate-core-5.2.17.Final.jar!/:5.2.17.Final]
2021-01-22T01:44:00.404332+00:00 app[web.1]: at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:57) [spring-orm-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
2021-01-22T01:44:00.404332+00:00 app[web.1]: at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) [spring-orm-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
2021-01-22T01:44:00.404332+00:00 app[web.1]: at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:390) [spring-orm-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
2021-01-22T01:44:00.404333+00:00 app[web.1]: at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:377) [spring-orm-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
2021-01-22T01:44:00.404333+00:00 app[web.1]: at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341) [spring-orm-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
2021-01-22T01:44:00.404333+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1758) [spring-beans-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
2021-01-22T01:44:00.404334+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1695) [spring-beans-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
2021-01-22T01:44:00.404334+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:573) [spring-beans-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
2021-01-22T01:44:00.404334+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:495) [spring-beans-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
2021-01-22T01:44:00.404334+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317) [spring-beans-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
2021-01-22T01:44:00.404335+00:00 app[web.1]: at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
2021-01-22T01:44:00.404335+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315) [spring-beans-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
2021-01-22T01:44:00.404335+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) [spring-beans-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
2021-01-22T01:44:00.404335+00:00 app[web.1]: at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1089) ~[spring-context-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
2021-01-22T01:44:00.404335+00:00 app[web.1]: at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:859) ~[spring-context-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
2021-01-22T01:44:00.404336+00:00 app[web.1]: at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550) ~[spring-context-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
2021-01-22T01:44:00.404336+00:00 app[web.1]: at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140) ~[spring-boot-2.0.5.RELEASE.jar!/:2.0.5.RELEASE]
2021-01-22T01:44:00.404336+00:00 app[web.1]: at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:780) ~[spring-boot-2.0.5.RELEASE.jar!/:2.0.5.RELEASE]
2021-01-22T01:44:00.404336+00:00 app[web.1]: at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:412) ~[spring-boot-2.0.5.RELEASE.jar!/:2.0.5.RELEASE]
2021-01-22T01:44:00.404336+00:00 app[web.1]: at org.springframework.boot.SpringApplication.run(SpringApplication.java:333) ~[spring-boot-2.0.5.RELEASE.jar!/:2.0.5.RELEASE]
2021-01-22T01:44:00.404337+00:00 app[web.1]: at org.springframework.boot.SpringApplication.run(SpringApplication.java:1277) ~[spring-boot-2.0.5.RELEASE.jar!/:2.0.5.RELEASE]
2021-01-22T01:44:00.404341+00:00 app[web.1]: at org.springframework.boot.SpringApplication.run(SpringApplication.java:1265) ~[spring-boot-2.0.5.RELEASE.jar!/:2.0.5.RELEASE]
2021-01-22T01:44:00.404341+00:00 app[web.1]: at net.guides.springboot2.crud.Application.main(Application.java:15) ~[classes!/:0.0.1-SNAPSHOT]
2021-01-22T01:44:00.404341+00:00 app[web.1]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_275-heroku]
2021-01-22T01:44:00.404342+00:00 app[web.1]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_275-heroku]
2021-01-22T01:44:00.404342+00:00 app[web.1]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_275-heroku]
2021-01-22T01:44:00.404342+00:00 app[web.1]: at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_275-heroku]
2021-01-22T01:44:00.404342+00:00 app[web.1]: at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) ~[springboot2-postgresql-jpa-hibernate-crud-example-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
2021-01-22T01:44:00.404343+00:00 app[web.1]: at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) ~[springboot2-postgresql-jpa-hibernate-crud-example-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
2021-01-22T01:44:00.404343+00:00 app[web.1]: at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) ~[springboot2-postgresql-jpa-hibernate-crud-example-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
2021-01-22T01:44:00.404343+00:00 app[web.1]: at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51) ~[springboot2-postgresql-jpa-hibernate-crud-example-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
2021-01-22T01:44:00.404343+00:00 app[web.1]:
2021-01-22T01:44:00.404531+00:00 app[web.1]: 2021-01-22 01:44:00.404 WARN 4 --- [ main] o.h.e.j.e.i.JdbcEnvironmentInitiator : HHH000342: Could not obtain connection to query metadata : FATAL: role "ckinvlxnnpaagi" is not permitted to log in
2021-01-22T01:44:00.407672+00:00 app[web.1]: 2021-01-22 01:44:00.407 WARN 4 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
2021-01-22T01:44:00.412376+00:00 app[web.1]: 2021-01-22 01:44:00.412 INFO 4 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2021-01-22T01:44:00.461163+00:00 app[web.1]: 2021-01-22 01:44:00.460 INFO 4 --- [ main] ConditionEvaluationReportLoggingListener :
2021-01-22T01:44:00.461165+00:00 app[web.1]:
2021-01-22T01:44:00.461166+00:00 app[web.1]: Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-01-22T01:44:00.465789+00:00 app[web.1]: 2021-01-22 01:44:00.465 ERROR 4 --- [ main] o.s.boot.SpringApplication : Application run failed
2021-01-22T01:44:00.465790+00:00 app[web.1]:
2021-01-22T01:44:00.465805+00:00 app[web.1]: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
2021-01-22T01:44:00.465806+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1699) ~[spring-beans-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
2021-01-22T01:44:00.465806+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:573) ~[spring-beans-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
2021-01-22T01:44:00.465807+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:495) ~[spring-beans-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
2021-01-22T01:44:00.465808+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317) ~[spring-beans-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
2021-01-22T01:44:00.465808+00:00 app[web.1]: at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
2021-01-22T01:44:00.465809+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315) ~[spring-beans-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
2021-01-22T01:44:00.465810+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
2021-01-22T01:44:00.465810+00:00 app[web.1]: at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1089) ~[spring-context-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
2021-01-22T01:44:00.465811+00:00 app[web.1]: at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:859) ~[spring-context-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
2021-01-22T01:44:00.465811+00:00 app[web.1]: at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550) ~[spring-context-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
2021-01-22T01:44:00.465812+00:00 app[web.1]: at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140) ~[spring-boot-2.0.5.RELEASE.jar!/:2.0.5.RELEASE]
2021-01-22T01:44:00.465812+00:00 app[web.1]: at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:780) [spring-boot-2.0.5.RELEASE.jar!/:2.0.5.RELEASE]
2021-01-22T01:44:00.465813+00:00 app[web.1]: at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:412) [spring-boot-2.0.5.RELEASE.jar!/:2.0.5.RELEASE]
2021-01-22T01:44:00.465814+00:00 app[web.1]: at org.springframework.boot.SpringApplication.run(SpringApplication.java:333) [spring-boot-2.0.5.RELEASE.jar!/:2.0.5.RELEASE]
2021-01-22T01:44:00.465815+00:00 app[web.1]: at org.springframework.boot.SpringApplication.run(SpringApplication.java:1277) [spring-boot-2.0.5.RELEASE.jar!/:2.0.5.RELEASE]
2021-01-22T01:44:00.465815+00:00 app[web.1]: at org.springframework.boot.SpringApplication.run(SpringApplication.java:1265) [spring-boot-2.0.5.RELEASE.jar!/:2.0.5.RELEASE]
2021-01-22T01:44:00.465816+00:00 app[web.1]: at net.guides.springboot2.crud.Application.main(Application.java:15) [classes!/:0.0.1-SNAPSHOT]
2021-01-22T01:44:00.465817+00:00 app[web.1]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_275-heroku]
2021-01-22T01:44:00.465817+00:00 app[web.1]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_275-heroku]
2021-01-22T01:44:00.465818+00:00 app[web.1]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_275-heroku]
2021-01-22T01:44:00.465818+00:00 app[web.1]: at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_275-heroku]
2021-01-22T01:44:00.465819+00:00 app[web.1]: at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [springboot2-postgresql-jpa-hibernate-crud-example-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
2021-01-22T01:44:00.465819+00:00 app[web.1]: at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [springboot2-postgresql-jpa-hibernate-crud-example-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
2021-01-22T01:44:00.465820+00:00 app[web.1]: at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [springboot2-postgresql-jpa-hibernate-crud-example-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
2021-01-22T01:44:00.465827+00:00 app[web.1]: at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51) [springboot2-postgresql-jpa-hibernate-crud-example-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
2021-01-22T01:44:00.465828+00:00 app[web.1]: Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
2021-01-22T01:44:00.465828+00:00 app[web.1]: at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:271) ~[hibernate-core-5.2.17.Final.jar!/:5.2.17.Final]
2021-01-22T01:44:00.465829+00:00 app[web.1]: at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:233) ~[hibernate-core-5.2.17.Final.jar!/:5.2.17.Final]
2021-01-22T01:44:00.465829+00:00 app[web.1]: at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:210) ~[hibernate-core-5.2.17.Final.jar!/:5.2.17.Final]
2021-01-22T01:44:00.465829+00:00 app[web.1]: at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:51) ~[hibernate-core-5.2.17.Final.jar!/:5.2.17.Final]
2021-01-22T01:44:00.465833+00:00 app[web.1]: at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:94) ~[hibernate-core-5.2.17.Final.jar!/:5.2.17.Final]
2021-01-22T01:44:00.465834+00:00 app[web.1]: at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:242) ~[hibernate-core-5.2.17.Final.jar!/:5.2.17.Final]
2021-01-22T01:44:00.465834+00:00 app[web.1]: at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:210) ~[hibernate-core-5.2.17.Final.jar!/:5.2.17.Final]
2021-01-22T01:44:00.465834+00:00 app[web.1]: at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.handleTypes(MetadataBuildingProcess.java:352) ~[hibernate-core-5.2.17.Final.jar!/:5.2.17.Final]
2021-01-22T01:44:00.465835+00:00 app[web.1]: at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:111) ~[hibernate-core-5.2.17.Final.jar!/:5.2.17.Final]
2021-01-22T01:44:00.465835+00:00 app[web.1]: at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:861) ~[hibernate-core-5.2.17.Final.jar!/:5.2.17.Final]
2021-01-22T01:44:00.465835+00:00 app[web.1]: at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:888) ~[hibernate-core-5.2.17.Final.jar!/:5.2.17.Final]
2021-01-22T01:44:00.465836+00:00 app[web.1]: at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:57) ~[spring-orm-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
2021-01-22T01:44:00.465836+00:00 app[web.1]: at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) ~[spring-orm-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
2021-01-22T01:44:00.465837+00:00 app[web.1]: at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:390) ~[spring-orm-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
2021-01-22T01:44:00.465837+00:00 app[web.1]: at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:377) ~[spring-orm-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
2021-01-22T01:44:00.465837+00:00 app[web.1]: at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341) ~[spring-orm-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
2021-01-22T01:44:00.465838+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1758) ~[spring-beans-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
2021-01-22T01:44:00.465838+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1695) ~[spring-beans-5.0.9.RELEASE.jar!/:5.0.9.RELEASE]
2021-01-22T01:44:00.465839+00:00 app[web.1]: ... 24 common frames omitted
2021-01-22T01:44:00.465839+00:00 app[web.1]: Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set
2021-01-22T01:44:00.465839+00:00 app[web.1]: at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.determineDialect(DialectFactoryImpl.java:100) ~[hibernate-core-5.2.17.Final.jar!/:5.2.17.Final]
2021-01-22T01:44:00.465840+00:00 app[web.1]: at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.buildDialect(DialectFactoryImpl.java:54) ~[hibernate-core-5.2.17.Final.jar!/:5.2.17.Final]
2021-01-22T01:44:00.465840+00:00 app[web.1]: at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:137) ~[hibernate-core-5.2.17.Final.jar!/:5.2.17.Final]
2021-01-22T01:44:00.465845+00:00 app[web.1]: at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35) ~[hibernate-core-5.2.17.Final.jar!/:5.2.17.Final]
2021-01-22T01:44:00.465845+00:00 app[web.1]: at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:88) ~[hibernate-core-5.2.17.Final.jar!/:5.2.17.Final]
2021-01-22T01:44:00.465845+00:00 app[web.1]: at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:259) ~[hibernate-core-5.2.17.Final.jar!/:5.2.17.Final]
2021-01-22T01:44:00.465846+00:00 app[web.1]: ... 41 common frames omitted
2021-01-22T01:44:00.465846+00:00 app[web.1]:
2021-01-22T01:44:00.563064+00:00 heroku[web.1]: Process exited with status 1
2021-01-22T01:44:00.600932+00:00 heroku[web.1]: State changed from starting to crashed
2021-01-22T01:44:43.067940+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=spring-boot-api-crud.herokuapp.com request_id=8ea3adeb-6c57-4f6d-879c-c00b610de7f7 fwd="75.10.187.93" dyno= connect= service= status=503 bytes= protocol=https
2021-01-22T01:44:43.690399+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=spring-boot-api-crud.herokuapp.com request_id=2cd4e5f1-6c5f-4c5f-8589-33ad5bcba06f fwd="75.10.187.93" dyno= connect= service= status=503 bytes= protocol=https
Looks like the source of your problem is here:
2021-01-22T01:44:00.404531+00:00 app[web.1]: 2021-01-22 01:44:00.404 WARN 4 --- [ main] o.h.e.j.e.i.JdbcEnvironmentInitiator : HHH000342: Could not obtain connection to query metadata : FATAL: role "ckinvlxnnpaagi" is not permitted to log in
The role looks like a Heroku database name. Check your database login credentials - URL, username, password.
Good luck.

"BeanDefinitionStoreException: Failed to process import candidates for configuration class" when deploying a JHipster monolithic app to Heroku

I've never deployed any sort of JVM web app before so I really have no idea what's going on. From the Heroku log, the error looks to be the following:
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [tld.domain.webapp.FinancialServicesStationApp]; nested exception is java.lang.IllegalStateException: Error processing condition on org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration$EmbeddedDatabaseConfiguration**
I am using MariaDB as my database, Gradle for building and the backend is written in kotlin. I used the option to compile the source code on my own machine, which I think should have worked since I can run the site in development mode just fine. Does someone know what could be causing this error and how I can fix it?
This is the full JHipster log:
2020-11-04T01:52:33.805989+00:00 app[web.1]: 2020-11-04 01:52:33.801 INFO 4 --- [ main] .f.FinancialServicesStationApp$Companion : The following profiles are active: prod,heroku
2020-11-04T01:52:35.007983+00:00 app[web.1]: 2020-11-04 01:52:35.007 WARN 4 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [tld.domain.webapp.FinancialServicesStationApp]; nested exception is java.lang.IllegalStateException: Error processing condition on org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration$EmbeddedDatabaseConfiguration
2020-11-04T01:52:35.025845+00:00 app[web.1]: 2020-11-04 01:52:35.025 ERROR 4 --- [ main] o.s.boot.SpringApplication : Application run failed
2020-11-04T01:52:35.025847+00:00 app[web.1]:
2020-11-04T01:52:35.025849+00:00 app[web.1]: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [tld.domain.webapp.FinancialServicesStationApp]; nested exception is java.lang.IllegalStateException: Error processing condition on org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration$EmbeddedDatabaseConfiguration
2020-11-04T01:52:35.025850+00:00 app[web.1]: at org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:609)
2020-11-04T01:52:35.025851+00:00 app[web.1]: at org.springframework.context.annotation.ConfigurationClassParser.access$800(ConfigurationClassParser.java:110)
2020-11-04T01:52:35.025852+00:00 app[web.1]: at org.springframework.context.annotation.ConfigurationClassParser$DeferredImportSelectorGroupingHandler.lambda$processGroupImports$1(ConfigurationClassParser.java:811)
2020-11-04T01:52:35.025853+00:00 app[web.1]: at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
2020-11-04T01:52:35.025854+00:00 app[web.1]: at org.springframework.context.annotation.ConfigurationClassParser$DeferredImportSelectorGroupingHandler.processGroupImports(ConfigurationClassParser.java:808)
2020-11-04T01:52:35.025854+00:00 app[web.1]: at org.springframework.context.annotation.ConfigurationClassParser$DeferredImportSelectorHandler.process(ConfigurationClassParser.java:779)
2020-11-04T01:52:35.025856+00:00 app[web.1]: at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:192)
2020-11-04T01:52:35.025856+00:00 app[web.1]: at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:319)
2020-11-04T01:52:35.025857+00:00 app[web.1]: at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:236)
2020-11-04T01:52:35.025857+00:00 app[web.1]: at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:275)
2020-11-04T01:52:35.025858+00:00 app[web.1]: at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:95)
2020-11-04T01:52:35.025858+00:00 app[web.1]: at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:706)
2020-11-04T01:52:35.025859+00:00 app[web.1]: at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:532)
2020-11-04T01:52:35.025859+00:00 app[web.1]: at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141)
2020-11-04T01:52:35.025860+00:00 app[web.1]: at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747)
2020-11-04T01:52:35.025861+00:00 app[web.1]: at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)
2020-11-04T01:52:35.025862+00:00 app[web.1]: at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)
2020-11-04T01:52:35.025863+00:00 app[web.1]: at tld.domain.webapp.FinancialServicesStationApp$Companion.main(FinancialServicesStationApp.kt:105)
2020-11-04T01:52:35.025863+00:00 app[web.1]: at tld.domain.webapp.FinancialServicesStationApp.main(FinancialServicesStationApp.kt)
2020-11-04T01:52:35.025863+00:00 app[web.1]: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2020-11-04T01:52:35.025864+00:00 app[web.1]: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2020-11-04T01:52:35.025864+00:00 app[web.1]: at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2020-11-04T01:52:35.025865+00:00 app[web.1]: at java.base/java.lang.reflect.Method.invoke(Method.java:564)
2020-11-04T01:52:35.025865+00:00 app[web.1]: at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
2020-11-04T01:52:35.025866+00:00 app[web.1]: at org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
2020-11-04T01:52:35.025866+00:00 app[web.1]: at org.springframework.boot.loader.Launcher.launch(Launcher.java:51)
2020-11-04T01:52:35.025866+00:00 app[web.1]: at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:52)
2020-11-04T01:52:35.025867+00:00 app[web.1]: Caused by: java.lang.IllegalStateException: Error processing condition on org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration$EmbeddedDatabaseConfiguration
2020-11-04T01:52:35.025867+00:00 app[web.1]: at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:60)
2020-11-04T01:52:35.025868+00:00 app[web.1]: at org.springframework.context.annotation.ConditionEvaluator.shouldSkip(ConditionEvaluator.java:108)
2020-11-04T01:52:35.025868+00:00 app[web.1]: at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:225)
2020-11-04T01:52:35.025877+00:00 app[web.1]: at org.springframework.context.annotation.ConfigurationClassParser.processMemberClasses(ConfigurationClassParser.java:371)
2020-11-04T01:52:35.025878+00:00 app[web.1]: at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:271)
2020-11-04T01:52:35.025878+00:00 app[web.1]: at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:249)
2020-11-04T01:52:35.025879+00:00 app[web.1]: at org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:599)
2020-11-04T01:52:35.025879+00:00 app[web.1]: ... 26 common frames omitted
2020-11-04T01:52:35.025880+00:00 app[web.1]: Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'JDBC_DATABASE_URL' in value "${JDBC_DATABASE_URL}"
2020-11-04T01:52:35.025880+00:00 app[web.1]: at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:178)
2020-11-04T01:52:35.025880+00:00 app[web.1]: at org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:124)
2020-11-04T01:52:35.025881+00:00 app[web.1]: at org.springframework.core.env.AbstractPropertyResolver.doResolvePlaceholders(AbstractPropertyResolver.java:236)
2020-11-04T01:52:35.025881+00:00 app[web.1]: at org.springframework.core.env.AbstractPropertyResolver.resolveRequiredPlaceholders(AbstractPropertyResolver.java:210)
2020-11-04T01:52:35.025882+00:00 app[web.1]: at org.springframework.core.env.AbstractPropertyResolver.resolveNestedPlaceholders(AbstractPropertyResolver.java:227)
2020-11-04T01:52:35.025882+00:00 app[web.1]: at org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:88)
2020-11-04T01:52:35.025883+00:00 app[web.1]: at org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:62)
2020-11-04T01:52:35.025883+00:00 app[web.1]: at org.springframework.core.env.AbstractEnvironment.getProperty(AbstractEnvironment.java:535)
2020-11-04T01:52:35.025884+00:00 app[web.1]: at org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration$EmbeddedDatabaseCondition.getMatchOutcome(DataSourceAutoConfiguration.java:126)
2020-11-04T01:52:35.025884+00:00 app[web.1]: at org.springframework.boot.autoconfigure.condition.SpringBootCondition.matches(SpringBootCondition.java:47)
2020-11-04T01:52:35.025884+00:00 app[web.1]: ... 32 common frames omitted
2020-11-04T01:52:35.025885+00:00 app[web.1]:
2020-11-04T01:52:35.104335+00:00 heroku[web.1]: Process exited with status 1
2020-11-04T01:52:35.142760+00:00 heroku[web.1]: State changed from starting to crashed
2020-11-04T01:55:15.000000+00:00 app[api]: Build failed -- check your build output:
The important part of the error is:
Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'JDBC_DATABASE_URL' in value "${JDBC_DATABASE_URL}"
Heroku deployment could not inject the database properties into your application context and so it fails to start.
So, maybe you did not subscribe to jawsdb add-on or your did not register a payment method. There are few similar questions about this on stackoverflow
I suppose that you deployed using jhipster heroku as described in the doc: https://www.jhipster.tech/heroku/

Attempting to deploy Spring Boot app Using Postgres, Tomcat, Hibernate, and getting connection refused

I am attempting to deploy my webapp to heroku. Since Heroku does not allow the use of a Hibernate DB, I have setup a postgres addon and attempted to configure my app to use it.
However, when I deploy my app, it builds successfully, but when I try to open the app I get an application error. It appears that the tomcat server is unable to connect to the postgres database, and for some reason it looks like its trying to connect to localhost. The Heroku logs are at the bottom of this post.
DataConfig.java
#Configuration
public class DataConfig {
#Autowired
private Environment env;
#Bean
#Primary
#ConfigurationProperties(prefix = "newsitem.db")
public DataSource dataSource() {
BasicDataSource ds = new BasicDataSource();
ds.setDriverClassName(env.getProperty("newsitem.db.driver"));
ds.setUrl(env.getProperty("newsitem.db.url"));
ds.setUsername(env.getProperty("newsitem.db.username"));
ds.setPassword(env.getProperty("newsitem.db.password"));
return ds;
}
app.properties
newsitem.db.url=${JDBC_DATABASE_URL}
newsitem.db.driver=org.postgresql.Driver
newsitem.db.username=${JDBC_DATABASE_USERNAME}
newsitem.db.password=${JDBC_DATABASE_PASSWORD}
This appears to be the primary cause of failure:
Caused by: org.h2.jdbc.JdbcSQLException: Connection is broken: "java.net.ConnectException: Connection refused (Connection refused): localhost" [90067-191]
Heroku logs:
2017-05-03T04:32:52.564241+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513) ~[spring-beans-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
2017-05-03T04:32:52.564242+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) ~[spring-beans-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
2017-05-03T04:32:52.564245+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
2017-05-03T04:32:52.564246+00:00 app[web.1]: at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
2017-05-03T04:32:52.564246+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
2017-05-03T04:32:52.564247+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
2017-05-03T04:32:52.564248+00:00 app[web.1]: at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:759) ~[spring-beans-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
2017-05-03T04:32:52.564249+00:00 app[web.1]: at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:866) ~[spring-context-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
2017-05-03T04:32:52.564250+00:00 app[web.1]: at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542) ~[spring-context-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
2017-05-03T04:32:52.564250+00:00 app[web.1]: at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.4.3.RELEASE.jar!/:1.4.3.RELEASE]
2017-05-03T04:32:52.564251+00:00 app[web.1]: at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761) [spring-boot-1.4.3.RELEASE.jar!/:1.4.3.RELEASE]
2017-05-03T04:32:52.564252+00:00 app[web.1]: at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:371) [spring-boot-1.4.3.RELEASE.jar!/:1.4.3.RELEASE]
2017-05-03T04:32:52.564253+00:00 app[web.1]: at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) [spring-boot-1.4.3.RELEASE.jar!/:1.4.3.RELEASE]
2017-05-03T04:32:52.564253+00:00 app[web.1]: at org.springframework.boot.SpringApplication.run(SpringApplication.java:1186) [spring-boot-1.4.3.RELEASE.jar!/:1.4.3.RELEASE]
2017-05-03T04:32:52.564254+00:00 app[web.1]: at org.springframework.boot.SpringApplication.run(SpringApplication.java:1175) [spring-boot-1.4.3.RELEASE.jar!/:1.4.3.RELEASE]
2017-05-03T04:32:52.564255+00:00 app[web.1]: at com.doronzehavi.newsitemweb.Application.main(Application.java:16) [classes!/:na]
2017-05-03T04:32:52.564256+00:00 app[web.1]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_121-cedar14]
2017-05-03T04:32:52.564256+00:00 app[web.1]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_121-cedar14]
2017-05-03T04:32:52.564257+00:00 app[web.1]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_121-cedar14]
2017-05-03T04:32:52.564258+00:00 app[web.1]: at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_121-cedar14]
2017-05-03T04:32:52.564259+00:00 app[web.1]: at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) [newsitemweb-0.0.1-SNAPSHOT.jar:na]
2017-05-03T04:32:52.564279+00:00 app[web.1]: at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) [newsitemweb-0.0.1-SNAPSHOT.jar:na]
2017-05-03T04:32:52.564280+00:00 app[web.1]: at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) [newsitemweb-0.0.1-SNAPSHOT.jar:na]
2017-05-03T04:32:52.564280+00:00 app[web.1]: at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51) [newsitemweb-0.0.1-SNAPSHOT.jar:na]
2017-05-03T04:32:52.564282+00:00 app[web.1]: Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.doronzehavi.newsitemweb.dao.NewsSourceDaoImpl]: Constructor threw exception; nested exception is javax.persistence.PersistenceException: Unable to build entity manager factory
2017-05-03T04:32:52.564282+00:00 app[web.1]: at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:154) ~[spring-beans-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
2017-05-03T04:32:52.564283+00:00 app[web.1]: at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:89) ~[spring-beans-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
2017-05-03T04:32:52.564284+00:00 app[web.1]: at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1108) ~[spring-beans-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
2017-05-03T04:32:52.564285+00:00 app[web.1]: ... 25 common frames omitted
2017-05-03T04:32:52.564286+00:00 app[web.1]: Caused by: javax.persistence.PersistenceException: Unable to build entity manager factory
2017-05-03T04:32:52.564286+00:00 app[web.1]: at org.hibernate.jpa.HibernatePersistenceProvider.createEntityManagerFactory(HibernatePersistenceProvider.java:66) ~[hibernate-entitymanager-5.0.11.Final.jar!/:5.0.11.Final]
2017-05-03T04:32:52.564287+00:00 app[web.1]: at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:55) ~[hibernate-jpa-2.1-api-1.0.0.Final.jar!/:1.0.0.Final]
2017-05-03T04:32:52.564288+00:00 app[web.1]: at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:39) ~[hibernate-jpa-2.1-api-1.0.0.Final.jar!/:1.0.0.Final]
2017-05-03T04:32:52.564288+00:00 app[web.1]: at com.doronzehavi.newsitemweb.dao.NewsSourceDaoImpl.<init>(NewsSourceDaoImpl.java:23) ~[classes!/:na]
2017-05-03T04:32:52.564289+00:00 app[web.1]: at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_121-cedar14]
2017-05-03T04:32:52.564290+00:00 app[web.1]: at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[na:1.8.0_121-cedar14]
2017-05-03T04:32:52.564290+00:00 app[web.1]: at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.8.0_121-cedar14]
2017-05-03T04:32:52.564291+00:00 app[web.1]: at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[na:1.8.0_121-cedar14]
2017-05-03T04:32:52.564298+00:00 app[web.1]: at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:142) ~[spring-beans-4.3.5.RELEASE.jar!/:4.3.5.RELEASE]
2017-05-03T04:32:52.564299+00:00 app[web.1]: ... 27 common frames omitted
2017-05-03T04:32:52.564300+00:00 app[web.1]: Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
2017-05-03T04:32:52.564300+00:00 app[web.1]: at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:264) ~[hibernate-core-5.0.11.Final.jar!/:5.0.11.Final]
2017-05-03T04:32:52.564301+00:00 app[web.1]: at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:228) ~[hibernate-core-5.0.11.Final.jar!/:5.0.11.Final]
2017-05-03T04:32:52.564302+00:00 app[web.1]: at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:207) ~[hibernate-core-5.0.11.Final.jar!/:5.0.11.Final]
2017-05-03T04:32:52.564302+00:00 app[web.1]: at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:51) ~[hibernate-core-5.0.11.Final.jar!/:5.0.11.Final]
2017-05-03T04:32:52.564303+00:00 app[web.1]: at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:94) ~[hibernate-core-5.0.11.Final.jar!/:5.0.11.Final]
2017-05-03T04:32:52.564304+00:00 app[web.1]: at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:237) ~[hibernate-core-5.0.11.Final.jar!/:5.0.11.Final]
2017-05-03T04:32:52.564304+00:00 app[web.1]: at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:207) ~[hibernate-core-5.0.11.Final.jar!/:5.0.11.Final]
2017-05-03T04:32:52.564306+00:00 app[web.1]: at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.handleTypes(MetadataBuildingProcess.java:352) ~[hibernate-core-5.0.11.Final.jar!/:5.0.11.Final]
2017-05-03T04:32:52.564307+00:00 app[web.1]: at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:111) ~[hibernate-core-5.0.11.Final.jar!/:5.0.11.Final]
2017-05-03T04:32:52.564311+00:00 app[web.1]: at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:847) ~[hibernate-entitymanager-5.0.11.Final.jar!/:5.0.11.Final]
2017-05-03T04:32:52.564312+00:00 app[web.1]: at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:874) ~[hibernate-entitymanager-5.0.11.Final.jar!/:5.0.11.Final]
2017-05-03T04:32:52.564312+00:00 app[web.1]: at org.hibernate.jpa.HibernatePersistenceProvider.createEntityManagerFactory(HibernatePersistenceProvider.java:58) ~[hibernate-entitymanager-5.0.11.Final.jar!/:5.0.11.Final]
2017-05-03T04:32:52.564313+00:00 app[web.1]: ... 35 common frames omitted
2017-05-03T04:32:52.564313+00:00 app[web.1]: Caused by: org.hibernate.exception.JDBCConnectionException: Error calling Driver#connect
2017-05-03T04:32:52.564314+00:00 app[web.1]: at org.hibernate.engine.jdbc.connections.internal.BasicConnectionCreator$1$1.convert(BasicConnectionCreator.java:105) ~[hibernate-core-5.0.11.Final.jar!/:5.0.11.Final]
2017-05-03T04:32:52.564315+00:00 app[web.1]: at org.hibernate.engine.jdbc.connections.internal.BasicConnectionCreator.convertSqlException(BasicConnectionCreator.java:123) ~[hibernate-core-5.0.11.Final.jar!/:5.0.11.Final]
2017-05-03T04:32:52.564315+00:00 app[web.1]: at org.hibernate.engine.jdbc.connections.internal.DriverConnectionCreator.makeConnection(DriverConnectionCreator.java:41) ~[hibernate-core-5.0.11.Final.jar!/:5.0.11.Final]
2017-05-03T04:32:52.564316+00:00 app[web.1]: at org.hibernate.engine.jdbc.connections.internal.BasicConnectionCreator.createConnection(BasicConnectionCreator.java:58) ~[hibernate-core-5.0.11.Final.jar!/:5.0.11.Final]
2017-05-03T04:32:52.564317+00:00 app[web.1]: at org.hibernate.engine.jdbc.connections.internal.PooledConnections.addConnections(PooledConnections.java:106) ~[hibernate-core-5.0.11.Final.jar!/:5.0.11.Final]
2017-05-03T04:32:52.564317+00:00 app[web.1]: at org.hibernate.engine.jdbc.connections.internal.PooledConnections.<init>(PooledConnections.java:40) ~[hibernate-core-5.0.11.Final.jar!/:5.0.11.Final]
2017-05-03T04:32:52.564318+00:00 app[web.1]: at org.hibernate.engine.jdbc.connections.internal.PooledConnections.<init>(PooledConnections.java:19) ~[hibernate-core-5.0.11.Final.jar!/:5.0.11.Final]
2017-05-03T04:32:52.564319+00:00 app[web.1]: at org.hibernate.engine.jdbc.connections.internal.PooledConnections$Builder.build(PooledConnections.java:138) ~[hibernate-core-5.0.11.Final.jar!/:5.0.11.Final]
2017-05-03T04:32:52.564319+00:00 app[web.1]: at org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl.buildPool(DriverManagerConnectionProviderImpl.java:110) ~[hibernate-core-5.0.11.Final.jar!/:5.0.11.Final]
2017-05-03T04:32:52.564320+00:00 app[web.1]: at org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl.configure(DriverManagerConnectionProviderImpl.java:74) ~[hibernate-core-5.0.11.Final.jar!/:5.0.11.Final]
2017-05-03T04:32:52.564321+00:00 app[web.1]: at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:94) ~[hibernate-core-5.0.11.Final.jar!/:5.0.11.Final]
2017-05-03T04:32:52.564322+00:00 app[web.1]: at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:237) ~[hibernate-core-5.0.11.Final.jar!/:5.0.11.Final]
2017-05-03T04:32:52.564323+00:00 app[web.1]: at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.buildJdbcConnectionAccess(JdbcEnvironmentInitiator.java:145) ~[hibernate-core-5.0.11.Final.jar!/:5.0.11.Final]
2017-05-03T04:32:52.564324+00:00 app[web.1]: at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:66) ~[hibernate-core-5.0.11.Final.jar!/:5.0.11.Final]
2017-05-03T04:32:52.564325+00:00 app[web.1]: at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35) ~[hibernate-core-5.0.11.Final.jar!/:5.0.11.Final]
2017-05-03T04:32:52.564323+00:00 app[web.1]: at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:207) ~[hibernate-core-5.0.11.Final.jar!/:5.0.11.Final]
2017-05-03T04:32:52.564325+00:00 app[web.1]: at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:88) ~[hibernate-core-5.0.11.Final.jar!/:5.0.11.Final]
2017-05-03T04:32:52.564326+00:00 app[web.1]: at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:254) ~[hibernate-core-5.0.11.Final.jar!/:5.0.11.Final]
2017-05-03T04:32:52.564327+00:00 app[web.1]: ... 46 common frames omitted
2017-05-03T04:32:52.564327+00:00 app[web.1]: Caused by: org.h2.jdbc.JdbcSQLException: Connection is broken: "java.net.ConnectException: Connection refused (Connection refused): localhost" [90067-191]
2017-05-03T04:32:52.564334+00:00 app[web.1]: at org.h2.message.DbException.getJdbcSQLException(DbException.java:345) ~[h2-1.4.191.jar!/:na]
2017-05-03T04:32:52.564335+00:00 app[web.1]: at org.h2.message.DbException.get(DbException.java:168) ~[h2-1.4.191.jar!/:na]
2017-05-03T04:32:52.564340+00:00 app[web.1]: at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:329) ~[h2-1.4.191.jar!/:na]
2017-05-03T04:32:52.564340+00:00 app[web.1]: at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:107) ~[h2-1.4.191.jar!/:na]
2017-05-03T04:32:52.564341+00:00 app[web.1]: at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:91) ~[h2-1.4.191.jar!/:na]
2017-05-03T04:32:52.564339+00:00 app[web.1]: at org.h2.engine.SessionRemote.connectServer(SessionRemote.java:452) ~[h2-1.4.191.jar!/:na]
2017-05-03T04:32:52.564341+00:00 app[web.1]: at org.h2.Driver.connect(Driver.java:72) ~[h2-1.4.191.jar!/:na]
2017-05-03T04:32:52.564343+00:00 app[web.1]: at org.hibernate.engine.jdbc.connections.internal.DriverConnectionCreator.makeConnection(DriverConnectionCreator.java:38) ~[hibernate-core-5.0.11.Final.jar!/:5.0.11.Final]
2017-05-03T04:32:52.564344+00:00 app[web.1]: ... 61 common frames omitted
2017-05-03T04:32:52.564344+00:00 app[web.1]: Caused by: java.net.ConnectException: Connection refused (Connection refused)
2017-05-03T04:32:52.564345+00:00 app[web.1]: at java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:1.8.0_121-cedar14]
2017-05-03T04:32:52.564346+00:00 app[web.1]: at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) ~[na:1.8.0_121-cedar14]
2017-05-03T04:32:52.564347+00:00 app[web.1]: at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) ~[na:1.8.0_121-cedar14]
2017-05-03T04:32:52.564347+00:00 app[web.1]: at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[na:1.8.0_121-cedar14]
2017-05-03T04:32:52.564348+00:00 app[web.1]: at java.net.Socket.connect(Socket.java:589) ~[na:1.8.0_121-cedar14]
2017-05-03T04:32:52.564349+00:00 app[web.1]: at org.h2.util.NetUtils.createSocket(NetUtils.java:122) ~[h2-1.4.191.jar!/:na]
2017-05-03T04:32:52.564349+00:00 app[web.1]: at org.h2.util.NetUtils.createSocket(NetUtils.java:102) ~[h2-1.4.191.jar!/:na]
2017-05-03T04:32:52.564346+00:00 app[web.1]: at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) ~[na:1.8.0_121-cedar14]
2017-05-03T04:32:52.564350+00:00 app[web.1]: at org.h2.engine.SessionRemote.initTransfer(SessionRemote.java:114) ~[h2-1.4.191.jar!/:na]
2017-05-03T04:32:52.564350+00:00 app[web.1]: at org.h2.engine.SessionRemote.connectServer(SessionRemote.java:448) ~[h2-1.4.191.jar!/:na]
2017-05-03T04:32:52.564351+00:00 app[web.1]: ... 66 common frames omitted
2017-05-03T04:32:52.564351+00:00 app[web.1]:
2017-05-03T04:32:52.683659+00:00 heroku[web.1]: Process exited with status 1
2017-05-03T04:32:52.698197+00:00 heroku[web.1]: State changed from starting to crashed
2017-05-03T04:33:21.797903+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=intense-hamlet-29713.herokuapp.com request_id=9d7158ad-6410-49bd-83d0-c072f54fdc81 fwd="198.27.128.5" dyno= connect= service= status=503 bytes= protocol=https
2017-05-03T04:33:22.569682+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=intense-hamlet-29713.herokuapp.com request_id=2894c36e-db93-472e-9faf-553db67c84db fwd="198.27.128.5" dyno= connect= service= status=503 bytes= protocol=https
You are using the H2 db driver. Look at this line in the stacktrace :
org.h2.Driver.connect(Driver.java:72) ~[h2-1.4.191.jar!/:na]
Use the right jdbc driver.

rails errors in dependencies.rb

Rails 4.0
Heroku
Hi! I'm trying to push an app on Heroku but I'm having this following error. I couldn't find dependencies.rb in my app. I ran Heroku logs.
2014-02-03T03:36:14.453214+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:229:in `block in require'
2014-02-03T03:36:14.452641+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/engine.rb:462:in `eager_load!'
2014-02-03T03:36:14.452641+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/engine.rb:347:in `eager_load!'
2014-02-03T03:36:14.452641+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/application/finisher.rb:56:in `each'
2014-02-03T03:36:14.452641+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/engine.rb:462:in `each'
2014-02-03T03:36:14.452799+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/application/finisher.rb:56:in `block in <module:Finisher>'
2014-02-03T03:36:14.452799+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/initializable.rb:30:in `instance_exec'
2014-02-03T03:36:14.452799+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/initializable.rb:30:in `run'
2014-02-03T03:36:14.453382+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
2014-02-03T03:36:14.453214+00:00 app[web.1]: from /app/config.ru:3:in `block in <main>'
2014-02-03T03:36:14.453382+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
2014-02-03T03:36:14.452799+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
2014-02-03T03:36:14.453053+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
2014-02-03T03:36:14.453053+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/initializable.rb:54:in `run_initializers'
2014-02-03T03:36:14.453053+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
2014-02-03T03:36:14.453053+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
2014-02-03T03:36:14.453382+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
2014-02-03T03:36:14.453382+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/commands/server.rb:48:in `app'
2014-02-03T03:36:14.452799+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/initializable.rb:55:in `block in run_initializers'
2014-02-03T03:36:14.453053+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2014-02-03T03:36:14.453214+00:00 app[web.1]: from /app/config.ru:in `<main>'
2014-02-03T03:36:14.453382+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
2014-02-03T03:36:14.453214+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
2014-02-03T03:36:14.453382+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
2014-02-03T03:36:14.453214+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
2014-02-03T03:36:14.453214+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
2014-02-03T03:36:14.453214+00:00 app[web.1]: from /app/config.ru:in `new'
2014-02-03T03:36:14.453382+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/commands.rb:76:in `block in <top (required)>'
2014-02-03T03:36:14.453382+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/commands.rb:71:in `tap'
2014-02-03T03:36:14.453382+00:00 app[web.1]: from bin/rails:4:in `<main>'
2014-02-03T03:36:14.453382+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/commands.rb:71:in `<top (required)>'
2014-02-03T03:36:14.453382+00:00 app[web.1]: from bin/rails:4:in `require'
2014-02-03T03:36:14.453382+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/commands/server.rb:75:in `start'
2014-02-03T03:36:16.045779+00:00 heroku[web.1]: Process exited with status 1
2014-02-03T03:36:20.388355+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 35219 -e $RAILS_ENV`
2014-02-03T03:36:25.027178+00:00 app[web.1]: => Booting WEBrick
2014-02-03T03:36:25.027178+00:00 app[web.1]: => Run `rails server -h` for more startup options
2014-02-03T03:36:25.027178+00:00 app[web.1]: => Ctrl-C to shutdown server
2014-02-03T03:36:25.027178+00:00 app[web.1]: Exiting
2014-02-03T03:36:25.028249+00:00 app[web.1]: from /app/app/models/ckeditor/attachment_file.rb:2:in `<class:AttachmentFile>'
2014-02-03T03:36:25.028249+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:330:in `require_or_load'
2014-02-03T03:36:25.028249+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.1/lib/active_record/dynamic_matchers.rb:22:in `method_missing': undefined method `has_attached_file' for Ckeditor::AttachmentFile(no database connection):Class (NoMethodError)
2014-02-03T03:36:25.027178+00:00 app[web.1]: => Rails 4.0.1 application starting in production on http://0.0.0.0:35219
2014-02-03T03:36:25.028249+00:00 app[web.1]: from /app/app/models/ckeditor/attachment_file.rb:1:in `<top (required)>'
2014-02-03T03:36:25.028249+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:214:in `load_dependency'
2014-02-03T03:36:25.028249+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:229:in `block in require'
2014-02-03T03:36:25.028249+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:229:in `require'
2014-02-03T03:36:25.028249+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:229:in `require'
2014-02-03T03:36:25.028586+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/application.rb:215:in `initialize!'
2014-02-03T03:36:25.029139+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/railtie/configurable.rb:30:in `method_missing'
2014-02-03T03:36:25.028586+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
2014-02-03T03:36:25.028586+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/initializable.rb:54:in `run_initializers'
2014-02-03T03:36:25.028249+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:207:in `require_dependency'
2014-02-03T03:36:25.028424+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/engine.rb:464:in `block in eager_load!'
2014-02-03T03:36:25.028424+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/engine.rb:464:in `each'
2014-02-03T03:36:25.028424+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/engine.rb:462:in `each'
2014-02-03T03:36:25.028424+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/engine.rb:465:in `block (2 levels) in eager_load!'
2014-02-03T03:36:25.028249+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:289:in `depend_on'
2014-02-03T03:36:25.029139+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:229:in `block in require'
2014-02-03T03:36:25.029139+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:214:in `load_dependency'
2014-02-03T03:36:25.029139+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:229:in `require'
2014-02-03T03:36:25.029139+00:00 app[web.1]: from /app/config.ru:3:in `block in <main>'
2014-02-03T03:36:25.029139+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
2014-02-03T03:36:25.029139+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
2014-02-03T03:36:25.029139+00:00 app[web.1]: from /app/config.ru:in `new'
2014-02-03T03:36:25.029319+00:00 app[web.1]: from /app/config.ru:in `<main>'
2014-02-03T03:36:25.029319+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
2014-02-03T03:36:25.029319+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
2014-02-03T03:36:25.029319+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
2014-02-03T03:36:25.029319+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
2014-02-03T03:36:25.029319+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
2014-02-03T03:36:25.029319+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/commands/server.rb:48:in `app'
2014-02-03T03:36:25.028424+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/engine.rb:347:in `eager_load!'
2014-02-03T03:36:25.028586+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
2014-02-03T03:36:25.028586+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
2014-02-03T03:36:25.028586+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
2014-02-03T03:36:25.028424+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/initializable.rb:30:in `run'
2014-02-03T03:36:25.028586+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/initializable.rb:55:in `block in run_initializers'
2014-02-03T03:36:25.029700+00:00 app[web.1]: from bin/rails:4:in `<main>'
2014-02-03T03:36:25.028424+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/application/finisher.rb:56:in `each'
2014-02-03T03:36:25.028424+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/application/finisher.rb:56:in `block in <module:Finisher>'
2014-02-03T03:36:25.028424+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/engine.rb:462:in `eager_load!'
2014-02-03T03:36:25.028586+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
2014-02-03T03:36:25.028586+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
2014-02-03T03:36:25.029139+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:229:in `require'
2014-02-03T03:36:25.028586+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:180:in `each'
2014-02-03T03:36:25.028424+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/initializable.rb:30:in `instance_exec'
2014-02-03T03:36:25.029139+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2014-02-03T03:36:25.029700+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/commands.rb:71:in `tap'
2014-02-03T03:36:25.029319+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/commands.rb:76:in `block in <top (required)>'
2014-02-03T03:36:25.029700+00:00 app[web.1]: from bin/rails:4:in `require'
2014-02-03T03:36:25.029700+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/commands.rb:71:in `<top (required)>'
2014-02-03T03:36:25.029319+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/commands/server.rb:75:in `start'
2014-02-03T03:36:25.029319+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
2014-02-03T03:36:26.332106+00:00 heroku[web.1]: State changed from starting to crashed
2014-02-03T03:36:26.317672+00:00 heroku[web.1]: Process exited with status 1
2014-02-03T03:36:52.031888+00:00 heroku[run.2229]: Awaiting client
2014-02-03T03:36:52.070422+00:00 heroku[run.2229]: Starting process with command `bundle exec rake db:migrate`
2014-02-03T03:36:52.163802+00:00 heroku[run.2229]: State changed from starting to up
2014-02-03T03:36:56.331175+00:00 heroku[run.2229]: Process exited with status 0
2014-02-03T03:37:09.606778+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=mighty-hamlet-9445.herokuapp.com request_id=7aedbbe3-fe00-43c1-bbfb-d2ca8a535cbf fwd="99.241.49.222" dyno= connect= service= status=503 bytes=
It doesn't recognize ckeditor function Attachment file.
You are probably missing paperclip as a dependency at your gemfile:
/app/vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.1/lib/active_record/dynamic_matchers.rb:22:in `method_missing':
undefined method `has_attached_file' for Ckeditor::AttachmentFile(no database connection):Class (NoMethodError)

app upload on heroku does not work

I am tying to upload my first app to heroku but does not work. it gives me a message saying.
" The page you were looking for doesn't exist.You may have mistyped the address or the page may have moved.
I have seen all the similar questions asked on stackoverflow but non of them could solve my case. I am on Rails 4 and my heroku log is as below.
Oh, and I am following the course on OneMonthRails but just curios, do we "need" to use heroku? To me it seems like just a rental server where you can share the development process with some other developers but if I was to make something on my own do I still need to use heroku?
Anyway thank you for looking in to this.
My Log of heroku
2013-08-15T02:46:10.396576+00:00 app[web.1]: Started GET "/" for 116.81.12.104 at 2013-08-15 02:46:10 +0000
2013-08-15T02:46:10.397621+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
2013-08-15T02:46:10.397621+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/tagged_logging.rb:67:in `block in tagged'
2013-08-15T02:46:10.397621+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/rack/logger.rb:21:in `call'
2013-08-15T02:46:10.397868+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
2013-08-15T02:46:10.397621+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/tagged_logging.rb:25:in `tagged'
2013-08-15T02:46:10.397621+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/tagged_logging.rb:67:in `tagged'
2013-08-15T02:46:10.397868+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/engine.rb:511:in `call'
2013-08-15T02:46:10.397868+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/application.rb:97:in `call'
2013-08-15T02:46:10.397868+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service'
2013-08-15T02:46:10.397868+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/content_length.rb:14:in `call'
2013-08-15T02:46:10.397868+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/request_id.rb:21:in `call'
2013-08-15T02:46:10.398059+00:00 app[web.1]:
2013-08-15T02:46:10.397868+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call'
2013-08-15T02:46:10.397868+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/cache/strategy/local_cache.rb:83:in `call'
2013-08-15T02:46:10.398059+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
2013-08-15T02:46:10.397868+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/static.rb:64:in `call'
2013-08-15T02:46:10.398059+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
2013-08-15T02:46:10.398059+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
2013-08-15T02:46:10.398059+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/rack/logger.rb:38:in `call_app'
2013-08-15T02:46:10.398662+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
2013-08-15T02:46:10.398662+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/rack/logger.rb:21:in `block in call'
2013-08-15T02:46:10.398662+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/tagged_logging.rb:25:in `tagged'
2013-08-15T02:46:10.398059+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
2013-08-15T02:46:10.397868+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call'
2013-08-15T02:46:10.398059+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
2013-08-15T02:46:10.398662+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/tagged_logging.rb:67:in `tagged'
2013-08-15T02:46:10.398662+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/request_id.rb:21:in `call'
2013-08-15T02:46:10.398662+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/static.rb:64:in `call'
2013-08-15T02:46:10.398662+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call'
2013-08-15T02:46:10.398874+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
2013-08-15T02:46:10.398059+00:00 app[web.1]:
2013-08-15T02:46:10.398059+00:00 app[web.1]:
2013-08-15T02:46:10.398874+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/content_length.rb:14:in `call'
2013-08-15T02:46:10.398874+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service'
2013-08-15T02:46:10.398874+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
2013-08-15T02:46:10.398874+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call'
2013-08-15T02:46:10.398874+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/engine.rb:511:in `call'
2013-08-15T02:46:10.398059+00:00 app[web.1]: ActionController::RoutingError (No route matches [GET] "/"):
2013-08-15T02:46:10.398662+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/rack/logger.rb:21:in `call'
2013-08-15T02:46:10.398874+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
2013-08-15T02:46:10.398874+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/application.rb:97:in `call'
2013-08-15T02:46:10.398874+00:00 app[web.1]:
2013-08-15T02:46:10.398662+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/cache/strategy/local_cache.rb:83:in `call'
2013-08-15T02:46:10.398874+00:00 app[web.1]:
2013-08-15T02:46:10.398662+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/tagged_logging.rb:67:in `block in tagged'
2013-08-15T02:46:10.403101+00:00 heroku[router]: at=info method=GET path=/ host=murmuring-ocean-4579.herokuapp.com fwd="116.81.12.104" dyno=web.1 connect=1ms service=6ms status=404 bytes=1351
2013-08-15T02:48:26.146952+00:00 app[web.1]: ActionController::RoutingError (No route matches [GET] "/"):
2013-08-15T02:48:26.146952+00:00 app[web.1]:
2013-08-15T02:48:26.147139+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call'
2013-08-15T02:48:26.147139+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/cache/strategy/local_cache.rb:83:in `call'
2013-08-15T02:48:26.145932+00:00 app[web.1]: Started GET "/" for 116.81.12.104 at 2013-08-15 02:48:26 +0000
2013-08-15T02:48:26.145932+00:00 app[web.1]: Started GET "/" for 116.81.12.104 at 2013-08-15 02:48:26 +0000
2013-08-15T02:48:26.146952+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
2013-08-15T02:48:26.146952+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
2013-08-15T02:48:26.147139+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call'
2013-08-15T02:48:26.147139+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/content_length.rb:14:in `call'
2013-08-15T02:48:26.146952+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/rack/logger.rb:21:in `block in call'
2013-08-15T02:48:26.146952+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/rack/logger.rb:38:in `call_app'
2013-08-15T02:48:26.149746+00:00 heroku[router]: at=info method=GET path=/ host=murmuring-ocean-4579.herokuapp.com fwd="116.81.12.104" dyno=web.1 connect=1ms service=8ms status=404 bytes=1351
2013-08-15T02:48:26.147139+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/request_id.rb:21:in `call'
2013-08-15T02:48:26.146952+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/tagged_logging.rb:67:in `tagged'
2013-08-15T02:48:26.147139+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/static.rb:64:in `call'
2013-08-15T02:48:26.146952+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/tagged_logging.rb:25:in `tagged'
2013-08-15T02:48:26.146952+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/tagged_logging.rb:67:in `block in tagged'
2013-08-15T02:48:26.146952+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/rack/logger.rb:21:in `call'
2013-08-15T02:48:26.147317+00:00 app[web.1]:
2013-08-15T02:48:26.147317+00:00 app[web.1]:
2013-08-15T02:48:26.147317+00:00 app[web.1]: ActionController::RoutingError (No route matches [GET] "/"):
2013-08-15T02:48:26.147139+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
2013-08-15T02:48:26.147317+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
2013-08-15T02:48:26.147139+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/application.rb:97:in `call'
2013-08-15T02:48:26.147796+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
2013-08-15T02:48:26.147139+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/engine.rb:511:in `call'
2013-08-15T02:48:26.147139+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service'
2013-08-15T02:48:26.147317+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
2013-08-15T02:48:26.147974+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service'
2013-08-15T02:48:26.147796+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/tagged_logging.rb:67:in `block in tagged'
2013-08-15T02:48:26.147317+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
2013-08-15T02:48:26.147796+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/rack/logger.rb:21:in `block in call'
2013-08-15T02:48:26.147317+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
2013-08-15T02:48:26.147974+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/engine.rb:511:in `call'
2013-08-15T02:48:26.147317+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
2013-08-15T02:48:26.147796+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/cache/strategy/local_cache.rb:83:in `call'
2013-08-15T02:48:26.147317+00:00 app[web.1]:
2013-08-15T02:48:26.147796+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/tagged_logging.rb:25:in `tagged'
2013-08-15T02:48:26.147796+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/rack/logger.rb:21:in `call'
2013-08-15T02:48:26.147796+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/tagged_logging.rb:67:in `tagged'
2013-08-15T02:48:26.147974+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
2013-08-15T02:48:26.147317+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/rack/logger.rb:38:in `call_app'
2013-08-15T02:48:26.147974+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/application.rb:97:in `call'
2013-08-15T02:48:26.147974+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call'
2013-08-15T02:48:26.147796+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call'
2013-08-15T02:48:26.147974+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
2013-08-15T02:48:26.147796+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/static.rb:64:in `call'
2013-08-15T02:48:26.147796+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/request_id.rb:21:in `call'
2013-08-15T02:48:26.147974+00:00 app[web.1]:
2013-08-15T02:48:26.147974+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/content_length.rb:14:in `call'
2013-08-15T02:48:26.147974+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
2013-08-15T02:48:26.147974+00:00 app[web.1]:
2013-08-15T02:48:26.488666+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=murmuring-ocean-4579.herokuapp.com fwd="116.81.12.104" dyno=web.1 connect=26ms service=4ms status=304 bytes=0
No You don't need to use Heroku. You can do the development on localhost. Also it would be helpful if you told what you've done already.

Resources