It crashes exactly here:
return (Page)constructor.newInstance(new Object[] {});
I can´t imagine why this happens?
I´m using Wicket 1.3.4. Any suggestions whats wrong?
If I use HomePage.class instead of the getApplication().getHomepage() it
still wont work.
If I don´t use the pageParameters (removed them) it works
If I DELETE my PageParameters-Constructor it works (because of the
constructor not finding anything and using the default one, I assume)
If I do setResponsePage(new HomePage((PageParameters) null)); it works,
too. Why the hell not in this SignInPanel-called constructor?
Please help me out, I can´t imagine anything else to do fixing it.
Regards
Markus
From: Markus [mailto:[EMAIL PROTECTED]
Sent: Donnerstag, 14. August 2008 11:59
To: '[email protected]'
Subject: RE: Authentication-Example: Runtime Exception
Solved the Problem.... no, better saw the Problem...
The default-redirection is not-so-good, because of this I cannot have an
constructor with (PageParameters xy) in the HomePage.class (result of
getHomepage() ).
Can anyone confirm or deny this behavior? That would be bad and I would have
to reimplement the SignInPanel :/
Or anyone a Solution for that?
Greetz
Markus
From: Markus [mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Donnerstag, 14. August 2008 10:55
To: '[email protected]'
Subject: Authentication-Example: Runtime Exception
Hi all,
As it seems the first email dind´t make it to the list
here again:
I implemented the wicket.authentication.example into my page.
Now when I log in with wrong credentials, the wrong credentials are
identified and all works (no login, redirect to loginpage), but if I enter
the right combination (still the default
wicket:wicket-combo I get this Runtime Exception:
What does that mean?
Unexpected RuntimeException
WicketMessage: Method onFormSubmitted of interface
org.apache.wicket.markup.html.form.IFormSubmitListener targeted at component
[MarkupContainer [Component id = signInForm, page =
com.getshoxed.security.LoginPage, path =
2:signInPanel:signInForm.SignInPanel$SignInForm, isVisible = true,
isVersioned = true]] threw an exception
Root cause:
java.lang.IllegalArgumentException: wrong number of arguments
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
sorImpl.java:39)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java
:149)
at
org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java
:88)
at
org.apache.wicket.authentication.panel.SignInPanel.onSignInSucceeded(SignInP
anel.java:235)
at
org.apache.wicket.authentication.panel.SignInPanel$SignInForm.onSubmit(SignI
nPanel.java:106)
at
org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1355)
at
org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:810)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.j
ava:183)
at
org.apache.wicket.request.target.component.listener.ListenerInterfaceRequest
Target.processEvents(ListenerInterfaceRequestTarget.java:73)
at
org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(Abstra
ctRequestCycleProcessor.java:91)
at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:117
1)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1248)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1349)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
at
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:387)
at
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:199)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler
.java:1111)
at
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterI
nternal(OpenSessionInViewFilter.java:198)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestF
ilter.java:76)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler
.java:1111)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:219)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:786)
at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:431)
at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerColl
ection.java:206)
at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:11
3)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:325)
at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:533)
at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:
870)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:657)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:391)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:421)
at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:497
)
Complete stack:
org.apache.wicket.WicketRuntimeException: Method onFormSubmitted of
interface org.apache.wicket.markup.html.form.IFormSubmitListener targeted at
component [MarkupContainer [Component id = signInForm, page =
com.getshoxed.security.LoginPage, path =
2:signInPanel:signInForm.SignInPanel$SignInForm, isVisible = true,
isVersioned = true]] threw an exception
at
org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.j
ava:194)
at
org.apache.wicket.request.target.component.listener.ListenerInterfaceRequest
Target.processEvents(ListenerInterfaceRequestTarget.java:73)
at
org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(Abstra
ctRequestCycleProcessor.java:91)
at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:117
1)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1248)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1349)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
at
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:387)
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.j
ava:183)
at
org.apache.wicket.request.target.component.listener.ListenerInterfaceRequest
Target.processEvents(ListenerInterfaceRequestTarget.java:73)
at
org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(Abstra
ctRequestCycleProcessor.java:91)
at
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:117
1)
at org.apache.wicket.RequestCycle.step(RequestCycle.java:1248)
at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1349)
at org.apache.wicket.RequestCycle.request(RequestCycle.java:493)
at
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:387)