java.lang.IllegalThreadStateException: Thread is already started

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • The build queue builds up and there are plenty of executors available on several nodes as well as the master node. The system memory usage is quite low < 2Gb (system has > 16Gb) The log file is full of entries like Nov 14, 2014 9:09:21 AM hudson.triggers.SafeTimerTask run SEVERE: Timer task hudson.model.Queue$MaintainTask@c2f8092d failed java.lang.IllegalThreadStateException: Thread is already started at java.lang.Thread.start(Thread.java:953) at hudson.model.Executor.start(Executor.java:497) at hudson.model.Queue$JobOffer.set(Queue.java:261) at hudson.model.queue.MappingWorksheet$ExecutorChunk.execute(MappingWorksheet.java:164) at hudson.model.queue.MappingWorksheet$ExecutorChunk.access$000(MappingWorksheet.java:112) at hudson.model.queue.MappingWorksheet$Mapping.execute(MappingWorksheet.java:313) at hudson.model.Queue.maintain(Queue.java:1064) at hudson.model.Queue$MaintainTask.doRun(Queue.java:2033) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:482) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:315) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:193) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:308) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1176) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:795)
    via by Phil Rumble,
  • The build queue builds up and there are plenty of executors available on several nodes as well as the master node. The system memory usage is quite low < 2Gb (system has > 16Gb) The log file is full of entries like Nov 14, 2014 9:09:21 AM hudson.triggers.SafeTimerTask run SEVERE: Timer task hudson.model.Queue$MaintainTask@c2f8092d failed java.lang.IllegalThreadStateException: Thread is already started at java.lang.Thread.start(Thread.java:953) at hudson.model.Executor.start(Executor.java:497) at hudson.model.Queue$JobOffer.set(Queue.java:261) at hudson.model.queue.MappingWorksheet$ExecutorChunk.execute(MappingWorksheet.java:164) at hudson.model.queue.MappingWorksheet$ExecutorChunk.access$000(MappingWorksheet.java:112) at hudson.model.queue.MappingWorksheet$Mapping.execute(MappingWorksheet.java:313) at hudson.model.Queue.maintain(Queue.java:1064) at hudson.model.Queue$MaintainTask.doRun(Queue.java:2033) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:482) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:315) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:193) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:308) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1176) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:795)
    via by Phil Rumble,
  • [#|2012-07-27T16:47:00.621-0700|FINE|sun-appserver2.1|com.sun.jbi.filebc.FileBindingDeployer|_ThreadID=48;_ThreadName=FileInOutCA-sun-file-binding;ClassName=com.sun.jbi.filebc.FileBindingDeployer;MethodName=start;FileInOutCA-sun-file-binding;_RequestID=3f4bc9b7-e7f9-4ce6-82ba-b2e653c8a706;|Successfully started service unit: FileInOutCA-sun-file-binding.|#] [#|2012-07-27T16:47:00.621-0700|FINE|sun-appserver2.1|com.sun.jbi.filebc.InboundMessageProcessor|_ThreadID=49;_ThreadName=filebc-ib-Thread-977;ClassName=com.sun.jbi.filebc.InboundMessageProcessor;MethodName=run;{http://j2ee.netbeans.org/wsdl/FileInOut/FileInWSDL}FileInboundService;FileInWSDL_InboundPort;_RequestID=2fb532d6-67b2-4ec4-8bf5-35857d9ae0a8;|InboundMessageProcessor executing. Endpoint service name is [{http://j2ee.netbeans.org/wsdl/FileInOut/FileInWSDL}FileInboundService] and endpoint name is [FileInWSDL_InboundPort].|#] [#|2012-07-27T16:47:00.633-0700|FINE|sun-appserver2.1|com.sun.jbi.filebc.InboundMessageProcessor|_ThreadID=49;_ThreadName=filebc-ib-Thread-977;ClassName=com.sun.jbi.filebc.InboundMessageProcessor;MethodName=run;C:\logs;input.txt;1000;_RequestID=2fb532d6-67b2-4ec4-8bf5-35857d9ae0a8;|About to poll directory C:\logs for file input.txt in every 1,000ms.|#] [#|2012-07-27T16:47:00.634-0700|FINE|sun-appserver2.1|com.sun.jbi.filebc.InboundMessageProcessor|_ThreadID=49;_ThreadName=filebc-ib-Thread-977;ClassName=com.sun.jbi.filebc.InboundMessageProcessor;MethodName=locateServiceEndpoint;{http://j2ee.netbeans.org/wsdl/FileInOut/FileInWSDL}FileInboundService;FileInWSDL_InboundPort;_RequestID=2fb532d6-67b2-4ec4-8bf5-35857d9ae0a8;|Located service endpoint reference for service [{http://j2ee.netbeans.org/wsdl/FileInOut/FileInWSDL}FileInboundService] and endpoint name [FileInWSDL_InboundPort].|#] [#|2012-07-27T16:48:06.710-0700|FINE|sun-appserver2.1|com.sun.jbi.filebc.IBFileWorker|_ThreadID=50;_ThreadName=filebc-ib-workerThread-981;ClassName=com.sun.jbi.filebc.IBFileWorker;MethodName=run;_RequestID=901f6995-2a93-4371-8c70-37ea64b0714a;|Single record processing is configured, so we will treat the whole file content as one record...|#] [#|2012-07-27T16:48:06.715-0700|FINE|sun-appserver2.1|com.sun.jbi.filebc.InboundMessageProcessor|_ThreadID=50;_ThreadName=filebc-ib-workerThread-981;ClassName=com.sun.jbi.filebc.InboundMessageProcessor;MethodName=send;Context=FileInOutCA-sun-file-binding-{http://j2ee.netbeans.org/wsdl/FileInOut/FileInWSDL}poll;_RequestID=901f6995-2a93-4371-8c70-37ea64b0714a;|Sending message 100951309680238-25590-135627256867110029|#] [#|2012-07-27T16:48:06.715-0700|FINE|sun-appserver2.1|com.sun.jbi.filebc.InboundMessageProcessor|_ThreadID=50;_ThreadName=filebc-ib-workerThread-981;ClassName=com.sun.jbi.filebc.util.MessageUtil;MethodName=checkAndGenerateInMemoryCRMP;Context=FileInOutCA-sun-file-binding-{http://j2ee.netbeans.org/wsdl/FileInOut/FileInWSDL}poll;_RequestID=901f6995-2a93-4371-8c70-37ea64b0714a;|Generated: com.sun.jbi.messaging.groupid with value [c21d7213-1e42-42f9-8c85-91d523005e1f] and com.sun.jbi.messaging.messageid with value [1] for message exchange with ID [100951309680238-25590-135627256867110029]|#] [#|2012-07-27T16:48:06.717-0700|WARNING|sun-appserver2.1|javax.enterprise.system.stream.err|_ThreadID=50;_ThreadName=filebc-ib-workerThread-981;_RequestID=901f6995-2a93-4371-8c70-37ea64b0714a;| Exception in thread "filebc-ib-workerThread-981" |#] [#|2012-07-27T16:48:06.718-0700|WARNING|sun-appserver2.1|javax.enterprise.system.stream.err|_ThreadID=50;_ThreadName=filebc-ib-workerThread-981;_RequestID=901f6995-2a93-4371-8c70-37ea64b0714a;|java.lang.NoClassDefFoundError: org/openesb/runtime/tracking/MessageTrackingInfo at com.sun.jbi.messaging.MessageExchangeProxy.setMessage(MessageExchangeProxy.java:421) at com.sun.jbi.filebc.InboundMessageProcessor.send(InboundMessageProcessor.java:861) at com.sun.jbi.filebc.IBFileWorker.processMessage(IBFileWorker.java:377) at com.sun.jbi.filebc.IBFileWorker.run(IBFileWorker.java:144) at java.lang.Thread.run(Thread.java:662) |#] [#|2012-07-27T16:48:07.720-0700|SEVERE|sun-appserver2.1|com.sun.jbi.filebc.InboundMessageProcessor|_ThreadID=49;_ThreadName=filebc-ib-Thread-977;_RequestID=2fb532d6-67b2-4ec4-8bf5-35857d9ae0a8;|FILEBC-E00720: inonly message for operation {http://j2ee.netbeans.org/wsdl/FileInOut/FileInWSDL}poll failed processing, an exception was raised. null java.lang.IllegalThreadStateException at java.lang.Thread.start(Thread.java:638) at com.sun.jbi.filebc.InboundMessageProcessor.execute(InboundMessageProcessor.java:433) at com.sun.jbi.filebc.InboundMessageProcessor.run(InboundMessageProcessor.java:220) at java.lang.Thread.run(Thread.java:662) |#] [#|2012-07-27T16:48:08.729-0700|SEVERE|sun-appserver2.1|com.sun.jbi.filebc.InboundMessageProcessor|_ThreadID=49;_ThreadName=filebc-ib-Thread-977;_RequestID=2fb532d6-67b2-4ec4-8bf5-35857d9ae0a8;|FILEBC-E00720: inonly message for operation {http://j2ee.netbeans.org/wsdl/FileInOut/FileInWSDL}poll failed processing, an exception was raised. null java.lang.IllegalThreadStateException at java.lang.Thread.start(Thread.java:638) at com.sun.jbi.filebc.InboundMessageProcessor.execute(InboundMessageProcessor.java:433) at com.sun.jbi.filebc.InboundMessageProcessor.run(InboundMessageProcessor.java:220) at java.lang.Thread.run(Thread.java:662) |#] [#|2012-07-27T16:48:09.734-0700|SEVERE|sun-appserver2.1|com.sun.jbi.filebc.InboundMessageProcessor|_ThreadID=49;_ThreadName=filebc-ib-Thread-977;_RequestID=2fb532d6-67b2-4ec4-8bf5-35857d9ae0a8;|FILEBC-E00720: inonly message for operation {http://j2ee.netbeans.org/wsdl/FileInOut/FileInWSDL}poll failed processing, an exception was raised. null java.lang.IllegalThreadStateException at java.lang.Thread.start(Thread.java:638) at com.sun.jbi.filebc.InboundMessageProcessor.execute(InboundMessageProcessor.java:433) at com.sun.jbi.filebc.InboundMessageProcessor.run(InboundMessageProcessor.java:220) at java.lang.Thread.run(Thread.java:662) |#] [#|2012-07-27T16:48:10.742-0700|SEVERE|sun-appserver2.1|com.sun.jbi.filebc.InboundMessageProcessor|_ThreadID=49;_ThreadName=filebc-ib-Thread-977;_RequestID=2fb532d6-67b2-4ec4-8bf5-35857d9ae0a8;|FILEBC-E00720: inonly message for operation {http://j2ee.netbeans.org/wsdl/FileInOut/FileInWSDL}poll failed processing, an exception was raised. null java.lang.IllegalThreadStateException at java.lang.Thread.start(Thread.java:638) at com.sun.jbi.filebc.InboundMessageProcessor.execute(InboundMessageProcessor.java:433) at com.sun.jbi.filebc.InboundMessageProcessor.run(InboundMessageProcessor.java:220) at java.lang.Thread.run(Thread.java:662) |#] [#|2012-07-27T16:48:11.748-0700|SEVERE|sun-appserver2.1|com.sun.jbi.filebc.InboundMessageProcessor|_ThreadID=49;_ThreadName=filebc-ib-Thread-977;_RequestID=2fb532d6-67b2-4ec4-8bf5-35857d9ae0a8;|FILEBC-E00720: inonly message for operation {http://j2ee.netbeans.org/wsdl/FileInOut/FileInWSDL}poll failed processing, an exception was raised. null java.lang.IllegalThreadStateException at java.lang.Thread.start(Thread.java:638) at com.sun.jbi.filebc.InboundMessageProcessor.execute(InboundMessageProcessor.java:433) at com.sun.jbi.filebc.InboundMessageProcessor.run(InboundMessageProcessor.java:220) at java.lang.Thread.run(Thread.java:662) |#] [#|2012-07-27T16:48:12.753-0700|SEVERE|sun-appserver2.1|com.sun.jbi.filebc.InboundMessageProcessor|_ThreadID=49;_ThreadName=filebc-ib-Thread-977;_RequestID=2fb532d6-67b2-4ec4-8bf5-35857d9ae0a8;|FILEBC-E00720: inonly message for operation {http://j2ee.netbeans.org/wsdl/FileInOut/FileInWSDL}poll failed processing, an exception was raised. null java.lang.IllegalThreadStateException at java.lang.Thread.start(Thread.java:638) at com.sun.jbi.filebc.InboundMessageProcessor.execute(InboundMessageProcessor.java:433) at com.sun.jbi.filebc.InboundMessageProcessor.run(InboundMessageProcessor.java:220) at java.lang.Thread.run(Thread.java:662) |#] [#|2012-07-27T16:48:13.758-0700|SEVERE|sun-appserver2.1|com.sun.jbi.filebc.InboundMessageProcessor|_ThreadID=49;_ThreadName=filebc-ib-Thread-977;_RequestID=2fb532d6-67b2-4ec4-8bf5-35857d9ae0a8;|FILEBC-E00720: inonly message for operation {http://j2ee.netbeans.org/wsdl/FileInOut/FileInWSDL}poll failed processing, an exception was raised. null java.lang.IllegalThreadStateException at java.lang.Thread.start(Thread.java:638) at com.sun.jbi.filebc.InboundMessageProcessor.execute(InboundMessageProcessor.java:433) at com.sun.jbi.filebc.InboundMessageProcessor.run(InboundMessageProcessor.java:220) at java.lang.Thread.run(Thread.java:662) |#] [#|2012-07-27T16:48:14.768-0700|SEVERE|sun-appserver2.1|com.sun.jbi.filebc.InboundMessageProcessor|_ThreadID=49;_ThreadName=filebc-ib-Thread-977;_RequestID=2fb532d6-67b2-4ec4-8bf5-35857d9ae0a8;|FILEBC-E00720: inonly message for operation {http://j2ee.netbeans.org/wsdl/FileInOut/FileInWSDL}poll failed processing, an exception was raised. null java.lang.IllegalThreadStateException at java.lang.Thread.start(Thread.java:638) at com.sun.jbi.filebc.InboundMessageProcessor.execute(InboundMessageProcessor.java:433) at com.sun.jbi.filebc.InboundMessageProcessor.run(InboundMessageProcessor.java:220) at java.lang.Thread.run(Thread.java:662) |#] [#|2012-07-27T16:48:15.773-0700|SEVERE|sun-appserver2.1|com.sun.jbi.filebc.InboundMessageProcessor|_ThreadID=49;_ThreadName=filebc-ib-Thread-977;_RequestID=2fb532d6-67b2-4ec4-8bf5-35857d9ae0a8;|FILEBC-E00720: inonly message for operation {http://j2ee.netbeans.org/wsdl/FileInOut/FileInWSDL}poll failed processing, an exception was raised. null java.lang.IllegalThreadStateException at java.lang.Thread.start(Thread.java:638) at com.sun.jbi.filebc.InboundMessageProcessor.execute(InboundMessageProcessor.java:433) at com.sun.jbi.filebc.InboundMessageProcessor.run(InboundMessageProcessor.java:220) at java.lang.Thread.run(Thread.java:662) |#] [#|2012-07-27T16:48:16.778-0700|SEVERE|sun-appserver2.1|com.sun.jbi.filebc.InboundMessageProcessor|_ThreadID=49;_ThreadName=filebc-ib-Thread-977;_RequestID=2fb532d6-67b2-4ec4-8bf5-35857d9ae0a8;|FILEBC-E00720: inonly message for operation {http://j2ee.netbeans.org/wsdl/FileInOut/FileInWSDL}poll failed processing, an exception was raised. null java.lang.IllegalThreadStateException at java.lang.Thread.start(Thread.java:638) at com.sun.jbi.filebc.InboundMessageProcessor.execute(InboundMessageProcessor.java:433) at com.sun.jbi.filebc.InboundMessageProcessor.run(InboundMessageProcessor.java:220) at java.lang.Thread.run(Thread.java:662) |#] [#|2012-07-27T16:48:17.783-0700|SEVERE|sun-appserver2.1|com.sun.jbi.filebc.InboundMessageProcessor|_ThreadID=49;_ThreadName=filebc-ib-Thread-977;_RequestID=2fb532d6-67b2-4ec4-8bf5-35857d9ae0a8;|FILEBC-E00720: inonly message for operation {http://j2ee.netbeans.org/wsdl/FileInOut/FileInWSDL}poll failed processing, an exception was raised. null java.lang.IllegalThreadStateException at java.lang.Thread.start(Thread.java:638) at com.sun.jbi.filebc.InboundMessageProcessor.execute(InboundMessageProcessor.java:433) at com.sun.jbi.filebc.InboundMessageProcessor.run(InboundMessageProcessor.java:220) at java.lang.Thread.run(Thread.java:662) |#] [#|2012-07-27T16:48:18.791-0700|SEVERE|sun-appserver2.1|com.sun.jbi.filebc.InboundMessageProcessor|_ThreadID=49;_ThreadName=filebc-ib-Thread-977;_RequestID=2fb532d6-67b2-4ec4-8bf5-35857d9ae0a8;|FILEBC-E00720: inonly message for operation {http://j2ee.netbeans.org/wsdl/FileInOut/FileInWSDL}poll failed processing, an exception was raised. null java.lang.IllegalThreadStateException at java.lang.Thread.start(Thread.java:638) at com.sun.jbi.filebc.InboundMessageProcessor.execute(InboundMessageProcessor.java:433) at com.sun.jbi.filebc.InboundMessageProcessor.run(InboundMessageProcessor.java:220) at java.lang.Thread.run(Thread.java:662) |#] [#|2012-07-27T16:48:19.797-0700|SEVERE|sun-appserver2.1|com.sun.jbi.filebc.InboundMessageProcessor|_ThreadID=49;_ThreadName=filebc-ib-Thread-977;_RequestID=2fb532d6-67b2-4ec4-8bf5-35857d9ae0a8;|FILEBC-E00720: inonly message for operation {http://j2ee.netbeans.org/wsdl/FileInOut/FileInWSDL}poll failed processing, an exception was raised. null java.lang.IllegalThreadStateException at java.lang.Thread.start(Thread.java:638) at com.sun.jbi.filebc.InboundMessageProcessor.execute(InboundMessageProcessor.java:433) at com.sun.jbi.filebc.InboundMessageProcessor.run(InboundMessageProcessor.java:220) at java.lang.Thread.run(Thread.java:662) |#] [#|2012-07-27T16:48:20.807-0700|SEVERE|sun-appserver2.1|com.sun.jbi.filebc.InboundMessageProcessor|_ThreadID=49;_ThreadName=filebc-ib-Thread-977;_RequestID=2fb532d6-67b2-4ec4-8bf5-35857d9ae0a8;|FILEBC-E00720: inonly message for operation {http://j2ee.netbeans.org/wsdl/FileInOut/FileInWSDL}poll failed processing, an exception was raised. null java.lang.IllegalThreadStateException at java.lang.Thread.start(Thread.java:638) at com.sun.jbi.filebc.InboundMessageProcessor.execute(InboundMessageProcessor.java:433) at com.sun.jbi.filebc.InboundMessageProcessor.run(InboundMessageProcessor.java:220) at java.lang.Thread.run(Thread.java:662) |#] [#|2012-07-27T16:48:21.815-0700|SEVERE|sun-appserver2.1|com.sun.jbi.filebc.InboundMessageProcessor|_ThreadID=49;_ThreadName=filebc-ib-Thread-977;_RequestID=2fb532d6-67b2-4ec4-8bf5-35857d9ae0a8;|FILEBC-E00720: inonly message for operation {http://j2ee.netbeans.org/wsdl/FileInOut/FileInWSDL}poll failed processing, an exception was raised. null java.lang.IllegalThreadStateException at java.lang.Thread.start(Thread.java:638) at com.sun.jbi.filebc.InboundMessageProcessor.execute(InboundMessageProcessor.java:433) at com.sun.jbi.filebc.InboundMessageProcessor.run(InboundMessageProcessor.java:220) at java.lang.Thread.run(Thread.java:662) |#]
    via by Fred Aabedi,
    • java.lang.IllegalThreadStateException: Thread is already started at java.lang.Thread.start(Thread.java:953) at hudson.model.Executor.start(Executor.java:497) at hudson.model.Queue$JobOffer.set(Queue.java:261) at hudson.model.queue.MappingWorksheet$ExecutorChunk.execute(MappingWorksheet.java:164) at hudson.model.queue.MappingWorksheet$ExecutorChunk.access$000(MappingWorksheet.java:112) at hudson.model.queue.MappingWorksheet$Mapping.execute(MappingWorksheet.java:313) at hudson.model.Queue.maintain(Queue.java:1064) at hudson.model.Queue$MaintainTask.doRun(Queue.java:2033) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:482) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:315) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:193) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:308) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1176) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:795)

    Users with the same issue

    Lukasmcd14
    Lukasmcd142 times, last one,
    Unknown visitor1 times, last one,