suyash verma (suyash271)
Syntel Inc

Syntel Inc
suyash271 Member since 2018 2 posts
Syntel Inc
Posted: September 5, 2019
Last activity: September 6, 2019
Posted: 5 Sep 2019 18:17 EDT
Last activity: 6 Sep 2019 6:47 EDT

Getting runtime Error while executing JGit funtionality

I am trying to connect PEGA with GitHub using jGit jar - org.eclipse.jgit-

we added all required jar in PEGA Class path, so we are not getting any compilation error.

when executing below code

LsRemoteCommand remoteCmd = Git.lsRemoteRepository().setCredentialsProvider(this.getCp()).setRemote(repo).setTags(true).setHeads(true);
try {
	refList =;

we are getting - "java.lang.IllegalAccessError: Class org/eclipse/jgit/lib/ObjectId illegally accessing "package private" member of class org/eclipse/jgit/lib/AnyObjectId"

logs attached.

both class 'ObjectID' and 'AnyObjectID' are present in jgit jar.

we tested same funcationality in java programming and it is working fine.

PEGA - 7.4

JRE - jre1.8.0_211

WebSphere -

Data Integration Java and Activities
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.