【发布时间】: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