NullPointerException at submitting Login Form twice

Hello,

Such a problem - I have an application with simple login form like this and user data in jazn-data.xml file:

<form method="post" action="j_security_check">

<input type="text" name="j_username"/>

<input type="password" name="j_password"/>

<h:commandButton value="#{bundle.BtnLogin}" onclick="document.form1.submit()"/>

</form>

Everithing works fine - when authenticated with correct user application forward to correct starting page and so on.

BUT these is only one problem - if I click on Login Form submit button twice (kind of being not patiant enough to wait for the form to submit properly, which happens sometimes with our beloved customers...) I'm getting an error:

500 Internal Server Error

java.lang.NullPointerException

at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)

at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)

at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:146)

at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)

at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)

at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)

at com.evermind[Oracle Application Server Containersfor J2EE 10g (10.1.2.0.2)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)

at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:310)

at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:183)

at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)

at com.evermind[Oracle Application Server Containersfor J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)

at com.evermind[Oracle Application Server Containersfor J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)

at com.evermind[Oracle Application Server Containersfor J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)

at com.evermind[Oracle Application Server Containersfor J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)

at com.evermind[Oracle Application Server Containersfor J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)

at com.evermind[Oracle Application Server Containersfor J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)

at java.lang.Thread.run(Thread.java:534)

So, the authorisation request is kind of interrupted and the application gives this error, but if I press browser's back button, I'm getting the correct starting page and can continue working with application as if the authorisation went successfuly...

And it seems, it doesn't matter what starting page contains (the page right after login page) - I tryed with very simple ones, almost no content - same problem...

Does anybody has any idea what might be the problem?

[3840 byte] By [Natalie@a] at [2007-10-2 16:50:53]
# 1
Use Shale token for not allowing double submissions.
pringia at 2007-7-13 18:02:31 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...