Error importing sample dup into Protege 3.5

Post Reply
demolao
Posts: 3
Joined: 13 Aug 2020, 19:41

Hello.

I am trying out Essential Open Source for a Proof of Concept.

I am using Windows and downloaded an installed standalone_essential_v6.7.zip and installed Protege, Essential Viewer and Essential Import Utility.

Started up and was able to open the sample repository in both Protege and the Viewer

Downloaded the sample banking_bus_caps.dup, which I am now trying to import using Protege

In Protege, clicked on the Essential Update tab, selected the banking_bus_caps.dup and immediately observed that an error was logged into the console.

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:450)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:298)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:141)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1157)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:145)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:236)
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 javax.xml.bind.ContextFinder.newInstance(Unknown Source)
at javax.xml.bind.ContextFinder.find(Unknown Source)
at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
at javax.xml.bind.JAXBContext.newInstance(Unknown Source)
at com.enterprise_architecture.essential.update.EssentialUpdateTab.loadUpdatePackInfo(EssentialUpdateTab.java:777)
at com.enterprise_architecture.essential.update.EssentialUpdateTab.actionPerformed(EssentialUpdateTab.java:618)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
User avatar
jonathan.carter
Posts: 1087
Joined: 04 Feb 2009, 15:44

Hi,

Thanks for your post.

Could you confirm which version of Java you are using?
Also, just to be clear, what is the behaviour of the application?
Despite logging this error, does it run the DUP into your repository anyway?

We have seen errors like this with later Java versions and JAXB. Essential runs best on Java 8 which is fully supported until the end of 2020 with extended support until 2030. The new 6 monthly cadence of major Java version updates presents some challenges when it comes to recommending versions. We have some Java 11 LTS testing scheduled and we're hoping there's not too much to do there. This JAXB issue looks like a possible issue however it should be straightforward to resolve.

If you are using, e.g. Java 11, could you try again using Java 8 and see if that resolves this issue?

Thanks

Jonathan
Essential Project Team
demolao
Posts: 3
Joined: 13 Aug 2020, 19:41

Hello Jonathan,
Thanks for your response.
I am using Java 1.8.0_201 (Java 8)
The error is generated and everything stops working; and no, it does not run the DUP into the repository
Regards,
Ade
demolao
Posts: 3
Joined: 13 Aug 2020, 19:41

This link (https://enterprise-architecture.org/os_download.php) has two installations, 1) Essential In a Box, and 2) Standalone Install. My initial installation was the Essential In a Box which generated the error importing the dup. I installed Standalone and was able to successfully import the dup.
Regards,
Ade
User avatar
jonathan.carter
Posts: 1087
Joined: 04 Feb 2009, 15:44

Hi Ade,

Great to hear that you have got the Standalone Essential working.

I recommend that installation above the "Essential in a Box" option. "Essential In a Box" is intended for those who do not easily have rights to install software. However, thanks for raising the issue that you encountered with the Essential In a Box option - we'll check that out.

Jonathan
Essential Project Team
Post Reply