You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Kaushik Mukherjee (Created) (JIRA)" <de...@tuscany.apache.org> on 2012/03/22 17:42:22 UTC
[jira] [Created] (TUSCANY-4035) Application could possibly fail to
start if multiple threads are loading the same schema
Application could possibly fail to start if multiple threads are loading the same schema
----------------------------------------------------------------------------------------
Key: TUSCANY-4035
URL: https://issues.apache.org/jira/browse/TUSCANY-4035
Project: Tuscany
Issue Type: Bug
Reporter: Kaushik Mukherjee
This was an issue in Tuscany 1.x and is likely an issue in the 2.x code as well. The fix in 1.x was to synchronize schema loading across all XSDModelResolvers.
Starting multiple applications simultaneously can lead to an
exception such as:
org.apache.ws.commons.schema.XmlSchemaException: Schema name conflict in collection. Namespace: http://my.namespace
at
org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:223)
at
org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:202)
at
org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:424)
at
org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:347)
at
org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:379)
at
org.apache.tuscany.sca.xsd.xml.XSDModelResolver.loadOnDemand(XSDModelResolver.java:204)
at
org.apache.tuscany.sca.xsd.xml.XSDModelResolver.aggregate(XSDModelResolver.java:240)
at
org.apache.tuscany.sca.xsd.xml.XSDModelResolver.resolveModel(XSDModelResolver.java:114)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (TUSCANY-4035) Application could possibly fail to
start if multiple threads are loading the same schema
Posted by "Kaushik Mukherjee (Updated) (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-4035?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kaushik Mukherjee updated TUSCANY-4035:
---------------------------------------
Attachment: (was: TUSCANY-4035.patch)
> Application could possibly fail to start if multiple threads are loading the same schema
> ----------------------------------------------------------------------------------------
>
> Key: TUSCANY-4035
> URL: https://issues.apache.org/jira/browse/TUSCANY-4035
> Project: Tuscany
> Issue Type: Bug
> Reporter: Kaushik Mukherjee
> Attachments: TUSCANY-4035.patch
>
>
> This was an issue in Tuscany 1.x and is likely an issue in the 2.x code as well. The fix in 1.x was to synchronize schema loading across all XSDModelResolvers.
> Starting multiple applications simultaneously can lead to an
> exception such as:
> org.apache.ws.commons.schema.XmlSchemaException: Schema name conflict in collection. Namespace: http://my.namespace
> at
> org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:223)
> at
> org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:202)
> at
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:424)
> at
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:347)
> at
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:379)
> at
> org.apache.tuscany.sca.xsd.xml.XSDModelResolver.loadOnDemand(XSDModelResolver.java:204)
> at
> org.apache.tuscany.sca.xsd.xml.XSDModelResolver.aggregate(XSDModelResolver.java:240)
> at
> org.apache.tuscany.sca.xsd.xml.XSDModelResolver.resolveModel(XSDModelResolver.java:114)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (TUSCANY-4035) Application could possibly fail to
start if multiple threads are loading the same schema
Posted by "Kaushik Mukherjee (Updated) (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-4035?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kaushik Mukherjee updated TUSCANY-4035:
---------------------------------------
Attachment: TUSCANY-4035.patch
Grant license to ASF for inclusion in ASF works
> Application could possibly fail to start if multiple threads are loading the same schema
> ----------------------------------------------------------------------------------------
>
> Key: TUSCANY-4035
> URL: https://issues.apache.org/jira/browse/TUSCANY-4035
> Project: Tuscany
> Issue Type: Bug
> Reporter: Kaushik Mukherjee
> Attachments: TUSCANY-4035.patch
>
>
> This was an issue in Tuscany 1.x and is likely an issue in the 2.x code as well. The fix in 1.x was to synchronize schema loading across all XSDModelResolvers.
> Starting multiple applications simultaneously can lead to an
> exception such as:
> org.apache.ws.commons.schema.XmlSchemaException: Schema name conflict in collection. Namespace: http://my.namespace
> at
> org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:223)
> at
> org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:202)
> at
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:424)
> at
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:347)
> at
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:379)
> at
> org.apache.tuscany.sca.xsd.xml.XSDModelResolver.loadOnDemand(XSDModelResolver.java:204)
> at
> org.apache.tuscany.sca.xsd.xml.XSDModelResolver.aggregate(XSDModelResolver.java:240)
> at
> org.apache.tuscany.sca.xsd.xml.XSDModelResolver.resolveModel(XSDModelResolver.java:114)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (TUSCANY-4035) Application could possibly fail to
start if multiple threads are loading the same schema
Posted by "Kaushik Mukherjee (Updated) (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-4035?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kaushik Mukherjee updated TUSCANY-4035:
---------------------------------------
Attachment: (was: TUSCANY-4035.patch)
> Application could possibly fail to start if multiple threads are loading the same schema
> ----------------------------------------------------------------------------------------
>
> Key: TUSCANY-4035
> URL: https://issues.apache.org/jira/browse/TUSCANY-4035
> Project: Tuscany
> Issue Type: Bug
> Reporter: Kaushik Mukherjee
>
> This was an issue in Tuscany 1.x and is likely an issue in the 2.x code as well. The fix in 1.x was to synchronize schema loading across all XSDModelResolvers.
> Starting multiple applications simultaneously can lead to an
> exception such as:
> org.apache.ws.commons.schema.XmlSchemaException: Schema name conflict in collection. Namespace: http://my.namespace
> at
> org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:223)
> at
> org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:202)
> at
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:424)
> at
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:347)
> at
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:379)
> at
> org.apache.tuscany.sca.xsd.xml.XSDModelResolver.loadOnDemand(XSDModelResolver.java:204)
> at
> org.apache.tuscany.sca.xsd.xml.XSDModelResolver.aggregate(XSDModelResolver.java:240)
> at
> org.apache.tuscany.sca.xsd.xml.XSDModelResolver.resolveModel(XSDModelResolver.java:114)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (TUSCANY-4035) Application could possibly fail to
start if multiple threads are loading the same schema
Posted by "Kaushik Mukherjee (Updated) (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-4035?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kaushik Mukherjee updated TUSCANY-4035:
---------------------------------------
Attachment: TUSCANY-4035.patch
Add synchronized block to loadOnDemand() method
> Application could possibly fail to start if multiple threads are loading the same schema
> ----------------------------------------------------------------------------------------
>
> Key: TUSCANY-4035
> URL: https://issues.apache.org/jira/browse/TUSCANY-4035
> Project: Tuscany
> Issue Type: Bug
> Reporter: Kaushik Mukherjee
> Attachments: TUSCANY-4035.patch
>
>
> This was an issue in Tuscany 1.x and is likely an issue in the 2.x code as well. The fix in 1.x was to synchronize schema loading across all XSDModelResolvers.
> Starting multiple applications simultaneously can lead to an
> exception such as:
> org.apache.ws.commons.schema.XmlSchemaException: Schema name conflict in collection. Namespace: http://my.namespace
> at
> org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:223)
> at
> org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:202)
> at
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:424)
> at
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:347)
> at
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:379)
> at
> org.apache.tuscany.sca.xsd.xml.XSDModelResolver.loadOnDemand(XSDModelResolver.java:204)
> at
> org.apache.tuscany.sca.xsd.xml.XSDModelResolver.aggregate(XSDModelResolver.java:240)
> at
> org.apache.tuscany.sca.xsd.xml.XSDModelResolver.resolveModel(XSDModelResolver.java:114)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (TUSCANY-4035) Application could possibly fail
to start if multiple threads are loading the same schema
Posted by "Simon Laws (Commented) (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-4035?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13236509#comment-13236509 ]
Simon Laws commented on TUSCANY-4035:
-------------------------------------
Hi Kaushik
Can you check the flag that says you're happy that this is a patch that Apache can use?
> Application could possibly fail to start if multiple threads are loading the same schema
> ----------------------------------------------------------------------------------------
>
> Key: TUSCANY-4035
> URL: https://issues.apache.org/jira/browse/TUSCANY-4035
> Project: Tuscany
> Issue Type: Bug
> Reporter: Kaushik Mukherjee
> Attachments: TUSCANY-4035.patch
>
>
> This was an issue in Tuscany 1.x and is likely an issue in the 2.x code as well. The fix in 1.x was to synchronize schema loading across all XSDModelResolvers.
> Starting multiple applications simultaneously can lead to an
> exception such as:
> org.apache.ws.commons.schema.XmlSchemaException: Schema name conflict in collection. Namespace: http://my.namespace
> at
> org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:223)
> at
> org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:202)
> at
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:424)
> at
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:347)
> at
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:379)
> at
> org.apache.tuscany.sca.xsd.xml.XSDModelResolver.loadOnDemand(XSDModelResolver.java:204)
> at
> org.apache.tuscany.sca.xsd.xml.XSDModelResolver.aggregate(XSDModelResolver.java:240)
> at
> org.apache.tuscany.sca.xsd.xml.XSDModelResolver.resolveModel(XSDModelResolver.java:114)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (TUSCANY-4035) Application could possibly fail to
start if multiple threads are loading the same schema
Posted by "Simon Laws (Assigned) (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-4035?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon Laws reassigned TUSCANY-4035:
-----------------------------------
Assignee: Simon Laws
> Application could possibly fail to start if multiple threads are loading the same schema
> ----------------------------------------------------------------------------------------
>
> Key: TUSCANY-4035
> URL: https://issues.apache.org/jira/browse/TUSCANY-4035
> Project: Tuscany
> Issue Type: Bug
> Reporter: Kaushik Mukherjee
> Assignee: Simon Laws
> Attachments: TUSCANY-4035v2.patch
>
>
> This was an issue in Tuscany 1.x and is likely an issue in the 2.x code as well. The fix in 1.x was to synchronize schema loading across all XSDModelResolvers.
> Starting multiple applications simultaneously can lead to an
> exception such as:
> org.apache.ws.commons.schema.XmlSchemaException: Schema name conflict in collection. Namespace: http://my.namespace
> at
> org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:223)
> at
> org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:202)
> at
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:424)
> at
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:347)
> at
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:379)
> at
> org.apache.tuscany.sca.xsd.xml.XSDModelResolver.loadOnDemand(XSDModelResolver.java:204)
> at
> org.apache.tuscany.sca.xsd.xml.XSDModelResolver.aggregate(XSDModelResolver.java:240)
> at
> org.apache.tuscany.sca.xsd.xml.XSDModelResolver.resolveModel(XSDModelResolver.java:114)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Closed] (TUSCANY-4035) Application could possibly fail to
start if multiple threads are loading the same schema
Posted by "Simon Laws (Closed) (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-4035?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simon Laws closed TUSCANY-4035.
-------------------------------
Resolution: Fixed
Fix Version/s: Java-SCA-2.0
Applied at revision: 1304516. Thanks for the patch Kaushik.
> Application could possibly fail to start if multiple threads are loading the same schema
> ----------------------------------------------------------------------------------------
>
> Key: TUSCANY-4035
> URL: https://issues.apache.org/jira/browse/TUSCANY-4035
> Project: Tuscany
> Issue Type: Bug
> Reporter: Kaushik Mukherjee
> Assignee: Simon Laws
> Fix For: Java-SCA-2.0
>
> Attachments: TUSCANY-4035v2.patch
>
>
> This was an issue in Tuscany 1.x and is likely an issue in the 2.x code as well. The fix in 1.x was to synchronize schema loading across all XSDModelResolvers.
> Starting multiple applications simultaneously can lead to an
> exception such as:
> org.apache.ws.commons.schema.XmlSchemaException: Schema name conflict in collection. Namespace: http://my.namespace
> at
> org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:223)
> at
> org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:202)
> at
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:424)
> at
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:347)
> at
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:379)
> at
> org.apache.tuscany.sca.xsd.xml.XSDModelResolver.loadOnDemand(XSDModelResolver.java:204)
> at
> org.apache.tuscany.sca.xsd.xml.XSDModelResolver.aggregate(XSDModelResolver.java:240)
> at
> org.apache.tuscany.sca.xsd.xml.XSDModelResolver.resolveModel(XSDModelResolver.java:114)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (TUSCANY-4035) Application could possibly fail to
start if multiple threads are loading the same schema
Posted by "Kaushik Mukherjee (Updated) (JIRA)" <de...@tuscany.apache.org>.
[ https://issues.apache.org/jira/browse/TUSCANY-4035?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kaushik Mukherjee updated TUSCANY-4035:
---------------------------------------
Attachment: TUSCANY-4035v2.patch
Updated patch on top of latest revision. Includes TUSCANY-4030.
> Application could possibly fail to start if multiple threads are loading the same schema
> ----------------------------------------------------------------------------------------
>
> Key: TUSCANY-4035
> URL: https://issues.apache.org/jira/browse/TUSCANY-4035
> Project: Tuscany
> Issue Type: Bug
> Reporter: Kaushik Mukherjee
> Attachments: TUSCANY-4035v2.patch
>
>
> This was an issue in Tuscany 1.x and is likely an issue in the 2.x code as well. The fix in 1.x was to synchronize schema loading across all XSDModelResolvers.
> Starting multiple applications simultaneously can lead to an
> exception such as:
> org.apache.ws.commons.schema.XmlSchemaException: Schema name conflict in collection. Namespace: http://my.namespace
> at
> org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:223)
> at
> org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:202)
> at
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:424)
> at
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:347)
> at
> org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:379)
> at
> org.apache.tuscany.sca.xsd.xml.XSDModelResolver.loadOnDemand(XSDModelResolver.java:204)
> at
> org.apache.tuscany.sca.xsd.xml.XSDModelResolver.aggregate(XSDModelResolver.java:240)
> at
> org.apache.tuscany.sca.xsd.xml.XSDModelResolver.resolveModel(XSDModelResolver.java:114)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira