I have an Apache wicket application where I have configured Apache Shiro 2.1 with JDBC realm.
After the application logs in, on the home page i access the the username from the Shiro API
with this

SecurityUtils.getSubject().getPrincipal().toString();

this gives an null pointer exception in Apache 8 RC5. Also it seems the application bypasses the apache shiro servlet all together and directly goes to the Homepage, whereas it should go to the login page.

The same works fine in Apache 7.x.

I have tried various configuration options in Shiro INI to fix this , but none of them worked.