You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "John Rohrlich (JIRA)" <be...@incubator.apache.org> on 2005/05/09 23:45:25 UTC

[jira] Created: (BEEHIVE-630) NPE calling page flow action that calls JSF code

NPE calling page flow action that calls JSF code
------------------------------------------------

         Key: BEEHIVE-630
         URL: http://issues.apache.org/jira/browse/BEEHIVE-630
     Project: Beehive
        Type: Bug
  Components: NetUI  
    Versions: V1    
    Reporter: John Rohrlich


An NPE is generated (see stack trace below) when executing the following sequence of events

- Raise a page flow action directly from a JSF command
- Call JSF code from the action
- Navigate to the current page
(if you call a command handler in the page backing file and raise the page flow action from there you do not see the NPE)

A repro (which I ran against MyFaces both 1.0.7 or 1.0.9) is attached

- Edit the build to point to your beehive/ant directory.
- import runtime 
- build and deploy
- hit jsfNPECallingAction/pageFlow/Controller.jpf

- click on the search button
- then click on the link labeled "Last" (last name) in the results table to sort
- this action will generate the NPE

java.lang.NullPointerException
        at javax.faces.component.UIData.setRowIndex(UIData.java:172)
        at javax.faces.component.UIData.broadcast(UIData.java:587)
        at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:110)
        at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:184)
        at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:271)
        at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:102)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.beehive.netui.pageflow.PageFlowPageFilter.runPage(PageFlowPageFilter.java:279)
        at org.apache.beehive.netui.pageflow.PageFlowPageFilter.doFilter(PageFlowPageFilter.java:204)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
        at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
        at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (BEEHIVE-630) NPE calling page flow action that calls JSF code

Posted by "Julie Zhuo (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-630?page=all ]
     
Julie Zhuo closed BEEHIVE-630:
------------------------------


Verified at rev170022. No more exception, it sorts perfectly.

> NPE calling page flow action that calls JSF code
> ------------------------------------------------
>
>          Key: BEEHIVE-630
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-630
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: John Rohrlich
>     Assignee: Julie Zhuo
>      Fix For: V1
>  Attachments: jsfNPECallingPFActionDirectly.zip
>
> An NPE is generated (see stack trace below) when executing the following sequence of events
> - Raise a page flow action directly from a JSF command
> - Call JSF code from the action
> - Navigate to the current page
> (if you call a command handler in the page backing file and raise the page flow action from there you do not see the NPE)
> A repro (which I ran against MyFaces both 1.0.7 or 1.0.9) is attached
> - Edit the build to point to your beehive/ant directory.
> - import runtime 
> - build and deploy
> - hit jsfNPECallingAction/pageFlow/Controller.jpf
> - click on the search button
> - then click on the link labeled "Last" (last name) in the results table to sort
> - this action will generate the NPE
> java.lang.NullPointerException
>         at javax.faces.component.UIData.setRowIndex(UIData.java:172)
>         at javax.faces.component.UIData.broadcast(UIData.java:587)
>         at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:110)
>         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:184)
>         at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:271)
>         at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:102)
>         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>         at org.apache.beehive.netui.pageflow.PageFlowPageFilter.runPage(PageFlowPageFilter.java:279)
>         at org.apache.beehive.netui.pageflow.PageFlowPageFilter.doFilter(PageFlowPageFilter.java:204)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
>         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
>         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
>         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>         at java.lang.Thread.run(Thread.java:595)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (BEEHIVE-630) NPE calling page flow action that calls JSF code

Posted by "Alejandro Ramirez (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-630?page=all ]

Alejandro Ramirez reassigned BEEHIVE-630:
-----------------------------------------

    Assign To: Julie Zhuo  (was: Alejandro Ramirez)

Please verify.

> NPE calling page flow action that calls JSF code
> ------------------------------------------------
>
>          Key: BEEHIVE-630
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-630
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: John Rohrlich
>     Assignee: Julie Zhuo
>      Fix For: V1
>  Attachments: jsfNPECallingPFActionDirectly.zip
>
> An NPE is generated (see stack trace below) when executing the following sequence of events
> - Raise a page flow action directly from a JSF command
> - Call JSF code from the action
> - Navigate to the current page
> (if you call a command handler in the page backing file and raise the page flow action from there you do not see the NPE)
> A repro (which I ran against MyFaces both 1.0.7 or 1.0.9) is attached
> - Edit the build to point to your beehive/ant directory.
> - import runtime 
> - build and deploy
> - hit jsfNPECallingAction/pageFlow/Controller.jpf
> - click on the search button
> - then click on the link labeled "Last" (last name) in the results table to sort
> - this action will generate the NPE
> java.lang.NullPointerException
>         at javax.faces.component.UIData.setRowIndex(UIData.java:172)
>         at javax.faces.component.UIData.broadcast(UIData.java:587)
>         at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:110)
>         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:184)
>         at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:271)
>         at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:102)
>         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>         at org.apache.beehive.netui.pageflow.PageFlowPageFilter.runPage(PageFlowPageFilter.java:279)
>         at org.apache.beehive.netui.pageflow.PageFlowPageFilter.doFilter(PageFlowPageFilter.java:204)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
>         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
>         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
>         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>         at java.lang.Thread.run(Thread.java:595)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (BEEHIVE-630) NPE calling page flow action that calls JSF code

