Solucionado (ver solução)
Solucionado
(ver solução)
2
respostas

Deploy do projeto com erro

Boa noite, estou com dificuldades para rodar a aplicação no heroku, o deploy fez o build com sucesso mas está ocorrendo um problema acredito que seja com um jar do hibernate e a aplicação não sobe. Alguém pode ajudar a interpretar este log para encontrar a solução do problema ? segue abaixo o log e obrigado.

Deploy 3f9689d0 by user kikogamer@gmail.com
2017-05-28T04:42:13.796625+00:00 heroku[web.1]: State changed from crashed to starting
2017-05-28T04:41:53.000000+00:00 app[api]: Build succeeded
2017-05-28T04:42:17.980426+00:00 heroku[web.1]: Starting process with command `java $JAVA_OPTS -jar -Dspring.profiles.active=prod target/dependency/webapp-runner.jar --port 22669 target/*.war`
2017-05-28T04:42:19.822299+00:00 app[web.1]: Setting JAVA_TOOL_OPTIONS defaults based on dyno size. Custom settings will override them.
2017-05-28T04:42:19.825317+00:00 app[web.1]: Picked up JAVA_TOOL_OPTIONS: -Xmx350m -Xss512k -Dfile.encoding=UTF-8
2017-05-28T04:42:20.086531+00:00 app[web.1]: Adding Context  for target/casadocodigo.war
2017-05-28T04:42:20.536191+00:00 app[web.1]: May 28, 2017 4:42:20 AM org.apache.coyote.AbstractProtocol init
2017-05-28T04:42:20.536222+00:00 app[web.1]: INFO: Initializing ProtocolHandler ["http-nio-22669"]
2017-05-28T04:42:20.556321+00:00 app[web.1]: May 28, 2017 4:42:20 AM org.apache.tomcat.util.net.NioSelectorPool getSharedSelector
2017-05-28T04:42:20.556331+00:00 app[web.1]: INFO: Using a shared selector for servlet write/read
2017-05-28T04:42:20.559789+00:00 app[web.1]: May 28, 2017 4:42:20 AM org.apache.catalina.core.StandardService startInternal
2017-05-28T04:42:20.559793+00:00 app[web.1]: INFO: Starting service Tomcat
2017-05-28T04:42:20.560791+00:00 app[web.1]: May 28, 2017 4:42:20 AM org.apache.catalina.core.StandardEngine startInternal
2017-05-28T04:42:20.560793+00:00 app[web.1]: INFO: Starting Servlet Engine: Apache Tomcat/7.0.57
2017-05-28T04:42:20.992566+00:00 app[web.1]: May 28, 2017 4:42:20 AM org.apache.catalina.startup.ContextConfig getDefaultWebXmlFragment
2017-05-28T04:42:20.992589+00:00 app[web.1]: INFO: No global web.xml found
2017-05-28T04:42:21.673498+00:00 heroku[web.1]: State changed from starting to up
2017-05-28T04:42:22.749597+00:00 app[web.1]: May 28, 2017 4:42:22 AM org.apache.catalina.startup.ContextConfig processAnnotationsJar
2017-05-28T04:42:22.749617+00:00 app[web.1]: SEVERE: Unable to process Jar entry [org/hibernate/metamodel/source/annotations/EntityHierarchyImpl.class] from Jar [jar:jndi:/localhost/WEB-INF/lib/hibernate-core-4.3.0.Final.jar!/] for annotations
2017-05-28T04:42:22.749618+00:00 app[web.1]: java.io.EOFException
2017-05-28T04:42:22.749620+00:00 app[web.1]:    at org.apache.tomcat.util.bcel.classfile.FastDataInputStream.readInt(FastDataInputStream.java:145)
2017-05-28T04:42:22.749621+00:00 app[web.1]:    at org.apache.tomcat.util.bcel.classfile.ClassParser.readID(ClassParser.java:200)
2017-05-28T04:42:22.749622+00:00 app[web.1]:    at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:78)
2017-05-28T04:42:22.749622+00:00 app[web.1]:    at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2071)
2017-05-28T04:42:22.749623+00:00 app[web.1]:    at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1947)
2017-05-28T04:42:22.749641+00:00 app[web.1]:    at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1913)
2017-05-28T04:42:22.749642+00:00 app[web.1]:    at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1898)
2017-05-28T04:42:22.749643+00:00 app[web.1]:    at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1330)
2017-05-28T04:42:22.749644+00:00 app[web.1]:    at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:889)
2017-05-28T04:42:22.749644+00:00 app[web.1]:    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:386)
2017-05-28T04:42:22.749645+00:00 app[web.1]:    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
2017-05-28T04:42:22.749646+00:00 app[web.1]:    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
2017-05-28T04:42:22.749646+00:00 app[web.1]:    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5380)
2017-05-28T04:42:22.749647+00:00 app[web.1]:    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
2017-05-28T04:42:22.749648+00:00 app[web.1]:    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
2017-05-28T04:42:22.749649+00:00 app[web.1]:    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
2017-05-28T04:42:22.749651+00:00 app[web.1]:    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
2017-05-28T04:42:22.749651+00:00 app[web.1]:    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
2017-05-28T04:42:22.749652+00:00 app[web.1]:    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
2017-05-28T04:42:22.749653+00:00 app[web.1]:    at java.lang.Thread.run(Thread.java:745)
2017-05-28T04:42:22.749654+00:00 app[web.1]:
2017-05-28T04:42:22.918248+00:00 app[web.1]: May 28, 2017 4:42:22 AM org.apache.catalina.startup.ContextConfig processAnnotationsJar
2017-05-28T04:42:22.918253+00:00 app[web.1]: SEVERE: Unable to process Jar entry [org/hibernate/internal/jaxb/mapping/orm/JaxbJoinTable.class] from Jar [jar:jndi:/localhost/WEB-INF/lib/hibernate-core-4.3.0.Final.jar!/] for annotations
2017-05-28T04:42:22.918254+00:00 app[web.1]: java.io.EOFException
2017-05-28T04:42:22.918255+00:00 app[web.1]:    at org.apache.tomcat.util.bcel.classfile.FastDataInputStream.readInt(FastDataInputStream.java:145)
2017-05-28T04:42:22.918255+00:00 app[web.1]:    at org.apache.tomcat.util.bcel.classfile.ClassParser.readID(ClassParser.java:200)
2017-05-28T04:42:22.918256+00:00 app[web.1]:    at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:78)
2017-05-28T04:42:22.918257+00:00 app[web.1]:    at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2071)
2017-05-28T04:42:22.918257+00:00 app[web.1]:    at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1947)
2017-05-28T04:42:22.918258+00:00 app[web.1]:    at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1913)
2017-05-28T04:42:22.918258+00:00 app[web.1]:    at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1898)
2017-05-28T04:42:22.918259+00:00 app[web.1]:    at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1330)
2017-05-28T04:42:22.918259+00:00 app[web.1]:    at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:889)
2017-05-28T04:42:22.918260+00:00 app[web.1]:    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:386)
2017-05-28T04:42:22.918260+00:00 app[web.1]:    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
2017-05-28T04:42:22.918261+00:00 app[web.1]:    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
2017-05-28T04:42:22.918261+00:00 app[web.1]:    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5380)
2017-05-28T04:42:22.918262+00:00 app[web.1]:    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
2017-05-28T04:42:22.918263+00:00 app[web.1]:    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
2017-05-28T04:42:22.918264+00:00 app[web.1]:    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
2017-05-28T04:42:22.918264+00:00 app[web.1]:    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
2017-05-28T04:42:22.918265+00:00 app[web.1]:    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
2017-05-28T04:42:22.918265+00:00 app[web.1]:    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
2017-05-28T04:42:22.918266+00:00 app[web.1]:    at java.lang.Thread.run(Thread.java:745)
2017-05-28T04:42:22.918267+00:00 app[web.1]:
2017-05-28T04:42:28.904232+00:00 app[web.1]: May 28, 2017 4:42:28 AM org.apache.catalina.core.ApplicationContext log
2017-05-28T04:42:28.904244+00:00 app[web.1]: INFO: Spring WebApplicationInitializers detected on classpath: [br.com.casadocodigo.loja.conf.ServletSpringMVC@69a3e855, br.com.casadocodigo.loja.conf.SpringSecurityFilterConfiguration@149d292d]
2017-05-28T04:42:29.042233+00:00 app[web.1]: log4j:WARN No appenders could be found for logger (org.springframework.web.context.support.StandardServletEnvironment).
2017-05-28T04:42:29.042320+00:00 app[web.1]: log4j:WARN Please initialize the log4j system properly.
2017-05-28T04:42:29.042390+00:00 app[web.1]: log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
2017-05-28T04:42:29.082731+00:00 app[web.1]: May 28, 2017 4:42:29 AM org.apache.catalina.core.ApplicationContext log
2017-05-28T04:42:29.082734+00:00 app[web.1]: INFO: Initializing Spring root WebApplicationContext

