Support Topics Documentation Slack YouTube Blog

Cannot deploy custom business logic


(Reza Ahmadi) #1

Hello
I use of Backendless standalone 3.0.0.24 and coderunner 3.0.19 for java and all port is open. i want to deploy my custom business logic but it’s give me below error:

[ERROR] Could not get a resource from the pool
redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
        at redis.clients.util.Pool.getResource(Pool.java:50) ~[CodeRunner.jar:na]
        at redis.clients.jedis.JedisPool.getResource(JedisPool.java:86) ~[CodeRunner.jar:na]
        at com.backendless.redis.JedisManager.getJedis(JedisManager.java:36) ~[CodeRunner.jar:na]
        at com.backendless.coderunner.DebugJedisManager.getJedis(DebugJedisManager.java:52) ~[CodeRunner.jar:na]
        at com.backendless.coderunner.processor.impl.MessageProcessor.pollMessage(MessageProcessor.java:39) ~[CodeRunner.jar:na]
        at com.backendless.coderunner.processor.AbstractMessageProcessor.run(AbstractMessageProcessor.java:44) [CodeRunner.jar:na]
Caused by: redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: connect timed out
        at redis.clients.jedis.Connection.connect(Connection.java:154) ~[CodeRunner.jar:na]
        at redis.clients.jedis.BinaryClient.connect(BinaryClient.java:83) ~[CodeRunner.jar:na]
        at redis.clients.jedis.BinaryJedis.connect(BinaryJedis.java:1643) ~[CodeRunner.jar:na]
        at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:85) ~[CodeRunner.jar:na]
        at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:861) ~[CodeRunner.jar:na]
        at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:435) ~[CodeRunner.jar:na]
        at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:363) ~[CodeRunner.jar:na]
        at redis.clients.util.Pool.getResource(Pool.java:48) ~[CodeRunner.jar:na]
        ... 5 common frames omitted
Caused by: java.net.SocketTimeoutException: connect timed out
        at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) ~[na:1.8.0_51]
        at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) ~[na:1.8.0_51]
        at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) ~[na:1.8.0_51]
        at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) ~[na:1.8.0_51]
        at java.net.AbstractPlainSocketImpl.connect(Unknown Source) ~[na:1.8.0_51]
        at java.net.PlainSocketImpl.connect(Unknown Source) ~[na:1.8.0_51]
        at java.net.SocksSocketImpl.connect(Unknown Source) ~[na:1.8.0_51]
        at java.net.Socket.connect(Unknown Source) ~[na:1.8.0_51]
        at redis.clients.jedis.Connection.connect(Connection.java:148) ~[CodeRunner.jar:na]
        ... 12 common frames omitted

[INFO] Debugging Utility disconnected successfully
[INFO] Thank you for using Backendless



(Denys Konakhevych) #2

Hi Reza,

Check your properties for redis db. It seems that connection pool for redis is exosted. You can configure it’s size in backendless.config changing connectionPoolSize property.

Regards,

Denys


(Reza Ahmadi) #3

Thank you Denys it’s work when changing connectionPoolSize property.