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条)

报告相同问题?

悬赏问题

  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)
  • ¥15 keil里为什么main.c定义的函数在it.c调用不了
  • ¥50 切换TabTip键盘的输入法