java 1.6 to run sonar maven plugin?

View: New views
8 Messages — Rating Filter:   Alert me  

java 1.6 to run sonar maven plugin?

by Huu-Dong Quach :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi,

I tried to run sonar maven plugin with a jdk 1.5 but it doesn't work.
I switch to a jdk 1.6 and it works flawlessly.

Is there a requirement to use a jdk 1.6?

Huu-Dong Quach





Save up to 84% on Windows 7 until Jan 3-eligible CDN College or University students only. Hurry-buy it now for $39.99!

Re: java 1.6 to run sonar maven plugin?

by Olivier Gaudin-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Huu-Dong,

Nop there is not. What was the error message ?

Olivier


On Thu, Oct 22, 2009 at 8:08 PM, Huu-Dong Quach <hdquach_list@...> wrote:
Hi,

I tried to run sonar maven plugin with a jdk 1.5 but it doesn't work.
I switch to a jdk 1.6 and it works flawlessly.

Is there a requirement to use a jdk 1.6?

Huu-Dong Quach





Save up to 84% on Windows 7 until Jan 3-eligible CDN College or University students only. Hurry-buy it now for $39.99!


Parent Message unknown Re: java 1.6 to run sonar maven plugin?

by Huu-Dong Quach :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi Olivier,

Here is some infos that you may need:

* Hudson - 1.329
* Sonar - 1.11.1
* JDK 1.5

Here is the stack trace when I'm using JDK 1.5. I have the same stack
trace when I'm running sonar outside of hudson.

[INFO] Can not execute Sonar

Embedded error: java.lang.UnsupportedClassVersionError
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Can not execute Sonar
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
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:592)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Can not execute Sonar
at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:87)
at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65)
at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:117)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
Caused by: java.lang.ClassCastException: java.lang.UnsupportedClassVersionError
at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:115)
at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.start(ReflectionLifecycleStrategy.java:89)
at org.picocontainer.adapters.InstanceAdapter.start(InstanceAdapter.java:113)
at org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:171)
at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:134)
at org.picocontainer.behaviors.Stored.start(Stored.java:111)
at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:916)
at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:664)
at org.sonar.batch.BatchMojo.createMainContainer(BatchMojo.java:164)
at org.sonar.batch.BatchMojo.executeBatch(BatchMojo.java:135)
at org.sonar.batch.BatchMojo.execute(BatchMojo.java:130)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:82)
... 21 more



Thanks,
Huu-Dong Quach

Olivier Gaudin wrote:
> Hello Huu-Dong,
>
> Nop there is not. What was the error message ?
>
> Olivier
>
>
> On Thu, Oct 22, 2009 at 8:08 PM, Huu-Dong Quach
> > wrote:
>
> Hi,
>
> I tried to run sonar maven plugin with a jdk 1.5 but it doesn't work.
> I switch to a jdk 1.6 and it works flawlessly.
>
> Is there a requirement to use a jdk 1.6?
>
> Huu-Dong Quach
>
>
>
>
> ------------------------------------------------------------------------
> Save up to 84% on Windows 7 until Jan 3-eligible CDN College or
> University students only. Hurry-buy it now for $39.99!
>
>
>




Lots of fantastic offers on Windows 7, in one convenient place. Get a deal on Windows 7 now

Re: java 1.6 to run sonar maven plugin?

by Freddy Mallet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Huu-Dong,

Could you confirm that you can launch "mvn test" without any issue on this projet with JDK 1.5 ?

thanks
Freddy


On Fri, Oct 23, 2009 at 3:33 PM, Huu-Dong Quach <hdquach_list@...> wrote:
Hi Olivier,

Here is some infos that you may need:

* Hudson - 1.329
* Sonar - 1.11.1
* JDK 1.5

Here is the stack trace when I'm using JDK 1.5. I have the same stack
trace when I'm running sonar outside of hudson.

[INFO] Can not execute Sonar

