[jboss-user] [JBoss Seam] - Re: NPE while trying to new a FacesRequest
laksu
do-not-reply at jboss.com
Mon Nov 26 13:16:36 EST 2007
I have set-up the debugging and it took me some time to figure out putting debugging, testng and netbeans together. I now start the testng session in command-line style (as opposed to testng ant task) and attach the netbeans debugger on to it.
Here is where I lose track:
BaseSeamTest.java:
|
| public String run() throws Exception
| {
| try
| {
| init();
| beforeRequest();
| setStandardJspVariables();
| seamFilter.doFilter(request, response, new FilterChain() { //(A)
| public void doFilter(ServletRequest request, ServletResponse response) throws IOException, ServletException
| {
| try
| {
| if ( emulateJsfLifecycle() )
| {
| saveConversationViewRoot();
| }
| }
| catch (Exception e)
| {
| onException(e);
| throw new ServletException(e);
| }
| }
| } );
| seamFilter.destroy();
| afterRequest();
| return conversationId;
| }
| finally
| { //(B)
| if (Contexts.isEventContextActive())
| {
| FacesLifecycle.endRequest(externalContext);
| }
| }
|
| }
At (A) request and response objects are not null. The breakpoints in doFilter method are never visited. When it tries to execute line (A)
it jumps directly to finally block at (B). What else would you like me to check?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107847#4107847
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107847
More information about the jboss-user
mailing list