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  <20152016  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  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Can't start CSS RDB archiver
From: "Kasemir, Kay" <[email protected]>
To: zunbeltz <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Wed, 7 Jan 2015 16:46:47 +0000
On Jan 7, 2015, at 10:59 AM, zunbeltz <[email protected]> wrote:
> The start() methods are the same in my version and the one in github.
> Lines 115-117 are:
>        thread = new Thread(this, "WriteThread");
>        output.println("time to start: "+ currentData());
>        thread.start();

Maybe we have a different definition of "same", since the code on github has start() in lines 90-102, and there's not output.println:

 90   public void start(double write_period, int batch_size)
 91   {
 92        if (write_period < MIN_WRITE_PERIOD)
 93        {
 94            Activator.getLogger().log(Level.INFO, "Adjusting write period from {0} to {1}",
 95                new Object[] { write_period, MIN_WRITE_PERIOD });
 96            write_period = MIN_WRITE_PERIOD;
 97        }
 98        millisec_delay = (int)(1000.0 * write_period);
 99        this.batch_size = batch_size;
100       thread = new Thread(this, "WriteThread");
101       thread.start();
102  }

>  guess that the error is in the new Thread line because 116 line is composed of standard library functions (as far as my poor java knowledge helps).
> Am  i correct or shuld I look if the currentData() is not working fine?

Your line 116 is:

>        output.println("time to start: "+ currentData());


Your output variable is null.
If currentData() returned null, you would see "time to start: null" in the output.
I don't know how you get the output variable, because your code is not the same as the one on github.

Thanks,
Kay

References:
Can't start CSS RDB archiver Zunbeltz Izaola
Re: Can't start CSS RDB archiver Kasemir, Kay
Re: Can't start CSS RDB archiver zunbeltz

Navigate by Date:
Prev: Re: Can't start CSS RDB archiver Lang, Keenan C.
Next: Re: Problem building asyn R4-25 on Mac OSX Yosemite J. Lewis Muir
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Can't start CSS RDB archiver zunbeltz
Next: Re: Can't start CSS RDB archiver Lang, Keenan C.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·