的taskdef java.lang.VerifyError的:在操作数堆栈坏类型,当球队阵容城市执

2019-10-19 01:20发布

我已经编译和测试一些Scala代码一个build.xml。 运行命令行Ant任务生成所需的结果,然而,当TeamCity的运行它,各种怪事发生了,包括以下内容:

检查变化[15时35分02秒]发布内部工件[15时35分02秒]清除临时目录:/ opt / TeamCity的/ buildAgent /温度/ buildTmp [15时35分02秒]结帐目录:/ opt / TeamCity的/ buildAgent /工作/ d80416000445458a [15时35分02秒]更新来源:服务器侧结帐[15时35分03秒]步骤1/1:单元测试(ANT)(3S)[15时35分03秒] [步骤1/1]开始:/ usr / lib中/ JVM / Java的7-ORACLE / JRE /斌/ java的-Dagent.home.dir = /选择/的TeamCity / buildAgent -Dagent.name =默认代理-Dagent.ownPort = 9090 -Dagent.work .DIR = /选择/ TeamCity的/ buildAgent /工作-Dant.home =的/ usr /共享/蚂蚁-Dbuild.number = 18 -Dbuild.vcs.number = 640c1de055a395d24227ae9edb45df085bed6b14 -Dbuild.vcs.number.1 = 640c1de055a395d24227ae9edb45df085bed6b14 -Dbuild.vcs .nu​​mber.TestingDemo_GitBitbucketOrgBinarygiantTestingdemoGitRefsHeadsMaster = 640c1de055a395d24227ae9edb45df085bed6b14 -Djava.io.tmpdir = /选择/ TeamCity的/ buildAgent /温度/ buildTmp -Dteamcity.agent.cpuBenchmark = 570 -Dteamcity.agent.dotnet.agent_url = HTTP:// localhost:9090/ RPC2 - Dteamcity.agent.dotnet.build_id = 18 - Dteamcity.auth.password = ao0IEeHYnor3kuDxE93mXSEiAANWd3Y4 -Dteamcity.auth.userId = TeamCityBuildId = 18 -Dteamcity.build.changedFiles.file = /选择/ TeamCity的/ buildAgent /温度/ buildTmp / changedFiles648007365561156996.txt -Dteamcity.build.checkoutDir = /选择/ TeamCity的/ buildAgent /工作/ d80416000445458a -Dteamcity.build.id = 18 -Dteamcity.build.properties.file = /选择/ TeamCity的/ buildAgent /温度/ buildTmp / teamcity.build4342271452757354958.properties -Dteamcity.build.tempDir = /选择/ TeamCity的/ buildAgent /温度/ buildTmp -Dteamcity.build.workingDir = /选择/的TeamCity / buildAgent /工作/ d80416000445458a -Dteamcity.buildConfName = runTests -Dteamcity.buildType.id = TestingDemo_RunTests -Dteamcity.configuration.properties.file = /选择/ TeamCity的/ buildAgent /温度/ buildTmp / teamcity.config8282155595117054162.properties -Dteamcity.projectName = TestingDemo -Dteamcity.runner.properties.file = /选择/ TeamCity的/ buildAgent /温度/ buildTmp / teamcity.runner8434162286646669877.properties -Dteamcity.runtime.props .file = /选择/ TeamCity的/ buildAgent /温度/ agentTmp / ant129036 8989221761450runtime -Dteamcity.tests.recentlyFailedTests.file = /选择/ TeamCity的/ buildAgent /温度/ buildTmp / testsToRunFirst3580939489665315320.txt -Dteamcity.version = 8.0.5(建立27692)-classpath /usr/share/java/ant-launcher-1.8 .2.jar org.apache.tools.ant.launch.Launcher -lib /opt/TeamCity/buildAgent/plugins/antPlugin/ant-runtime.jar:/opt/TeamCity/buildAgent/lib/runtime-util.jar章24 -listener jetbrains.buildServer.agent.ant.AgentBuildListener -buildfile /opt/TeamCity/buildAgent/work/d80416000445458a/build.xml试验[15时35分03秒] [步骤1/1]在目录:/ opt / TeamCity的/ buildAgent /工作/ d80416000445458a [15时35分05秒] [步骤1/1]的init(1S)[15时35分05秒] [INIT]的taskdef [15:35:06] [的taskdef] java.lang.VerifyError的:坏上的操作数类型堆栈异常详细信息:
位置:斯卡拉/工具/ ANT / Scalac.writeSettings $ 1(Lscala /工具/ NSC /设置; Lscala /收集/不变/列表;)Ljava / IO /文件;

Answer 1:

显然,这是一个JDK编译器错误#8006684

我只是在我的斯卡拉项目打了一个类似的问题:

Exception in thread "main" java.lang.RuntimeException: Exception in Application start method
    at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:894)
    at com.sun.javafx.application.LauncherImpl.access$000(LauncherImpl.java:56)
    at com.sun.javafx.application.LauncherImpl$1.run(LauncherImpl.java:158)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.VerifyError: Bad type on operand stack
Exception Details:
  Location:
    db/DB.string$1(Ljava/lang/String;)Ljava/lang/String; @107: invokespecial
  Reason:
    Type 'java/lang/String' (current frame, stack[3]) is not assignable to 'db/DB'
  Current Frame:
    bci: @107
    flags: { }
    locals: { 'java/lang/String', 'java/lang/String', integer }
    stack: { 'scala/collection/Iterator', uninitialized 102, uninitialized 102, 'java/lang/String' }
  Bytecode:
    0000000: 129d 2a4c 59c7 000b 572b c600 0da7 000e
    0000010: 2bb6 014f 9900 072a a700 60b2 0154 b200
    0000020: 7e2a b601 5703 b601 5b3d 1caa 0000 0011
    0000030: 0000 0001 0000 0001 0000 0015 2aa7 003b
    0000040: bb01 5d59 b200 7ebb 015d 59b2 007e 2ab6
    0000050: 0157 b701 5e04 b601 61c0 0099 b601 57b7
    0000060: 015e 05b6 0165 bb01 6759 2ab7 016a b901
    0000070: 6e02 00b9 0171 0100 b0                 
  Stackmap Table:
    full_frame(@16,{Object[#153],Object[#153]},{Object[#153]})
    same_frame(@23)
    same_frame(@27)
    append_frame(@60,Integer)
    same_frame(@64)
    full_frame(@120,{Object[#153],Object[#153]},{Object[#153]})

    at global.State$.<init>(State.scala:14)
...


文章来源: taskdef java.lang.VerifyError: Bad type on operand stack when TEAM CITY executes build