ClearCase Baseline import into RTC fails with error - MalformedInputException

Technote (troubleshooting)


Problem(Abstract)

IBM Rational ClearCase baseline import into Rational Team Concert fails with error "
javax.wvcm.WvcmException: Output from cleartool command could not be processed because it contains a byte sequence not legal for the given character set. Ensure that any filenames being processed by cleartool contain only characters legal for the specified locale.
java.nio.charset.MalformedInputException: Input length = 1
Build failed. Exit value was 3. ".

Symptom

While running the baseline import command, the Synchronization Stack Trace mentions the following error:

process environment: ATRIAHOME=<Atria Env Variable>

at com.ibm.rational.wvcm.ct.CommandProvider.executeCommand(CommandProvider.java:689)

at com.ibm.rational.wvcm.ct.CommandProvider.executeCommand(CommandProvider.java:488)

at com.ibm.rational.wvcm.ct.CommandProvider.executeGetResult(CommandProvider.java:362)

at com.ibm.rational.wvcm.ct.CCaseLib.directoryTreeHelper(CCaseLib.java:2000)

at com.ibm.rational.wvcm.ct.CCaseLib.getCCDirectory(CCaseLib.java:1951)

at com.ibm.rational.wvcm.ct.CTFolder.computeSubDirs(CTFolder.java:133)

at com.ibm.rational.wvcm.ct.CTFolder.findBigFolders(CTFolder.java:97)

at com.ibm.rational.wvcm.ct.CTFolder.findBigFolders(CTFolder.java:100)

at com.ibm.rational.wvcm.ct.CTFolder.findBigFolders(CTFolder.java:100)

at com.ibm.rational.wvcm.ct.CTFolder.findBigFolders(CTFolder.java:100)

at com.ibm.rational.wvcm.ct.CTFolder.findBigFolders(CTFolder.java:100)

at com.ibm.rational.wvcm.ct.CTControllableFolder.doFindRoots(CTControllableFolder.java:752)

at com.ibm.rational.wvcm.ct.CTProvider.doFindAll(CTProvider.java:893)

at com.ibm.rational.wvcm.ri.impl.WvcmServiceConverter.doFindAll(WvcmServiceConverter.java:547)

at com.ibm.rational.wvcm.ri.impl.ResourceImpl.doFindAll(ResourceImpl.java:581)

at com.ibm.rational.wvcm.interop.InteropStream.findBigFolderRoots(InteropStream.java:3514)

at com.ibm.rational.wvcm.interop.InteropStream.tryAddCloneRoots(InteropStream.java:3604)

at com.ibm.rational.wvcm.interop.InteropStream.addCloneRoots(InteropStream.java:3680)

at com.ibm.rational.wvcm.interop.InteropStream.importStream(InteropStream.java:3850)

at com.ibm.rational.wvcm.interop.InteropStream.doOperation(InteropStream.java:4738)

at com.ibm.team.connector.scm.operations.ConnectorOps.synchronizeStream(ConnectorOps.java:239)

at com.ibm.team.connector.scm.cli.AbstractCcConnectorSubCommand.synchronizeStream(AbstractCcConnectorSubCommand.java:266)

at com.ibm.team.connector.scm.cli.SyncSubcommand.synchronizeStream(SyncSubcommand.java:113)

at com.ibm.team.connector.scm.cli.SyncSubcommand.run(SyncSubcommand.java:71)

at com.ibm.team.filesystem.cli.core.internal.SubcommandLauncher.run(SubcommandLauncher.java:673)

at com.ibm.team.filesystem.cli.core.internal.SubcommandLauncher.doStart(SubcommandLauncher.java:402)

at com.ibm.team.filesystem.cli.core.internal.SubcommandLauncher.run(SubcommandLauncher.java:179)

at com.ibm.team.filesystem.cli.core.internal.Application.start(Application.java:50)

at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)

at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)

at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:600)

at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)

at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)

at org.eclipse.equinox.launcher.Main.run(Main.java:1408)

Caused by: javax.wvcm.WvcmException: Output from cleartool command could not be processed because it contains a byte sequence not legal for the given character set.  Ensure that any filenames being processed by cleartool contain only characters legal for the specified locale.

at com.ibm.rational.wvcm.ct.CTDoRead.run(CTDoRead.java:53)

at java.lang.Thread.run(Thread.java:736)

Caused by: java.nio.charset.MalformedInputException: Input length = 1

at java.nio.charset.CoderResult.throwException(CoderResult.java:260)

at sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:507)

at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:222)

at java.io.InputStreamReader.read(InputStreamReader.java:177)

at java.io.BufferedReader.fill(BufferedReader.java:136)

at java.io.BufferedReader.readLine(BufferedReader.java:299)

at java.io.BufferedReader.readLine(BufferedReader.java:362)

at com.ibm.rational.wvcm.ct.CTDoRead.run(CTDoRead.java:45)

Cause

Language environment variable is not effectively set on the JBE.

Diagnosing the problem

If you see that the JBE LANG environment variable output is similar to what is mentioned below, this needs to be rectified to the en_US.ISO-8859-1:

X11R5INPUTRC=/etc/inputrcPWD=/home/vobadmin/ClearCaseSynchronizer/_1iEcYToTEeKmxuxj4dgOyQ.synchronizerCLEARCASE_ROOT=NONEEDITOR=/usr/bin/viLANG=en_US.UTF-8

Resolving the problem

Follow these steps to set the correct LANG option on the terminal that was used to invoke the RTC Eclipse client.

  1. Stop the sync engine if it is running.

  2. Close RTC eclipse client.

  3. Set LANG environment variable in your terminal, export it.


    setenv LANG en_US.ISO-8859-1

    or

    export LANG=en_US.ISO-8859-1


  4. Start RTC Eclipse client from the terminal.

  5. Verify that the LANG environment variable is set as expected, by 'cat /proc/<RTC eclipse client process>/environ' and find LANG variable.

  6. Go to ClearCase Sync. view, select your sync. stream and start synchronization.

  7. Again, verify the LANG environment variable is set as expected for the sync engine process.

  8. Run synchronization.

Rate this page:

(0 users)Average rating

Document information


More support for:

Rational Team Concert
Integrations: IBM

Software version:

4.0

Operating system(s):

Linux

Reference #:

1620089

Modified date:

2013-07-17

Translate my page

Machine Translation

Content navigation