5 Replies Latest reply on Apr 14, 2008 12:23 PM by cdollar393

    progressBar not working in 3.2.1-SNAPSHOT

    cdollar393

      I took the progress bar directly from the RF demo and put it in my project. The progress bar gets rendered one time after I click the start button, but after 2 seconds when it polls I get an error. This is the a4j:log output

      debug[11:08:52,908]: Have Event [object Object] with properties: target: http://localhost:8080/PermitManagerWeb/content/manager.jsf#, srcElement: undefined, type: click
      debug[11:08:52,908]: NEW AJAX REQUEST !!! with form :navPanelForm
      debug[11:08:52,909]: Append hidden control navPanelForm:j_id33 with value [navPanelForm:j_id144] and value attribute [navPanelForm:j_id144]
      debug[11:08:52,911]: Append hidden control navPanelForm with value [navPanelForm] and value attribute [navPanelForm]
      debug[11:08:52,912]: Append hidden control autoScroll with value [] and value attribute []
      debug[11:08:52,912]: Append hidden control javax.faces.ViewState with value [j_id2] and value attribute [j_id2]
      debug[11:08:52,913]: parameter navPanelForm:j_id161 with value navPanelForm:j_id161
      debug[11:08:52,914]: Start XmlHttpRequest
      debug[11:08:52,915]: Reqest state : 1
      debug[11:08:52,916]: QueryString: AJAXREQUEST=_viewRoot&navPanelForm%3Aj_id33=navPanelForm%3Aj_id144&navPanelForm=navPanelForm&autoScroll=&javax.faces.ViewState=j_id2&navPanelForm%3Aj_id161=navPanelForm%3Aj_id161&
      debug[11:08:52,917]: Reqest state : 1
      debug[11:08:53,470]: Reqest state : 2
      debug[11:08:53,472]: Reqest state : 3
      debug[11:08:53,473]: Reqest state : 4
      debug[11:08:53,474]: Reqest end with state 4
      debug[11:08:53,474]: Response with content-type: text/xml;charset=UTF-8
      debug[11:08:53,475]: Full response content: <?xml version="1.0"?> <html xmlns="http://www.w3.org/1999/xhtml"><head><title></title><link type="text/css" rel="stylesheet" href="/PermitManagerWeb/a4j_3_2_1-SNAPSHOTorg/richfaces/skin-ext-classes.xcss/DATB/eAETWfO1GAAEtQIp.jsf" class="component" /><script type="text/javascript" src="/PermitManagerWeb/a4j_3_2_1-SNAPSHOT/org/ajax4jsf/framework.pack.js.jsf"> </script><script type="text/javascript" src="/PermitManagerWeb/a4j_3_2_1-SNAPSHOT/org/richfaces/ui.pack.js.jsf"> </script></head><body><table id="contentContainer" width="100%"><tbody><tr><td><form id="j_id2037" name="j_id2037" method="post" action="/PermitManagerWeb/content/manager.jsf" enctype="application/x-www-form-urlencoded"><input type="hidden" name="j_id2037" value="j_id2037" /> <span id="j_id2037:progressPanel"><div style="null" id="j_id2037:j_id2038"><input id="j_id2037:j_id2818" name="j_id2037:j_id2818" onclick="A4J.AJAX.Submit('_viewRoot','j_id2037',event,{'parameters':{'j_id2037:j_id2818':'j_id2037:j_id2818'} ,'actionUrl':'/PermitManagerWeb/content/manager.jsf'} );return false;" value="Start Process" style="margin: 9px 0px 5px;" type="button" /><span style="display: none;"><script type="text/javascript">//<![CDATA[ new ProgressBar('j_id2037:j_id2038','_viewRoot','j_id2037','ajax',-1.0,100.0,null,[new T('-1 %') ],{'pollId':'j_id2037:j_id2038','parameters':{'j_id2037:j_id2038':'j_id2037:j_id2038','ajaxSingle':'j_id2037:j_id2038','percent':'percent'} ,'actionUrl':'/PermitManagerWeb/content/manager.jsf','pollinterval':2000} ,null,'initialState',-1) ; A4J.AJAX.StopPoll('j_id2037:j_id2038'); ; //]]> </script></span></div></span><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id2" /></form></td></tr></tbody></table><table id="pageFooterForm:j_id2592" cellpadding="0" cellspacing="0" class="rich-messages" style="display: none; null"><tbody><tr><td><span class="rich-messages-marker"><img src="/PermitManagerWeb/images/appImages/16x16/rule.png" alt="" /></span><span class="rich-messages-label"></span></td></tr></tbody></table><meta name="Ajax-Update-Ids" content="contentContainer,pageFooterForm:j_id2592" /><span id="ajax-view-state"><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id2" /></span><meta id="Ajax-Response" name="Ajax-Response" content="true" /></body></html>
      debug[11:08:53,476]: Header Ajax-Expired not found, search in <meta>
      debug[11:08:53,477]: search for elements by name 'meta' in element #document
      debug[11:08:53,477]: getElementsByTagName found 2
      debug[11:08:53,478]: Find <meta name='Ajax-Update-Ids' content='contentContainer,pageFooterForm:j_id2592'>
      debug[11:08:53,479]: Find <meta name='Ajax-Response' content='true'>
      debug[11:08:53,479]: Header Ajax-Update-Ids not found, search in <meta>
      debug[11:08:53,480]: search for elements by name 'meta' in element #document
      debug[11:08:53,481]: getElementsByTagName found 2
      debug[11:08:53,481]: Find <meta name='Ajax-Update-Ids' content='contentContainer,pageFooterForm:j_id2592'>
      debug[11:08:53,482]: Update page by list of rendered areas from response contentContainer,pageFooterForm:j_id2592
      debug[11:08:53,483]: search for elements by name 'script' in element #document
      debug[11:08:53,484]: getElementsByTagName found 3
      debug[11:08:53,485]: <script> in response with src=/PermitManagerWeb/a4j_3_2_1-SNAPSHOT/org/ajax4jsf/framework.pack.js.jsf
      debug[11:08:53,486]: Such element exist in document
      debug[11:08:53,486]: <script> in response with src=/PermitManagerWeb/a4j_3_2_1-SNAPSHOT/org/richfaces/ui.pack.js.jsf
      debug[11:08:53,487]: Such element exist in document
      debug[11:08:53,488]: search for elements by name 'link' in element #document
      debug[11:08:53,489]: getElementsByTagName found 1
      debug[11:08:53,490]: <link> in response with src=/PermitManagerWeb/a4j_3_2_1-SNAPSHOTorg/richfaces/skin-ext-classes.xcss/DATB/eAETWfO1GAAEtQIp.jsf
      debug[11:08:53,491]: Such element exist in document
      debug[11:08:53,491]: Attempt to update part of page for Id: contentContainer
      debug[11:08:53,492]: call getElementById for id= contentContainer
      debug[11:08:53,513]: Replace content of node by replaceChild()
      debug[11:08:53,514]: search for elements by name 'script' in element table
      debug[11:08:53,515]: getElementsByTagName found 1
      debug[11:08:53,516]: Scripts in updated part count : 1
      debug[11:08:53,516]: Update part of page for Id: contentContainer successful
      debug[11:08:53,517]: Attempt to update part of page for Id: pageFooterForm:j_id2592
      debug[11:08:53,518]: call getElementById for id= pageFooterForm:j_id2592
      debug[11:08:53,520]: Replace content of node by replaceChild()
      debug[11:08:53,521]: search for elements by name 'script' in element table
      debug[11:08:53,522]: getElementsByTagName found 0
      debug[11:08:53,522]: Scripts in updated part count : 0
      debug[11:08:53,523]: call getElementById for id= org.ajax4jsf.oncomplete
      debug[11:08:53,524]: Update part of page for Id: pageFooterForm:j_id2592 successful
      debug[11:08:53,525]: call getElementById for id= ajax-view-state
      debug[11:08:53,525]: Hidden JSF state fields: [object HTMLSpanElement]
      debug[11:08:53,526]: Namespace for hidden view-state input fields is undefined
      debug[11:08:53,527]: search for elements by name 'input' in element span
      debug[11:08:53,527]: getElementsByTagName found 1
      debug[11:08:53,528]: Replace value for inputs: 36 by new values: 1
      debug[11:08:53,529]: Input in response: javax.faces.ViewState
      debug[11:08:53,530]: Found same input on page with type: hidden
      debug[11:08:53,531]: Found same input on page with type: hidden
      debug[11:08:53,532]: Found same input on page with type: hidden
      debug[11:08:53,533]: Found same input on page with type: hidden
      debug[11:08:53,534]: Found same input on page with type: hidden
      debug[11:08:53,535]: Found same input on page with type: hidden
      debug[11:08:53,536]: Found same input on page with type: hidden
      debug[11:08:53,538]: Found same input on page with type: hidden
      debug[11:08:53,539]: search for elements by name 'INPUT' in element span
      debug[11:08:53,540]: getElementsByTagName found 0
      debug[11:08:53,540]: Replace value for inputs: 36 by new values: 0
      debug[11:08:53,541]: call getElementById for id= _A4J.AJAX.focus
      debug[11:08:53,542]: No focus information in response
      debug[11:08:53,579]: Evaluate script replaced area in document: // new ProgressBar('j_id2037:j_id2038','_viewRoot','j_id2037','ajax',-1.0,100.0,null,[new T('-1 %') ],{'pollId':'j_id2037:j_id2038','parameters':{'j_id2037:j_id2038':'j_id2037:j_id2038','ajaxSingle':'j_id2037:j_id2038','percent':'percent'} ,'actionUrl':'/PermitManagerWeb/content/manager.jsf','pollinterval':2000} ,null,'initialState',-1) ; A4J.AJAX.StopPoll('j_id2037:j_id2038'); ; //
      debug[11:08:56,110]: Have Event [object Object] with properties: target: [object HTMLInputElement], srcElement: undefined, type: click
      debug[11:08:56,111]: NEW AJAX REQUEST !!! with form :j_id2037
      debug[11:08:56,112]: Append hidden control j_id2037 with value [j_id2037] and value attribute [j_id2037]
      debug[11:08:56,113]: Append hidden control javax.faces.ViewState with value [j_id2] and value attribute [j_id2]
      debug[11:08:56,114]: parameter j_id2037:j_id2818 with value j_id2037:j_id2818
      debug[11:08:56,115]: Start XmlHttpRequest
      debug[11:08:56,116]: Reqest state : 1
      debug[11:08:56,117]: QueryString: AJAXREQUEST=_viewRoot&j_id2037=j_id2037&javax.faces.ViewState=j_id2&j_id2037%3Aj_id2818=j_id2037%3Aj_id2818&
      debug[11:08:56,118]: Reqest state : 1
      debug[11:08:56,354]: Reqest state : 2
      debug[11:08:56,356]: Reqest state : 3
      debug[11:08:56,357]: Reqest state : 4
      debug[11:08:56,357]: Reqest end with state 4
      debug[11:08:56,358]: Response with content-type: text/xml;charset=UTF-8
      debug[11:08:56,359]: Full response content: <?xml version="1.0"?> <html xmlns="http://www.w3.org/1999/xhtml"><head><title></title><link type="text/css" rel="stylesheet" href="/PermitManagerWeb/a4j_3_2_1-SNAPSHOTorg/richfaces/skin-ext-classes.xcss/DATB/eAETWfO1GAAEtQIp.jsf" class="component" /><script type="text/javascript" src="/PermitManagerWeb/a4j_3_2_1-SNAPSHOT/org/ajax4jsf/framework.pack.js.jsf"> </script><script type="text/javascript" src="/PermitManagerWeb/a4j_3_2_1-SNAPSHOT/org/richfaces/ui.pack.js.jsf"> </script></head><body><span id="j_id2037:progressPanel"><div class="rich-progress-bar-block rich-progress-bar-width rich-progress-bar-shell-dig" id="j_id2037:j_id2038" style="null"><div class="rich-progress-bar-width rich-progress-bar-remained rich-progress-bar-padding null" id="j_id2037:j_id2038:remain"></div><div class="rich-progress-bar-uploaded-dig" id="j_id2037:j_id2038:upload" style="width: 0%;"><div class="rich-progress-bar-height-dig rich-progress-bar-width rich-progress-bar-completed rich-progress-bar-padding null" id="j_id2037:j_id2038:complete"></div></div><span style="display: none;"><script type="text/javascript">//<![CDATA[ new ProgressBar('j_id2037:j_id2038','_viewRoot','j_id2037','ajax',-1.0,100.0,null,[new T('0 %') ],{'pollId':'j_id2037:j_id2038','parameters':{'j_id2037:j_id2038':'j_id2037:j_id2038','ajaxSingle':'j_id2037:j_id2038','percent':'percent'} ,'actionUrl':'/PermitManagerWeb/content/manager.jsf','pollinterval':2000} ,null,'progressState',0) ; $('j_id2037:j_id2038').component.renderLabel([new T('0 %') ],null); A4J.AJAX.Poll('_viewRoot','j_id2037',$('j_id2037:j_id2038').component.options); //]]> </script></span></div></span><table id="pageFooterForm:j_id2592" cellpadding="0" cellspacing="0" class="rich-messages" style="display: none; null"><tbody><tr><td><span class="rich-messages-marker"><img src="/PermitManagerWeb/images/appImages/16x16/rule.png" alt="" /></span><span class="rich-messages-label"></span></td></tr></tbody></table><meta name="Ajax-Update-Ids" content="j_id2037:progressPanel,pageFooterForm:j_id2592" /><span id="ajax-view-state"><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id2" /></span><meta id="Ajax-Response" name="Ajax-Response" content="true" /></body></html>
      debug[11:08:56,360]: Header Ajax-Expired not found, search in <meta>
      debug[11:08:56,360]: search for elements by name 'meta' in element #document
      debug[11:08:56,361]: getElementsByTagName found 2
      debug[11:08:56,362]: Find <meta name='Ajax-Update-Ids' content='j_id2037:progressPanel,pageFooterForm:j_id2592'>
      debug[11:08:56,363]: Find <meta name='Ajax-Response' content='true'>
      debug[11:08:56,363]: Header Ajax-Update-Ids not found, search in <meta>
      debug[11:08:56,364]: search for elements by name 'meta' in element #document
      debug[11:08:56,365]: getElementsByTagName found 2
      debug[11:08:56,365]: Find <meta name='Ajax-Update-Ids' content='j_id2037:progressPanel,pageFooterForm:j_id2592'>
      debug[11:08:56,366]: Update page by list of rendered areas from response j_id2037:progressPanel,pageFooterForm:j_id2592
      debug[11:08:56,367]: search for elements by name 'script' in element #document
      debug[11:08:56,368]: getElementsByTagName found 3
      debug[11:08:56,368]: <script> in response with src=/PermitManagerWeb/a4j_3_2_1-SNAPSHOT/org/ajax4jsf/framework.pack.js.jsf
      debug[11:08:56,369]: Such element exist in document
      debug[11:08:56,370]: <script> in response with src=/PermitManagerWeb/a4j_3_2_1-SNAPSHOT/org/richfaces/ui.pack.js.jsf
      debug[11:08:56,371]: Such element exist in document
      debug[11:08:56,371]: search for elements by name 'link' in element #document
      debug[11:08:56,372]: getElementsByTagName found 1
      debug[11:08:56,373]: <link> in response with src=/PermitManagerWeb/a4j_3_2_1-SNAPSHOTorg/richfaces/skin-ext-classes.xcss/DATB/eAETWfO1GAAEtQIp.jsf
      debug[11:08:56,374]: Such element exist in document
      debug[11:08:56,375]: Attempt to update part of page for Id: j_id2037:progressPanel
      debug[11:08:56,375]: call getElementById for id= j_id2037:progressPanel
      debug[11:08:56,377]: Replace content of node by replaceChild()
      debug[11:08:56,379]: search for elements by name 'script' in element span
      debug[11:08:56,380]: getElementsByTagName found 1
      debug[11:08:56,380]: Scripts in updated part count : 1
      debug[11:08:56,381]: Update part of page for Id: j_id2037:progressPanel successful
      debug[11:08:56,381]: Attempt to update part of page for Id: pageFooterForm:j_id2592
      debug[11:08:56,382]: call getElementById for id= pageFooterForm:j_id2592
      debug[11:08:56,384]: Replace content of node by replaceChild()
      debug[11:08:56,386]: search for elements by name 'script' in element table
      debug[11:08:56,386]: getElementsByTagName found 0
      debug[11:08:56,387]: Scripts in updated part count : 0
      debug[11:08:56,388]: call getElementById for id= org.ajax4jsf.oncomplete
      debug[11:08:56,389]: Update part of page for Id: pageFooterForm:j_id2592 successful
      debug[11:08:56,389]: call getElementById for id= ajax-view-state
      debug[11:08:56,390]: Hidden JSF state fields: [object HTMLSpanElement]
      debug[11:08:56,391]: Namespace for hidden view-state input fields is undefined
      debug[11:08:56,391]: search for elements by name 'input' in element span
      debug[11:08:56,392]: getElementsByTagName found 1
      debug[11:08:56,393]: Replace value for inputs: 35 by new values: 1
      debug[11:08:56,394]: Input in response: javax.faces.ViewState
      debug[11:08:56,395]: Found same input on page with type: hidden
      debug[11:08:56,396]: Found same input on page with type: hidden
      debug[11:08:56,397]: Found same input on page with type: hidden
      debug[11:08:56,398]: Found same input on page with type: hidden
      debug[11:08:56,399]: Found same input on page with type: hidden
      debug[11:08:56,400]: Found same input on page with type: hidden
      debug[11:08:56,401]: Found same input on page with type: hidden
      debug[11:08:56,403]: Found same input on page with type: hidden
      debug[11:08:56,404]: search for elements by name 'INPUT' in element span
      debug[11:08:56,404]: getElementsByTagName found 0
      debug[11:08:56,405]: Replace value for inputs: 35 by new values: 0
      debug[11:08:56,406]: call getElementById for id= _A4J.AJAX.focus
      debug[11:08:56,406]: No focus information in response
      debug[11:08:56,426]: Evaluate script replaced area in document: // new ProgressBar('j_id2037:j_id2038','_viewRoot','j_id2037','ajax',-1.0,100.0,null,[new T('0 %') ],{'pollId':'j_id2037:j_id2038','parameters':{'j_id2037:j_id2038':'j_id2037:j_id2038','ajaxSingle':'j_id2037:j_id2038','percent':'percent'} ,'actionUrl':'/PermitManagerWeb/content/manager.jsf','pollinterval':2000} ,null,'progressState',0) ; $('j_id2037:j_id2038').component.renderLabel([new T('0 %') ],null); A4J.AJAX.Poll('_viewRoot','j_id2037',$('j_id2037:j_id2038').component.options); //
      debug[11:08:58,953]: NEW AJAX REQUEST !!! with form :j_id2037
      debug[11:08:58,955]: Append hidden control j_id2037 with value [j_id2037] and value attribute [j_id2037]
      debug[11:08:58,955]: Append hidden control javax.faces.ViewState with value [j_id2] and value attribute [j_id2]
      debug[11:08:58,956]: parameter j_id2037:j_id2038 with value j_id2037:j_id2038
      debug[11:08:58,957]: parameter ajaxSingle with value j_id2037:j_id2038
      debug[11:08:58,957]: parameter percent with value percent
      debug[11:08:58,958]: Start XmlHttpRequest
      debug[11:08:58,959]: Reqest state : 1
      debug[11:08:58,960]: QueryString: AJAXREQUEST=_viewRoot&j_id2037=j_id2037&javax.faces.ViewState=j_id2&j_id2037%3Aj_id2038=j_id2037%3Aj_id2038&ajaxSingle=j_id2037%3Aj_id2038&percent=percent&
      debug[11:08:58,961]: Reqest state : 1
      debug[11:08:59,095]: Reqest state : 2
      debug[11:08:59,096]: Reqest state : 3
      debug[11:08:59,096]: Reqest state : 3
      debug[11:08:59,097]: Reqest state : 3
      debug[11:08:59,103]: Reqest state : 3
      debug[11:08:59,104]: Reqest state : 3
      debug[11:08:59,104]: Reqest state : 3
      debug[11:08:59,105]: Reqest state : 3
      debug[11:08:59,106]: Reqest state : 4
      debug[11:08:59,106]: Reqest end with state 4
      error[11:08:59,107]: Reqest error, status : 500 Internal Server Error
      debug[11:08:59,111]: No parsed XML document in response
      


      My environment is jboss 4.2.1, facelets, and RF 3.2.1-SNAPSHOT built from svn version 7736. I am using this version instead of 3.2.0.GA because it contains some fixes to a4j:push which I need for my project.

      Any ideas? Thanks in advance!
      Chris

        • 1. Re: progressBar not working in 3.2.1-SNAPSHOT
          nbelaevski

          Chris,

          error[11:08:59,107]: Reqest error, status : 500 Internal Server Error


          there should be smth. in the server log. Could you check please?

          • 2. Re: progressBar not working in 3.2.1-SNAPSHOT
            cdollar393

            Hi Nick,

            Thanks for the reply. What I posted is the entire output from the first page with a4j/richfaces output till I receive the error... I'm not sure what you want me to check for?

            I do have a bit more info as to the problem. If I put the progressbar directly into my facelets template it works fine. My application is setup so that it uses ajax4jsf 100% of the time and doesn't use regular JSF navigation rules. I have one main facelet template xhtml page, and that uses a page called manager.xhtml. Inside manager.xhtml the page navigation is done by looking at a session scoped managed bean called 'page'. Based off of the values in the page bean manager.xhtml will include the appropriate facelets pages. Here is a snippit from that page:

            <ui:composition template="/templates/appFrame.xhtml">
            
             <!-- Set our page title -->
             <ui:define name="pageTitle">
             <h:outputText value="#{msgs['common.Title']}" />
             </ui:define>
            
             <ui:define name="content">
             <!-- I CAN INSERT THE PROGRESS BAR CODE HERE AND IT WILL WORK -->
             <h:panelGrid columns="1" width="100%" id="contentContainer">
            
             <h:panelGroup rendered="#{page.page == 'welcome'}">
             <ui:include src="welcome.xhtml"/>
             </h:panelGroup>
            
             <h:panelGroup rendered="#{page.page == 'client'}">
             <h:panelGroup rendered="#{page.component == 'setup'}">
             <ui:include src="client/client.xhtml"/>
             </h:panelGroup>
            
             <h:panelGroup rendered="#{page.component == 'webSetup'}">
             <ui:include src="client/webSetup.xhtml"/>
             </h:panelGroup>
             </h:panelGroup>
            ...
            


            As you can see, the ui:includes are conditional based off of the value in the page bean. If I put the progress bar in the facelets template itself, or above in the code where I put the comment, it works fine. If I have the progress bar inside of the ui:include pages, such as welcome.xhtml, I receive the error. It appears that the problem has to due with facelets and using conditional includes as I am doing. I'm not sure why this is, since to the best of my knowledge the rich:progress bar component is really just doing an a4j:poll, and I can use a4j:poll on those included pages without any problems.

            I hope this makes sense. Thanks for the help!

            Chris

            • 3. Re: progressBar not working in 3.2.1-SNAPSHOT
              nbelaevski

              Chris,

              I've looked over the log, all seems to be ok; the only thing I suspect is that already mentioned 500th server error. I guess it can be application-level error. Do you see any error messages in server log (on the server console, in log file)?

              • 4. Re: progressBar not working in 3.2.1-SNAPSHOT
                cdollar393

                Hi Nick,

                Thanks for the help with this. Below is the stacktrace from the jboss server log. I can't see anything in it that deals with the 500 server error that I see in the a4j:log. The error in the stacktrace is because when the rich:progressBar gets its error for some reason all of the ui:include pages (/content/permit/permitPermits.xhtml is one of those pages) that I have in manager.xhtml get included all at once, and the error with 'availableGroups' is because that bean has not been initialized at that point.

                I believe the problem has to due with facelets ui:include inside the h:panelGroup, as I pointed out in my last post, but I could be wrong about this

                2008-04-12 07:48:58,713 WARN [javax.enterprise.resource.webcontainer.jsf.lifecycle] javax.el.ELException: /content/permit/permitPermits.xhtml @247,98 value="#{permitManager.availableGroups}": Error reading 'availableGroups' on type com.mypkg.PermitManager.web.beans.PermitManagerControllerBean
                javax.faces.FacesException: javax.el.ELException: /content/permit/permitPermits.xhtml @247,98 value="#{permitManager.availableGroups}": Error reading 'availableGroups' on type com.mypkg.PermitManager.web.beans.PermitManagerControllerBean
                 at javax.faces.component.UIData.getValue(UIData.java:585)
                 at javax.faces.component.UIData.getDataModel(UIData.java:1063)
                 at javax.faces.component.UIData.setRowIndex(UIData.java:417)
                 at javax.faces.component.UIData.invokeOnComponent(UIData.java:796)
                 at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
                 at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
                 at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
                 at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
                 at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
                 at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
                 at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
                 at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
                 at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
                 at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
                 at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
                 at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
                 at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
                 at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
                 at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
                 at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
                 at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
                 at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
                 at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
                 at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
                 at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
                 at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
                 at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
                 at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
                 at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:238)
                 at org.ajax4jsf.component.AjaxViewRoot.processDecodes(AjaxViewRoot.java:405)
                 at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:101)
                 at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
                 at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:147)
                 at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:256)
                 at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:362)
                 at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:488)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at com.mypkg.PermitManager.web.filters.ExceptionWriterFilter.doFilter(ExceptionWriterFilter.java:30)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at com.mypkg.PermitManager.web.filters.UploadFilter.doFilter(UploadFilter.java:138)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                 at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
                 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
                 at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
                 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
                 at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
                 at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:853)
                 at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
                 at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1513)
                 at java.lang.Thread.run(Thread.java:595)
                Caused by: javax.el.ELException: /content/permit/permitPermits.xhtml @247,98 value="#{permitManager.availableGroups}": Error reading 'availableGroups' on type com.mypkg.PermitManager.web.beans.PermitManagerControllerBean
                 at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:76)
                 at javax.faces.component.UIData.getValue(UIData.java:582)
                 ... 64 more
                Caused by: javax.ejb.EJBException: java.lang.NullPointerException
                 at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:63)
                 at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
                 at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.aspects.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:166)
                 at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:108)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
                 at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:106)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:214)
                 at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:184)
                 at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:81)
                 at $Proxy550.getAttributeGroups(Unknown Source)
                 at com.mypkg.PermitManager.web.beans.PermitManagerControllerBean.getAvailableGroups(PermitManagerControllerBean.java:139)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at javax.el.BeanELResolver.getValue(BeanELResolver.java:62)
                 at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
                 at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
                 at org.apache.el.parser.AstValue.getValue(AstValue.java:97)
                 at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
                 at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
                 ... 65 more
                Caused by: java.lang.NullPointerException
                 at com.mypkg.PermitManager.ejb3.PermitManagerBean.getAttributeGroups(PermitManagerBean.java:456)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
                 at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
                 at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
                 ... 96 more
                2008-04-12 07:48:58,717 WARN [javax.enterprise.resource.webcontainer.jsf.lifecycle] executePhase(APPLY_REQUEST_VALUES 2,com.sun.faces.context.FacesContextImpl@2652118c) threw exception
                javax.faces.FacesException: javax.el.ELException: /content/permit/permitPermits.xhtml @247,98 value="#{permitManager.availableGroups}": Error reading 'availableGroups' on type com.mypkg.PermitManager.web.beans.PermitManagerControllerBean
                 at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:109)
                 at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
                 at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:147)
                 at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:256)
                 at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:362)
                 at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:488)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at com.mypkg.PermitManager.web.filters.ExceptionWriterFilter.doFilter(ExceptionWriterFilter.java:30)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at com.mypkg.PermitManager.web.filters.UploadFilter.doFilter(UploadFilter.java:138)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                 at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
                 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
                 at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
                 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
                 at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
                 at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:853)
                 at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
                 at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1513)
                 at java.lang.Thread.run(Thread.java:595)
                Caused by: javax.faces.FacesException: javax.el.ELException: /content/permit/permitPermits.xhtml @247,98 value="#{permitManager.availableGroups}": Error reading 'availableGroups' on type com.mypkg.PermitManager.web.beans.PermitManagerControllerBean
                 at javax.faces.component.UIData.getValue(UIData.java:585)
                 at javax.faces.component.UIData.getDataModel(UIData.java:1063)
                 at javax.faces.component.UIData.setRowIndex(UIData.java:417)
                 at javax.faces.component.UIData.invokeOnComponent(UIData.java:796)
                 at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
                 at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
                 at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
                 at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
                 at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
                 at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
                 at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
                 at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
                 at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
                 at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
                 at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
                 at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
                 at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
                 at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
                 at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
                 at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
                 at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
                 at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
                 at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
                 at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
                 at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
                 at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
                 at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
                 at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
                 at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:238)
                 at org.ajax4jsf.component.AjaxViewRoot.processDecodes(AjaxViewRoot.java:405)
                 at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:101)
                 ... 34 more
                Caused by: javax.el.ELException: /content/permit/permitPermits.xhtml @247,98 value="#{permitManager.availableGroups}": Error reading 'availableGroups' on type com.mypkg.PermitManager.web.beans.PermitManagerControllerBean
                 at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:76)
                 at javax.faces.component.UIData.getValue(UIData.java:582)
                 ... 64 more
                Caused by: javax.ejb.EJBException: java.lang.NullPointerException
                 at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:63)
                 at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
                 at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.aspects.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:166)
                 at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:108)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
                 at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:106)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:214)
                 at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:184)
                 at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:81)
                 at $Proxy550.getAttributeGroups(Unknown Source)
                 at com.mypkg.PermitManager.web.beans.PermitManagerControllerBean.getAvailableGroups(PermitManagerControllerBean.java:139)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at javax.el.BeanELResolver.getValue(BeanELResolver.java:62)
                 at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
                 at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
                 at org.apache.el.parser.AstValue.getValue(AstValue.java:97)
                 at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
                 at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
                 ... 65 more
                Caused by: java.lang.NullPointerException
                 at com.mypkg.PermitManager.ejb3.PermitManagerBean.getAttributeGroups(PermitManagerBean.java:456)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
                 at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
                 at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
                 ... 96 more
                2008-04-12 07:48:58,720 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/PermitManagerWeb].[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
                java.lang.NullPointerException
                 at com.mypkg.PermitManager.ejb3.PermitManagerBean.getAttributeGroups(PermitManagerBean.java:456)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
                 at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
                 at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
                 at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.aspects.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:166)
                 at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:108)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
                 at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:106)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:214)
                 at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:184)
                 at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:81)
                 at $Proxy550.getAttributeGroups(Unknown Source)
                 at com.mypkg.PermitManager.web.beans.PermitManagerControllerBean.getAvailableGroups(PermitManagerControllerBean.java:139)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:585)
                 at javax.el.BeanELResolver.getValue(BeanELResolver.java:62)
                 at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
                 at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
                 at org.apache.el.parser.AstValue.getValue(AstValue.java:97)
                 at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
                 at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
                 at javax.faces.component.UIData.getValue(UIData.java:582)
                 at javax.faces.component.UIData.getDataModel(UIData.java:1063)
                 at javax.faces.component.UIData.setRowIndex(UIData.java:417)
                 at javax.faces.component.UIData.invokeOnComponent(UIData.java:796)
                 at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
                 at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
                 at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
                 at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
                 at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
                 at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
                 at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
                 at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
                 at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
                 at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
                 at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
                 at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
                 at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
                 at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
                 at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
                 at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
                 at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
                 at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
                 at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
                 at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
                 at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
                 at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
                 at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
                 at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
                 at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:238)
                 at org.ajax4jsf.component.AjaxViewRoot.processDecodes(AjaxViewRoot.java:405)
                 at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:101)
                 at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
                 at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:147)
                 at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:256)
                 at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:362)
                 at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:488)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at com.mypkg.PermitManager.web.filters.ExceptionWriterFilter.doFilter(ExceptionWriterFilter.java:30)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at com.mypkg.PermitManager.web.filters.UploadFilter.doFilter(UploadFilter.java:138)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                 at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
                 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
                 at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
                 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
                 at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
                 at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:853)
                 at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
                 at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1513)
                 at java.lang.Thread.run(Thread.java:595)
                


                Thanks again for you help with this!

                Chris

                • 5. Re: progressBar not working in 3.2.1-SNAPSHOT
                  cdollar393

                  Hi again Nick,

                  I was wrong -- the issue was indeed with my managed bean getting the NullPointerException listed in the stacktrace above. I'm still not sure why that bean was being evaluated since it is not included in anything rendered on the page, but once I changed it to return null instead of allowing it to reach the NPE everything worked like a charm.

                  Thanks for all your help with this.

                  Chris