EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: ADViewers: EPICS_NTNDA_VIEWER' does not connect - ADViewers
From: "Gofron, Kazimierz via Tech-talk" <tech-talk at aps.anl.gov>
To: Mark Rivers <rivers at cars.uchicago.edu>, "'J. Lewis Muir'" <jlmuir at imca-cat.org>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Tue, 25 Aug 2020 23:00:49 +0000
Hi Mark,

The updated ADViewers/ImageJ/EPICS_areaDetector works properly with debian imagej package and default Java 11 on 
  1. Ubuntu 20.04
  2. Debian 10
====
kaz@kaz-desktop:/epics/utils/ADViewers/ImageJ/EPICS_areaDetector$ java --version     {Ubuntu 20.04}
openjdk 11.0.8 2020-07-14
OpenJDK Runtime Environment (build 11.0.8+10-post-Ubuntu-0ubuntu120.04)
OpenJDK 64-Bit Server VM (build 11.0.8+10-post-Ubuntu-0ubuntu120.04, mixed mode, sharing)
===========

Also the newest EPICS .jar files are available from 

C:\Users\Kaz\Downloads\EPICS-Java-7.0.6.tar\EPICS-Java-7.0.6\core>ls -l
total 7356
-rw-r--r-- 1 Kaz 197121  266160 May 12 13:57 epics-ntypes-0.3.5-javadoc.jar
-rw-r--r-- 1 Kaz 197121   66215 May 12 13:57 epics-ntypes-0.3.5-sources.jar
-rw-r--r-- 1 Kaz 197121   84269 May 12 13:57 epics-ntypes-0.3.5.jar
-rw-r--r-- 1 Kaz 197121 1442422 May 12 13:58 epics-pvaccess-5.1.5-javadoc.jar
-rw-r--r-- 1 Kaz 197121  346232 May 12 13:57 epics-pvaccess-5.1.5-sources.jar
-rw-r--r-- 1 Kaz 197121  466524 May 12 13:57 epics-pvaccess-5.1.5.jar
-rw-r--r-- 1 Kaz 197121 1199525 May 12 13:57 epics-pvdata-6.1.5-javadoc.jar
-rw-r--r-- 1 Kaz 197121  217144 May 12 13:57 epics-pvdata-6.1.5-sources.jar
-rw-r--r-- 1 Kaz 197121  296459 May 12 13:57 epics-pvdata-6.1.5.jar
-rw-r--r-- 1 Kaz 197121  440648 May 12 13:57 epics-util-1.0.3-javadoc.jar
-rw-r--r-- 1 Kaz 197121   78738 May 12 13:57 epics-util-1.0.3-sources.jar
-rw-r--r-- 1 Kaz 197121  137925 May 12 13:57 epics-util-1.0.3.jar
-rw-r--r-- 1 Kaz 197121 1646633 May 12 12:23 jca-2.4.5-javadoc.jar
-rw-r--r-- 1 Kaz 197121  379405 May 12 12:22 jca-2.4.5-sources.jar
-rw-r--r-- 1 Kaz 197121  432022 May 12 12:22 jca-2.4.5.jar
======
I am not sure where epics-pvaclient-4.3.2.jar comes from.

Thanks for this upgrade of ImageJ ADViewer.

Kaz

From: Mark Rivers <rivers at cars.uchicago.edu>
Sent: Tuesday, August 25, 2020 12:40 PM
To: Gofron, Kazimierz <kgofron at bnl.gov>; 'J. Lewis Muir' <jlmuir at imca-cat.org>
Cc: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>
Subject: RE: ADViewers: EPICS_NTNDA_VIEWER' does not connect - ADViewers
 

Hi Kaz,

 

I have updated the .jar files in ADViewers/ImageJ/EPICS_areaDetector on Github  as follows:

 

caj-1.1.10.jar              Deleted, not needed.

epics-ntypes-0.3.5.jar      Updated from 0.3.1

epics-pvaccess-5.1.5.jar    Updated from 5.1.1

epics-pvdata-6.1.5.jar      Updated from 6.1.1