Posted by "Rich Feit (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-630?page=all ]

Rich Feit updated BEEHIVE-630:
------------------------------

      Assign To: Rich Feit
    Fix Version: V1

Found the problem...

> NPE calling page flow action that calls JSF code
> ------------------------------------------------
>
>          Key: BEEHIVE-630
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-630
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: John Rohrlich
>     Assignee: Rich Feit
>      Fix For: V1
>  Attachments: jsfNPECallingPFActionDirectly.zip
>
> An NPE is generated (see stack trace below) when executing the following sequence of events
> - Raise a page flow action directly from a JSF command
> - Call JSF code from the action
> - Navigate to the current page
> (if you call a command handler in the page backing file and raise the page flow action from there you do not see the NPE)
> A repro (which I ran against MyFaces both 1.0.7 or 1.0.9) is attached
> - Edit the build to point to your beehive/ant directory.
> - import runtime 
> - build and deploy
> - hit jsfNPECallingAction/pageFlow/Controller.jpf
> - click on the search button
> - then click on the link labeled "Last" (last name) in the results table to sort
> - this action will generate the NPE
> java.lang.NullPointerException
>         at javax.faces.component.UIData.setRowIndex(UIData.java:172)
>         at javax.faces.component.UIData.broadcast(UIData.java:587)
>         at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:110)
>         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:184)
>         at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:271)
>         at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:102)
>         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>         at org.apache.beehive.netui.pageflow.PageFlowPageFilter.runPage(PageFlowPageFilter.java:279)
>         at org.apache.beehive.netui.pageflow.PageFlowPageFilter.doFilter(PageFlowPageFilter.java:204)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
>         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
>         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
>         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>         at java.lang.Thread.run(Thread.java:595)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (BEEHIVE-630) NPE calling page flow action that calls JSF code

Posted by "Rich Feit (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-630?page=all ]
     
Rich Feit resolved BEEHIVE-630:
-------------------------------

     Assign To: Alejandro Ramirez  (was: Rich Feit)
    Resolution: Fixed

OK, fixed with revision 169423.

> NPE calling page flow action that calls JSF code
> ------------------------------------------------
>
>          Key: BEEHIVE-630
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-630
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: John Rohrlich
>     Assignee: Alejandro Ramirez
>      Fix For: V1
>  Attachments: jsfNPECallingPFActionDirectly.zip
>
> An NPE is generated (see stack trace below) when executing the following sequence of events
> - Raise a page flow action directly from a JSF command
> - Call JSF code from the action
> - Navigate to the current page
> (if you call a command handler in the page backing file and raise the page flow action from there you do not see the NPE)
> A repro (which I ran against MyFaces both 1.0.7 or 1.0.9) is attached
> - Edit the build to point to your beehive/ant directory.
> - import runtime 
> - build and deploy
> - hit jsfNPECallingAction/pageFlow/Controller.jpf
> - click on the search button
> - then click on the link labeled "Last" (last name) in the results table to sort
> - this action will generate the NPE
> java.lang.NullPointerException
>         at javax.faces.component.UIData.setRowIndex(UIData.java:172)
>         at javax.faces.component.UIData.broadcast(UIData.java:587)
>         at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:110)
>         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:184)
>         at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:271)
>         at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:102)
>         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>         at org.apache.beehive.netui.pageflow.PageFlowPageFilter.runPage(PageFlowPageFilter.java:279)
>         at org.apache.beehive.netui.pageflow.PageFlowPageFilter.doFilter(PageFlowPageFilter.java:204)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
>         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
>         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
>         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>         at java.lang.Thread.run(Thread.java:595)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (BEEHIVE-630) NPE calling page flow action that calls JSF code

Posted by "John Rohrlich (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-630?page=all ]

John Rohrlich updated BEEHIVE-630:
----------------------------------

    Attachment: jsfNPECallingPFActionDirectly.zip

> NPE calling page flow action that calls JSF code
> ------------------------------------------------
>
>          Key: BEEHIVE-630
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-630
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: John Rohrlich
>  Attachments: jsfNPECallingPFActionDirectly.zip
>
> An NPE is generated (see stack trace below) when executing the following sequence of events
> - Raise a page flow action directly from a JSF command
> - Call JSF code from the action
> - Navigate to the current page
> (if you call a command handler in the page backing file and raise the page flow action from there you do not see the NPE)
> A repro (which I ran against MyFaces both 1.0.7 or 1.0.9) is attached
> - Edit the build to point to your beehive/ant directory.
> - import runtime 
> - build and deploy
> - hit jsfNPECallingAction/pageFlow/Controller.jpf
> - click on the search button
> - then click on the link labeled "Last" (last name) in the results table to sort
> - this action will generate the NPE
> java.lang.NullPointerException
>         at javax.faces.component.UIData.setRowIndex(UIData.java:172)
>         at javax.faces.component.UIData.broadcast(UIData.java:587)
>         at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:110)
>         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:184)
>         at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:271)
>         at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:102)
>         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>         at org.apache.beehive.netui.pageflow.PageFlowPageFilter.runPage(PageFlowPageFilter.java:279)
>         at org.apache.beehive.netui.pageflow.PageFlowPageFilter.doFilter(PageFlowPageFilter.java:204)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
>         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
>         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
>         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>         at java.lang.Thread.run(Thread.java:595)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira