推送我的资料库到heroku失败 [英] Pushing my repository to heroku fails

查看:106
本文介绍了推送我的资料库到heroku失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在游戏2.0中构建一个应用程序,当我使用 play run 在本地运行应用程序时,它运行良好,但是当我尝试使用<$ c $上传到heroku

 <$ c $ git push heroku master 它开始上传正常,但过了一段时间它总是以这些错误结束:编译10个Scala源文件和6个Java源文件到/tmp/build_26zvdeyfp5qfp/target/scala-2.9.1/classes ... 
[error]在加载MapStream类文件时出错[/ tmp / build_26zvdeyfp5qfp /.jdk/jre/lib/rt.jar(java/lang/MapStream.class)'被破坏
[错误](在字节43错误的常量池标签18)
[错误]找到一个错误
[error] {file:/ tmp / build_26zvdeyfp5qfp /} Workshop0182Host / compile:compile:编译失败
[error]总时间:20 s,已完成2012年11月17日11:08:23上午
!无法使用sbt
构建应用程序! Heroku推送被拒绝,未能编译Play 2.0 - java app

到git@heroku.com:dry-thicket-4545.git
! [remote rejected] master - > master(pre-receive hook refused)
错误:无法将某些参考文献推送到'git@heroku.com:dry-thicket-4545.git'

我确保我的heroku-toolbelt是最新的,试图彻底重新初始化git并创建一个新的heroku应用程序。但是这些都没有帮助我进一步解决方案

显然,在heroku中使用JDK 1.8给出了这个问题。


Im building an app in play 2.0, and when I run the app locally with play run it runs fine but when I try to upload to heroku with git push heroku master it starts uploading fine but after a while it always ends with these errors:

 [info] Compiling 10 Scala sources and 6 Java sources to /tmp/build_26zvdeyfp5qfp/target/scala-2.9.1/classes...
       [error] error while loading MapStream, class file '/tmp/build_26zvdeyfp5qfp/.jdk/jre/lib/rt.jar(java/lang/MapStream.class)' is broken
       [error] (bad constant pool tag 18 at byte 43)
       [error] one error found
       [error] {file:/tmp/build_26zvdeyfp5qfp/}Workshop0182Host/compile:compile: Compilation failed
       [error] Total time: 20 s, completed Nov 17, 2012 11:08:23 AM
 !     Failed to build app with sbt
 !     Heroku push rejected, failed to compile Play 2.0 - java app

To git@heroku.com:dry-thicket-4545.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:dry-thicket-4545.git'

I made sure that my heroku-toolbelt is up-to-date, tried to completely reinitialise git and created a new heroku app. But none of that helped me any further

解决方案

Apparently using JDK 1.8 in heroku gives this problem.

这篇关于推送我的资料库到heroku失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