Embedded error: java.lang.UnsupportedClassVersionError
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Can not execute Sonar
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
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:592)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Can not execute Sonar
at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:87)
at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65)
at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:117)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
Caused by: java.lang.ClassCastException: java.lang.UnsupportedClassVersionError
at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:115)
at org.picocontainer.lifecycle.ReflectionLifecycleStrategy.start(ReflectionLifecycleStrategy.java:89)
at org.picocontainer.adapters.InstanceAdapter.start(InstanceAdapter.java:113)
at org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:171)
at org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:134)
at org.picocontainer.behaviors.Stored.start(Stored.java:111)
at org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:916)
at org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:664)
at org.sonar.batch.BatchMojo.createMainContainer(BatchMojo.java:164)
at org.sonar.batch.BatchMojo.executeBatch(BatchMojo.java:135)
at org.sonar.batch.BatchMojo.execute(BatchMojo.java:130)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:82)
... 21 more



Thanks,
Huu-Dong Quach


Olivier Gaudin wrote:
> Hello Huu-Dong,
>
> Nop there is not. What was the error message ?
>
> Olivier
>
>
> On Thu, Oct 22, 2009 at 8:08 PM, Huu-Dong Quach
> > wrote:
>
> Hi,
>
> I tried to run sonar maven plugin with a jdk 1.5 but it doesn't work.
> I switch to a jdk 1.6 and it works flawlessly.
>
> Is there a requirement to use a jdk 1.6?
>
> Huu-Dong Quach
>
>
>
>
> ------------------------------------------------------------------------
> Save up to 84% on Windows 7 until Jan 3-eligible CDN College or
> University students only. Hurry-buy it now for $39.99!
>
>
>




Lots of fantastic offers on Windows 7, in one convenient place. Get a deal on Windows 7 now


Parent Message unknown Re: java 1.6 to run sonar maven plugin?

by Huu-Dong Quach :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi Freddy,

mvn test completes without any issue.

In hudson, I have 2 builds per project.

The first build launch "mvn clean deploy site".
The second build launch sonar.

I have exactly the same behaviour for my other projects which are
compile with JDK 1.5.
I have to use JDK 1.6 to run sonar.

Regards,
Huu-Dong Quach

Freddy Mallet wrote:
> Hi Huu-Dong,
>
> Could you confirm that you can launch "mvn test" without any issue on
> this projet with JDK 1.5 ?
>
> thanks
> Freddy
>
>
> On Fri, Oct 23, 2009 at 3:33 PM, Huu-Dong Quach
> > wrote:
>
> Hi Olivier,
>
> Here is some infos that you may need:
>
> * Hudson - 1.329
> * Sonar - 1.11.1
> * JDK 1.5
>
> Here is the stack trace when I'm using JDK 1.5. I have the same stack
> trace when I'm running sonar outside of hudson.
>
> [INFO] Can not execute Sonar
>
> Embedded error: java.lang.UnsupportedClassVersionError
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Can not
> execute Sonar
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> at
> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> 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:592)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Can not
> execute Sonar
> at
> org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:87)
> at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65)
> at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:117)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> ... 17 more
> Caused by: java.lang.ClassCastException:
> java.lang.UnsupportedClassVersionError
> at
> org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:115)
> at
> org.picocontainer.lifecycle.ReflectionLifecycleStrategy.start(ReflectionLifecycleStrategy.java:89)
> at
> org.picocontainer.adapters.InstanceAdapter.start(InstanceAdapter.java:113)
> at
> org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:171)
> at
> org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:134)
> at org.picocontainer.behaviors.Stored.start(Stored.java:111)
> at
> org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:916)
> at
> org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:664)
> at org.sonar.batch.BatchMojo.createMainContainer(BatchMojo.java:164)
> at org.sonar.batch.BatchMojo.executeBatch(BatchMojo.java:135)
> at org.sonar.batch.BatchMojo.execute(BatchMojo.java:130)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> at
> org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:82)
> ... 21 more
>
>
>
> Thanks,
> Huu-Dong Quach
>
>
> Olivier Gaudin wrote:
> > Hello Huu-Dong,
> >
> > Nop there is not. What was the error message ?
> >
> > Olivier
> >
> >
> > On Thu, Oct 22, 2009 at 8:08 PM, Huu-Dong Quach
> >> wrote:
> >
> > Hi,
> >
> > I tried to run sonar maven plugin with a jdk 1.5 but it doesn't
> work.
> > I switch to a jdk 1.6 and it works flawlessly.
> >
> > Is there a requirement to use a jdk 1.6?
> >
> > Huu-Dong Quach
> >
> >
> >
> >
> >
> ------------------------------------------------------------------------
> > Save up to 84% on Windows 7 until Jan 3-eligible CDN College or
> > University students only. Hurry-buy it now for $39.99!
> >
> >
> >
>
>
>
> ------------------------------------------------------------------------
> Lots of fantastic offers on Windows 7, in one convenient place.
> Get a deal on Windows 7 now
>
>




