javolution.JavolutionError: Concurrent maps should be marked shared

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

javolution.JavolutionError: Concurrent maps should be marked shared

cqnunez
We encountered the ff error when implementing multiple threads to process multiple orders. Any assistance would be much appreciated. Thanks.

---- error report --------------------------------------------------------------
Service [getPartyAccountingPreferences] threw an unexpected exception/error
Exception: javolution.JavolutionError
Message: Concurrent maps should be marked shared
---- stack trace ---------------------------------------------------------------
javolution.JavolutionError: Concurrent maps should be marked shared
javolution.util.FastMap.indexOf(Unknown Source)
javolution.util.FastMap.unmapEntry(Unknown Source)
javolution.util.FastMap.unmapEntry(Unknown Source)
javolution.util.FastMap.removeEntry(Unknown Source)
javolution.util.FastMap.remove(Unknown Source)
org.ofbiz.entity.transaction.TransactionUtil.clearTransactionBeginStack(TransactionUtil.java:652)
org.ofbiz.entity.transaction.TransactionUtil.suspend(TransactionUtil.java:337)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:294)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:162)
org.ofbiz.service.ModelService.evalPermission(ModelService.java:959)
org.ofbiz.service.ServiceDispatcher.checkAuth(ServiceDispatcher.java:892)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:342)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:162)
org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:244)
org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
org.ofbiz.minilang.method.ifops.IfEmpty.exec(IfEmpty.java:95)
org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:749)
org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:84)
org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:749)
org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:149)
org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:131)
org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:162)
org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:244)
org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
org.ofbiz.minilang.method.ifops.IfEmpty.exec(IfEmpty.java:95)
org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
org.ofbiz.minilang.method.envops.Loop.exec(Loop.java:81)
org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:749)
org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:149)
org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:131)
org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384)
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:148)
Reply | Threaded
Open this post in threaded view
|

Re: javolution.JavolutionError: Concurrent maps should be marked shared

BJ Freeman
a few weeks ago a update was done to the trunk to replace the Javolution
library.
Adam Heath found a bug and reported to Javolution



cqnunez sent the following on 8/5/2010 8:12 PM:

>
> We encountered the ff error when implementing multiple threads to process
> multiple orders. Any assistance would be much appreciated. Thanks.
>
> ---- error report
> --------------------------------------------------------------
> Service [getPartyAccountingPreferences] threw an unexpected exception/error
> Exception: javolution.JavolutionError
> Message: Concurrent maps should be marked shared
> ---- stack trace
> ---------------------------------------------------------------
> javolution.JavolutionError: Concurrent maps should be marked shared
> javolution.util.FastMap.indexOf(Unknown Source)
> javolution.util.FastMap.unmapEntry(Unknown Source)
> javolution.util.FastMap.unmapEntry(Unknown Source)
> javolution.util.FastMap.removeEntry(Unknown Source)
> javolution.util.FastMap.remove(Unknown Source)
> org.ofbiz.entity.transaction.TransactionUtil.clearTransactionBeginStack(TransactionUtil.java:652)
> org.ofbiz.entity.transaction.TransactionUtil.suspend(TransactionUtil.java:337)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:294)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:162)
> org.ofbiz.service.ModelService.evalPermission(ModelService.java:959)
> org.ofbiz.service.ServiceDispatcher.checkAuth(ServiceDispatcher.java:892)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:342)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:162)
> org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:244)
> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
> org.ofbiz.minilang.method.ifops.IfEmpty.exec(IfEmpty.java:95)
> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:749)
> org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:84)
> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:749)
> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:149)
> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:131)
> org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
> org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:162)
> org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:244)
> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
> org.ofbiz.minilang.method.ifops.IfEmpty.exec(IfEmpty.java:95)
> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
> org.ofbiz.minilang.method.envops.Loop.exec(Loop.java:81)
> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:749)
> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:149)
> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:131)
> org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
> org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:148)
>
Reply | Threaded
Open this post in threaded view
|

Re: javolution.JavolutionError: Concurrent maps should be marked shared

Adrian Crum-2
In reply to this post by cqnunez
How are you implementing your multi-threaded code? Your message doesn't provide enough information.

-Adrian

--- On Thu, 8/5/10, cqnunez <[hidden email]> wrote:

> From: cqnunez <[hidden email]>
> Subject: javolution.JavolutionError: Concurrent maps should be marked shared
> To: [hidden email]
> Date: Thursday, August 5, 2010, 8:12 PM
>
> We encountered the ff error when implementing multiple
> threads to process
> multiple orders. Any assistance would be much appreciated.
> Thanks.
>
> ---- error report
> --------------------------------------------------------------
> Service [getPartyAccountingPreferences] threw an unexpected
> exception/error
> Exception: javolution.JavolutionError
> Message: Concurrent maps should be marked shared
> ---- stack trace
> ---------------------------------------------------------------
> javolution.JavolutionError: Concurrent maps should be
> marked shared
> javolution.util.FastMap.indexOf(Unknown Source)
> javolution.util.FastMap.unmapEntry(Unknown Source)
> javolution.util.FastMap.unmapEntry(Unknown Source)
> javolution.util.FastMap.removeEntry(Unknown Source)
> javolution.util.FastMap.remove(Unknown Source)
> org.ofbiz.entity.transaction.TransactionUtil.clearTransactionBeginStack(TransactionUtil.java:652)
> org.ofbiz.entity.transaction.TransactionUtil.suspend(TransactionUtil.java:337)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:294)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:162)
> org.ofbiz.service.ModelService.evalPermission(ModelService.java:959)
> org.ofbiz.service.ServiceDispatcher.checkAuth(ServiceDispatcher.java:892)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:342)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:162)
> org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:244)
> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
> org.ofbiz.minilang.method.ifops.IfEmpty.exec(IfEmpty.java:95)
> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:749)
> org.ofbiz.minilang.method.callops.CallSimpleMethod.exec(CallSimpleMethod.java:84)
> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:749)
> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:149)
> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:131)
> org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
> org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:162)
> org.ofbiz.minilang.method.callops.CallService.exec(CallService.java:244)
> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
> org.ofbiz.minilang.method.ifops.IfEmpty.exec(IfEmpty.java:95)
> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
> org.ofbiz.minilang.method.envops.Loop.exec(Loop.java:81)
> org.ofbiz.minilang.SimpleMethod.runSubOps(SimpleMethod.java:921)
> org.ofbiz.minilang.SimpleMethod.exec(SimpleMethod.java:749)
> org.ofbiz.minilang.SimpleMethod.runSimpleMethod(SimpleMethod.java:149)
> org.ofbiz.minilang.SimpleMethod.runSimpleService(SimpleMethod.java:131)
> org.ofbiz.minilang.SimpleServiceEngine.serviceInvoker(SimpleServiceEngine.java:76)
> org.ofbiz.minilang.SimpleServiceEngine.runSync(SimpleServiceEngine.java:51)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:384)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:213)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:148)
>
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/javolution-JavolutionError-Concurrent-maps-should-be-marked-shared-tp2315856p2315856.html
> Sent from the OFBiz - User mailing list archive at
> Nabble.com.
>