java.lang.IllegalAccessException

Can not call newInstance() on the Class for java.lang.Class

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web219

  • via GitHub by zippy-pl
    ,
  • Stack trace

    • java.lang.IllegalAccessException: Can not call newInstance() on the Class for java.lang.Class at java.lang.Class.newInstance(Class.java:406)[na:1.8.0_91] at org.sonar.plugins.stash.PluginUtils.classesMatching(PluginUtils.java:64)[sonar-stash-plugin-1.2.0-SNAPSHOT.jar:na] at org.sonar.plugins.stash.PluginUtils.infoForPluginClass(PluginUtils.java:40)[sonar-stash-plugin-1.2.0-SNAPSHOT.jar:na] at org.sonar.plugins.stash.client.StashClient.getUserAgent(StashClient.java:343)[sonar-stash-plugin-1.2.0-SNAPSHOT.jar:na] at org.sonar.plugins.stash.client.StashClient.createHttpClient(StashClient.java:359)[sonar-stash-plugin-1.2.0-SNAPSHOT.jar:na] at org.sonar.plugins.stash.client.StashClient.<init>(StashClient.java:78)[sonar-stash-plugin-1.2.0-SNAPSHOT.jar:na] at org.sonar.plugins.stash.StashIssueReportingPostJob.executeOn(StashIssueReportingPostJob.java:54)[sonar-stash-plugin-1.2.0-SNAPSHOT.jar:na] at org.sonar.scanner.phases.PostJobsExecutor.execute(PostJobsExecutor.java:63)[sonar-scanner-engine-shaded-6.0.jar:na] at org.sonar.scanner.phases.PostJobsExecutor.execute(PostJobsExecutor.java:53)[sonar-scanner-engine-shaded-6.0.jar:na] at org.sonar.scanner.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:82)[sonar-scanner-engine-shaded-6.0.jar:na] at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:184)[sonar-scanner-engine-shaded-6.0.jar:na] at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)[sonar-scanner-engine-shaded-6.0.jar:na] at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)[sonar-scanner-engine-shaded-6.0.jar:na] at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:241)[sonar-scanner-engine-shaded-6.0.jar:na] at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:236)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Andreas HäberAndreas Häber
    Once,
    jf-astjf-ast
    2 times, last one
    batwalrus76batwalrus76
    3 times, last one
    Unknown visitor
    Unknown visitorOnce,
    KialandeiKialandei
    Once,
    15 more bugmates