Dear Tango Community,
In order to understand better how to build TANGO & HDB++ from the sources, I have just created a script to automatically build and install TANGO and HDB++.
It compiles without hiccup most of the programs except HDB++ CONFIGURATOR GUI.
I have just cloned the github repository GitHub - tango-controls-hdbpp/hdbpp-configurator: HDB++ Configurator GUI and java device server. Moved to https://gitlab.com/tango-controls/hdbpp/hdbpp-configurator and then run maven inside.
(I have no experience with maven, so I think that I have missed something)
root@ubuntu1704:~# cd tango-install/hdbpp-configurator/
root@ubuntu1704:~/tango-install/hdbpp-configurator# mvn compile
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.tango.hdb:hdbpp-configurator:jar:2.3-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 28, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ line 46, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building hdbpp-configurator 2.3-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.962 s
[INFO] Finished at: 2017-09-04T14:39:23+02:00
[INFO] Final Memory: 6M/46M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project hdbpp-configurator: Could not resolve dependencies for project org.tango.hdb:hdbpp-configurator:jar:2.3-SNAPSHOT: Failed to collect dependencies at org.tango:TangORB:jar:RELEASE: Failed to read artifact descriptor for org.tango:TangORB:jar:RELEASE: Failed to resolve version for org.tango:TangORB:jar:RELEASE: Could not find metadata org.tango:TangORB/maven-metadata.xml in local (/root/.m2/repository) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
As an alternative, I have also tried to run the precompiled jar file from https://www.tango-controls.org
http://www.tango-controls.org/community/project-docs/hdbplusplus/hdbplusplus-doc/configuration-gui/
Direct link:
Service End for Bintray, JCenter, GoCenter, and ChartCenter | JFrog
le_path=org%2Ftango%2Fhdb%2Fhdbpp-configurator%2F2.2%2Fhdbpp-configurator-2.2.jar
Then I have followed this documentation to start up the application.
The application runs but when subscribing to a new variable I get an error message
“Event properties wrongly configured”
fr.esrf.TangoApi.ConnectionFailed
at
fr.esrf.TangoDs.Except.throw_connection_failed(Except.java:616)
fr.esrf.TangoDs.Except.throw_connection_failed(Except.java:569)
fr.esrf.TangoApi.ConnectionDAODefaultImpl.command_inout(ConnectionDAODefaultImpl.java:923)
fr.esrf.TangoApi.ConnectionDAODefaultImpl.command_inout(ConnectionDAODefaultImpl.java:945)
fr.esrf.TangoApi.Connection.command_inout(Connection.java:388)
org.tango.hdb_configurator.common.ArchiverUtils.addAttribute(ArchiverUtils.java:192)
org.tango.hdb_configurator.configurator.HdbConfigurator.addSpecifiedAttribute(HdbConfigurator.java:1345)
org.tango.hdb_configurator.configurator.AttributeTree.addAttribute(AttributeTree.java:404)
org.tango.hdb_configurator.configurator.AttributeTree.treeMouseClicked(AttributeTree.java:171)
org.tango.hdb_configurator.configurator.AttributeTree.access$300(AttributeTree.java:58)
org.tango.hdb_configurator.configurator.AttributeTree$2.mouseClicked(AttributeTree.java:143)
java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:270)
java.awt.Component.processMouseEvent(Component.java:6536)
javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
java.awt.Component.processEvent(Component.java:6298)
java.awt.Container.processEvent(Container.java:2236)
java.awt.Component.dispatchEventImpl(Component.java:4889)
java.awt.Container.dispatchEventImpl(Container.java:2294)
java.awt.Component.dispatchEvent(Component.java:4711)
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
java.awt.LightweightDispatcher.processMouseEvent(Container.java:4534)
java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
java.awt.Container.dispatchEventImpl(Container.java:2280)
java.awt.Window.dispatchEventImpl(Window.java:2746)
java.awt.Component.dispatchEvent(Component.java:4711)
java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
java.awt.EventQueue.access$500(EventQueue.java:97)
java.awt.EventQueue$3.run(EventQueue.java:709)
java.awt.EventQueue$3.run(EventQueue.java:703)
java.security.AccessController.doPrivileged(Native Method)
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
java.awt.EventQueue$4.run(EventQueue.java:731)
java.awt.EventQueue$4.run(EventQueue.java:729)
java.security.AccessController.doPrivileged(Native Method)
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
org.GNOME.Accessibility.AtkWrapper$5.dispatchEvent(AtkWrapper.java:700)
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
I will really appreciate a hint to get out of this pitfall.
Best regards,
Sebastien