Giter Site home page Giter Site logo

shiro-cassandra-sample's People

Contributors

lhazlewood avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

shiro-cassandra-sample's Issues

InvalidQueryException running the sample

I'm running Cassandra 2.2.3 (local node) on Windows and I get this error when I open the browser :

InvalidQueryException: Invalid null value in condition for column id

It seems that the session id is null in the prepareReadStatement.

In the toUuid() method, the incoming session is "j38mec85t44bdinzfzlh4ysr"
this method build "j38mec85-t44b-dinz-fzlh-4ysr"
and try to call UUID.fromString() with j38mec85
with NumberFormatException: For input string: "j38mec85"

So the toUuid() returns null and cause the exception.

Attributes are set to null even if correct value is provided.

I am using Apache shiro session in scala application. I am storing sessions in Cassandra with help of sample that you provided here. Everything worked fine for me but recently when I pushed new commits to production server, I observed that when I set some attribute using session.setAttribute(key, value) and then try to retrieve same attribute with session.getAttribute(key) I receive null value.

I have not changed anything related to session in my code. I am not sure how to debug or fix this? If I revert back to earlier build, everything still works fine.

NOTE: I am using scala 2.10.5, Java 7, Play 2.3.9 and Apache Shiro 1.2.2, Cassandra 2.1.14. These values are same for earlier build(which works correctly) as well. I tried upgrading to shiro 1.3.2 but issue still persists.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.