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

Build engine quit working

While setting up another ClearCase Sync Stream job, I provided an incorrect password for the sync id and now all my sync engines fail to start.

I tracked it down to the encrypted password file in {SCRIPT_LOCATION_PREFIX}\ccsync.cred.txt. All my engines use this password file which surprised me. Would I get separate password files if I used a different id or the same id from a different repository (with different password)?

In any event, I thought I could fix it by regenerating it using:

C:\Documents and Settings\jboyd\ClearCaseConnector>"C:\Program Files\IBM\ClearCaseConnector\buildsystem\buildengine\eclipse\jbe" -createPasswordFile foo.txt

but I get an error dialog that points me to a log file with:

!SESSION 2008-11-20 10:16:25.801 -----------------------------------------------
eclipse.buildId=unknown
java.fullversion=J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32 j9vmwi3223-20070201 (JIT enabled)
J9VM - 20070131_11312_lHdSMR
JIT - 20070109_1805ifx1_r8
GC - 200701_09
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -createPasswordFile foo.txt
Command-line arguments: -os win32 -ws win32 -arch x86 -createPasswordFile foo.txt

!ENTRY org.eclipse.osgi 4 0 2008-11-20 10:16:29.817
!MESSAGE Application error
!STACK 1
java.io.IOException: The handle is invalid.
at java.io.FileInputStream.read(FileInputStream.java:229)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:265)
at java.io.BufferedInputStream.read(BufferedInputStream.java:324)
at java.io.FilterInputStream.read(FilterInputStream.java:113)
at sun.nio.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java:352)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:250)
at java.io.InputStreamReader.read(InputStreamReader.java:212)
at java.io.BufferedReader.fill(BufferedReader.java:157)
at java.io.BufferedReader.readLine(BufferedReader.java:320)
at java.io.BufferedReader.readLine(BufferedReader.java:383)
at com.ibm.team.build.internal.engine.BuildEngineApplication.getPasswordFromUser(BuildEngineApplication.java:226)
at com.ibm.team.build.internal.engine.BuildEngineApplication.start(BuildEngineApplication.java:104)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)

!ENTRY org.eclipse.osgi 2 0 2008-11-20 10:16:29.848
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2008-11-20 10:16:29.848
!MESSAGE Bundle update@plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.3.R33x_v20080118/ was not resolved.

0 votes



4 answers

Permanent link
Found workaround but have a followup...

Generated the password file on a different machine and copied to this client. Later I noticed it could have been changed on the synchronized stream job properties page. I also see the password file is by id - in my case ccsync was the id and the file was ccsync.cred.txt.

What would happen if I had multiple repository connections where the ccsync id password was different in each and I setup sync jobs for both repositories? Would the last one added clobber the password file?

0 votes


Permanent link
Yes, the right way to change the password is to do so on the sync stream
properties page.

And you are exactly right that the password file should actually be in
the sync engine directory, rather than shared between all sync engines!
I'll file a workitem to get that fixed as soon as the jazzdev
repository is back after the upgrade to M1D1.

Thanks Erik!

Cheers,
Geoff

eanderso wrote:
Found workaround but have a followup...

Generated the password file on a different machine and copied to this
client. Later I noticed it could have been changed on the
synchronized stream job properties page. I also see the password
file is by id - in my case ccsync was
the id and the file was
ccsync.cred.txt.

What would happen if I had multiple repository connections where the
ccsync id password was different in each and I setup sync jobs for
both repositories? Would the last one added clobber the password
file?

0 votes


Permanent link
java.io.IOException: The handle is invalid.


Anyone else had the same problem creating a password file? I also get the same IOException (handle invalid) and wondered if it's a setup problem or a bug?

I just extracted the build system toolkit zip and ran the jbe program to create a password file. It failed with the exception reported above.

Any ideas?

Just for completeness here is my log file:

!SESSION 2009-02-26 22:25:52.157 -----------------------------------------------
eclipse.buildId=unknown
java.fullversion=J2RE 1.6.0 IBM J9 2.4 Windows Vista x86-32 jvmwi3260-20081105_25433 (JIT enabled, AOT enabled)
J9VM - 20081105_025433_lHdSMr
JIT - r9_20081031_1330
GC - 20081027_AB
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB
Framework arguments: -createPasswordFile rtc.txt
Command-line arguments: -os win32 -ws win32 -arch x86 -createPasswordFile rtc.txt

!ENTRY org.eclipse.osgi 4 0 2009-02-26 22:25:53.315
!MESSAGE Application error
!STACK 1
java.io.IOException: The handle is invalid.
at java.io.FileInputStream.read(FileInputStream.java:213)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:267)
at java.io.BufferedInputStream.read(BufferedInputStream.java:328)
at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:452)
at sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:494)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:222)
at java.io.InputStreamReader.read(InputStreamReader.java:177)
at java.io.BufferedReader.fill(BufferedReader.java:147)
at java.io.BufferedReader.readLine(BufferedReader.java:310)
at java.io.BufferedReader.readLine(BufferedReader.java:373)
at com.ibm.team.build.internal.engine.BuildEngineApplication.getPasswordFromUser(BuildEngineApplication.java:226)
at com.ibm.team.build.internal.engine.BuildEngineApplication.start(BuildEngineApplication.java:104)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:599)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)

!ENTRY org.eclipse.osgi 2 0 2009-02-26 22:25:53.342
!MESSAGE The following is a complete list of bundles which are not resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-02-26 22:25:53.343
!MESSAGE Bundle update@plugins/org.eclipse.equinox.launcher.gtk.linux.x86.nl1_1.0.3.v200902151159/ [155] was not resolved.
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-02-26 22:25:53.343
!MESSAGE Bundle update@plugins/org.eclipse.equinox.launcher.gtk.linux.x86.nl2_1.0.3.v200902151159/ [156] was not resolved.
!SUBENTRY 1 org.eclipse.osgi 2 0 2009-02-26 22:25:53.343
!MESSAGE Bundle update@plugins/org.eclipse.equinox.launcher.gtk.linux.x86_1.0.3.R33x_v20080118/ [157] was not resolved.

0 votes


Permanent link
Sorry that the issue with the IOException was never properly answered.
Please see my reply in http://jazz.net/forums/viewtopic.php?p=17965

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: Nov 20 '08, 10:36 a.m.

Question was seen: 9,309 times

Last updated: Nov 20 '08, 10:36 a.m.

Confirmation Cancel Confirm