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 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试
  • ¥15 教务系统账号被盗号如何追溯设备
  • ¥20 delta降尺度方法,未来数据怎么降尺度
  • ¥15 c# 使用NPOI快速将datatable数据导入excel中指定sheet,要求快速高效
  • ¥15 再不同版本的系统上,TCP传输速度不一致
  • ¥15 高德地图点聚合中Marker的位置无法实时更新
  • ¥15 DIFY API Endpoint 问题。
  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