1 2 Previous Next 29 Replies Latest reply: Jan 22, 2008 3:39 AM by 807574 Go to original post RSS
      • 15. Re: How to probe the gateway...
        807574
        Sorry, i see my error source.

        But i have another problem with jwchat :)

        I have lighttpd with proxy.server on port :81
        proxy.server = ( "/httpbind/" => ( ( "host" => "192.168.1.105", "port" => 80 ) ) )
        and my jwchat config.js
        httpbase:"http://hostname:81/httpbind/httpbind"
        And i get 404 error.
        • 16. Re: How to probe the gateway...
          807574
          Have you configured httpbind ?

          You can check for below configuration in iim.conf,

          ! httpbind component (HTTP/XMPP Gateway)
          ! ======================================
          iim_agent.httpbind.enable = "true"
          httpbind.jid = "httpbind.hostname"
          httpbind.password = "changeit"

          Eg : If your hostname is test.india.sun.com then
          httpbind.jid = "httpbind.test.india.sun.com"

          Also check the below parameters in httpbind.conf,

          httpbind.config=default
          default.domains=domainname
          default.hosts=test.india.sun.com:5222
          default.componentjid=httpbind.test.india.sun.com
          default.password=changeit

          Eg : Say if your domainname=india.sun.com then default.domains=india.sun.com

          After these changes you need to stop and start the webcontainer.
          Then launch the client and login as i said before.Ensure that the container is running while you login.

          Regards,
          Swetha
          • 17. Re: How to probe the gateway...
            807574
            Is your httpbind configured for port 80 or 81,if it is 80 then your

            httpbase:"http://hostname:80/httpbind/httpbind"

            Also try accessing it through different browser since jwchat is very much browser specific.

            Regards,
            Swetha
            • 18. Re: How to probe the gateway...
              807574
              Hi!

              I was solved the problem! Very well! :)

              I configured the httpbind, but i dont know how working it.

              The 404 error is my jwchat html files rename error:)

              Thank you!

              Zoltan
              • 19. Re: How to probe the gateway...
                807574
                Hi !

                I have a big problem

                Used softwares: SUNWwebsrv7, IM with httpbind

                log details :
                ...
                xmppd [main] [XMPPComponent:httpbind.chat.solaris.intra] loaded component httpbind
                ...

                But i have not httpbind.log. I can't debug it what is wrong ?

                I used JWchat it is POST xml code --> http://chat.solaris.intra/httpbind/ , No error in the logs. I receive data /pure data what i see the /httpbind/ directory.

                What is wrong ? The httpbind why not log me ?

                iim.conf :
                ~~~~~~~
                ....
                ! Server to server communication port.
                iim_server.port = "5222"
                ....
                ! IP address and listening port for the multiplexor.
                iim_mux.listenport = "5269"

                ! The XMPP server host and port the multiplexor talks to.
                iim_mux.serverport = "45222"
                ....
                ! known components/agent. Add yours as needed
                iim_server.components = "httpbind"
                iim_agent.enable = "true"
                ...
                ! httpbind component (HTTP/XMPP Gateway)
                ! ======================================
                iim_agent.httpbind.enable = "true"
                httpbind.jid = "httpbind.chat.solaris.intra"
                httpbind.password = "bigsecret"
                ...

                httpbind.conf:
                ~~~~~~~~~~
                httpbind.hold=5
                httpbind.requests=2
                httpbind.inactivity=180
                httpbind.polling=1
                httpbind.content_type=text/xml; charset=utf-8
                httpbind.round_trip_delay=1
                httpbind.wait_time=120
                httpbind.pool.support=true


                httpbind.config=default
                default.domains=solaris.intra
                default.hosts=chat.solaris.intra:5269
                default.componentjid=httpbind.chat.solaris.intra
                default.password=bigsecret
                httpbind.log4j.config=/etc/opt/SUNWiim/default/config/httpbind_log4j.conf


                jwchat config detail:
                ¬¬¬¬¬¬¬¬¬¬¬¬¬¬
                httpbase: 'http://chat.solaris.intra/httpbind/',
                domain: 'chat.solaris.intra',
                • 20. Re: How to probe the gateway...
                  808160
                  Hi,
                  You need to restart the webcontainer for httpbind logs to get generated.Any change to httpbind.conf requires IM server and webcontainer restart.
                  You can enable httpbind debug logs by changing the following parameter "log4j.logger.httpbind=ERROR" to "log4j.logger.httpbind=DEBUG" in /etc/opt/SUNWiim/default/config/httpbind_log4j.conf.
                  The httpbase which you have specified in jwchat config is wrong ,the correct one is
                  httpbase: 'http://chat.solaris.intra/httpbind/httpbind'
                  Also note that domain value in jwchat config,httpbind.conf and iim.conf should be the same.

                  HTH,
                  Swetha
                  • 21. Re: How to probe the gateway...
                    807574
                    Ok i changed what you say.

                    The webcontainer log :

                    trying to POST /httpbind/httpbind, service-j2ee reports: StandardWrapperValve[httpbind]: PWC1382: Allocate exception for servlet httpbind
                    ..
                    • 22. Re: How to probe the gateway...
                      808160
                      What does httpbind.log say ? Are there any errors or exceptions

                      Regards,
                      Swetha
                      • 23. Re: How to probe the gateway...
                        807574
                        the httpbind works , but no httpbind.log ?
                        i dont know why ?

                        httpbind.conf
                        ~~~~~~~~~~
                        httpbind.config=default
                        default.domains=chat.solaris.intra
                        default.hosts=chat.solaris.intra:5269
                        default.componentjid=httpbind.chat.solaris.intra
                        default.password=bigsecret
                        httpbind.log4j.config=/etc/opt/SUNWiim/default/config/httpbind_log4j.conf


                        httpbind_log4j.conf
                        ~~~~~~~~~~~~~~
                        #Turn off unwanted loging
                        log4j.rootLogger=ON
                        log4j.logger.gateway=ERROR, A7
                        log4j.logger.httpbind=DEBUG, A7
                        log4j.appender.A7=org.apache.log4j.RollingFileAppender
                        # Modify this for custom logging paths.
                        # Take care especially while creating multiple instances.
                        log4j.appender.A7.file=/var/opt/SUNWiim/default/log/httpbind.log
                        log4j.appender.A7.append=true
                        log4j.appender.A7.maxBackupIndex=7
                        log4j.appender.A7.maxFileSize=5mb
                        log4j.appender.A7.layout=org.apache.log4j.PatternLayout
                        log4j.appender.A7.layout.ConversionPattern=[%d{DATE}] %-5p %c [%t] %m%n
                        • 24. Re: How to probe the gateway...
                          808160
                          Hi,
                          There is a problem with your httpbind_log4j.conf file,remove the following line "log4j.logger.gateway=ERROR, A7" from httpbind_log4j.conf,there is no such parameter.
                          Once this change is done restart both the web-container and IM server,httpbind logs should now be generated.

                          HTH,
                          Swetha
                          • 25. Re: How to probe the gateway...
                            807574
                            Hi !

                            We use SUNWwbsvr7 and Instant Messaging.
                            All works good we used only httpbind session for a webchat.

                            When we start the strong test

                            SUNWwbsvr7 errors.log
                            ~~~~~~~~~~~~~~~~~
                            [27/Jul/2009:09:34:04] failure ( 31): for host 88.87.237.98 trying to POST /httpbind/httpbind, service-j2ee reports: StandardWrapperValve[httpbind]: PWC1406: Servlet.service() for servlet httpbind threw exception
                            java.lang.NullPointerException
                            at som.sun.im.gateway.http.HTTPBindSession.processClientPacket(HTTPBindSession.java:583)
                            at com.sun.im.gateway.http.SimpleAuthHandler.handleRequest(SimpleAuthHandler.java:25)
                            at com.sun.im.gateway.http.HTTPBindSession.processInputRequest(HTTPBindSession.java:524)
                            at com.sun.im.gateway.http.HTTPBindSession.handleAuth(HTTPBindSession.java:711)
                            at com.sun.im.gateway.http.HTTPBindSession.processRequest(HTTPBindSession.java:398)
                            at com.sun.im.gateway.http.HTTPBindSession.process(HTTPBindSession.java:317)
                            at com.sun.im.gateway.http.servlet.ConnectionManagerServlet.processRequest(ConnectionManagerServlet.java:165)
                            at com.sun.im.gateway.http.servlet.ConnectionManagerServlet.doPost(ConnectionManagerServlet.java:310)
                            at javax.servlet.http.HttpServlet.service(HttpServlet.java:816)
                            at javax.servlet.http.HttpServlet.service(HttpServlet.java:917)
                            at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398)
                            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277)
                            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:255)
                            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
                            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
                            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
                            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
                            at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
                            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
                            at com.sun.webserver.connector.nsapi.NSAPIProcessor.service(NSAPIProcessor.java:160)

                            ....
                            [27/Jul/2009:09:36:08] failure ( 31): for host 84.0.255.250 trying to POST /httpbind/httpbind, service-j2ee reports: StandardWrapperValve[httpbind]: PWC1406: Servlet.service() for servlet httpbind threw exception
                            java.lang.NullPointerException

                            [27/Jul/2009:09:36:09] failure ( 31): for host 212.24.190.66 trying to POST /httpbind/httpbind, service-j2ee reports: StandardWrapperValve[httpbind]: PWC1406: Servlet.service() for servlet httpbind threw exception
                            java.lang.NullPointerException

                            [27/Jul/2009:09:36:10] failure ( 31): for host 84.0.255.250 trying to POST /httpbind/httpbind, service-j2ee reports: StandardWrapperValve[httpbind]: PWC1406: Servlet.service() for servlet httpbind threw exception
                            java.lang.NullPointerException

                            [27/Jul/2009:09:36:10] failure ( 31): for host 92.249.225.31 trying to POST /httpbind/httpbind, service-j2ee reports: StandardWrapperValve[httpbind]: PWC1406: Servlet.service() for servlet httpbind threw exception
                            java.lang.NullPointerException


                            ~~~~~~~~~~~~~~~~~~~~~~~
                            All services works perfectly except httpbind,this errors in the webserver continously. We must restart the imadmin then works again.

                            imadmin status say works fine but no :(

                            Server [UP]
                            Watchdog [UP]

                            Any advice ?
                            • 26. Re: How to probe the gateway...
                              808160
                              Hi,
                              Do you see any errors/exceptions in httpbind.log/xmppd.log ?

                              -Swetha
                              • 27. Re: How to probe the gateway...
                                807574
                                Sunwebserver7 error.log :

                                [28/Jul/2009:11:45:18] failure (19059): for host 77.242.152.228 trying to POST /httpbind/httpbind, service-j2ee reports: StandardWrapperValve[httpbind]: PWC1406: Servlet.service() for servlet httpbind threw exception
                                java.util.NoSuchElementException
                                at java.util.LinkedList.remove(LinkedList.java:644)
                                at java.util.LinkedList.remove(LinkedList.java:360)
                                at net.outer_planes.jso.io.DOMReader.popBuilder(DOMReader.java:153)
                                at net.outer_planes.jso.io.DOMReader.readElement(DOMReader.java:105)
                                at net.outer_planes.jso.io.DOMReader.read(DOMReader.java:63)
                                at com.sun.im.gateway.http.HTTPBindSession.processInputRequest(HTTPBindSession.java:519)
                                at com.sun.im.gateway.http.HTTPBindSession.handleAuth(HTTPBindSession.java:711)
                                at com.sun.im.gateway.http.HTTPBindSession.processRequest(HTTPBindSession.java:398)
                                at com.sun.im.gateway.http.HTTPBindSession.process(HTTPBindSession.java:317)
                                at com.sun.im.gateway.http.servlet.ConnectionManagerServlet.processRequest(ConnectionManagerServlet.java:165)
                                at com.sun.im.gateway.http.servlet.ConnectionManagerServlet.doPost(ConnectionManagerServlet.java:310)
                                at javax.servlet.http.HttpServlet.service(HttpServlet.java:816)
                                at javax.servlet.http.HttpServlet.service(HttpServlet.java:917)
                                at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398)
                                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:277)
                                at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:255)
                                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
                                at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
                                at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
                                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:187)
                                at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
                                at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
                                at com.sun.webserver.connector.nsapi.NSAPIProcessor.service(NSAPIProcessor.java:160)

                                [28/Jul/2009:11:45:43] failure (19059): for host 81.183.38.56 trying to POST /httpbind/httpbind, service-j2ee reports: StandardWrapperValve[httpbind]: PWC1406:
                                Servlet.service() for servlet httpbind threw exception
                                java.lang.NullPointerException

                                [28/Jul/2009:11:49:22] failure (19059): for host 193.6.63.109 trying to POST /httpbind/httpbind, service-j2ee reports: StandardWrapperValve[httpbind]: PWC1406: Servlet.service() for servlet httpbind threw exception
                                java.lang.ClassCastException

                                ...
                                [28/Jul/2009:11:54:21] warning (19059): CORE3283: stderr: [Fatal Error] :-1:-1: Premature end of file.
                                [28/Jul/2009:11:54:23] failure (19059): for host 212.92.26.195 trying to POST /httpbind/httpbind, service-j2ee reports: StandardWrapperValve[httpbind]: PWC1406: Servlet.service() for servlet httpbind threw exception
                                java.lang.NullPointerException

                                [28/Jul/2009:11:55:25] failure (19059): for host 81.183.34.138 trying to POST /httpbind/httpbind, service-j2ee reports: StandardWrapperValve[httpbind]: PWC1406: Servlet.service() for servlet httpbind threw exception
                                java.lang.NullPointerException

                                [28/Jul/2009:11:55:25] failure (19059): for host 80.99.247.188 trying to POST /httpbind/httpbind, service-j2ee reports: StandardWrapperValve[httpbind]: PWC1406: Servlet.service() for servlet httpbind threw exception
                                java.lang.NullPointerException

                                [28/Jul/2009:11:55:25] failure (19059): for host 86.101.215.68 trying to POST /httpbind/httpbind, service-j2ee reports: StandardWrapperValve[httpbind]: PWC1406: Servlet.service() for servlet httpbind threw exception
                                java.lang.NullPointerException

                                [28/Jul/2009:11:55:25] failure (19059): for host 94.27.206.211 trying to POST /httpbind/httpbind, service-j2ee reports: StandardWrapperValve[httpbind]: PWC1406: Servlet.service() for servlet httpbind threw exception
                                java.lang.NullPointerException

                                [28/Jul/2009:11:55:25] failure (19059): for host 78.92.119.73 trying to POST /httpbind/httpbind, service-j2ee reports: StandardWrapperValve[httpbind]: PWC1406: Servlet.service() for servlet httpbind threw exception
                                java.lang.NullPointerException


                                httpbind.log - nothing special, the script if errorlog plenty of PWC1406 error in weblog ./imadmin refresh and will be OK
                                ~~~~~~~~~
                                28 Jul 2009 11:55:27,069] ERROR httpbind [Thread-1] Session reaper caught unexpected exception : java.lang.NullPointerException

                                xmppd.log: - nothing special
                                ~~~~~~~~
                                [28 júl. 2009 11:45:18,435] ERROR xmppd [Thread-11] [LDAP] Error Authenticating uid=643167,dc=chat - [LDAP: error code 49 - Invalid Credentials]
                                ...
                                [28 júl. 2009 11:51:59,713] ERROR xmppd [Thread-34] Session[httpbind.chat.solaris.intra] cannot send - stream not opened. =null
                                28 júl. 2009 11:451:59,713 DEBUG xmppd [dThread-13] isRosterRequested : 523252@chat.parom.hu/parom3220_female, true
                                [28 júl. 2009 11:451:59,713 DEBUG xmppd [Thread-13] S[Presence] first available presence received
                                [28 júl. 2009 11:51:59,713] DEBUG xmppd [Thread-13] [RWLock:26592340] rolock obtained by Thread-13 , count : 1
                                [28 júl. 2009 11:451:59,713 DEBUG xmppd [dThread-13] User[523252@chat.parom.hu] get roster hashcode=30987737 exclusive=false ref=1
                                [28 júl. 2009 11:451:59,713 DEBUG xmppd [Tdefault-iim_server-worker 2] XMPPComponentSession[httpbind.chat.solaris.intra] closing gatewayed endpoint: 789864@chat.parom.hu/parom6002_male
                                [28 júl. 2009 11:451:59,713 DEBUG xmppd [Tdefault-iim_server-worker 2] Session[789864@chat.parom.hu/parom6002_male] DEBUG sendUnavailable p=null
                                [28 júl. 2009 11:451:59,713 DEBUG xmppd [Thread-13] SUser[523252@chat.parom.hu] released roster: ref=11
                                [28 júl. 2009 11:451:59,713 DEBUG xmppd [default-iim_server-worker 12] User[789864@chat.parom.hu] closing session: parom6002_male STAT:numSessions=338
                                [28 júl. 2009 11:451:59,713 DEBUG xmppd [default-iim_server-worker 12] User[789864@chat.parom.hu] active session: parom10960_male
                                [28 júl. 2009 11:451:59,713 DEBUG xmppd [Tdefault-iim_server-worker 2] User[789864@chat.parom.hu] remove listener: 789864@chat.parom.hu/parom6002_male
                                [28 júl. 2009 11:451:59,713 DEBUG xmppd [Tdefault-iim_server-worker 2] User[789864@chat.parom.hu] remove listener: 789864@chat.parom.hu/parom6002_male
                                [28 júl. 2009 11:451:59,713 DEBUG xmppd [Thread-113] [PeerServer] getting peer: chat.parom.hu
                                [28 júl. 2009 11:451:59,714 DEBUG xmppd [Tdefault-iim_server-worker 2] User[789864@chat.parom.hu] reinserting session encountering null - ignoring : null , parom6002_male
                                [28 júl. 2009 11:451:59,714 DEBUG xmppd [Thread-113] isHostedDomain(chat.parom.hu) : true
                                [28 júl. 2009 11:451:59,714 DEBUG xmppd [Tdefault-iim_server-worker 2] Session[789864@chat.parom.hu/parom6002_male] leaveAllGroupChats
                                [28 júl. 2009 11:451:59,714 DEBUG xmppd [Thread-113] [RealmManager] found in cache: 613000@chat.parom.hu 1425218593
                                • 28. Re: How to probe the gateway...
                                  807574
                                  Hi !

                                  If we use two xmpp server (one computer 2 zone and sharing pool)

                                  zone1
                                  iim_server.serverid=chat1.parom.hu
                                  iim_server.password=********
                                  iim_server.coservers=coserver1
                                  iim_server.coserver1.host=chatbeta.parom.hu:5269
                                  iim_server.coserver1.serverid=chatbeta.parom.hu
                                  iim_server.coserver1.password=*******
                                  iim_server.coserver1.domain=chat.parom.hu

                                  zone2
                                  iim_server.serverid=chatbeta.parom.hu
                                  iim_server.password=*******
                                  iim_server.coservers=coserver1
                                  iim_server.coserver1.host=chat1.parom.hu:5269
                                  iim_server.coserver1.serverid=chat1.parom.hu
                                  iim_server.coserver1.password=*******
                                  iim_server.coserver1.domain=chat.parom.hu

                                  Only the first zone communicate the httpbind

                                  If i stopped the zone2 imadmin stop

                                  all works fine , no balance , if i start it balancing again.
                                  but if i stopped (or crashed) the zone1 imadim , not working, the zone2 imserver no connect the zone1 httpbind

                                  any advice how can i run multiple xmppd server whithout stop ?
                                  • 29. Re: How to probe the gateway...
                                    807574
                                    Sry my hardware

                                    dual Xeon, 4 Gb ram is it enogh ? about 100000 people ? about 40 hit/secound the httpbind POST message
                                    1 2 Previous Next