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

I see sun.io.MalformedInputException during ClearCase import/connector to RTC during ClearCase conntector import

The ClearCase import fails and I see the following in the log file.

      at com.ibm.rational.wvcm.ct.CommandProvider.executeCommand(CommandProvider.java:682)
      at com.ibm.rational.wvcm.ct.CommandProvider.executeCommand(CommandProvider.java:487)
     <a  few  more lines  I'll include in the post, but that makes this entry too big to save>
    ...
Caused by: sun.io.MalformedInputException
      at sun.io.ByteToCharUTF8.convert(ByteToCharUTF8.java:294)
      at sun.nio.cs.StreamDecoder$ConverterSD.convertInto(StreamDecoder.java:316)
      at sun.no.cs.StreamDecoder$ConverterSD.implRead(StreamDecoder.java:366)
      ...

0 votes



One answer

Permanent link
MalformedInputExceptions are often a result of an encoding issue.
The name of the file or the directory in ClearCase VOB contains a byte sequence not legal for the given character set.

Windows:
Switch the system locale to the one that can read the file name or the directory name, then reboot

Linux:
You can set the proper encoding by setting the LANG env variable to the proper  value. See the steps below.

Stop the sync engine if it is running ( you can find the process by something like 'ps -ef | grep buildengine' )
Close RTC eclipse client
Set LANG environment variable in your terminal, export it. ( 'setenv LANG en_US.ISO-8859-1' or 'export LANG=en_US.ISO-8859-1' etc.)
Start RTC eclipse client from the terminal
Verify the LANG env. variable is set as expected, by 'cat /proc/<RTC eclipse client process>/environ' and find LANG var.
Go to ClearCase Sync. view, select your sync. stream and start sync. engine
Again, verify  the LANG env. variable is set as expected for the sync engine process
Run sync

For more detail see  https://jazz.net/jazz/resource/itemName/com.ibm.team.workitem.WorkItem/217746
comment 15

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: Oct 05 '12, 10:05 a.m.

Question was seen: 5,401 times

Last updated: Oct 05 '12, 10:26 a.m.

Confirmation Cancel Confirm