Skip navigation
This discussion is archived
7910 Views 17 Replies Latest reply: Jul 17, 2007 2:52 PM by LG RSS
Calculating status... 4 posts since
Jul 10, 2007
Currently Being Moderated

Jul 10, 2007 2:22 PM

Help - Openfire Ramdonly disconnects everyone and needs a restart

Hi,

 

I''m evaluating openfire instead of going the communicator way, but I''m having a serious problem, I''m running the latest version of Openfire and Spark on Unbuntu

 

Linux openfire 2.6.19-4-server #2 SMP Thu Apr 5 06:07:34 UTC 2007 i686 GNU/Linux

 

java version "1.6.0"

Java(TM) SE Runtime Environment (build 1.6.0-b105)

Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)

 

I started with the embebed database, but thinking it could be that i changed to mysql 5 but that didnt change anything.

 

My problem is that maybe 1 or 2 everyday all spark clients disconnect and then start on a loop of connecting and disconnecting, apart from this problem of everyone getting disconnected it''s running fine.

Atm I''m testing with 40 users, i have java set with 1GB of ram, this is to handle over 300 people and it doesnt seem to work well for 40 people

Here''s my server logs, I get this error about a strange character in a good few vcards, I dont know if it''s that that''s crashing it but i dont see anything bad on the peopls vcards.

 

Without me being able to show this working well, there''s no chance of using openfire or even purchasing the enterprise edition, I would love to use openfire but I''m at a loss.

 

error log, i have many like this one

 

2007.07.09 16:10:24 org.jivesoftware.openfire.vcard.DefaultVCardProvider.loadVCard(DefaultVCardProvi der.java:81) Error loadi

ng vCard of username: clara_trindade

org.dom4j.DocumentException: Error on line 1 of document  : Character reference "&#0" is an invalid XML character. Nested exce

ption: Character reference "&#0" is an invalid XML character.

        at org.dom4j.io.SAXReader.read(SAXReader.java:482)

        at org.dom4j.io.SAXReader.read(SAXReader.java:365)

        at org.jivesoftware.openfire.vcard.DefaultVCardProvider.loadVCard(DefaultVCardProv ider.java:76)

        at org.jivesoftware.openfire.vcard.VCardManager.getOrLoadVCard(VCardManager.java:1 98)

        at org.jivesoftware.openfire.vcard.VCardManager.getVCard(VCardManager.java:191)

        at org.jivesoftware.openfire.handler.IQvCardHandler.handleIQ(IQvCardHandler.java:1 07)

        at org.jivesoftware.openfire.handler.IQHandler.process(IQHandler.java:48)

        at org.jivesoftware.openfire.IQRouter.handle(IQRouter.java:300)

        at org.jivesoftware.openfire.IQRouter.route(IQRouter.java:104)

        at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:67)

        at org.jivesoftware.openfire.net.StanzaHandler.processIQ(StanzaHandler.java:289)

        at org.jivesoftware.openfire.net.ClientStanzaHandler.processIQ(ClientStanzaHandler .java:79)

        at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:254)

        at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:153)

        at org.jivesoftware.openfire.nio.ConnectionHandler.messageReceived(ConnectionHandl er.java:132)

        at org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived (AbstractIoFilterChain.java:703)

        at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(Ab stractIoFilterChain.java:362)

        at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilt erChain.java:54)

        at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceive d(AbstractIoFilterChain.java:800)

        at org.apache.mina.filter.codec.support.SimpleProtocolDecoderOutput.flush(SimplePr otocolDecoderOutput.java:62)

        at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecF ilter.java:200)

        at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(Ab stractIoFilterChain.java:362)

        at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilt erChain.java:54)

        at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceive d(AbstractIoFilterChain.java:800)

        at org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java :266)

        at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(Execut orFilter.java:326)

        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java: 885)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)

        at java.lang.Thread.run(Thread.java:619)

... etc

 

warn.log

 

2007.07.10 09:33:25 Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommend

ed.

2007.07.10 09:33:26 Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommend

ed.

 

I''ll be gratefull for any help I could get.

 

Something I would love to see would be a Xen or Vmware image from Jive with a supported linux platform certified for Openfire.

 

 

