cipa-smp-webapp is not thread safe

In eu.europa.ec.cipa.smp.server.data.dbms DBMSDataManager uses

aTransaction.begin ();

and this is not thread safe.

To reproduce just simulate concurrent users with siege:

siege http://smp.b2brouter.com/iso6523-actorid-upis::9912:ESB63276174/services/busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:Invoice-2::Invoice%23%23urn:www.cenbii.eu:transaction:biicoretrdm010:ver1.0:%23urn:www.peppol.eu:bis:peppol4a:ver1.0::2.0

This is the exception:

2013-03-21 10:13:03,624 [ERROR] at.peppol.smp.server.ServiceMetadataInterface - Error in returning service metadata.
java.lang.IllegalStateException:
Exception Description: Transaction is currently active
at org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImpl.begin(EntityTransactionImpl.java:45)
at at.peppol.smp.server.data.dbms.DBMSDataManager.getRedirection(DBMSDataManager.java:483)
at at.peppol.smp.server.ServiceMetadataInterface.getServiceRegistration(ServiceMetadataInterface.java:101)
...

See http://stackoverflow.com/questions/4002596/arent-multiple-transactions-…

Component

Code

Category

bug

Comments

Tue, 04/06/2013 - 13:03

This bug has been resolved in v1.1.0 (released on 31 May). For further details on the resolution, please refer to the following Jira ticket: https://webgate.ec.europa.eu/CITnet/jira/browse/EDELIVERY-72

Fri, 05/07/2013 - 09:01
Thu, 11/07/2013 - 19:07

Hi David,

 

We are working on integrating our Jira issue tracker with Joinup and hopefully it will be in place shortly. In the meanwhile we have created an account granting you access to the Jira issue tracker (as well as to our wiki). You should have received an email with a link to set your password.

 

Our apologies for the inconvenience.

 

Kind regards,

Kelly

The content of this field is kept private and will not be shown publicly.