cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with UML tool

Former Member
0 Kudos

Have been trying to use the UML 2.0 tool from https://wiki.hybris.com/display/release5/hybris+UML+Tool with b2bcommerce-items.xml from ver 5.7 - as below

C:\umlh57\commerce>java -jar umltool.jar b2bcommerce-items.xml -e -o result [main] INFO - Starting spring context...

Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.ee.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58) Caused by: java.lang.IllegalArgumentException: Cannot parse file due to duplicate item code 'B2BUnit at de.hybris.xmlumltool.main.InputItems.loadTypes(InputItems.java:91) at de.hybris.xmlumltool.main.InputItems.init(InputItems.java:65) at de.hybris.xmlumltool.main.InputItems.(InputItems.java:60) at de.hybris.xmlumltool.main.UMLTool.main(UMLTool.java:134) ... 5 more

C:\umlh57\commerce>

Any advice on how to get this resolved? It works with basecommerce-items.xml or other items.xml

Accepted Solutions (0)

Answers (1)

Answers (1)

Marko_salonen
Contributor
0 Kudos

Late response but it might be because someone decided to define B2BUnit twice in the file. Merge those and run the script again and it should work