epics-pvdatabase-4.3.1.jar  Deleted, not needed

epics-util-1.0.3.jar        New file, needed by new version of pvAccess

jca-2.4.5.jar               Updated from 2.3.6

 

I have tested on Centos 7 and Windows 10 using a fresh ImageJ/plugins/EPICS_areaDetector from the master branch ADViewers.  Both the EPICS_AD_Viewer (Channel Access) and the EPICS_NTNDA_Viewer (pvAccess) work fine using the latest ImageJ (1.53d) and the jre that comes with that.

 

Kaz, please test to see if the master branch works with your Java 11 system.  The dependency on Corba should be gone, so it should work.

 

Answers to your questions:

Ø  epics-pvaclient-4.3.2.jar {Source location}

Source location is https://github.com/epics-base/pvaClientJava.  However, unlike epicsCoreJava the .tar.gz files for pvaClientJava do not include .jar files.

Ø  jna-5.1.0.jar {What is this}

This is Java Native Access.  https://github.com/java-native-access/jna.  It is used to call the decompression codecs (JPEG, Blosc, bitshuffle, etc.) from ImageJ for compressed NTNDArrays.

Ø  NetCDF_.jar {Source location}

Source location is https://lmb.informatik.uni-freiburg.de/resources/opensource/imagej_plugins/netcdf.html.

Mark

 

 

 

From: Gofron, Kazimierz <kgofron at bnl.gov>
Sent: Tuesday, August 25, 2020 9:55 AM
To: Mark Rivers <rivers at cars.uchicago.edu>; 'J. Lewis Muir' <jlmuir at imca-cat.org>
Cc: tech-talk at aps.anl.gov
Subject: Re: ADViewers: EPICS_NTNDA_VIEWER' does not connect - ADViewers

 

Mark,

 

The .jar files in current ADViewer distribution:

  1. caj-1.1.10.jar
  2. epics-ntypes-0.3.1.jar
  3. epics-pvaccess-5.1.1.jar
  4. epics-pvaclient-4.3.2.jar
  5. epics-pvdata-6.1.1.jar
  6. epics-pvdatabase-4.3.1.jar
  7. jca-2.3.6.jar
  8. jna-5.1.0.jar
  9. NetCDF_.jar

I am not sure where sources for 

·         epics-pvaclient-4.3.2.jar {Source location}

·         jna-5.1.0.jar {What is this}

·         NetCDF_.jar {Source location}

Is epics-pvdatabase-4.3.1.jar needed?

 

Remaining most recent .jar files are distributed. The jca and caj is combined into jca, I think.


Kaz


From: Mark Rivers <rivers at cars.uchicago.edu>
Sent: Tuesday, August 25, 2020 9:42 AM
To: 'J. Lewis Muir' <jlmuir at imca-cat.org>; Gofron, Kazimierz <kgofron at bnl.gov>
Cc: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>
Subject: RE: ADViewers: EPICS_NTNDA_VIEWER' does not connect - ADViewers

 

It appears that the CORBA dependency in pvAccess was removed in this commit in June 2018.

https://github.com/epics-base/epicsCoreJava/commit/1d300d365c91b7fdc89bb93ee4d7b4b3241c734a#diff-91dff54d9f3689d9045dbd98eea6b1f2

I will work on updating ADViewers to use the most recent pvAccess jar files.

Mark


-----Original Message-----
From: J. Lewis Muir <jlmuir at imca-cat.org>
Sent: Wednesday, August 19, 2020 5:45 PM
To: Gofron, Kazimierz <kgofron at bnl.gov>
Cc: Mark Rivers <rivers at cars.uchicago.edu>; tech-talk at aps.anl.gov
Subject: Re: ADViewers: EPICS_NTNDA_VIEWER' does not connect - ADViewers

