[JIRA] Created: (HUDSON-5213) NPE on SimpleTemplate.setAttribute

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[JIRA] Created: (HUDSON-5213) NPE on SimpleTemplate.setAttribute

Hudson issues mailing list
NPE on SimpleTemplate.setAttribute
----------------------------------

                 Key: HUDSON-5213
                 URL: http://issues.hudson-ci.org/browse/HUDSON-5213
             Project: Hudson
          Issue Type: Bug
          Components: sonar
         Environment: Hudson ver. 1.339
Sonar 1.12
Hudson Sonar plugin 1.1
            Reporter: bazoud
            Assignee: sonarteam


At the end of a maven build with Hudson, sonar starts analysis but a NPE appears.

{noformat}
ERROR: Publisher hudson.plugins.sonar.SonarPublisher aborted due to exception
java.lang.NullPointerException
        at java.lang.String.replace(String.java:2207)
        at hudson.plugins.sonar.template.SimpleTemplate.setAttribute(SimpleTemplate.java:52)
        at hudson.plugins.sonar.SonarPublisher.generatePomForNonMavenProject(SonarPublisher.java:310)
        at hudson.plugins.sonar.SonarPublisher.executeSonar(SonarPublisher.java:284)
        at hudson.plugins.sonar.SonarPublisher.perform(SonarPublisher.java:243)
        at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
        at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:583)
        at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:564)
        at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:594)
        at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:535)
        at hudson.model.Run.run(Run.java:1202)
        at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:304)
        at hudson.model.ResourceController.execute(ResourceController.java:88)
        at hudson.model.Executor.run(Executor.java:122)
{noformat}

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Commented: (HUDSON-5213) NPE on SimpleTemplate.setAttribute

Hudson issues mailing list

    [ http://issues.hudson-ci.org/browse/HUDSON-5213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=134898#action_134898 ]

godin commented on HUDSON-5213:
-------------------------------

Hi, bazoud.

Could you provide more info on configuration of your project?

> NPE on SimpleTemplate.setAttribute
> ----------------------------------
>
>                 Key: HUDSON-5213
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5213
>             Project: Hudson
>          Issue Type: Bug
>          Components: sonar
>         Environment: Hudson ver. 1.339
> Sonar 1.12
> Hudson Sonar plugin 1.1
>            Reporter: bazoud
>            Assignee: sonarteam
>
> At the end of a maven build with Hudson, sonar starts analysis but a NPE appears.
> {noformat}
> ERROR: Publisher hudson.plugins.sonar.SonarPublisher aborted due to exception
> java.lang.NullPointerException
> at java.lang.String.replace(String.java:2207)
> at hudson.plugins.sonar.template.SimpleTemplate.setAttribute(SimpleTemplate.java:52)
> at hudson.plugins.sonar.SonarPublisher.generatePomForNonMavenProject(SonarPublisher.java:310)
> at hudson.plugins.sonar.SonarPublisher.executeSonar(SonarPublisher.java:284)
> at hudson.plugins.sonar.SonarPublisher.perform(SonarPublisher.java:243)
> at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
> at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:583)
> at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:564)
> at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:594)
> at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:535)
> at hudson.model.Run.run(Run.java:1202)
> at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:304)
> at hudson.model.ResourceController.execute(ResourceController.java:88)
> at hudson.model.Executor.run(Executor.java:122)
> {noformat}

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[JIRA] Closed: (HUDSON-5213) NPE on SimpleTemplate.setAttribute

Hudson issues mailing list
In reply to this post by Hudson issues mailing list

     [ http://issues.hudson-ci.org/browse/HUDSON-5213?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

godin closed HUDSON-5213.
-------------------------

    Resolution: Cannot Reproduce

Closed as outdated. Bazoud, feel free to reopen it, if you can provide more information.

> NPE on SimpleTemplate.setAttribute
> ----------------------------------
>
>                 Key: HUDSON-5213
>                 URL: http://issues.hudson-ci.org/browse/HUDSON-5213
>             Project: Hudson
>          Issue Type: Bug
>          Components: sonar
>         Environment: Hudson ver. 1.339
> Sonar 1.12
> Hudson Sonar plugin 1.1
>            Reporter: bazoud
>            Assignee: sonarteam
>
> At the end of a maven build with Hudson, sonar starts analysis but a NPE appears.
> {noformat}
> ERROR: Publisher hudson.plugins.sonar.SonarPublisher aborted due to exception
> java.lang.NullPointerException
> at java.lang.String.replace(String.java:2207)
> at hudson.plugins.sonar.template.SimpleTemplate.setAttribute(SimpleTemplate.java:52)
> at hudson.plugins.sonar.SonarPublisher.generatePomForNonMavenProject(SonarPublisher.java:310)
> at hudson.plugins.sonar.SonarPublisher.executeSonar(SonarPublisher.java:284)
> at hudson.plugins.sonar.SonarPublisher.perform(SonarPublisher.java:243)
> at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
> at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:583)
> at hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java:564)
> at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:594)
> at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:535)
> at hudson.model.Run.run(Run.java:1202)
> at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:304)
> at hudson.model.ResourceController.execute(ResourceController.java:88)
> at hudson.model.Executor.run(Executor.java:122)
> {noformat}

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.hudson-ci.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]