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  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: some CAJ and JCA questions
From: John Dobbins <[email protected]>
To: EPICS Tech-Talk <[email protected]>
Date: Mon, 21 Mar 2011 13:16:59 -0400
All,

I am using CAJ-1.1.5 and JCA-2.3.2  with Java build 1.6.0_24-b07, EPICS R3.14.9 on linux-x86 


I build the "first program" shown on this page:

http://www.aps.anl.gov/bcda/jca/jca/2.1.2/tutorial.html


1a)  context = CHANNEL_ACCESS_JAVA

On machines with a single NIC,  if  in   ~/.JCALibrary/JCALibrary.properties I set 

    com.cosylab.epics.caj.CAJContext.auto_addr_list = true

then the example works.

1b) context = CHANNEL_ACCESS_JAVA

However if I set auto_addr_list= false and add the IOC host IP address to:

    com.cosylab.epics.caj.CAJContext.addr_list

then the example doesn't work, I get error:

    gov.aps.jca.TimeoutException: pendIO timed out

caSnooper shows that the search request reaches the IOC host.


1c) context = CHANNEL_ACCESS_JAVA

On a machine with two NICs I set 

    com.cosylab.epics.caj.CAJContext.auto_addr_list = true

then a search request is sent on one of the two NICs. For one machine the correct NIC is chosen and the example works. 
For another machine the wrong NIC is chosen and the example does not work.


[ the next two illustrate a known problem,  reference: http://www.aps.anl.gov/epics/tech-talk/2009/msg01840.php ]


1d)  context = CHANNEL_ACCESS_JAVA  

on a machine on another sub-net connected through a gateway

    auto_addr_list = true

example does not work, error

    gov.aps.jca.TimeoutException: pendIO timed out


1e)  context = CHANNEL_ACCESS_JAVA  

on a machine on another sub-net connected through a gateway

    auto_addr_list = false, add gatewyt IP address to addr_list

example works.




2) context = JNI_SINGLE_THREADED

I get error:

gov.aps.jca.CAException: Unable to create context

I have set

gov.aps.jca.jni.epics.linux-x86.library.path

and

 gov.aps.jca.jni.epics.linux-x86.caRepeater.path 

in ~/.JCALibrary/JCALibrary.properties. 

What else could go wrong?




Any help appreciated,


John Dobbins

Cornell University





Navigate by Date:
Prev: Re: error 'Library not loaded' for virtual linac J. Lewis Muir
Next: Re: error 'Library not loaded' for virtual linac Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: error 'Library not loaded' for virtual linac Andrew Johnson
Next: Breakpoint Table Error Steiner, Mathias
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·