lhazlewood / shiro-cassandra-sample Goto Github PK
View Code? Open in Web Editor NEWSample Apache Shiro-enabled web app that uses Cassandra as a clustered session store
Sample Apache Shiro-enabled web app that uses Cassandra as a clustered session store
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.