Description of problem: The transaction-type attribute is optional so Persistence Descriptor editor shouldn't fail to open persistence.xml where persistence-unit element does not have that attribute. Version-Release number of selected component (if applicable): 6.2.0.ER1
Created attachment 1065297 [details] Exception stack trace from server.log
It is caused by the fact that element.getAttribute() on line 64 returns empty String, not null, if the attribute doesn't exists, and so the null check on line 65 doesn't avoid the attempt to convert the empty String to enum value. https://github.com/droolsjbpm/kie-wb-common/blob/4b92a5b692c91f73e667a2adbeacb1d4ae325117/kie-wb-common-screens/kie-wb-common-data-modeller/kie-wb-common-data-modeller-api/src/main/java/org/kie/workbench/common/screens/datamodeller/util/DOM2PersistenceDescriptorVisitor.java#L64
The issue was fixed in the following commits: master: https://github.com/droolsjbpm/kie-wb-common/commit/c88a36a37253092ec9901c2667e0446557b997aa 6.3.x: https://github.com/droolsjbpm/kie-wb-common/commit/b6568962c9ecf99c7213188c3610a08ece60e3e3