I’m migrating Bonita version 7.3.0 to 7.4.1 and I have an error during the process definition migration with the bonita-migration-distrib-2.19.0 tool. The last lines in log are :
…
[INFO] Execute migration to version 7.3.3
[INFO] Updating platform version in the database …
[INFO] Platform version in database changed to 7.3.3
[INFO] Execute migration to version 7.4.0
[INFO] ---------------
[INFO] | Execute migration step: Update process definition xml to the new 7.4 format
Exception in thread “main” org.xml.sax.SAXParseException; lineNumber: 8; columnNumber: 52; cvc-id.2 : Occurrences multiples de la valeur d’ID ‘_65537’.
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:203)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:134)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:396)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:327)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:284)
…
The problem seems to be during the tranformation of the xml for the process definition.
I can’t find the source of the bonita-migration-distrib-2.19.0. These are stopping at 7.3.2 here. Anybody knows where are the next ?
And another !!! Is this transformation is all right ?
Exception in thread “main” org.xml.sax.SAXParseException; lineNumber: 9; columnNumber: 18; cvc-datatype-valid.1.2.1 : ‘’ n’est pas une valeur valide pour ‘NCName’.
Exception in thread “main” org.xml.sax.SAXParseException; lineNumber: 595; columnNumber: 21; cvc-complex-type.2.4.a : Contenu non valide trouvé à partir de l’élément ‘incomingTransition’. L’une des valeurs ‘{displayDescription, displayName, displayDescriptionAfterCompletion, defaultTransition, throwMessageEventTrigger, throwSignalEventTrigger}’ est attendue.
I found the raison with XML Tools (Notepad++) by transforming with them and control with the files ProcessDefinition.xml and ProcessDefiniton.xsd present in bonita-migration-distrib-2.19.0.jar.
The message issue to the xsd validation is : ERROR: Element ‘actor’, attribute ‘id’: ‘idm1596941468’ is not a valid value of the atomic type ‘xs:ID’.
I can bypass this problem migration with modify the content (xml process definition) in the process_content table of the bonita schema.
PS: I realise this may not be the answer you are looking for but it’s the best we can do for this type of error on the community forum, please mark as resolved so others don’t have to reply.
Maybe it could be a problem with my process particularity, if I could get the migration source project, i coul’d debug it and try to find where is the problem and help you for resolving the issue…
I’m having a problem similar to the one submitted by 3Fred9 on Tue, 01/24/2017 - 17:43:
[INFO] Execute migration to version 7.4.0
[INFO] ---------------
[INFO] | Execute migration step: Update process definition xml to the new 7.4 format
[ERROR]
failed to migrate process definition due to cvc-complex-type.2.4.a: Foi detectado um conteúdo inválido começando com o elemento ‘displayDescription’. Era esperado um dos ‘{displayDescriptionAfterCompletion, defaultTransition}’.
I’m using the bonita-migration-distrib-2.40.0 (04/18/2019 - 15:37) to migrate from 7.3.3 to 7.4.0, since the similar problem was reported as a bug in 2017, I was wondering if this one could be a bug as well?
I just give a try to a migration from 7.3.0 to 7.4.1 having a process definition that includes a “display description after completion” for a task and also a transition set as “default” and I manage to successfully do it.
So I think that in order to reproduce your issue I would need your process definition. Can you share your process .bar file for Bonita 7.3.0? And also maybe the content of your workspace as a .bos file? Can you put all that in an new issue on the Bonita Community Edition bug tracker: https://bonita.atlassian.net/projects/BBPMC/issues/
Acctually, I’m migrating from 6.4.2 to 7.8.4.
The migration from 6.4.2 to 7.0.0 worked fine and the migration from 7.0.0 to 7.3.3 also worked fine. The problem I mentioned has occured in the migration from 7.3.3 to 7.4.0.
In order to create a new issue on the Bonita Community Edition bug tracker, I tried to import my .bos (6.4.2), using the Studio 7.3.0 but it didn’t work. I tried doing this in other versions as welll, but it only worked in Studio 7.8. Could you help me with that? I Can share my .bos if you want, just let me know how.
Bonitasoft empowers development teams with Bonita, the open-source and extensible platform to solve the most demanding process automation use cases. The Bonita platform accelerates delivery of complex applications with clear separation between capabilities for visual programming and for coding. Bonita integrates with existing solutions, orchestrates heterogeneous systems, and provides deep visibility into processes across the organization.