On 08/19, Gofron, Kazimierz via Tech-talk wrote:
> The problem is in the epics-pvaccess-5.1.1.jar. Were these jar files created with Java 8?
>
> kaz@kaz-desktop:/epics/utils/ADViewers/ImageJ/EPICS_areaDetector$
> strings epics-pvaccess-5.1.1.jar | grep BlockingTCPConnector
> org/epics/pvaccess/client/impl/remote/tcp/BlockingTCPConnector$Transpo
> rtFactory.class
> org/epics/pvaccess/client/impl/remote/tcp/BlockingTCPConnector.class
> org/epics/pvaccess/client/impl/remote/tcp/BlockingTCPConnector$Transpo
> rtFactory.classPK
> org/epics/pvaccess/client/impl/remote/tcp/BlockingTCPConnector.classPK

Where's the source code for the epics-pvaccess-5.1.1.jar?  Is it the following?

  https://github.com/epics-rip/pvAccessJava/tree/5.1.1

If so, that code contains three classes that reference classes in the org.omg.CORBA package that have been removed in Java 11:

  src/org/epics/pvaccess/impl/remote/IntrospectionRegistry.java
  src/org/epics/pvaccess/util/IntHashMap.java
  src/org/epics/pvaccess/util/ShortHashMap.java

I don't know anything about pvAccessJava, but if the latest version is at

  https://github.com/epics-base/epicsCoreJava

then a search for "corba" there shows that it does not contain references to classes in the org.omg.CORBA package, so if you can upgrade to a newer version of pvAccessJava that does not reference CORBA classes, then I think the problem would go away.

Another solution would be to add JARs to the Java classpath providing the CORBA classes such as from JacORB:

  https://github.com/JacORB/JacORB

Yet another solution would of course be to use a Java 8 VM instead of a Java 11 VM.

Lewis


Replies:
Re: ADViewers: EPICS_NTNDA_VIEWER' does not connect - ADViewers Mark Rivers via Tech-talk
References:
Re: ADViewers: EPICS_NTNDA_VIEWER' does not connect - ADViewers Gofron, Kazimierz via Tech-talk
Re: ADViewers: EPICS_NTNDA_VIEWER' does not connect - ADViewers Mark Rivers via Tech-talk
Re: ADViewers: EPICS_NTNDA_VIEWER' does not connect - ADViewers Gofron, Kazimierz via Tech-talk
Re: ADViewers: EPICS_NTNDA_VIEWER' does not connect - ADViewers Mark Rivers via Tech-talk
Re: ADViewers: EPICS_NTNDA_VIEWER' does not connect - ADViewers Gofron, Kazimierz via Tech-talk
Re: ADViewers: EPICS_NTNDA_VIEWER' does not connect - ADViewers Mark Rivers via Tech-talk
Re: ADViewers: EPICS_NTNDA_VIEWER' does not connect - ADViewers Gofron, Kazimierz via Tech-talk
Re: ADViewers: EPICS_NTNDA_VIEWER' does not connect - ADViewers Mark Rivers via Tech-talk
Re: ADViewers: EPICS_NTNDA_VIEWER' does not connect - ADViewers Gofron, Kazimierz via Tech-talk
Re: ADViewers: EPICS_NTNDA_VIEWER' does not connect - ADViewers Gofron, Kazimierz via Tech-talk
Re: ADViewers: EPICS_NTNDA_VIEWER' does not connect - ADViewers J. Lewis Muir via Tech-talk
RE: ADViewers: EPICS_NTNDA_VIEWER' does not connect - ADViewers Mark Rivers via Tech-talk
Re: ADViewers: EPICS_NTNDA_VIEWER' does not connect - ADViewers Gofron, Kazimierz via Tech-talk
RE: ADViewers: EPICS_NTNDA_VIEWER' does not connect - ADViewers Mark Rivers via Tech-talk

Navigate by Date:
Prev: asyn R4-40-1 available Mark Rivers via Tech-talk
Next: Re: ADViewers: EPICS_NTNDA_VIEWER' does not connect - ADViewers Mark Rivers via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: RE: ADViewers: EPICS_NTNDA_VIEWER' does not connect - ADViewers Mark Rivers via Tech-talk
Next: Re: ADViewers: EPICS_NTNDA_VIEWER' does not connect - ADViewers Mark Rivers via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
ANJ, 25 Aug 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·