Page 1 of 1

[GS Error] Unclosed connection!

Posted: Fri May 14, 2010 10:25 am
by valtin
Hello everybody,
I have some questions, I'm not sure if it is a problem but I will ask, because my mother taught me to not be afraid to ask :P .
L2J Revision Number: 4175
L2JDP Revision Number: 7405

My gs give this error in log :

Code: Select all

Unclosed connection! Trace: sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)java.lang.RuntimeException        at com.l2jserver.L2DatabaseFactory.getConnection(L2DatabaseFactory.java:223)        at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)        at java.lang.reflect.Method.invoke(Method.java:616)        at org.python.core.PyReflectedFunction.__call__(Unknown Source)        at org.python.core.PyMethod.__call__(Unknown Source)        at org.python.core.PyObject.__call__(Unknown Source)        at org.python.core.PyInstance.invoke(Unknown Source)        at org.python.pycode.serializable._pyx1273830468975.onAdvEvent$10(__init__.py:1066)        at org.python.pycode.serializable._pyx1273830468975.call_function(__init__.py)        at org.python.core.PyTableCode.call(Unknown Source)        at org.python.core.PyTableCode.call(Unknown Source)        at org.python.core.PyTableCode.call(Unknown Source)        at org.python.core.PyFunction.__call__(Unknown Source)        at org.python.core.PyMethod.__call__(Unknown Source)        at org.python.core.PyObject.__call__(Unknown Source)        at org.python.core.PyObject._jcallexc(Unknown Source)        at org.python.core.PyObject._jcall(Unknown Source)        at org.python.proxies.main$Quest$422.onAdvEvent(Unknown Source)        at com.l2jserver.gameserver.model.quest.Quest.notifyEvent(Quest.java:406)        at com.l2jserver.gameserver.model.actor.instance.L2PcInstance.processQuestEvent(L2PcInstance.java:1725)        at com.l2jserver.gameserver.network.clientpackets.RequestBypassToServer.runImpl(RequestBypassToServer.java:218)        at com.l2jserver.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:92)        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)        at java.lang.Thread.run(Thread.java:636) 
Second question,

Code: Select all

To many connections. 
Or something like that.

I set,
max_connect_errors= 100
max_connections= 3000
In gs config is 1000 dbconnections and login config 100 .
At 80-100 ppl on server , my server blocks .

I appreciate your help
Kind Regards,
Olaru Valentin

Re: [GS Error] Unclosed connection!

Posted: Fri May 14, 2010 10:37 am
by janiii
you could have just search on forum and find what the error is about. ;)

check your custom python scripts that connect to database and check that the database connection is closed properly.

Re: [GS Error] Unclosed connection!

Posted: Fri May 14, 2010 11:45 am
by valtin
Thank you verry much, now is up to me to solve this problem. Many thanks again.

Re: [GS Error] Unclosed connection!

Posted: Fri May 14, 2010 11:49 am
by janiii
if you have problems solving the problem, you can post your custom code here and we can help you. but maybe you understand the problem and can fix it by yourself. gl :)

Re: [GS Error] Unclosed connection!

Posted: Fri Jun 25, 2010 7:04 am
by Vinius
Then you might help me with this. Got same error, the mentioned script is custom NPC buffer in python.

Re: [GS Error] Unclosed connection!

Posted: Fri Jun 25, 2010 7:14 am
by janiii
check the forum. that buffer script has been already fixed. i will not go through it again and again, sorry.