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 mypasswordLogged 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:1104)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.UpdateChangesJob.requestUpdate(UpdateChangesJob.java:151)at com.ibm.team.filesystem.rcp.core.internal.changes.update.util.UpdateManager.requestUpdate(UpdateManager.java:77)at com.ibm.team.filesystem.rcp.core.internal.changes.util.listeners.EventManager.handleEvents(EventManager.java:611)at com.ibm.team.repository.client.util.EventSource$BackgroundEventDispatcher$1.run(EventSource.java:720)at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)at com.ibm.team.repository.client.util.EventSource$BackgroundEventDispatcher.process(EventSource.java:713)at com.ibm.team.repository.client.util.EventSource$BackgroundEventDispatcher$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$BackgroundEventDispatcher.process(EventSource.java:756)at com.ibm.team.repository.client.util.EventSource$BackgroundEventDispatcher$4.run(EventSource.java:790)at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.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!
Comments
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Mar 21 '14, 11:48 a.m.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.
Allen Earnest
Mar 21 '14, 1:07 p.m.No extensions by us. These are the native IBM jars for connecting to RTC from the command line.
Geoffrey Clemm
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Mar 21 '14, 1:46 p.m.I've modified the question title to make it clear that you are using the command line, and not the Java API.
Allen Earnest
Mar 21 '14, 1:54 p.m.Thanks Geoffrey. I've been switching back and forth between Rational tools, I forget which ones are Java API based or native exe sometimes. :)