Hi,
I've just toyed around with the auth classes of databinder 0.6 and needed to add my own user-class because apparently the derby database doesn't like "User" as a table name.
After I replaced the necessary classes and started the application the following stacktrace was thrown whenever I opened the app in a fresh browser. Is it possible that getCookies() from the WebRequest class returns null or am I doing something wrong?
java.lang.NullPointerException at net.databinder.DataRequestCycle.getCookies(DataRequestCycle.java:128) at net.databinder.DataRequestCycle.getCookie(DataRequestCycle.java:143) at net.databinder.auth.AuthDataSession.cookieSignIn(AuthDataSession.java:145) at net.databinder.auth.AuthDataSession.isSignedIn(AuthDataSession.java:75) at net.databinder.auth.AuthDataSession.getUser(AuthDataSession.java:61) at net.databinder.auth.AuthDataApplication.hasAnyRole(AuthDataApplication.java:97) at wicket.authorization.strategies.role.AbstractRoleAuthorizationStrategy.hasAny(AbstractRoleAuthorizationStrategy.java:63) at wicket.authorization.strategies.role.annotations.AnnotationsRoleAuthorizationStrategy.isInstantiationAuthorized(AnnotationsRoleAuthorizationStrategy.java:73) at wicket.authorization.strategies.CompoundAuthorizationStrategy.isInstantiationAuthorized(CompoundAuthorizationStrategy.java:61) at wicket.Application$1.onInstantiation(Application.java:243) at wicket.Application.notifyComponentInstantiationListeners(Application.java:777) at wicket.Component.<init>(Component.java:559) at wicket.MarkupContainer.<init>(MarkupContainer.java:115) at wicket.Page.<init>(Page.java:193) at wicket.markup.html.WebPage.<init>(WebPage.java:119) at net.databinder.components.DataPage.<init>(DataPage.java:41)
BTW - Great work you are doing with the whole databinder project, keep up the good work, thank you!
roland
