Skip to content

server becomes non responsive after a failed connection attempt to the db #293

Description

@abmargb
org.postgresql.util.PSQLException: The connection attempt failed.
        at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:150)
        at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
        at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:125)
        at org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:30)
        at org.postgresql.jdbc3g.AbstractJdbc3gConnection.<init>(AbstractJdbc3gConnection.java:22)
        at org.postgresql.jdbc4.AbstractJdbc4Connection.<init>(AbstractJdbc4Connection.java:30)
        at org.postgresql.jdbc4.Jdbc4Connection.<init>(Jdbc4Connection.java:24)
        at org.postgresql.Driver.makeConnection(Driver.java:393)
        at org.postgresql.Driver.connect(Driver.java:267)
        at java.sql.DriverManager.getConnection(DriverManager.java:571)
        at java.sql.DriverManager.getConnection(DriverManager.java:233)
        at org.buddycloud.channelserver.db.JDBCConnectionFactory.getConnection(JDBCConnectionFactory.java:19)
        at org.buddycloud.channelserver.db.DefaultNodeStoreFactoryImpl.create(DefaultNodeStoreFactoryImpl.java:35)
        at org.buddycloud.channelserver.channel.ChannelManagerFactoryImpl.create(ChannelManagerFactoryImpl.java:15)
        at org.buddycloud.channelserver.queue.InQueueConsumer.consume(InQueueConsumer.java:48)
        at org.buddycloud.channelserver.queue.QueueConsumer$1.run(QueueConsumer.java:29)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.EOFException
        at org.postgresql.core.PGStream.ReceiveChar(PGStream.java:276)
        at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:269)
        at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:108)
        ... 20 more
2015-01-28 21:04:28,236 [pool-7-thread-1] DEBUG org.buddycloud.channelserver.packetprocessor.iq.IQProcessor - Finding IQ processor for namespace http://jabber.org/protocol/disco#info
2015-01-28 21:04:28,236 [pool-7-thread-1] INFO  org.buddycloud.channelserver.packetprocessor.iq.namespace.AbstractNamespace - Using processor for packet type: get
2015-01-28 21:07:58,611 [pool-7-thread-1] ERROR org.buddycloud.channelserver.packetprocessor.iq.IQProcessor - Error while processing packet.
java.lang.NullPointerException
        at org.buddycloud.channelserver.channel.ChannelManagerImpl.isCachedNode(ChannelManagerImpl.java:160)
        at org.buddycloud.channelserver.packetprocessor.iq.namespace.discoinfo.DiscoInfoGet.process(DiscoInfoGet.java:57)
        at org.buddycloud.channelserver.packetprocessor.iq.namespace.discoinfo.DiscoInfoGet.process(DiscoInfoGet.java:25)
        at org.buddycloud.channelserver.packetprocessor.iq.namespace.AbstractNamespace.process(AbstractNamespace.java:61)
        at org.buddycloud.channelserver.packetprocessor.iq.namespace.AbstractNamespace.process(AbstractNamespace.java:14)
        at org.buddycloud.channelserver.packetprocessor.iq.IQProcessor.processPacket(IQProcessor.java:75)
        at org.buddycloud.channelserver.packetprocessor.iq.IQProcessor.process(IQProcessor.java:51)
        at org.buddycloud.channelserver.queue.InQueueConsumer.consume(InQueueConsumer.java:50)
        at org.buddycloud.channelserver.queue.QueueConsumer$1.run(QueueConsumer.java:29)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions