IBM Support

PH58876: IN IDZ 16.0.3, SONARLINT INTEGRATION RETURNS NOCLASSDEFFOUNDERROR AT GITINFO WHEN ANALYZE IS SELECTED

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • When attempting to Analyze a local project with Sonarlint 7.8
    integration with IBM Developer for z/OS 16.0.3, the client
    returns:
    java.lang.NoClassDefFoundError:
    org/eclipse/egit/core/info/GitInfo at
    org.sonarlint.eclipse.core.internal.vcs.Egit5dot12VcsFacade.getR
    epo
    
    With the IDz sonar tracing, the error shows:
    !ENTRY org.eclipse.core.jobs 4 2 2023-11-14 09:03:12.197
    !MESSAGE An internal error occurred during: "Synchronize local
    storage with SonarQube/SonarCloud".
    !STACK 0
    java.lang.NoClassDefFoundError:
    org.eclipse.egit.core.info.GitInfo
    at
    org.sonarlint.eclipse.core.internal.vcs.EGit5dot12VcsFacade.getR
    epo(EGit5dot12VcsFacade.java:46)
    ...
    Caused by: java.lang.ClassNotFoundException:
    org.eclipse.egit.core.info.GitInfo cannot be found by
    org.sonarlint.eclipse.core_7.8.0.63129
    at
    org.eclipse.osgi.internal.loader.BundleLoader.generateException(
    BundleLoader.java:529)
    
    Egit is installed by default with IBM Developer for z/OS, but
    may not be used.
    
    IBM Developer for z/OS 16.0.0, 16.0.1 and 16.0.2 all work with
    Sonarlint successfully.
    

Local fix

  • In 16.0.3, find the org.eclipse.jgit_6.6.1.202310031841.jar
    under
    c:\Program Files\IBM\SDPShared\plugins.
    Rename the file so that the name or the jar file is not
    recognized.  For example, rename as
    OLDrg.eclipse.jgit_6.6.1.202310031841.OLDjar.
    Restart IDz with -clean.
    Right click on the START.
    Go to Software Delivery Platform (or where IDz is installed).
    Right click on Developer for z/OS.
    Select MORE.
    Select Open File Location.
    Select Developer for z/OS.
    Right click and select Properties.
    Look at the Target.  Copy and put in a command prompt to start
    IDz.
    Before launching, add -clean to the end.
    The command should be similar to
        C:\Program Files\IBM\Developer_for_zOS>eclipse.exe -product
    com.ibm.developer.for.zos.product.ide -clean
    

Problem summary

  • The issue was that a security patch added to EGit (really the
    JGit component of EGit) caused issues as the expected required
    package version within EGit was out of range.
    

Problem conclusion

  • The fix was to adjust the version to where the export JGit
    packages were in line with what EGit would expect and accept.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH58876

  • Reported component name

    DEV FOR Z/OS

  • Reported component ID

    5724T0700

  • Reported release

    G00

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2023-12-19

  • Closed date

    2024-03-15

  • Last modified date

    2024-03-15

  • 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

    DEV FOR Z/OS

  • Fixed component ID

    5724T0700

Applicable component levels

[{"Business Unit":{"code":"BU029","label":"Software"},"Product":{"code":"SSJK49","label":"IBM Developer for z Systems"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"G00"}]

Document Information

Modified date:
04 April 2024