It's all about the answers!

Ask a question

Encoding problem - error


Yehiel Glass (25538986) | asked Sep 04 '12, 4:51 a.m.
edited Sep 04 '12, 4:51 a.m.
Hi,
I need assistance with my magic.properties file :
We are working with windows clients (Cp1255 encoding) but we also have one Unix client.
We have files wiout extenssion. I don't know how to configure them.
This is the content of my magic.properties file:
[dev_app] lifedev /home/rtcadmin/.jazz-scm [3]% vi magic.properties
"magic.properties" 14 lines, 891 characters
*.pco: mime: plain/text; delim: platform; encoding: Cp1255
*.cob: mime: plain/text; delim: platform; encoding: Cp1255
*.cbl: mime: plain/text; delim: platform; encoding: Cp1255
*.CBL: mime: plain/text; delim: platform; encoding: Cp1255
*.CO: mime: plain/text; delim: platform; encoding: Cp1255
*.C: mime: plain/text; delim: platform; encoding: Cp1255
*.CPY: mime: plain/text; delim: platform;  encoding: Cp1255
*.xsgm: mime: application/xml; delim: platform; encoding: Cp1255
ProgramConfiguration: mime: application/xml; delim: platform; encoding: Cp1255
Gates: mime: application/xml; delim: platform; encoding: Cp1255
ModuleConfiguration: mime: application/xml; delim: platform; encoding: Cp1255
Presentation: mime: application/xml; delim: platform; encoding: Cp1255
Splits: mime: application/xml; delim: platform; encoding: Cp1255
*: mime: plain/text; delim: platform; encoding: Cp1255
I get this error :
d /pde/shared_workspace/life_pde_sync_in LIFE_RTC/Copy/TKP_400_NOGA_LEUMI
Root exception: 
com.ibm.team.filesystem.client.FileSystemStatusException: Status ERROR: com.ibm.team.filesystem.client code=0 Error during upload null children=[Status ERROR: com.ibm.team.filesystem.client code=0 Failed to upload File /LIFE_RTC/Copy/TKP_400_NOGA_LEUMI  java.nio.charset.IllegalCharsetNameException: Cp1255 ]
        at com.ibm.team.filesystem.client.internal.utils.RepositoryUtils.throwAppropriateException(RepositoryUtils.java:102)
        at com.ibm.team.filesystem.client.internal.operations.NewCheckInOperation.doDilemmaHandling(NewCheckInOperation.java:1084)
        at com.ibm.team.filesystem.client.internal.operations.NewCheckInOperation.commitChanges(NewCheckInOperation.java:895)
        at com.ibm.team.filesystem.client.internal.operations.NewCheckInOperation.runRequest(NewCheckInOperation.java:722)
        at com.ibm.team.filesystem.client.internal.operations.NewCheckInOperation$1.run(NewCheckInOperation.java:629)
        at com.ibm.team.filesystem.rcp.core.internal.resources.ResourceSharingManager$1.run(ResourceSharingManager.java:76)
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
        at com.ibm.team.filesystem.rcp.core.internal.resources.ResourceSharingManager.runWithinFileSystemLock(ResourceSharingManager.java:88)
        at com.ibm.team.filesystem.client.internal.operations.FileSystemOperation.runWithinFileSystemLock(FileSystemOperation.java:164)
        at com.ibm.team.filesystem.client.internal.operations.FileSystemOperation.runWithinFileSystemLock(FileSystemOperation.java:144)
        at com.ibm.team.filesystem.client.internal.operations.NewCheckInOperation.execute(NewCheckInOperation.java:654)
        at com.ibm.team.filesystem.client.internal.operations.FileSystemOperation.run(FileSystemOperation.java:89)
        at com.ibm.team.filesystem.cli.client.internal.subcommands.CheckInCmd.commit(CheckInCmd.java:428)
        at com.ibm.team.filesystem.cli.client.internal.subcommands.CheckInCmd.run(CheckInCmd.java:257)
        at com.ibm.team.filesystem.cli.core.internal.SubcommandLauncher.run(SubcommandLauncher.java:651)
        at com.ibm.team.filesystem.cli.core.internal.SubcommandLauncher.doStart(SubcommandLauncher.java:398)
        at com.ibm.team.filesystem.cli.core.internal.SubcommandLauncher.run(SubcommandLauncher.java:175)
        at com.ibm.team.filesystem.cli.client.internal.daemon.CommandLineClient.handleRequest(CommandLineClient.java:125)
        at com.ibm.team.filesystem.client.internal.http.ProtocolSwitchingHttpHandler.handle(ProtocolSwitchingHttpHandler.java:46)
        at com.ibm.team.filesystem.client.internal.http.HttpConnection.readNextRequest(HttpConnection.java:628)
        at com.ibm.team.filesystem.client.internal.http.HttpConnection$1.run(HttpConnection.java:470)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Contains : 0 Failed to upload File /LIFE_RTC/Copy/TKP_400_NOGA_LEUMI 
