Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

IllegalStateException when using the SCM command line

 Hello

We are looking to use the SCM command line to do some work in RTC.  But I'm getting an IllegalStateException when I try to use it.

Sometimes I can use the SCM tool for a few minutes with no problems, but other times I get the IllegalStateException as soon as a login.

It seems the only way I can "fix" the problem is to reboot my server.  But that is only a temporary fix.

Here is an example of what I am seeing.  I did a simple login and list projectareas using the command line.  This was immediately following a reboot.  Here are my exact commands and responses.  You can see that in this particular test, the SCM command gets part way through listing the project areas before throwing the illegal state exception.

C:\Users\myuserid>scm login -r https://tjts1.mydomain.net/ccm/ -n local -u myuserid -P mypassword
Logged in to https://tjts1.mydomain.net/ccm/
C:\Users\myuserid>scm list projectareas -r local
(2590) "Test01 (Change Management)"
(2591) "MTA Tools CM"
(2593) "JKE Banking (Change Management)"
(2595) "ALM Test (Change Management)"
(2596) "not active CM(Change Management)"
(2597) "ATG CM"
(2599) "ABC Training CM"
(2601) "DEF Training CM"
(2619) "ABC Workflow TDA Client Training CM"
(2629) "ABC Workflow TDA Client Training AOE"
java.lang.IllegalStateException: Job manager has been shut down.
        at org.eclipse.core.internal.jobs.JobManager.schedule(JobManager.java:11
04)
        at org.eclipse.core.internal.jobs.InternalJob.schedule(InternalJob.java:
427)
        at org.eclipse.core.runtime.jobs.Job.schedule(Job.java:462)
        at com.ibm.team.filesystem.rcp.core.internal.changes.util.listeners.Upda
teChangesJob.requestUpdate(UpdateChangesJob.java:151)
        at com.ibm.team.filesystem.rcp.core.internal.changes.update.util.UpdateM
anager.requestUpdate(UpdateManager.java:77)
        at com.ibm.team.filesystem.rcp.core.internal.changes.util.listeners.Even
tManager.handleEvents(EventManager.java:611)
        at com.ibm.team.repository.client.util.EventSource$BackgroundEventDispat
cher$1.run(EventSource.java:720)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
        at com.ibm.team.repository.client.util.EventSource$BackgroundEventDispat
cher.process(EventSource.java:713)
        at com.ibm.team.repository.client.util.EventSource$BackgroundEventDispat
cher$3.run(EventSource.java:771)
        at com.ibm.team.repository.client.util.ThreadCheck.runProhibitingLongOps
(ThreadCheck.java:174)
        at com.ibm.team.repository.client.util.EventSource$BackgroundEventDispat
cher.process(EventSource.java:756)
        at com.ibm.team.repository.client.util.EventSource$BackgroundEventDispat
cher$4.run(EventSource.java:790)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:906)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:929)
        at java.lang.Thread.run(Thread.java:738)
C:\Users\myuserid>


Any help appreciated!  Thanks!

1

0 votes

Comments

If you have extended the SCM commandline, I doubt anyone will be able to help here without seeing the code you created that throws the error. This is also an error that is very Java centric: http://stackoverflow.com/questions/12698275/whats-the-intended-use-of-illegalstateexception so there seems to be a call to a method that is not in the state to be called.

  No extensions by us.  These are the native IBM jars for connecting to RTC from the command line.

I've modified the question title to make it clear that you are using the command line, and not the Java API.

Thanks Geoffrey.  I've been switching back and forth between Rational tools, I forget which ones are Java API based or native exe sometimes.  :)



One answer

Permanent link
This seems similar to the exception reported in the below workitem: https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=306852
This has been resolved in an upcoming release.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Mar 21 '14, 10:58 a.m.

Question was seen: 3,847 times

Last updated: Mar 24 '14, 7:23 a.m.

Confirmation Cancel Confirm