[
https://issues.apache.org/jira/browse/TUSCANY-1130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12476430
]
Frank Budinsky commented on TUSCANY-1130:
-----------------------------------------
Thanks Hasan,
I think it would be a little better to synchronize the creation of
SDOXSDEcoreBuilder in XSDHelperImpl (instead of SDOUtil.createHelperContext),
since that's the specific area of the concurrency problem. I committed the fix
in revision 512457, but haven't tried to run the test. Could you please verify
that it fixes the problem your seeing?
I don't know if we should add the GroboUtils.jar dependency to the project.
Does anybody know if the SCA project does multi-threaded testing?
Thanks,
Frank.
> Concurrent access to SDOUtil.createHelperContext() results in exception
> -----------------------------------------------------------------------
>
> Key: TUSCANY-1130
> URL: https://issues.apache.org/jira/browse/TUSCANY-1130
> Project: Tuscany
> Issue Type: Bug
> Components: Java SDO Implementation
> Affects Versions: Java-M2
> Environment: All
> Reporter: Hasan Muhammad
> Fix For: Java-M2
>
> Attachments: 1130.patch, 1130.patch, 1130_final.patch,
> 1130_new.patch, HelperContextMultiThreadedTestCase.java
>
>
> In tuscany runtime, when multiple apps are started simultaneously, we get an
> exception as below: This is a problem with acessing
> SDOUtil.createHelperContext(0 concurrently.
> Exception = java.util.ConcurrentModificationException
> Source = com.ibm.ws.soa.sca.admin.config.loader.SDOLoader.<INIT>
> probeid = 80
> Stack Dump = java.util.ConcurrentModificationException: concurrent access to
> HashMap attempted by Thread[server.startup : 2,5,main]
> at java.util.HashMap.onExit(HashMap.java:217)
> at java.util.HashMap.transfer(HashMap.java:514)
> at java.util.HashMap.resize(HashMap.java:500)
> at java.util.HashMap.addEntry(HashMap.java:800)
> at java.util.HashMap.put(HashMap.java:441)
> at
> com.ibm.sdo.internal.ecore.util.BasicExtendedMetaData$EPackageExtendedMetaDataImpl.getType(BasicExtendedMetaData.java:2064)
> at
> com.ibm.sdo.internal.ecore.util.BasicExtendedMetaData.getType(BasicExtendedMetaData.java:115)
> at
> com.ibm.sdo.internal.xsd.ecore.XSDEcoreBuilder.populateTypeToTypeObjectMap(XSDEcoreBuilder.java:108)
> at
> org.apache.tuscany.sdo.helper.SDOXSDEcoreBuilder.<init>(SDOXSDEcoreBuilder.java:61)
> at
> org.apache.tuscany.sdo.helper.XSDHelperImpl.<init>(XSDHelperImpl.java:79)
> at
> org.apache.tuscany.sdo.helper.XSDHelperImpl.<init>(XSDHelperImpl.java:94)
> at
> org.apache.tuscany.sdo.helper.HelperContextImpl.<init>(HelperContextImpl.java:48)
> at
> org.apache.tuscany.sdo.helper.HelperContextImpl.<init>(HelperContextImpl.java:52)
> at
> org.apache.tuscany.sdo.util.SDOUtil.createHelperContext(SDOUtil.java:299)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]