Best Regards

  • Bronze 8 posts since
    Jul 3, 2007

    I have the same problem with the same error. I''am using Active Directory and ldapvcardavatar plugin. I tried uninstall this plugin and will see.

    • Cameron Moore Silver 296 posts since
      Feb 15, 2005

      I take it your guys are running Openfire 3.3.2?  Are you all using the ldapvcardavatar plugin?  Where are you getting your vcard info -- from LDAP/AD or direct from the Openfire DB? 

       

      Try turning on LDAP debugging (in the XML config, look for ldapDebugEnabled) and then turn on debugging in the admin interface.  You may get some clues as to what part of the vcard XML structure is causing Openfire to blow up.

  • Bill Asher Bronze 11 posts since
    May 15, 2006

    I have the same problem.  Running on Ubuntu 6.06 with about 400 people.  Just crashes and have to restart, it seems like a memory leak issue, it has to be more stable than this, a Ubuntu issue?

  • LG KeyContributor 6,130 posts since
    Dec 13, 2005

    Hi,

     

    this is not a new issue, it was discussed in http://www.igniterealtime.org/forum/thread.jspa?messageID=146192 with little success. It may help to make sure that all vCards in the database are valid, especially the one of clara_trindade. Or do you get this error for all vCards?

     

    LG

    • LG KeyContributor 6,130 posts since
      Dec 13, 2005

      Hi,

       

      the &#0 error sounds a lot like an invalid vCard entry. Is it possible for you to export a vCard which causes trouble and verify that there is no NULL character (0x00 or \u0000) in it?

       

      LG

        • Bronze 12 posts since
          Mar 10, 2007

          Hi.

           

          I have the same disconnect problem. 

           

          I need to ask you to tell me if the vcard is the information entered by each user on the spark interface?

           

          Regards,

           

          Oscar

            • LG KeyContributor 6,130 posts since
              Dec 13, 2005

              Hi,

               

              I and probably also Gato (the main developer) have a problem to reproduce this issue. Could someone post a vCard which fails? Hopefully a very short one without a photo so other users can import it in Openfire and check if it fails.

               

              Does it help to clear the vCard cache on http://server:9090/system-cache.jsp ?

               

              LG

              • Bronze 12 posts since
                Mar 10, 2007

                Pedro:

                 

                Thanks for the info.  I am a bit confused where to identify the Vcards so I can send it to the forum.

                 

                I am having big problems with this issue.  Yesterday I enabled the debug log and I am posting a part of it in here.  I hope this helps.

                 

                -


                2007.07.11 20:00:02

                java.io.IOException: Connection reset by peer

                at sun.nio.ch.FileDispatcher.read0(Native Method)

                at sun.nio.ch.SocketDispatcher.read(Unknown Source)

                at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)

                at sun.nio.ch.IOUtil.read(Unknown Source)

                at sun.nio.ch.SocketChannelImpl.read(Unknown Source)

                at org.apache.mina.transport.socket.nio.SocketIoProcessor.read(SocketIoProcessor.j ava:232)

                at org.apache.mina.transport.socket.nio.SocketIoProcessor.process(SocketIoProcesso r.java:206)

                at org.apache.mina.transport.socket.nio.SocketIoProcessor.access$500(SocketIoProce ssor.java:44)

                at org.apache.mina.transport.socket.nio.SocketIoProcessor$Worker.run(SocketIoProce ssor.java:506)

                at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:43)

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

                at java.lang.Thread.run(Unknown Source)

                2007.07.11 20:06:04 Closing connection that has been idle: org.jivesoftware.openfire.nio.NIOConnection@1a119b3 MINA Session: (SOCKET, R: /168.234.238.212:1082, L: /168.234.238.110:5222, S: 0.0.0.0/0.0.0.0:5222)

                2007.07.11 23:49:47 Ignoring extra content {}

                2007.07.12 00:10:51 EOF

                2007.07.12 00:16:48 Closing connection that has been idle: org.jivesoftware.openfire.nio.NIOConnection@12f15b0 MINA Session: (SOCKET, R: /190.56.108.119:22372, L: /168.234.238.110:5222, S: 0.0.0.0/0.0.0.0:5222)

                2007.07.12 07:51:35

                java.io.IOException: Broken pipe

                at sun.nio.ch.FileDispatcher.write0(Native Method)

                at sun.nio.ch.SocketDispatcher.write(Unknown Source)

                at sun.nio.ch.IOUtil.writeFromNativeBuffer(Unknown Source)

                at sun.nio.ch.IOUtil.write(Unknown Source)

                at sun.nio.ch.SocketChannelImpl.write(Unknown Source)

                at org.apache.mina.transport.socket.nio.SocketIoProcessor.doFlush(SocketIoProcesso r.java:428)

                at org.apache.mina.transport.socket.nio.SocketIoProcessor.doFlush(SocketIoProcesso r.java:366)

                at org.apache.mina.transport.socket.nio.SocketIoProcessor.access$600(SocketIoProce ssor.java:44)

                at org.apache.mina.transport.socket.nio.SocketIoProcessor$Worker.run(SocketIoProce ssor.java:509)

                at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:43)

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

                at java.lang.Thread.run(Unknown Source)

                2007.07.12 08:07:14

                java.io.IOException: Broken pipe

                at sun.nio.ch.FileDispatcher.write0(Native Method)

                at sun.nio.ch.SocketDispatcher.write(Unknown Source)

                at sun.nio.ch.IOUtil.writeFromNativeBuffer(Unknown Source)

                at sun.nio.ch.IOUtil.write(Unknown Source)

                at sun.nio.ch.SocketChannelImpl.write(Unknown Source)

                at org.apache.mina.transport.socket.nio.SocketIoProcessor.doFlush(SocketIoProcesso r.java:428)

                at org.apache.mina.transport.socket.nio.SocketIoProcessor.doFlush(SocketIoProcesso r.java:366)

                at org.apache.mina.transport.socket.nio.SocketIoProcessor.access$600(SocketIoProce ssor.java:44)

                at org.apache.mina.transport.socket.nio.SocketIoProcessor$Worker.run(SocketIoProce ssor.java:509)

                at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:43)

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

                at java.lang.Thread.run(Unknown Source)

                2007.07.12 08:07:35

                java.io.IOException: Broken pipe

                at sun.nio.ch.FileDispatcher.write0(Native Method)

                at sun.nio.ch.SocketDispatcher.write(Unknown Source)

                at sun.nio.ch.IOUtil.writeFromNativeBuffer(Unknown Source)

                at sun.nio.ch.IOUtil.write(Unknown Source)

                at sun.nio.ch.SocketChannelImpl.write(Unknown Source)

                at org.apache.mina.transport.socket.nio.SocketIoProcessor.doFlush(SocketIoProcesso r.java:428)

                at org.apache.mina.transport.socket.nio.SocketIoProcessor.doFlush(SocketIoProcesso r.java:366)

                at org.apache.mina.transport.socket.nio.SocketIoProcessor.access$600(SocketIoProce ssor.java:44)

                at org.apache.mina.transport.socket.nio.SocketIoProcessor$Worker.run(SocketIoProce ssor.java:509)

                at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:43)

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

                at java.lang.Thread.run(Unknown Source)

                2007.07.12 08:08:30

                java.io.IOException: Broken pipe

                at sun.nio.ch.FileDispatcher.write0(Native Method)

                at sun.nio.ch.SocketDispatcher.write(Unknown Source)

                at sun.nio.ch.IOUtil.writeFromNativeBuffer(Unknown Source)

                at sun.nio.ch.IOUtil.write(Unknown Source)

                at sun.nio.ch.SocketChannelImpl.write(Unknown Source)

                at org.apache.mina.transport.socket.nio.SocketIoProcessor.doFlush(SocketIoProcesso r.java:428)

                at org.apache.mina.transport.socket.nio.SocketIoProcessor.doFlush(SocketIoProcesso r.java:366)

                at org.apache.mina.transport.socket.nio.SocketIoProcessor.access$600(SocketIoProce ssor.java:44)

                at org.apache.mina.transport.socket.nio.SocketIoProcessor$Worker.run(SocketIoProce ssor.java:509)

                at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:43)

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

                at java.lang.Thread.run(Unknown Source)

                -


                 

                Please help I am in BIG trouble.

                 

                Regards.

              • Bronze 12 posts since
                Mar 10, 2007

                It200.

                 

                Hi.  I know that you work a lot with Openfire.  Do you have an advice on this problem?  I am running just 60 users on this server.

                 

                Thanks in advance.

                 

                Oscar.

            • Bronze 12 posts since
              Mar 10, 2007

              Hi Pedro.

               

              I am wondering if you got a solution for this problem.  I made my users to erase their information from their profiles and also disabled the Private Data Storage feature.

               

              I don''t see any more replies so I am wondering if this is being taking care of by someone at ignite.

               

              Thanks in advance for your help.

               

              Oscar.

  • Bronze 8 posts since
    Jul 3, 2007

    HI,

     

    I try put more description of my situation.

     

    I''am using OpenFire 3.3.2 on Windows Server 2003, embedded DB (now for testing) and users in AD.

     

    I disabled ldapvcardavatar plugin and everything works fine for last few days. But I thing, that OpenFire isn`t looking in vCard now (so if there is the problem).

     

    My situation before:

    When one specific user tried connect some users was disconnected (and still, when they connected, they was disconnected). I had to clear caches and everything was fine. For this specific user is in log error (same like in first post).

     

    I will try change DB a experiment with the record of user.

More Like This

  • Retrieving data ...

Bookmarked By (0)