Bug 456873 - java.lang.IllegalStateException on client.auth.logout (XMLRPC)
Summary: java.lang.IllegalStateException on client.auth.logout (XMLRPC)
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: API
Version: 520
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Devan Goodwin
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: 446866
TreeView+ depends on / blocked
 
Reported: 2008-07-28 11:29 UTC by Milan Zázrivec
Modified: 2008-11-05 18:41 UTC (History)
4 users (show)

Fixed In Version: sat520
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-11-05 18:41:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
python script that calls auth.login and auth.logout (240 bytes, text/plain)
2008-08-25 17:44 UTC, Jesus M. Rodriguez
no flags Details

Description Milan Zázrivec 2008-07-28 11:29:19 UTC
+++ This bug was initially created as a clone of Bug #454474 +++

Description of problem:

I'm attempting to write a cobbler authn_spacewalk module to authenticate
Cobbler's XMLRPC against Spacewalk's XMLRPC.  Calling logout generated the
following remote traceback when using https://rlx-3-24.rhndev.redhat.com as my
test server.

2008-07-08 14:17:59,093 - remote - Exception occured: <class 'xmlrpclib.Fault'>
2008-07-08 14:17:59,094 - remote - Exception value: <Fault -1:
'java.lang.IllegalStateException: Stopwatch must be reset before being restarted. '>

-- Additional comment from mdehaan on 2008-07-08 14:23 EST --
This also happened just now when calling client.auth.login()

-- Additional comment from mdehaan on 2008-07-15 18:23 EST --
Here is a local bugreport that has a full trace:

https://www.redhat.com/archives/spacewalk-list/2008-July/msg00118.html


-- Additional comment from msuchy on 2008-07-24 07:17 EST --
This happen sat5.2 too. There we have java-1.5.0-ibm. So it is not related to
java 1.6.

Comment 1 Jesus M. Rodriguez 2008-07-29 20:07:25 UTC
replaced commons-lang-2.0-src.jar with 2.1 version.
update ivy.xml to point to 2.1 instead of 2.0
update rhn-java.spec to require commons-lang 2.1
finally, updated LoggingInvocationProcessor to reset StopWatch before
starting.

Comment 2 Jesus M. Rodriguez 2008-07-29 20:07:39 UTC
Committed revision 175626

Comment 5 Jesus M. Rodriguez 2008-08-25 17:41:30 UTC
TEST PLAN
----------
Write a python script that calls auth.login then auth.logout.
Tail the log (tail -f /var/log/tomcat5/catalina.out) as you run script.
I'm attaching a test script.

Comment 6 Jesus M. Rodriguez 2008-08-25 17:44:03 UTC
Created attachment 314939 [details]
python script that calls auth.login and auth.logout

Update script to include the url to your satellite, username, password.
chmod +x auth.login.py
./auth.login.py

observe no IllegalStateException in log.

Comment 7 Preethi Thomas 2008-08-25 18:10:14 UTC
verified

Comment 8 Jeff Browning 2008-10-23 18:14:07 UTC
[root@fjs-0-01 /]# ./auth.login.py
23x1e6e91a983271b724df8c56ffe7f2ca6

Verified

Comment 9 Brandon Perkins 2008-11-05 18:41:27 UTC
5.2.0 Satellite is now GA, bugs Closed for Current Release.


Note You need to log in before you can comment on or make changes to this bug.