Ticket #459 (closed defect: fixed)
java.lang.NullPointerException (Too many files opened)
| Reported by: | Maverick | Owned by: | Maverick |
|---|---|---|---|
| Priority: | highest | Component: | Core |
| Version: | Latest version from repository | Severity: | blocking |
| Keywords: | Cc: |
Description (last modified by Maverick) (diff)
The bots in Trench Wars go panick after a while as soon as a bot can't open the twcore-exceptions.log file. A NullPointerException is thrown with the vague statement (Too many files opened).
java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at twcore.core.command.CommandInterpreter.handleEvent(Unknown Source) at twcore.core.HubBot.handleEvent(Unknown Source) at twcore.core.net.GamePacketInterpreter.handleChatMessage(Unknown Source) at twcore.core.net.GamePacketInterpreter.translateNormalPacket(Unknown Source) at twcore.core.net.GamePacketInterpreter.translateGamePacket(Unknown Source) at twcore.core.net.ReliablePacketHandler.handleReliableMessage(Unknown Source) at twcore.core.net.GamePacketInterpreter.translateSpecialPacket(Unknown Source) at twcore.core.net.GamePacketInterpreter.translateGamePacket(Unknown Source) at twcore.core.Session.run(Unknown Source) Caused by: java.lang.NullPointerException at twcore.core.util.Tools.getRecursiveFileInDirectory(Unknown Source) at twcore.core.CoreData.getBotConfig(Unknown Source) at twcore.core.BotQueue.spawnBot(Unknown Source) at twcore.core.BotQueue.spawnBot(Unknown Source) at twcore.core.HubBot.handleSpawnMessage(Unknown Source) ... 13 more java.io.FileNotFoundException: /home/bots/twcore/twcore-exceptions.log (Too many open files) at java.io.FileOutputStream.openAppend(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:207) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at java.io.FileWriter.<init>(FileWriter.java:78) at twcore.core.util.Tools.printStackTrace(Unknown Source) at twcore.core.command.CommandInterpreter.handleEvent(Unknown Source) at twcore.core.HubBot.handleEvent(Unknown Source) at twcore.core.net.GamePacketInterpreter.handleChatMessage(Unknown Source) at twcore.core.net.GamePacketInterpreter.translateNormalPacket(Unknown Source) at twcore.core.net.GamePacketInterpreter.translateGamePacket(Unknown Source) at twcore.core.net.ReliablePacketHandler.handleReliableMessage(Unknown Source) at twcore.core.net.GamePacketInterpreter.translateSpecialPacket(Unknown Source) at twcore.core.net.GamePacketInterpreter.translateGamePacket(Unknown Source) at twcore.core.Session.run(Unknown Source) java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at twcore.core.command.CommandInterpreter.handleEvent(Unknown Source) at twcore.core.HubBot.handleEvent(Unknown Source) at twcore.core.net.GamePacketInterpreter.handleChatMessage(Unknown Source) at twcore.core.net.GamePacketInterpreter.translateNormalPacket(Unknown Source) at twcore.core.net.GamePacketInterpreter.translateGamePacket(Unknown Source) at twcore.core.net.ReliablePacketHandler.handleReliableMessage(Unknown Source) at twcore.core.net.GamePacketInterpreter.translateSpecialPacket(Unknown Source) at twcore.core.net.GamePacketInterpreter.translateGamePacket(Unknown Source) at twcore.core.Session.run(Unknown Source) Caused by: java.lang.NullPointerException at twcore.core.util.Tools.getRecursiveFileInDirectory(Unknown Source) at twcore.core.CoreData.getBotConfig(Unknown Source) at twcore.core.BotQueue.spawnBot(Unknown Source) at twcore.core.BotQueue.spawnBot(Unknown Source) at twcore.core.HubBot.handleSpawnMessage(Unknown Source) ... 13 more java.io.FileNotFoundException: /home/bots/twcore/twcore-exceptions.log (Too many open files) at java.io.FileOutputStream.openAppend(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:207) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at java.io.FileWriter.<init>(FileWriter.java:78) at twcore.core.util.Tools.printStackTrace(Unknown Source) at twcore.core.command.CommandInterpreter.handleEvent(Unknown Source) at twcore.core.HubBot.handleEvent(Unknown Source) at twcore.core.net.GamePacketInterpreter.handleChatMessage(Unknown Source) at twcore.core.net.GamePacketInterpreter.translateNormalPacket(Unknown Source) at twcore.core.net.GamePacketInterpreter.translateGamePacket(Unknown Source) at twcore.core.net.ReliablePacketHandler.handleReliableMessage(Unknown Source) at twcore.core.net.GamePacketInterpreter.translateSpecialPacket(Unknown Source) at twcore.core.net.GamePacketInterpreter.translateGamePacket(Unknown Source) at twcore.core.Session.run(Unknown Source) java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at twcore.core.command.CommandInterpreter.handleEvent(Unknown Source) at twcore.core.HubBot.handleEvent(Unknown Source) at twcore.core.net.GamePacketInterpreter.handleChatMessage(Unknown Source) at twcore.core.net.GamePacketInterpreter.translateNormalPacket(Unknown Source) at twcore.core.net.GamePacketInterpreter.translateGamePacket(Unknown Source) at twcore.core.net.ReliablePacketHandler.handleReliableMessage(Unknown Source) at twcore.core.net.GamePacketInterpreter.translateSpecialPacket(Unknown Source) at twcore.core.net.GamePacketInterpreter.translateGamePacket(Unknown Source) at twcore.core.Session.run(Unknown Source) Caused by: java.lang.NullPointerException at twcore.core.util.Tools.getRecursiveFileInDirectory(Unknown Source) at twcore.core.CoreData.getBotConfig(Unknown Source) at twcore.core.BotQueue.spawnBot(Unknown Source) at twcore.core.BotQueue.spawnBot(Unknown Source) at twcore.core.HubBot.handleSpawnMessage(Unknown Source) ... 13 more
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