java.nio.charset.IllegalCharsetNameException: Cp1255 
        at java.nio.charset.Charset.checkName(Charset.java:326)
        at java.nio.charset.Charset.lookup(Charset.java:499)
        at java.nio.charset.Charset.forName(Charset.java:537)
        at com.ibm.team.filesystem.common.util.LineDelimiterVerifier.getCharsetDecoder(LineDelimiterVerifier.java:57)
        at com.ibm.team.filesystem.common.util.LineDelimiterVerifier.<init>(LineDelimiterVerifier.java:48)
        at com.ibm.team.filesystem.common.util.VerifyConvertToLFInputStream.<init>(VerifyConvertToLFInputStream.java:41)
        at com.ibm.team.filesystem.client.internal.operations.UploadHandler.getInputStream(UploadHandler.java:255)
        at com.ibm.team.filesystem.client.internal.operations.UploadHandler$1.getInputStream(UploadHandler.java:102)
        at com.ibm.team.scm.client.content.BasicAsyncVersionedContentManagerSession$2.getInputStream(BasicAsyncVersionedContentManagerSession.java:241)
        at com.ibm.team.scm.client.content.BasicVersionedContentManager.storeContent(BasicVersionedContentManager.java:282)
        at com.ibm.team.scm.client.content.BasicAsyncVersionedContentManagerSession.internalDoStoreContent(BasicAsyncVersionedContentManagerSession.java:213)
        at com.ibm.team.scm.client.content.BasicAsyncVersionedContentManagerSession.internalDoStoreContent(BasicAsyncVersionedContentManagerSession.java:257)
        at com.ibm.team.scm.client.content.BasicAsyncVersionedContentManagerSession$3.run(BasicAsyncVersionedContentManagerSession.java:327)
        at com.ibm.team.repository.client.util.ThreadPool$PoolJob.run(ThreadPool.java:129)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Internal error occurred
