1 2 Previous Next 16 Replies Latest reply on Oct 18, 2013 1:03 PM by bleathem

    JS error in the Firebug...


      In my firebug, there is always an error in the console...


      TypeError: jQuery.atmosphere is undefined
      jQuery.atmosphere.abordingConnection = true;


      I added atmosphere as dependenceis, it is still there...I am using Richfaces 4.2.0.Final.

        • 1. Re: JS error in the Firebug...

          Hi Hantsy!


          That's the problem I have too. Check out this:



          I hope someone can help us soon!

          • 2. Re: JS error in the Firebug...

            Hi Ernesto,


            Do you include the following codes in your web.xml ?


            Richfaces 4.2 introduced it to Optimizate the resource files.


            When I changed the value to "false", the problem is missing. It is magic.






            BTW, it also fixed another problem I encountered,




            But introduced a new problem, maybe the resource loading is correct, but the Richfaces css style will be conflict with some of my Bootstrap css.

            • 3. Re: JS error in the Firebug...

              Hi Hantsy,


              You mean that I have to set the org.richfaces.resourceOptimization.enabled to false? Because I have included those lines of code in my web.xml setting the value to true.

              • 4. Re: JS error in the Firebug...

                Hi again,


                I did what you told me setting the value to false. But unfortunately that doesn't work for me. I need to create some tooltips programmatically. So when I set the value to true, the tooltip is created but having the issue with "jQuery.atmosphere is undefined" and if I set it to false, the "jQuery.atmosphere is undefined" issue disappears but the tooltip is not created, besides I get another issue teeling me that Richfaces.ui.Tooltip is not a constructor. = (

                • 5. Re: JS error in the Firebug...

                  Do you have the jquery.atmosphere.js in your javascript resources files?

                  • 6. Re: JS error in the Firebug...

                    No, this file shoule be included in Richfaces itself...Richfaces used atmosphere for push

                    • 7. Re: JS error in the Firebug...

                      I see. Well, I don't know what else to do to solve my issue. As I mentioned before, setting the value to false did not work. It can disappear that error, but the tooltips would not work.

                      • 8. Re: JS error in the Firebug...

                        It has been a while since you posted this issue.

                        Not sure if you ever solved it.

                        If you have not, let me know, and I'll update with our work around.

                        • 9. Re: JS error in the Firebug...

                          Why not just post the workaround. Please.

                          • 10. Re: JS error in the Firebug...

                            are you guys still getting this error with RichFaces 4.3.4.Final?

                            • 11. Re: JS error in the Firebug...

                              Thanks for responding Brian. Unfortunately we are a little behind. We are using 4.2.3. Is this issue fixed in the latest release?

                              • 12. Re: JS error in the Firebug...

                                I don't know if it's fixed, but I'm surprised to hear of the error - I'd expect the resources to be served correctly.  Can you try using a newer RichFaces version?  If you continue to get a failure, please post some simple-as-possible code I can use to reproduce locally.


                                Also please share details of your environments:

                                1) container (JBoss EAP, Wildfly, Tomcat, etc)

                                2) JSF implementation (Mojarra/MyFaces) and version

                                3) Any browser console errors, or messages in the server log

                                • 13. Re: JS error in the Firebug...

                                  Hello Brian


                                  The issue happens specifically after I turn on optimization using the following param in web.xml






                                  1. Uncaught TypeError: Cannot set property 'abordingConnection' of undefined packed.js:3193
                                  2. THis is the line where it happens:
                                  3. jQuery.atmosphere.abordingConnection=true; (jQuery.atmosphereis undefined)

                                  On further investigation I found that we were adding our own version of jquery in thee XHTML.

                                  <h:outputScript library="js" name="jquery-1.8.3.js" target="head"/>

                                  <h:outputScript library="js" name="jquery-ui-1.9.0.custom.min.js" target="head"/>

                                  If I remove "jquery-1.8.3.js" I  get this:

                                  1. Uncaught TypeError: Cannot read property 'length' of undefined jquery.js:149
                                    1. jQuery.extend.eachjquery.js:149
                                    2. e.widgetjquery-ui-1.9.0.custom.min.js?ln=js:6
                                    3. (anonymous function)jquery-ui-1.9.0.custom.min.js?ln=js:6
                                    4. (anonymous function)

                                  If I remove both:

                                  Uncaught TypeError: Object [object Object] has no method 'sortable'

                                  My Environment:

                                  JSF/ Mojaara

                                  Richfaces 4.2.3.


                                  I do not see any error message on the console but there is the following log statement:

                                  14, 2013 2:17:17 PM org.richfaces.cache.lru.LRUMapCacheFactory createCache

                                  : Creating LRUMap cache instance using parameters: {com.sun.faces.injectionProvider=com.bea.faces.WeblogicInjectionProvider, org.ajax4jsf.COMPRESS_SCRIPT=false, org.richfaces.L

                                  tyleStrategy=ALL, javax.faces.PARTIAL_STATE_SAVING=true, org.apache.myfaces.SERIALIZE_STATE_IN_SESSION=false, com.sun.faces.defaultResourceMaxAge=86400000, org.ajax4jsf.DEFAULT

                                  IRE=86400, javax.faces.PROJECT_STAGE=Production, org.apache.myfaces.RESOURCE_MAX_TIME_EXPIRES=3628800000, com.sun.faces.responseBufferSize=131070, org.ajax4jsf.xmlparser.ORDER=

                                  ,NEKO,TIDY, org.richfaces.LoadScriptStrategy=ALL, javax.faces.FACELETS_BUFFER_SIZE=65535, javax.faces.FACELETS_LIBRARIES=/WEB-INF/infor.taglib.xml, javax.faces.FACELETS_SKIP_CO

                                  TS=true, org.richfaces.resourceOptimization.enabled=true}




                                  • 14. Re: JS error in the Firebug...

                                    Update: I manually added the jquery atmosphere js library and it seems to be working. However I would love to know if there is a right way of doing it.


                                    Update: Ajax Push component doesn't work now! Uncaught TypeError: Object #<Object> has no method 'closeSuspendedConnection'

                                    1 2 Previous Next