java.lang.IllegalMonitorStateException

Stack Overflow | Tomáš M. | 6 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    LinkedBlockingQueue IllegalMonitorStateException on take()?

    Stack Overflow | 6 months ago | Tomáš M.
    java.lang.IllegalMonitorStateException
  2. 0

    lucee unstable under assault?

    Google Groups | 1 year ago | Tim Clarke
    java.lang.IllegalMonitorStateException
  3. 0

    JVM crashes when using `:delimiter \;`

    GitHub | 4 years ago | boechat107
    java.lang.IllegalMonitorStateException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    If you use cffile upload to upload a file on Lucee 5.1 it crashes with the following errors in the catalina.out log: {noformat} java.lang.NoClassDefFoundError: org/apache/commons/io/IOUtils at org.apache.commons.fileupload.util.Streams.copy(Streams.java:123) at org.apache.commons.fileupload.util.Streams.copy(Streams.java:70) at org.apache.commons.fileupload.MultipartStream.readBodyData(MultipartStream.java:593) at org.apache.commons.fileupload.MultipartStream.discardBodyData(MultipartStream.java:617) at org.apache.commons.fileupload.MultipartStream.skipPreamble(MultipartStream.java:634) at org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.findNextItem(FileUploadBase.java:1023) at org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.<init>(FileUploadBase.java:1003) at org.apache.commons.fileupload.FileUploadBase.getItemIterator(FileUploadBase.java:310) at lucee.runtime.type.scope.FormImpl.initializeMultiPart(FormImpl.java:182) at lucee.runtime.type.scope.FormImpl.initialize(FormImpl.java:123) at lucee.runtime.PageContextImpl.formScope(PageContextImpl.java:1146) at lucee.runtime.type.scope.UndefinedImpl.reinitialize(UndefinedImpl.java:610) at lucee.runtime.type.scope.UndefinedImpl.initialize(UndefinedImpl.java:588) at lucee.runtime.PageContextImpl.initialize(PageContextImpl.java:500) at lucee.runtime.CFMLFactoryImpl.getPageContextImpl(CFMLFactoryImpl.java:172) at lucee.runtime.CFMLFactoryImpl.getLuceePageContext(CFMLFactoryImpl.java:151) at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:864) at lucee.loader.engine.CFMLEngineWrapper.serviceCFML(CFMLEngineWrapper.java:103) at lucee.loader.servlet.CFMLServlet.service(CFMLServlet.java:62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:528) at org.apache.coyote.ajp.AbstractAjpProcessor.process(AbstractAjpProcessor.java:872) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2508) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2497) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.ClassNotFoundException: org.apache.commons.io.IOUtils not found by org.lucee.commons.fileupload [43] at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1558) at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:79) at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1998) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 40 more Exception in thread "ajp-apr-8009-exec-6" java.lang.IllegalMonitorStateException at java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(ReentrantLock.java:155) at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueuedSynchronizer.java:1260) at java.util.concurrent.locks.ReentrantLock.unlock(ReentrantLock.java:460) at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:449) at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:103) at org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:31) at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) java.lang.NoClassDefFoundError: org/apache/commons/io/IOUtils at org.apache.commons.fileupload.util.Streams.copy(Streams.java:123) at org.apache.commons.fileupload.util.Streams.copy(Streams.java:70) at org.apache.commons.fileupload.MultipartStream.readBodyData(MultipartStream.java:593) at org.apache.commons.fileupload.MultipartStream.discardBodyData(MultipartStream.java:617) at org.apache.commons.fileupload.MultipartStream.skipPreamble(MultipartStream.java:634) at org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.findNextItem(FileUploadBase.java:1023) at org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.<init>(FileUploadBase.java:1003) at org.apache.commons.fileupload.FileUploadBase.getItemIterator(FileUploadBase.java:310) at lucee.runtime.type.scope.FormImpl.initializeMultiPart(FormImpl.java:182) at lucee.runtime.type.scope.FormImpl.initialize(FormImpl.java:123) at lucee.runtime.PageContextImpl.formScope(PageContextImpl.java:1146) at lucee.runtime.type.scope.UndefinedImpl.reinitialize(UndefinedImpl.java:610) at lucee.runtime.type.scope.UndefinedImpl.initialize(UndefinedImpl.java:588) at lucee.runtime.PageContextImpl.initialize(PageContextImpl.java:500) at lucee.runtime.CFMLFactoryImpl.getPageContextImpl(CFMLFactoryImpl.java:172) at lucee.runtime.CFMLFactoryImpl.getLuceePageContext(CFMLFactoryImpl.java:151) at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:864) at lucee.loader.engine.CFMLEngineWrapper.serviceCFML(CFMLEngineWrapper.java:103) at lucee.loader.servlet.CFMLServlet.service(CFMLServlet.java:62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:528) at org.apache.coyote.ajp.AbstractAjpProcessor.process(AbstractAjpProcessor.java:872) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2508) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2497) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) Exception in thread "ajp-apr-8009-exec-55" java.lang.IllegalMonitorStateException at java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(ReentrantLock.java:155) at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueuedSynchronizer.java:1260) at java.util.concurrent.locks.ReentrantLock.unlock(ReentrantLock.java:460) at java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:474) at org.apache.tomcat.util.threads.TaskQueue.poll(TaskQueue.java:85) at org.apache.tomcat.util.threads.TaskQueue.poll(TaskQueue.java:31) at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1068) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) {noformat}

    JIRA | 8 months ago | Andrew Dixon
    java.lang.IllegalMonitorStateException

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.IllegalMonitorStateException

      No message provided

      at java.util.concurrent.locks.ReentrantLock$Sync.tryRelease()
    2. Java RT
      LinkedBlockingQueue.take
      1. java.util.concurrent.locks.ReentrantLock$Sync.tryRelease(ReentrantLock.java:151)
      2. java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueuedSynchronizer.java:1261)
      3. java.util.concurrent.locks.ReentrantLock.unlock(ReentrantLock.java:457)
      4. java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:449)
      4 frames
    3. Unknown
      mythread.run
      1. mythread.run(MyThread.java:56)
      1 frame