Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-7651

Clearcase plugin null value for view name when site goal is called for submodules

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • clearcase-plugin
    • None
    • Hudson 1.378
      ClearCase plugin 1.3.1
      Java 1.6.0_21

      ClearCase plugin is throwing NullPointerException when site goal is executed on submodule. Value for normalizedViewName in AbstractClearCaseScm class is null. When executing site goal for parent module, value is OK and site is generated.

      Stack trace:
      java.lang.NullPointerException
      at hudson.FilePath.isAbsolute(FilePath.java:221)
      at hudson.FilePath.<init>(FilePath.java:209)
      at hudson.FilePath.child(FilePath.java:891)
      at hudson.plugins.clearcase.AbstractClearCaseScm.getModuleRoot(AbstractClearCaseScm.java:283)
      at hudson.model.AbstractBuild.getModuleRoot(AbstractBuild.java:233)
      at hudson.maven.reporters.MavenSiteArchiver$1.call(MavenSiteArchiver.java:109)
      at hudson.maven.reporters.MavenSiteArchiver$1.call(MavenSiteArchiver.java:106)
      at hudson.maven.MavenBuild$ProxyImpl.execute(MavenBuild.java:341)
      at sun.reflect.GeneratedMethodAccessor209.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at hudson.model.Executor$1.call(Executor.java:402)
      at hudson.util.InterceptingProxy$1.invoke(InterceptingProxy.java:23)
      at $Proxy21.execute(Unknown Source)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274)
      at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255)
      at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215)
      at hudson.remoting.UserRequest.perform(UserRequest.java:114)
      at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      at hudson.remoting.Request$2.run(Request.java:270)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:619)

          [JENKINS-7651] Clearcase plugin null value for view name when site goal is called for submodules

          goldmartin created issue -
          Vincent Latombe made changes -
          Link New: This issue is related to JENKINS-7027 [ JENKINS-7027 ]
          Vincent Latombe made changes -
          Link New: This issue depends on JENKINS-4640 [ JENKINS-4640 ]
          Vincent Latombe made changes -
          Link New: This issue is related to JENKINS-7835 [ JENKINS-7835 ]

          This should be fixed now, by using core 1.382 + plugin 1.3.3. The plugin will work with an earlier core, but this bug is only fixed with this combination.

          Vincent Latombe added a comment - This should be fixed now, by using core 1.382 + plugin 1.3.3. The plugin will work with an earlier core, but this bug is only fixed with this combination.
          Vincent Latombe made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          error is still reproducible using: Jenkins 1.405 and ClearCase Plug-in 1.3.5

          current exception trace:

          16:14:18  [INFO] Trace
          16:14:18  java.lang.NullPointerException
          16:14:18  	at hudson.FilePath.isAbsolute(FilePath.java:225)
          16:14:18  	at hudson.FilePath.<init>(FilePath.java:213)
          16:14:18  	at hudson.FilePath.child(FilePath.java:895)
          16:14:18  	at hudson.plugins.clearcase.AbstractClearCaseScm.getModuleRoot(AbstractClearCaseScm.java:284)
          16:14:18  	at hudson.model.AbstractBuild.getModuleRoot(AbstractBuild.java:239)
          16:14:18  	at hudson.maven.reporters.MavenSiteArchiver$1.call(MavenSiteArchiver.java:109)
          16:14:18  	at hudson.maven.reporters.MavenSiteArchiver$1.call(MavenSiteArchiver.java:106)
          16:14:18  	at hudson.maven.MavenBuild$ProxyImpl.execute(MavenBuild.java:396)
          16:14:18  	at hudson.maven.MavenBuild$ProxyImpl2.execute(MavenBuild.java:469)
          16:14:18  	at sun.reflect.GeneratedMethodAccessor166.invoke(Unknown Source)
          16:14:18  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          16:14:18  	at java.lang.reflect.Method.invoke(Method.java:597)
          16:14:18  	at hudson.model.Executor$1.call(Executor.java:429)
          16:14:18  	at hudson.util.InterceptingProxy$1.invoke(InterceptingProxy.java:23)
          16:14:18  	at $Proxy30.execute(Unknown Source)
          16:14:18  	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          16:14:18  	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          16:14:18  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          16:14:18  	at java.lang.reflect.Method.invoke(Method.java:597)
          16:14:18  	at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274)
          16:14:18  	at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255)
          16:14:18  	at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215)
          16:14:18  	at hudson.remoting.UserRequest.perform(UserRequest.java:118)
          16:14:18  	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          16:14:18  	at hudson.remoting.Request$2.run(Request.java:270)
          16:14:18  	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
          16:14:18  	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
          16:14:18  	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
          16:14:18  	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
          16:14:18  	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
          16:14:18  	at java.lang.Thread.run(Thread.java:619)
          

          Peter Butkovic added a comment - error is still reproducible using: Jenkins 1.405 and ClearCase Plug-in 1.3.5 current exception trace: 16:14:18 [INFO] Trace 16:14:18 java.lang.NullPointerException 16:14:18 at hudson.FilePath.isAbsolute(FilePath.java:225) 16:14:18 at hudson.FilePath.<init>(FilePath.java:213) 16:14:18 at hudson.FilePath.child(FilePath.java:895) 16:14:18 at hudson.plugins.clearcase.AbstractClearCaseScm.getModuleRoot(AbstractClearCaseScm.java:284) 16:14:18 at hudson.model.AbstractBuild.getModuleRoot(AbstractBuild.java:239) 16:14:18 at hudson.maven.reporters.MavenSiteArchiver$1.call(MavenSiteArchiver.java:109) 16:14:18 at hudson.maven.reporters.MavenSiteArchiver$1.call(MavenSiteArchiver.java:106) 16:14:18 at hudson.maven.MavenBuild$ProxyImpl.execute(MavenBuild.java:396) 16:14:18 at hudson.maven.MavenBuild$ProxyImpl2.execute(MavenBuild.java:469) 16:14:18 at sun.reflect.GeneratedMethodAccessor166.invoke(Unknown Source) 16:14:18 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 16:14:18 at java.lang.reflect.Method.invoke(Method.java:597) 16:14:18 at hudson.model.Executor$1.call(Executor.java:429) 16:14:18 at hudson.util.InterceptingProxy$1.invoke(InterceptingProxy.java:23) 16:14:18 at $Proxy30.execute(Unknown Source) 16:14:18 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 16:14:18 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 16:14:18 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 16:14:18 at java.lang.reflect.Method.invoke(Method.java:597) 16:14:18 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274) 16:14:18 at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255) 16:14:18 at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215) 16:14:18 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 16:14:18 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 16:14:18 at hudson.remoting.Request$2.run(Request.java:270) 16:14:18 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) 16:14:18 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 16:14:18 at java.util.concurrent.FutureTask.run(FutureTask.java:138) 16:14:18 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) 16:14:18 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 16:14:18 at java.lang. Thread .run( Thread .java:619)

          still not fixed

          Peter Butkovic added a comment - still not fixed
          Peter Butkovic made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]

          Hello,

          your stacktrace doesn't match with source code of jenkins 1.405.
          See https://github.com/jenkinsci/jenkins/blob/jenkins-1_405/core/src/main/java/hudson/model/AbstractBuild.java#L239

          Vincent Latombe added a comment - Hello, your stacktrace doesn't match with source code of jenkins 1.405. See https://github.com/jenkinsci/jenkins/blob/jenkins-1_405/core/src/main/java/hudson/model/AbstractBuild.java#L239

            Unassigned Unassigned
            goldmartin goldmartin
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: