该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
求大神!!!
单点登录的cas在服务器上运行时,点击记住密码会报500错误(不点记住密码能正常登录)。
把子站调到本机后能记住密码也能正常运行。
服务器环境:tomcat7 JDK7
服务器报错日志:
七月 04, 2018 9:49:23 上午 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet [cas] in context with path [/cas] threw exception [Request processing failed; nested exception is java.lang.RuntimeException: org.springframework.webflow.execution.ActionExecutionException: Exception thrown executing [AnnotatedAction@46c02ae6 targetAction = [EvaluateAction@72408653 expression = utryAuthenticationViaFormAction.submitAndFireEvent(flowRequestContext, flowScope.credential, messageContext), resultExpression = [null]], attributes = map[[empty]]] in state 'realSubmit' of flow 'login' -- action execution attributes were 'map[[empty]]'] with root cause
java.lang.Error: Unresolved compilation problem:
The method setHttpOnly(Boolean) is undefined for the type Cookie
at utry.cas.web.util.CookieUtil.setCookie(CookieUtil.java:87)
at utry.cas.web.flow.UtryAuthenticationViaFormAction.rememberMe(UtryAuthenticationViaFormAction.java:113)
at utry.cas.web.flow.UtryAuthenticationViaFormAction.submitAndFireEvent(UtryAuthenticationViaFormAction.java:76)
at sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.expression.spel.support.ReflectiveMethodExecutor.execute(ReflectiveMethodExecutor.java:113)
at org.springframework.expression.spel.ast.MethodReference.getValueInternal(MethodReference.java:102)
at org.springframework.expression.spel.ast.MethodReference.access$000(MethodReference.java:49)
at org.springframework.expression.spel.ast.MethodReference$MethodValueRef.getValue(MethodReference.java:347)
at org.springframework.expression.spel.ast.CompoundExpression.getValueInternal(CompoundExpression.java:88)
at org.springframework.expression.spel.ast.SpelNodeImpl.getTypedValue(SpelNodeImpl.java:131)
at org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:299)
at org.springframework.binding.expression.spel.SpringELExpression.getValue(SpringELExpression.java:84)
at org.springframework.webflow.action.EvaluateAction.doExecute(EvaluateAction.java:75)
at org.springframework.webflow.action.AbstractAction.execute(AbstractAction.java:188)
at org.springframework.webflow.execution.AnnotatedAction.execute(AnnotatedAction.java:145)