Ready for a deal-of-a-lifetime? Find fantastic offers on Windows 7, in one convenient place.

Re: java 1.6 to run sonar maven plugin?

by Freddy Mallet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Huu-Dong,

In order to know which class has been compiled with a java 1.6 target and generate the java.lang.UnsupportedClassVersionError error, could you try to replace in your Maven local repository the picocontainer library version 2.8.2.1 by the following updated archive :

http://jira.codehaus.org/secure/attachment/45050/picocontainer-2.8.2.1-sonar.jar

Relaunch a quality analysis with the Maven "-e" option and we should get the desired information.

Thanks for your help
Freddy

On Fri, Oct 23, 2009 at 10:39 PM, Huu-Dong Quach <hdquach_list@...> wrote:
Hi Freddy,

mvn test completes without any issue.

In hudson, I have 2 builds per project.

The first build launch "mvn clean deploy site".
The second build launch sonar.

I have exactly the same behaviour for my other projects which are
compile with JDK 1.5.
I have to use JDK 1.6 to run sonar.

Regards,
Huu-Dong Quach


Freddy Mallet wrote:
> Hi Huu-Dong,
>
> Could you confirm that you can launch "mvn test" without any issue on
> this projet with JDK 1.5 ?
>
> thanks
> Freddy
>
>
> On Fri, Oct 23, 2009 at 3:33 PM, Huu-Dong Quach
> > wrote:
>
> Hi Olivier,
>
> Here is some infos that you may need:
>
> * Hudson - 1.329
> * Sonar - 1.11.1
> * JDK 1.5
>
> Here is the stack trace when I'm using JDK 1.5. I have the same stack
> trace when I'm running sonar outside of hudson.
>
> [INFO] Can not execute Sonar
>
> Embedded error: java.lang.UnsupportedClassVersionError
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Can not
> execute Sonar
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> at
> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> 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:592)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Can not
> execute Sonar
> at
> org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:87)
> at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65)
> at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:117)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> ... 17 more
> Caused by: java.lang.ClassCastException:
> java.lang.UnsupportedClassVersionError
> at
> org.picocontainer.lifecycle.ReflectionLifecycleStrategy.invokeMethod(ReflectionLifecycleStrategy.java:115)
> at
> org.picocontainer.lifecycle.ReflectionLifecycleStrategy.start(ReflectionLifecycleStrategy.java:89)
> at
> org.picocontainer.adapters.InstanceAdapter.start(InstanceAdapter.java:113)
> at
> org.picocontainer.behaviors.AbstractBehavior.start(AbstractBehavior.java:171)
> at
> org.picocontainer.behaviors.Stored$RealComponentLifecycle.start(Stored.java:134)
> at org.picocontainer.behaviors.Stored.start(Stored.java:111)
> at
> org.picocontainer.DefaultPicoContainer.startAdapters(DefaultPicoContainer.java:916)
> at
> org.picocontainer.DefaultPicoContainer.start(DefaultPicoContainer.java:664)
> at org.sonar.batch.BatchMojo.createMainContainer(BatchMojo.java:164)
> at org.sonar.batch.BatchMojo.executeBatch(BatchMojo.java:135)
> at org.sonar.batch.BatchMojo.execute(BatchMojo.java:130)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> at
> org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:82)
> ... 21 more

