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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Reopened (View Workflow)
    • Major
    • Resolution: Unresolved
    • clearcase-plugin
    • None
    • Hudson 1.378
      ClearCase plugin 1.3.1
      Java 1.6.0_21

    Description

      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)

      Attachments

        Issue Links

          Activity

            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.

            vlatombe 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.

            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)
            
            typek_pb 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

            typek_pb Peter Butkovic added a comment - still not fixed

            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

            vlatombe 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

            that's very interesting No idea where the problem is.
            I'll wait for 1.406 and repost the stacttrace then.

            typek_pb Peter Butkovic added a comment - that's very interesting No idea where the problem is. I'll wait for 1.406 and repost the stacttrace then.

            hi again, well this is my stacktrace with jenkins 1.406, hope it helps:

            13:08:08  [INFO] Trace
            13:08:08  java.lang.NullPointerException
            13:08:08  	at hudson.FilePath.isAbsolute(FilePath.java:225)
            13:08:08  	at hudson.FilePath.<init>(FilePath.java:213)
            13:08:08  	at hudson.FilePath.child(FilePath.java:895)
            13:08:08  	at hudson.plugins.clearcase.AbstractClearCaseScm.getModuleRoot(AbstractClearCaseScm.java:284)
            13:08:08  	at hudson.model.AbstractBuild.getModuleRoot(AbstractBuild.java:239)
            13:08:08  	at hudson.maven.reporters.MavenSiteArchiver$1.call(MavenSiteArchiver.java:109)
            13:08:08  	at hudson.maven.reporters.MavenSiteArchiver$1.call(MavenSiteArchiver.java:106)
            13:08:08  	at hudson.maven.MavenBuild$ProxyImpl.execute(MavenBuild.java:396)
            13:08:08  	at hudson.maven.MavenBuild$ProxyImpl2.execute(MavenBuild.java:469)
            13:08:08  	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            13:08:08  	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            13:08:08  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            13:08:08  	at java.lang.reflect.Method.invoke(Method.java:597)
            13:08:08  	at hudson.model.Executor$1.call(Executor.java:429)
            13:08:08  	at hudson.util.InterceptingProxy$1.invoke(InterceptingProxy.java:23)
            13:08:08  	at $Proxy30.execute(Unknown Source)
            13:08:08  	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            13:08:08  	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            13:08:08  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            13:08:08  	at java.lang.reflect.Method.invoke(Method.java:597)
            13:08:08  	at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274)
            13:08:08  	at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255)
            13:08:08  	at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215)
            13:08:08  	at hudson.remoting.UserRequest.perform(UserRequest.java:118)
            13:08:08  	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
            13:08:08  	at hudson.remoting.Request$2.run(Request.java:270)
            13:08:08  	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
            13:08:08  	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
            13:08:08  	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
            13:08:08  	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
            13:08:08  	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
            13:08:08  	at java.lang.Thread.run(Thread.java:619)
            
            typek_pb Peter Butkovic added a comment - hi again, well this is my stacktrace with jenkins 1.406, hope it helps: 13:08:08 [INFO] Trace 13:08:08 java.lang.NullPointerException 13:08:08 at hudson.FilePath.isAbsolute(FilePath.java:225) 13:08:08 at hudson.FilePath.<init>(FilePath.java:213) 13:08:08 at hudson.FilePath.child(FilePath.java:895) 13:08:08 at hudson.plugins.clearcase.AbstractClearCaseScm.getModuleRoot(AbstractClearCaseScm.java:284) 13:08:08 at hudson.model.AbstractBuild.getModuleRoot(AbstractBuild.java:239) 13:08:08 at hudson.maven.reporters.MavenSiteArchiver$1.call(MavenSiteArchiver.java:109) 13:08:08 at hudson.maven.reporters.MavenSiteArchiver$1.call(MavenSiteArchiver.java:106) 13:08:08 at hudson.maven.MavenBuild$ProxyImpl.execute(MavenBuild.java:396) 13:08:08 at hudson.maven.MavenBuild$ProxyImpl2.execute(MavenBuild.java:469) 13:08:08 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 13:08:08 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 13:08:08 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 13:08:08 at java.lang.reflect.Method.invoke(Method.java:597) 13:08:08 at hudson.model.Executor$1.call(Executor.java:429) 13:08:08 at hudson.util.InterceptingProxy$1.invoke(InterceptingProxy.java:23) 13:08:08 at $Proxy30.execute(Unknown Source) 13:08:08 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 13:08:08 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 13:08:08 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 13:08:08 at java.lang.reflect.Method.invoke(Method.java:597) 13:08:08 at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274) 13:08:08 at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255) 13:08:08 at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215) 13:08:08 at hudson.remoting.UserRequest.perform(UserRequest.java:118) 13:08:08 at hudson.remoting.UserRequest.perform(UserRequest.java:48) 13:08:08 at hudson.remoting.Request$2.run(Request.java:270) 13:08:08 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) 13:08:08 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 13:08:08 at java.util.concurrent.FutureTask.run(FutureTask.java:138) 13:08:08 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) 13:08:08 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 13:08:08 at java.lang. Thread .run( Thread .java:619)

            People

              vlatombe Vincent Latombe
              goldmartin goldmartin
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: