Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[orb-dev] POAImpl.find_POA causing java.lang.IllegalMonitorStateException
  • From: <Clint_Bennion@xxxxxxxx>
  • Date: Mon, 1 Apr 2024 19:54:22 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=2; mx.microsoft.com 1; spf=fail (sender ip is 144.49.247.21) smtp.rcpttodomain=eclipse.org smtp.mailfrom=amat.com; dmarc=fail (p=reject sp=reject pct=100) action=oreject header.from=amat.com; dkim=none (message not signed); arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=amat.com] dkim=[1,1,header.d=amat.com] dmarc=[1,1,header.from=amat.com])
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amat.com; dmarc=pass action=none header.from=amat.com; dkim=pass header.d=amat.com; arc=none
  • Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ib5XO3s9CLJvOzqoukfPTSoj5PGxzFGmkg8uOtdbDL4=; b=fTs15oj8wIOybWuBspDcjlYyN/n5Hau2EZDC81C9wHdyWxnIEbXPnMYNLqsy+AWWF0Kyroc2lRPwunwvt/YVmer2vDvvV9rtisCbP6Ji0IiJ6PqSGzGDE+N9inKFsV4oxzO4kMcdnDQsxTFkidW6RC8nr5tokex9a3Qc3ap/hXI2g2x+HFVPN+9TWmlxMUE/5Cr+vHtTmuEU+lIWifVCZJNe67r68kJvOeP4mfzkpv78YWi6h2schJ1z5ZxvjaJ5/RfD9zv2dif9anN6gZawHUvLndoL2YN9EaFpdOAsoZOzYA6i+pbsQOHvVt4gl8gC076wo5uF7WSpmJUUjPU8IQ==
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ib5XO3s9CLJvOzqoukfPTSoj5PGxzFGmkg8uOtdbDL4=; b=a24i3rsgr7n5IG+hhGe/XCChG6A4TVhctvhhjzDJfGji812SRGctxmdYuyNHlPI7w0oeS+4mkIx1zRCxpEkO769YtAZL2TmSvyMG5KYLWV5tJdBLABEVMLF1YT4OgT8cA9M/5CjT70xsY/WABZcVkd1nmEIthemeY/wRvuxm8Afo5ruGRDrGm+NEBJ7TK0Eb30OWpQQg8FaDBvPWzT4IXt7tZLvoaZB6t0u7808C94T5EOXvbtzavzDyusJ4kvXpDuzcRqyv5FuLBqOHPSdrWbtz+om8Xx3ZveEmS2ty92PRMOeL+cy/aKzzJq5sASe+jLtfhrZaw11ook/aFiikfg==
  • Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=hr6DBa3um+I6B18khACnYUz1V9YiaE2DEhduGZcLjC8N+vTmyxkXf+SFEOfBnC10eQw6jwhtNBFRm8DCAuOB/UTELiN0VFxdDIrwBymzzSJHIBtGZH0kCXJMREABIRDIZ1REbUQXnKklPEMqjV+1MGbnJg16lo7uTMpXZyBuNpMqXydNkjf5hq6F/2Fwbj6YvKcprTg0wILUwpqq8JhgbHGgDWZMGchOj5HS3qJYHpE3xZpAL6qhTaay0jD2CaUD+8WrivK0dCPPs+3PMKld5SsiMtscXBKFs/ynbzD0U7xsIjAiCm1FDsgXVlNXc6oamZF82lqzYpO1NdtytZ7OWQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g+4Dla+GjAdZaXi2XFHcRrUhURAq+nfJP52485Iy/0/ojOwuFPymyKcBiz10e5nJIAge/UCzIVp5WfLjyD1oSkHEgKumNsoKyNn3zQQrim7o9jQSh6//vbBRxfzxyF1WLUEpEyJyQZVPEoKvTa8Fixan8pp5G2Jy/UsMyhWw33ZIvhl2kDo9SvLte3dSqoBzH/aaUGvHk0OEWnp69khawnOMes2vU5pLPBmSr8aRAADyp4x1iECiTy8GOLYZ41Gu6YRNrMoRoD0hd/qS3vF4vyL7kz2DX85tjQnRkxJz3Z+ibhJMjEevD/Il3ByATw1EAICv6ygIUdOoHpR/IqJKOA==
  • Delivered-to: orb-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/orb-dev/>
  • List-help: <mailto:orb-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/orb-dev>, <mailto:orb-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/orb-dev>, <mailto:orb-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AdqEbQz6yV3dwY50RpWYdihViK9Oag==
  • Thread-topic: POAImpl.find_POA causing java.lang.IllegalMonitorStateException

Hello,

I hope this is the correct place to report an issue. I am trying to convert our product from using CORBA in se to Glassfish/ee. I don’t know the details of this code and my proposed solution might not be correct but I hope the problem is clear.

 

Thank You

 

https://github.com/eclipse-ee4j/orb/blob/master/orbmain/src/main/java/com/sun/corba/ee/impl/oa/poa/POAImpl.java

 

Line 999

                } finally {

                    if (readLocked) { readUnlock() ; } // Issue 14917: was unlock()

                }

Should read

                } finally {

                    if (readLocked) { readUnlock() ; readLocked = false ; } // Issue 14917: was unlock()

                }

 

By not setting readLocked to false the cleanUpLocks call will throw the exception

cleanUpLocks( child, readLocked, writeLocked, childReadLocked ) ;

 

Example exception:

java.lang.IllegalMonitorStateException: attempt to unlock read lock, not locked by current thread

                at java.util.concurrent.locks.ReentrantReadWriteLock$Sync.unmatchedUnlockException(ReentrantReadWriteLock.java:444)

                at java.util.concurrent.locks.ReentrantReadWriteLock$Sync.tryReleaseShared(ReentrantReadWriteLock.java:428)

                at java.util.concurrent.locks.AbstractQueuedSynchronizer.releaseShared(AbstractQueuedSynchronizer.java:1341)

                at java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock.unlock(ReentrantReadWriteLock.java:881)

                at com.sun.corba.ee.impl.oa.poa.POAImpl.readUnlock(POAImpl.java:388)

                at com.sun.corba.ee.impl.oa.poa.POAImpl.cleanUpLocks(POAImpl.java:1089)

                at com.sun.corba.ee.impl.oa.poa.POAImpl.find_POA(POAImpl.java:1010)

 

 

The content of this message is APPLIED MATERIALS CONFIDENTIAL. If you are not the intended recipient, please notify me, delete this email and do not use or distribute this email.


Back to the top