IBM Support

PM77573: [wi 242064] scm accept fails with 'org.xml.sax.SAXParseException: Content is not allowed in prolog' loading invalid .project

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The CR is related to Jazz.net WI 242064
    https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#act
    ion=com.ibm.team.workitem.viewWorkItem&id=242064
    
    To reproduce:
    - Using SCM CLI, load a project into a local sandbox
    - In Eclipse, edit that project's '.project' file - add a 'dash'
    character as the very first character in the file
    - Checkin & deliver
    - Accept the project change into the local sandbox: 'scm accept'
    
    In 3.0.1.3, the SCM CLI fails and dumps this stack trace:
    org.xml.sax.SAXParseException: Content is not allowed in prolog.
        at
    org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseExcepti
    on(Unknown Source)
        at
    org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
    Source)
        at
    org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
    Source)
        at
    org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
    Source)
        at
    org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown
    Source)
        at
    org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.d
    ispatch(Unknown Source)
        at
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocume
    nt(Unknown Source)
        at
    org.apache.xerces.parsers.XML11Configuration.parse(Unknown
    Source)
        at
    org.apache.xerces.parsers.XML11Configuration.parse(Unknown
    Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
    Source)
        at
    org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
    Source)
        at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown
    Source)
        at
    org.eclipse.core.internal.resources.ProjectDescriptionReader.rea
    d(ProjectDescriptionReader.java:919)
        at
    org.eclipse.core.internal.localstore.FileSystemResourceManager.r
    ead(FileSystemResourceManager.java:745)
        at
    org.eclipse.core.internal.resources.Project.updateDescription(Pr
    oject.java:1295)
        at
    org.eclipse.core.internal.resources.Project.create(Project.java:
    295)
        at
    org.eclipse.core.internal.resources.Project.create(Project.java:
    256)
        at
    com.ibm.team.filesystem.rcp.core.internal.resources.ProjectCreat
    or.createProject(ProjectCreator.java:439)
        at
    com.ibm.team.filesystem.rcp.core.internal.resources.ProjectCreat
    or.createNewProjects(ProjectCreator.java:215)
        at
    com.ibm.team.filesystem.rcp.core.internal.resources.EclipseWorks
    paceMutator.updatesComplete(EclipseWorkspaceMutator.java:103)
        at
    com.ibm.team.filesystem.client.internal.load.UpdateMutator.execu
    te(UpdateMutator.java:2247)
        . . . (see attachment for full trace)
        Problem running 'accept':
        Update failed
    
    In 4.0.0.1, the 'scm accept' command also fails, but does not
    dump the stack trace.
    
    Simply loading the bad .project file 'scm load ...' succeeds -
    only 'accept' fails.
    

Local fix

Problem summary

  • scm accept fails with 'org.xml.sax.SAXParseException: Content is
     not allowed in prolog' loading invalid .project
    

Problem conclusion

  • Fixed in 4.0.5
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM77573

  • Reported component name

    RATL TEAM CONCE

  • Reported component ID

    5724V0400

  • Reported release

    301

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-11-21

  • Closed date

    2013-12-10

  • Last modified date

    2013-12-10

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    RATL TEAM CONCE

  • Fixed component ID

    5724V0400

Applicable component levels

  • R405 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSCP65","label":"Rational Team Concert"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"3.0.1","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
10 December 2013