com.ibm.team.filesystem.client.FileSystemStatusException: Status ERROR: com.ibm.team.filesystem.client code=0 Error during upload null children=[Status ERROR: com.ibm.team.filesystem.client code=0 Failed to upload File /LIFE_RTC/Copy/TKP_400_NOGA_LEUMI  java.nio.charset.IllegalCharsetNameException: Cp1255 ]
        at com.ibm.team.filesystem.client.internal.utils.RepositoryUtils.throwAppropriateException(RepositoryUtils.java:102)
        at com.ibm.team.filesystem.client.internal.operations.NewCheckInOperation.doDilemmaHandling(NewCheckInOperation.java:1084)
        at com.ibm.team.filesystem.client.internal.operations.NewCheckInOperation.commitChanges(NewCheckInOperation.java:895)
        at com.ibm.team.filesystem.client.internal.operations.NewCheckInOperation.runRequest(NewCheckInOperation.java:722)
        at com.ibm.team.filesystem.client.internal.operations.NewCheckInOperation$1.run(NewCheckInOperation.java:629)
        at com.ibm.team.filesystem.rcp.core.internal.resources.ResourceSharingManager$1.run(ResourceSharingManager.java:76)
        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
        at com.ibm.team.filesystem.rcp.core.internal.resources.ResourceSharingManager.runWithinFileSystemLock(ResourceSharingManager.java:88)
        at com.ibm.team.filesystem.client.internal.operations.FileSystemOperation.runWithinFileSystemLock(FileSystemOperation.java:164)
        at com.ibm.team.filesystem.client.internal.operations.FileSystemOperation.runWithinFileSystemLock(FileSystemOperation.java:144)
        at com.ibm.team.filesystem.client.internal.operations.NewCheckInOperation.execute(NewCheckInOperation.java:654)
        at com.ibm.team.filesystem.client.internal.operations.FileSystemOperation.run(FileSystemOperation.java:89)
        at com.ibm.team.filesystem.cli.client.internal.subcommands.CheckInCmd.commit(CheckInCmd.java:428)
        at com.ibm.team.filesystem.cli.client.internal.subcommands.CheckInCmd.run(CheckInCmd.java:257)
        at com.ibm.team.filesystem.cli.core.internal.SubcommandLauncher.run(SubcommandLauncher.java:651)
        at com.ibm.team.filesystem.cli.core.internal.SubcommandLauncher.doStart(SubcommandLauncher.java:398)
        at com.ibm.team.filesystem.cli.core.internal.SubcommandLauncher.run(SubcommandLauncher.java:175)
        at com.ibm.team.filesystem.cli.client.internal.daemon.CommandLineClient.handleRequest(CommandLineClient.java:125)
        at com.ibm.team.filesystem.client.internal.http.ProtocolSwitchingHttpHandler.handle(ProtocolSwitchingHttpHandler.java:46)
        at com.ibm.team.filesystem.client.internal.http.HttpConnection.readNextRequest(HttpConnection.java:628)
        at com.ibm.team.filesystem.client.internal.http.HttpConnection$1.run(HttpConnection.java:470)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Contains : 0 Failed to upload File /LIFE_RTC/Copy/TKP_400_NOGA_LEUMI 
java.nio.charset.IllegalCharsetNameException: Cp1255 



Comments
Karl Weinert commented Sep 04 '12, 1:55 p.m.
JAZZ DEVELOPER

It seems to be related to Cp1255 encoding rather than the fact that the file does not have an extension. I get similar results when using *.abc: mime: plain/text; delim: platform; encoding: Cp1255 Have you been able check in files with a different extension but the same encoding on Linux?

3 answers



permanent link
Shashikant Padur (4.2k27) | answered Sep 05 '12, 4:25 a.m.
JAZZ DEVELOPER
From your magic.properties file, I see the following line... *: mime: plain/text; delim: platform; encoding: Cp1255. This means that if the lines above this line in magic.properties file did not match any files, all the files will be checked in using cp1255 encoding.
As Karl mentioned, it is the problem with the encoding Cp1255 which is a code page used under windows. I believe you are trying to checkin the file under linux. Is that correct?

permanent link
Yehiel Glass (25538986) | answered Sep 12 '12, 2:39 a.m.
Hi,
I'm trying to checkin files on linux with windows encoding.
All the other files are checkin well, but I have problem with new files without extension only.
Do you have any other idea, how to set the encoding if the users are working on windows but there is one critical client that is Unix (this client is for auto sync process only) ?

permanent link
Shashikant Padur (4.2k27) | answered Sep 12 '12, 6:12 a.m.
JAZZ DEVELOPER
I tried with and without an extension and it worked fine for me. Although I did get an error when there was a space after the encoding such as... "*: mime: plain/text; delim: platform; encoding: Cp1255 ". Note the trailing space.

Make sure you do not have a space after the encoding for all the lines in magic.properties file... "*: mime: plain/text; delim: platform; encoding: Cp1255".

Your answer


Register or 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.