Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deserialize session from String always get an errors #44

Open
siengsotheara opened this issue Nov 29, 2019 · 0 comments
Open

deserialize session from String always get an errors #44

siengsotheara opened this issue Nov 29, 2019 · 0 comments

Comments

@siengsotheara
Copy link

siengsotheara commented Nov 29, 2019

Can you tell me why I always get that error ?
It tells that DelegateSubject is not serializable. I am using shiro v1.4.*

public static Session deserialize(String sessionStr) {
        try {
            ByteArrayInputStream bis = new ByteArrayInputStream(Base64.decode(sessionStr));
            ObjectInputStream ois = new ObjectInputStream(bis);
            return (Session)ois.readObject();
        } catch (Exception e) {
            throw new RuntimeException("deserialize session error", e);
        }
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant