A_S478 2016-11-05 10:56 采纳率: 100%
浏览 3465
已采纳

cas+redis集群 无法序列化,没有大神遇到吗

2016-11-05 18:52:10,409 ERROR [com.msxf.sso.ticket.RedisTicketRegistry] -
org.springframework.data.redis.serializer.SerializationException: Cannot serialize; nested exception is org.springframework.core.serializer.support.SerializationFailedException: Failed to serialize object using DefaultSerializer; nested exception is java.io.NotSerializableException: java.util.HashMap$KeySet
at org.springframework.data.redis.serializer.JdkSerializationRedisSerializer.serialize(JdkSerializationRedisSerializer.java:52)
at org.springframework.data.redis.core.AbstractOperations.rawValue(AbstractOperations.java:112)
at org.springframework.data.redis.core.DefaultValueOperations.set(DefaultValueOperations.java:180)
at com.msxf.sso.ticket.RedisTicketRegistry.addTicket(RedisTicketRegistry.java:56)
at org.jasig.cas.CentralAuthenticationServiceImpl.createTicketGrantingTicket_aroundBody10(CentralAuthenticationServiceImpl.java:538)
at org.jasig.cas.CentralAuthenticationServiceImpl.createTicketGrantingTicket_aroundBody11$advice(CentralAuthenticationServiceImpl.java:54)
at org.jasig.cas.CentralAuthenticationServiceImpl.createTicketGrantingTicket(CentralAuthenticationServiceImpl.java:1)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)
at com.github.inspektr.audit.AuditTrailManagementAspect.handleAuditTrail(AuditTrailManagementAspect.java:126)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)

{
"authentication": {
    "attributes": {
        "authenticationMethod": "UserAuthenticationHandler",
        "successfulAuthenticationHandlers": [
            "UserAuthenticationHandler"
        ]
    },
    "authenticatedDate": 1478326255824,
    "credentials": [
        {
            "credentialClass": "org.jasig.cas.authentication.UsernamePasswordCredential",
            "id": "292752388@qq.com"
        }
    ],
    "failures": { },
    "principal": {
        "attributes": {
            "lastLoginDate": 1478275200000,
            "email": "292752388@qq.com",
            "status": 0,
            "userId": 988,
            "registerDate": 1476269405000,
            "userName": "Paddy"
        },
        "id": "292752388@qq.com"
    },
    "successes": {
        "UserAuthenticationHandler": {
            "credentialMetaData": {
                "credentialClass": "org.jasig.cas.authentication.UsernamePasswordCredential",
                "id": "292752388@qq.com"
            },
            "handlerName": "UserAuthenticationHandler",
            "principal": {
                "attributes": { },
                "id": "292752388@qq.com"
            },
            "warnings": [ ]
        }
    }
},
"chainedAuthentications": [
    {
        "attributes": {
            "authenticationMethod": "UserAuthenticationHandler",
            "successfulAuthenticationHandlers": [
                "UserAuthenticationHandler"
            ]
        },
        "authenticatedDate": 1478326255824,
        "credentials": [
            {
                "credentialClass": "org.jasig.cas.authentication.UsernamePasswordCredential",
                "id": "292752388@qq.com"
            }
        ],
        "failures": { },
        "principal": {
            "attributes": {
                "lastLoginDate": 1478275200000,
                "email": "292752388@qq.com",
                "status": 0,
                "userId": 988,
                "registerDate": 1476269405000,
                "userName": "Paddy"
            },
            "id": "292752388@qq.com"
        },
        "successes": {
            "UserAuthenticationHandler": {
                "credentialMetaData": {
                    "credentialClass": "org.jasig.cas.authentication.UsernamePasswordCredential",
                    "id": "292752388@qq.com"
                },
                "handlerName": "UserAuthenticationHandler",
                "principal": {
                    "attributes": { },
                    "id": "292752388@qq.com"
                },
                "warnings": [ ]
            }
        }
    }
],
"countOfUses": 0,
"creationTime": 1478326255839,
"expired": false,
"expiredInternal": false,
"id": "TGT-2-lbD3xVJInO4Eb7blP110aTegX6hFjh5USFxlgp4Zv5dfSJepPG-S3",
"lastTimeUsed": 1478326255839,
"previousTimeUsed": 0,
"root": true,
"services": { },
"supplementalAuthentications": [ ]

}

org.jasig.cas.authentication.UsernamePasswordCredential这个可以不加入Ticket吗

  • 写回答

4条回答 默认 最新

  • A_S478 2016-11-25 08:20
    关注

    cas 4.0.3 版本问题,换成4.0.7就没问题了,关系大家的回答,怎么给分啊

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?

悬赏问题

  • ¥15 MATLAB代码补全插值
  • ¥15 Typegoose 中如何使用 arrayFilters 筛选并更新深度嵌套的子文档数组信息
  • ¥15 前后端分离的学习疑问?
  • ¥15 stata实证代码答疑
  • ¥50 husky+jaco2实现在gazebo与rviz中联合仿真
  • ¥15 dpabi预处理报错:Error using y_ExtractROISignal (line 251)
  • ¥15 在虚拟机中配置flume,无法将slave1节点的文件采集到master节点中
  • ¥15 husky+kinova jaco2 仿真
  • ¥15 zigbee终端设备入网失败
  • ¥15 金融监管系统怎么对7+4机构进行监管的