java.lang.ExceptionInInitializerError

Jenkins JIRA | Mads Nielsen | 4 years ago
  1. 0

    When the jenkins user does not have enough privilege to create a file on the local filesystem the plugin would throw this exception: FATAL: null java.lang.ExceptionInInitializerError at net.praqma.prqa.PRQACommandLineUtility.<clinit>(PRQACommandLineUtility.java:21) at net.praqma.prqa.products.QAR.execute(QAR.java:48) at net.praqma.prqa.reports.PRQAComplianceReport.completeTask(PRQAComplianceReport.java:40) at net.praqma.prqa.reports.PRQAComplianceReport.completeTask(PRQAComplianceReport.java:57) at net.praqma.jenkins.plugin.prqa.PRQARemoteComplianceReport.invoke(PRQARemoteComplianceReport.java:26) at net.praqma.jenkins.plugin.prqa.PRQARemoteComplianceReport.invoke(PRQARemoteComplianceReport.java:15) at hudson.FilePath.act(FilePath.java:842) at hudson.FilePath.act(FilePath.java:824) at net.praqma.jenkins.plugin.prqa.notifier.PRQANotifier.perform(PRQANotifier.java:207) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639) at hudson.model.Run.execute(Run.java:1513) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: net.praqma.util.execute.CouldNotCreateLoggerException: Failed to create logger for file: C:\Windows\system32\logger_20120814.log at net.praqma.util.debug.Logger.initialize(Logger.java:135) at net.praqma.util.debug.Logger.log(Logger.java:336) at net.praqma.util.debug.Logger.debug(Logger.java:200) at net.praqma.util.execute.CommandLine.<init>(CommandLine.java:37) at net.praqma.util.execute.CommandLine.<clinit>(CommandLine.java:20) ... 18 more

    Jenkins JIRA | 4 years ago | Mads Nielsen
    java.lang.ExceptionInInitializerError
  2. 0

    When the jenkins user does not have enough privilege to create a file on the local filesystem the plugin would throw this exception: FATAL: null java.lang.ExceptionInInitializerError at net.praqma.prqa.PRQACommandLineUtility.<clinit>(PRQACommandLineUtility.java:21) at net.praqma.prqa.products.QAR.execute(QAR.java:48) at net.praqma.prqa.reports.PRQAComplianceReport.completeTask(PRQAComplianceReport.java:40) at net.praqma.prqa.reports.PRQAComplianceReport.completeTask(PRQAComplianceReport.java:57) at net.praqma.jenkins.plugin.prqa.PRQARemoteComplianceReport.invoke(PRQARemoteComplianceReport.java:26) at net.praqma.jenkins.plugin.prqa.PRQARemoteComplianceReport.invoke(PRQARemoteComplianceReport.java:15) at hudson.FilePath.act(FilePath.java:842) at hudson.FilePath.act(FilePath.java:824) at net.praqma.jenkins.plugin.prqa.notifier.PRQANotifier.perform(PRQANotifier.java:207) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639) at hudson.model.Run.execute(Run.java:1513) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: net.praqma.util.execute.CouldNotCreateLoggerException: Failed to create logger for file: C:\Windows\system32\logger_20120814.log at net.praqma.util.debug.Logger.initialize(Logger.java:135) at net.praqma.util.debug.Logger.log(Logger.java:336) at net.praqma.util.debug.Logger.debug(Logger.java:200) at net.praqma.util.execute.CommandLine.<init>(CommandLine.java:37) at net.praqma.util.execute.CommandLine.<clinit>(CommandLine.java:20) ... 18 more

    Jenkins JIRA | 4 years ago | Mads Nielsen
    java.lang.ExceptionInInitializerError

    Root Cause Analysis

    1. net.praqma.util.execute.CouldNotCreateLoggerException

      Failed to create logger for file: C:\Windows\system32\logger_20120814.log

      at net.praqma.util.debug.Logger.initialize()
    2. net.praqma.util
      CommandLine.<clinit>
      1. net.praqma.util.debug.Logger.initialize(Logger.java:135)
      2. net.praqma.util.debug.Logger.log(Logger.java:336)
      3. net.praqma.util.debug.Logger.debug(Logger.java:200)
      4. net.praqma.util.execute.CommandLine.<init>(CommandLine.java:37)
      5. net.praqma.util.execute.CommandLine.<clinit>(CommandLine.java:20)
      5 frames
    3. net.praqma.prqa
      PRQAComplianceReport.completeTask
      1. net.praqma.prqa.PRQACommandLineUtility.<clinit>(PRQACommandLineUtility.java:21)
      2. net.praqma.prqa.products.QAR.execute(QAR.java:48)
      3. net.praqma.prqa.reports.PRQAComplianceReport.completeTask(PRQAComplianceReport.java:40)
      4. net.praqma.prqa.reports.PRQAComplianceReport.completeTask(PRQAComplianceReport.java:57)
      4 frames
    4. net.praqma.jenkins
      PRQARemoteComplianceReport.invoke
      1. net.praqma.jenkins.plugin.prqa.PRQARemoteComplianceReport.invoke(PRQARemoteComplianceReport.java:26)
      2. net.praqma.jenkins.plugin.prqa.PRQARemoteComplianceReport.invoke(PRQARemoteComplianceReport.java:15)
      2 frames
    5. Hudson
      FilePath.act
      1. hudson.FilePath.act(FilePath.java:842)
      2. hudson.FilePath.act(FilePath.java:824)
      2 frames
    6. net.praqma.jenkins
      PRQANotifier.perform
      1. net.praqma.jenkins.plugin.prqa.notifier.PRQANotifier.perform(PRQANotifier.java:207)
      1 frame
    7. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717)
      3. hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692)
      4. hudson.model.Build$BuildExecution.post2(Build.java:183)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639)
      6. hudson.model.Run.execute(Run.java:1513)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      8. hudson.model.ResourceController.execute(ResourceController.java:88)
      9. hudson.model.Executor.run(Executor.java:236)
      9 frames