D:\jboss-forge\bin\casadocodigo>heroku logs
2017-05-28T04:42:44.385284+00:00 app[web.1]:    at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1913)
2017-05-28T04:42:44.385285+00:00 app[web.1]:    at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1330)
2017-05-28T04:42:44.385284+00:00 app[web.1]:    at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1898)
2017-05-28T04:42:44.385286+00:00 app[web.1]:    at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:889)
2017-05-28T04:42:44.385287+00:00 app[web.1]:    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
2017-05-28T04:42:44.385286+00:00 app[web.1]:    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:386)
2017-05-28T04:42:44.385287+00:00 app[web.1]:    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
2017-05-28T04:42:44.385288+00:00 app[web.1]:    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5380)
2017-05-28T04:42:44.385289+00:00 app[web.1]:    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
2017-05-28T04:42:44.385289+00:00 app[web.1]:    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
2017-05-28T04:42:44.385290+00:00 app[web.1]:    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
2017-05-28T04:42:44.385291+00:00 app[web.1]:    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
2017-05-28T04:42:44.385292+00:00 app[web.1]:    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
2017-05-28T04:42:44.385293+00:00 app[web.1]:    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
2017-05-28T04:42:44.385293+00:00 app[web.1]:    at java.lang.Thread.run(Thread.java:745)
2017-05-28T04:42:44.385294+00:00 app[web.1]:
2017-05-28T04:42:50.789766+00:00 app[web.1]: May 28, 2017 4:42:50 AM org.apache.catalina.core.ApplicationContext log
2017-05-28T04:42:50.789777+00:00 app[web.1]: INFO: Spring WebApplicationInitializers detected on classpath: [br.com.casadocodigo.loja.conf.SpringSecurityFilterConfiguration@286a3fc2, br.com.casadocodigo.loja.conf.ServletSpringMVC@6860f59c]
2017-05-28T04:42:50.879145+00:00 app[web.1]: log4j:WARN No appenders could be found for logger (org.springframework.web.context.support.StandardServletEnvironment).
2017-05-28T04:42:50.879218+00:00 app[web.1]: log4j:WARN Please initialize the log4j system properly.
2017-05-28T04:42:50.879290+00:00 app[web.1]: log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
2017-05-28T04:42:50.953365+00:00 app[web.1]: May 28, 2017 4:42:50 AM org.apache.catalina.core.ApplicationContext log
2017-05-28T04:42:50.953369+00:00 app[web.1]: INFO: Initializing Spring root WebApplicationContext
2017-05-28T04:42:52.462356+00:00 app[web.1]: May 28, 2017 4:42:52 AM org.apache.catalina.core.StandardContext listenerStart
2017-05-28T04:42:52.462369+00:00 app[web.1]: SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
2017-05-28T04:42:52.462374+00:00 app[web.1]: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'entityManagerFactory' defined in class br.com.casadocodigo.loja.conf.JPAConfiguration: Unsatisfied dependency expressed through constructor argument with index 0 of type [javax.sql.DataSource]: : Error creating bean with name 'dataSource' defined in class br.com.casadocodigo.loja.conf.JPAProductionConfiguration: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public javax.sql.DataSource br.com.casadocodigo.loja.conf.JPAProductionConfiguration.dataSource() throws java.net.URISyntaxException] threw exception; nested exception is java.lang.NullPointerException; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class br.com.casadocodigo.loja.conf.JPAProductionConfiguration: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public javax.sql.DataSource br.com.casadocodigo.loja.conf.JPAProductionConfiguration.dataSource() throws java.net.URISyntaxException] threw exception; nested exception is java.lang.NullPointerException
2017-05-28T04:42:52.462375+00:00 app[web.1]:    at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:751)
2017-05-28T04:42:52.462376+00:00 app[web.1]:    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:466)
2017-05-28T04:42:52.462377+00:00 app[web.1]:    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1113)
2017-05-28T04:42:52.462377+00:00 app[web.1]:    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1008)
2017-05-28T04:42:52.462378+00:00 app[web.1]:    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:505)
2017-05-28T04:42:52.462379+00:00 app[web.1]:    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
2017-05-28T04:42:52.462380+00:00 app[web.1]:    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
2017-05-28T04:42:52.462381+00:00 app[web.1]:    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229)
2017-05-28T04:42:52.462381+00:00 app[web.1]:    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
2017-05-28T04:42:52.462382+00:00 app[web.1]:    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
2017-05-28T04:42:52.462383+00:00 app[web.1]:    at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:956)
2017-05-28T04:42:52.462383+00:00 app[web.1]:    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:747)
2017-05-28T04:42:52.462384+00:00 app[web.1]:    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
2017-05-28T04:42:52.462385+00:00 app[web.1]:    at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)
2017-05-28T04:42:52.462385+00:00 app[web.1]:    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
2017-05-28T04:42:52.462386+00:00 app[web.1]:    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
2017-05-28T04:42:52.462387+00:00 app[web.1]:    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4992)
2017-05-28T04:42:52.462387+00:00 app[web.1]:    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5492)
2017-05-28T04:42:52.462388+00:00 app[web.1]:    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
2017-05-28T04:42:52.462389+00:00 app[web.1]:    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
2017-05-28T04:42:52.462389+00:00 app[web.1]:    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
2017-05-28T04:42:52.462390+00:00 app[web.1]:    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
2017-05-28T04:42:52.462391+00:00 app[web.1]:    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
2017-05-28T04:42:52.462391+00:00 app[web.1]:    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
2017-05-28T04:42:52.462422+00:00 app[web.1]:    at java.lang.Thread.run(Thread.java:745)
2017-05-28T04:42:52.462424+00:00 app[web.1]: Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class br.com.casadocodigo.loja.conf.JPAProductionConfiguration: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public javax.sql.DataSource br.com.casadocodigo.loja.conf.JPAProductionConfiguration.dataSource() throws java.net.URISyntaxException] threw exception; nested exception is java.lang.NullPointerException
2017-05-28T04:42:52.462425+00:00 app[web.1]:    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:601)
2017-05-28T04:42:52.462426+00:00 app[web.1]:    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1113)
2017-05-28T04:42:52.462427+00:00 app[web.1]:    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1008)
2017-05-28T04:42:52.462427+00:00 app[web.1]:    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:505)
2017-05-28T04:42:52.462428+00:00 app[web.1]:    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
2017-05-28T04:42:52.462429+00:00 app[web.1]:    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
2017-05-28T04:42:52.462429+00:00 app[web.1]:    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229)
2017-05-28T04:42:52.462430+00:00 app[web.1]:    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
2017-05-28T04:42:52.462430+00:00 app[web.1]:    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
2017-05-28T04:42:52.462431+00:00 app[web.1]:    at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1081)
2017-05-28T04:42:52.462432+00:00 app[web.1]:    at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1006)
2017-05-28T04:42:52.462432+00:00 app[web.1]:    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:904)
2017-05-28T04:42:52.462433+00:00 app[web.1]:    at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:815)
2017-05-28T04:42:52.462433+00:00 app[web.1]:    at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:743)
2017-05-28T04:42:52.462434+00:00 app[web.1]:    ... 24 more
2017-05-28T04:42:52.462444+00:00 app[web.1]: Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public javax.sql.DataSource br.com.casadocodigo.loja.conf.JPAProductionConfiguration.dataSource() throws java.net.URISyntaxException] threw exception; nested exception is java.lang.NullPointerException
2017-05-28T04:42:52.462445+00:00 app[web.1]:    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:188)
2017-05-28T04:42:52.462446+00:00 app[web.1]:    at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:590)
2017-05-28T04:42:52.462447+00:00 app[web.1]:    ... 37 more
2017-05-28T04:42:52.462447+00:00 app[web.1]: Caused by: java.lang.NullPointerException
2017-05-28T04:42:52.462448+00:00 app[web.1]:    at java.net.URI$Parser.parse(URI.java:3042)
2017-05-28T04:42:52.462448+00:00 app[web.1]:    at java.net.URI.<init>(URI.java:588)
2017-05-28T04:42:52.462449+00:00 app[web.1]:    at br.com.casadocodigo.loja.conf.JPAProductionConfiguration.dataSource(JPAProductionConfiguration.java:25)
2017-05-28T04:42:52.462450+00:00 app[web.1]:    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2017-05-28T04:42:52.462450+00:00 app[web.1]:    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2017-05-28T04:42:52.462451+00:00 app[web.1]:    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2017-05-28T04:42:52.462451+00:00 app[web.1]:    at java.lang.reflect.Method.invoke(Method.java:498)
2017-05-28T04:42:52.462452+00:00 app[web.1]:    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:166)
2017-05-28T04:42:52.462452+00:00 app[web.1]:    ... 38 more
2017-05-28T04:42:52.462453+00:00 app[web.1]:
2017-05-28T04:42:52.462742+00:00 app[web.1]: May 28, 2017 4:42:52 AM org.apache.catalina.core.StandardContext startInternal
2017-05-28T04:42:52.462744+00:00 app[web.1]: SEVERE: Error listenerStart
2017-05-28T04:42:52.500522+00:00 app[web.1]: May 28, 2017 4:42:52 AM org.apache.catalina.core.StandardContext startInternal
2017-05-28T04:42:52.500527+00:00 app[web.1]: SEVERE: Context [] startup failed due to previous errors
2017-05-28T04:42:52.502329+00:00 app[web.1]: SEVERE: Context [] failed in [org.apache.catalina.core.StandardContext] lifecycle. Allowing Tomcat to shutdown.
2017-05-28T04:42:52.504520+00:00 app[web.1]: May 28, 2017 4:42:52 AM org.apache.catalina.core.ApplicationContext log
2017-05-28T04:42:52.504521+00:00 app[web.1]: INFO: Closing Spring root WebApplicationContext
2017-05-28T04:42:52.518432+00:00 app[web.1]: May 28, 2017 4:42:52 AM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
2017-05-28T04:42:52.518437+00:00 app[web.1]: SEVERE: The web application [] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2017-05-28T04:42:52.519595+00:00 app[web.1]: May 28, 2017 4:42:52 AM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
2017-05-28T04:42:52.529001+00:00 app[web.1]: May 28, 2017 4:42:52 AM org.apache.coyote.AbstractProtocol start
2017-05-28T04:42:52.519597+00:00 app[web.1]: SEVERE: The web application [] registered the JDBC driver [org.postgresql.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2017-05-28T04:42:52.529006+00:00 app[web.1]: INFO: Starting ProtocolHandler ["http-nio-29722"]
2017-05-28T04:42:52.553323+00:00 app[web.1]: May 28, 2017 4:42:52 AM org.apache.coyote.AbstractProtocol pause
2017-05-28T04:42:52.553326+00:00 app[web.1]: INFO: Pausing ProtocolHandler ["http-nio-29722"]
2017-05-28T04:42:53.044104+00:00 heroku[web.1]: Process exited with status 0
2017-05-28T04:42:53.056627+00:00 heroku[web.1]: State changed from up to crashed
2017-05-28T04:45:27.156486+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=cdcspringmvc-kiko.herokuapp.com request_id=e6680809-83fc-4931-a2d7-f413911a95a3 fwd="201.81.212.71" dyno= connect= service= status=503 bytes= protocol=https
2017-05-28T04:45:27.872789+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=cdcspringmvc-kiko.herokuapp.com request_id=d641efb4-a3d3-4fd7-a9bc-6207d914a662 fwd="201.81.212.71" dyno= connect= service= status=503 bytes= protocol=https
2 respostas

Opa, acho que o problema não é no jar do hibernate e sim no código sem si.

JPAProductionConfiguration.java:25

Nessa classe, na linha 25, está sendo lançado um npe que tem a ver com a interpretação da url do banco de dados, acho. O ideal é você tentar executar o código dela com o formato da url que você ta esperando, para ver o que acontece.

solução!

Eu consegui resolver o problema de npe pegando a váriável de ambiente através do método System.getenv("DATABASE_URL").