【问题标题】:Apereo CAS 4.1.0 - Gradle Build Failing With INVALID_TICKET MessageApereo CAS 4.1.0 - Gradle 构建失败并显示 INVALID_TICKET 消息
【发布时间】:2017-02-21 08:18:11
【问题描述】:

我是 CAS 的新手,并且都毕业了。

我从here 下载了 CAS 代码。解压下载的 zip 文件后,我运行 gradlew.bat 文件来构建 CAS 项目。即使我没有修改任何内容,在构建过程中也会出现以下错误:

org.jasig.cas.CentralAuthenticationServiceImplTests > verifyDelegateTicketGrantingTicketWithProperParams 失败
    CentralAuthenticationServiceImplTests.java:174 处的 org.jasig.cas.ticket.InvalidTicketException

完成 47 次测试,1 次失败
:cas-server-core:test 失败

FAILURE:构建失败并出现异常。

* 什么地方出了错:
任务 ':cas-server-core:test' 执行失败。
有失败的测试。参见报告:file:///C:/Users/newbie/Downloads/cas-4.2.1/cas-server-core/build/reports/tests/index.html

由于构建失败,我尝试使用最新版本的 CAS,CAS 5.0.2。 构建最新版本也会出现同样的错误:

org.apereo.cas.CentralAuthenticationServiceImplTests > verifyDelegateTicketGrantingTicketWithProperParams 失败
    INVALID_TICKET
        在 org.apereo.cas.CentralAuthenticationServiceImpl.createProxyGrantingTicket(CentralAuthenticationServiceImpl.java:256)
        在 org.apereo.cas.CentralAuthenticationServiceImpl$$FastClassBySpringCGLIB$$d0ec6e1f.invoke()
        在 org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
        在 org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:720)
        在 org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
        在 org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99)
        在 org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:282)
        在 org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
        在 org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
        在 org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:655)
        在 org.apereo.cas.CentralAuthenticationServiceImpl$$EnhancerBySpringCGLIB$$9bd39a43.createProxyGrantingTicket()
        在 org.apereo.cas.CentralAuthenticationServiceImplTests.verifyDelegateTicketGrantingTicketWithProperParams(CentralAuthenticationServiceImplTests.java:175)

完成 47 次测试,1 次失败
:core:cas-server-core:test FAILED
:lintGradle

FAILURE:构建失败并出现异常。

* 什么地方出了错:
任务 ':core:cas-server-core:test' 执行失败。
有失败的测试。参见报告:file:///C:/Users/newbie/Downloads/cas-5.0.2/core/cas-server-core/build/reports/tests/test/index.html

谁能帮我解决/理解这个问题。

非常感谢。

【问题讨论】:

    标签: java gradle single-sign-on cas gradlew


    【解决方案1】:

    似乎是您的 gradlew.bat 文件有运行测试文件的任务。在运行测试文件时,其中一个测试用例失败,因为您的构建失败。如果您真的想运行测试用例,您必须修复测试用例错误(查找哪个测试用例失败以及更好地修复的原因以检查日志文件)。否则,您可以从您的 gradle 构建文件中删除特定的测试用例或注释测试运行任务。

    【讨论】:

      猜你喜欢
      • 2021-12-22
      • 2012-11-26
      • 1970-01-01
      • 2020-05-14
      • 2013-07-07
      • 2018-07-11
      • 2022-11-24
      • 2015-10-27
      • 1970-01-01
      相关资源
      最近更新 更多