>
>
>
> Thanks,
> Huu-Dong Quach
>
>
> Olivier Gaudin wrote:
> > Hello Huu-Dong,
> >
> > Nop there is not. What was the error message ?
> >
> > Olivier
> >
> >
> > On Thu, Oct 22, 2009 at 8:08 PM, Huu-Dong Quach
> >> wrote:
> >
> > Hi,
> >
> > I tried to run sonar maven plugin with a jdk 1.5 but it doesn't
> work.
> > I switch to a jdk 1.6 and it works flawlessly.
> >
> > Is there a requirement to use a jdk 1.6?
> >
> > Huu-Dong Quach
> >
> >
> >
> >
> >
> ------------------------------------------------------------------------
> > Save up to 84% on Windows 7 until Jan 3-eligible CDN College or
> > University students only. Hurry-buy it now for $39.99!
> >
> >
> >
>
>
>
> ------------------------------------------------------------------------
> Lots of fantastic offers on Windows 7, in one convenient place.
> Get a deal on Windows 7 now
>
>




Ready for a deal-of-a-lifetime? Find fantastic offers on Windows 7, in one convenient place.


Parent Message unknown Re: java 1.6 to run sonar maven plugin?

by Huu-Dong Quach :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi Freddy,

I launched a quality analysis with both version of the picocontainer
librairy (2.8.2 [log-2.8.2.txt] and 2.8.2.1 [log-2.8.2.1.txt]).

Let me know if there's something missing.

dong

Freddy Mallet wrote:
> Hi Huu-Dong,
>
> In order to know which class has been compiled with a java 1.6 target
> and generate the java.lang.UnsupportedClassVersionError error, could
> you try to replace in your Maven local repository the picocontainer
> library version 2.8.2.1 by the following updated archive :
>
> http://jira.codehaus.org/secure/attachment/45050/picocontainer-2.8.2.1-sonar.jar
>
> Relaunch a quality analysis with the Maven "-e" option and we should
> get the desired information.
>
> Thanks for your help
> Freddy
>




Save up to 84% on Windows 7 until Jan 3-eligible CDN College or University students only. Hurry-buy it now for $39.99!


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

log-2.8.2.1.txt (11K) Download Attachment
log-2.8.2.txt (8K) Download Attachment

Re: java 1.6 to run sonar maven plugin?

by Freddy Mallet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Dong,

Looks like the problem comes from the JDBC driver. Which JDBC driver are you using and do you know if this JDBC driver is compatible with java 5 ?

Thanks for your help
Freddy


Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
....
at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at org.sonar.api.database.DriverDatabaseConnector.getConnection(DriverDatabaseConnector.java:54)



On Thu, Oct 29, 2009 at 12:47 PM, Huu-Dong Quach <hdquach_list@...> wrote:
Hi Freddy,

I launched a quality analysis with both version of the picocontainer
librairy (2.8.2 [log-2.8.2.txt] and 2.8.2.1 [log-2.8.2.1.txt]).

Let me know if there's something missing.

dong


Freddy Mallet wrote:
> Hi Huu-Dong,
>
> In order to know which class has been compiled with a java 1.6 target
> and generate the java.lang.UnsupportedClassVersionError error, could
> you try to replace in your Maven local repository the picocontainer
> library version 2.8.2.1 by the following updated archive :
>
> http://jira.codehaus.org/secure/attachment/45050/picocontainer-2.8.2.1-sonar.jar
>
> Relaunch a quality analysis with the Maven "-e" option and we should
> get the desired information.
>
> Thanks for your help
> Freddy
>




Save up to 84% on Windows 7 until Jan 3-eligible CDN College or University students only. Hurry-buy it now for $39.99!

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email