[Spacewalk-list] Stopwatch must be reset before being restarted

Jesus Rodriguez jesusr at redhat.com
Wed Aug 27 13:33:01 UTC 2008


Hi Andre,

On Wed, Aug 27, 2008 at 03:10:51PM +0200, Andre Dill wrote:
> I am trying to write a python script to setup a rather large amount of
> channels. All is fine with the script but I get the following error in
> /var/log/tomcat5/catalina.out on the spacewalk server:
> 
> 2008-08-27 14:56:59,373 [TP-Processor2] ERROR
> com.redhat.rhn.frontend.xmlrpc.LoggingInvocationProcessor - postProcess
> error
> 
> java.lang.IllegalStateException: Stopwatch is not running. 
> 
>         at
> org.apache.commons.lang.time.StopWatch.stop(StopWatch.java:115)
> 
> ...
> 
>         at java.lang.Thread.run(Thread.java:636)
> 
> Aug 27, 2008 2:56:59 PM redstone.xmlrpc.XmlRpcDispatcher writeError
> 
> WARNING: java.lang.IllegalStateException: Stopwatch must be reset before
> being restarted.
> 
> I am aware this is related to bugzilla 454474
> (https://bugzilla.redhat.com/show_bug.cgi?id=454474
> <https://bugzilla.redhat.com/show_bug.cgi?id=454474> ) however, I was
> wondering if there is any way I can fix this locally before the next
> release, as it is holding things up quite a bit.

Yes this is the correct bug. The problem is we built the code against
commons-lang-2.0 (which contains the StopWatch class), but shipped the
commons-lang-2.1 rpms.

The next release will have this fixed. You could backrev commons-lang
to 2.0. I have *not* tested these procedures but should help move you
forward:

1) get the 2.0 version of commons-lang:

   cd /usr/share/java/
   wget http://jmrodri.fedorapeople.org/ivy/commons-lang-2.0.jar

2) Now change the commons-lang.jar symlink to point to the 2.0 version:

  cd /var/lib/tomcat5/webapps/rhn/WEB-INF/lib
  rm commons-lang.jar
  ln -s /usr/share/java/commons-lang-2.0.jar commons-lang.jar
  /sbin/service tomcat5 restart

3) Monitor catalina.out log to ensure things are ok.

   tail -f /var/log/tomcat5/catalina.out

4) if everything looks ok, retry your script.

To revert back simply change the commons-lang.jar symlink to point
back to 2.1:

  ln -s /usr/share/java/commons-lang.jar commons-lang.jar

(yes I left off the 2.1 intentionally in the command above).


I hope this helps.

-- 
jesus m. rodriguez        | jesusr at redhat.com
sr. software engineer     | irc: zeus
rhn satellite & spacewalk | 919.754.4413 (w)
rhce # 805008586930012    | 919.623.0080 (c)
+-------------------------------------------+
|  "Those who cannot learn from history     |
|   are doomed to repeat it."               |
|                       -- George Santayana |
+-------------------------------------------+




More information about the Spacewalk-list mailing list