You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by vadimsh <va...@gmail.com> on 2006/05/25 16:52:51 UTC

Cobertura under solaris

Hi, 
I use m2.0.4 and cobertura 2.0 for report generation. It works fine under
windows , but under solaris i get follow error 

[INFO] [cobertura:instrument]
[INFO] Cobertura 1.7 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
Instrumenting 30 classes to ....../target/generated-classes/cobertura

[ERROR] Exception in thread "main" java.lang.NoClassDefFoundError:
java/util/TimerTask
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass0(Compiled Code)
        at java.lang.ClassLoader.defineClass(Compiled Code)
        at java.security.SecureClassLoader.defineClass(Compiled Code)
        at java.net.URLClassLoader.defineClass(Compiled Code)
        at java.net.URLClassLoader.access$1(Compiled Code)
        at java.net.URLClassLoader$1.run(Compiled Code)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessController.doPrivileged(Compiled Code)
        at java.net.URLClassLoader.findClass(Compiled Code)
        at java.lang.ClassLoader.loadClass(Compiled Code)
        at sun.misc.Launcher$AppClassLoader.loadClass(Compiled Code)
        at java.lang.ClassLoader.loadClass(Compiled Code)
        at java.lang.ClassLoader.loadClassInternal(Compiled Code)
        at java.lang.Class.getFields0(Native Method)
        at java.lang.Class.getFields0(Compiled Code)
        at java.lang.Class.getDeclaredFields(Compiled Code)
        at java.io.ObjectStreamClass$1.run(Compiled Code)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:259)
        at
java.io.ObjectStreamClass.createLocalDescriptor(ObjectStreamClass.java:138)
        at
java.io.ObjectStreamClass.lookupInternal(ObjectStreamClass.java:84)
        at
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:274)
        at
net.sourceforge.cobertura.coveragedata.CoverageDataFileHandler.saveCoverageData(CoverageDataFileHandler.java:170)
        at
net.sourceforge.cobertura.coveragedata.CoverageDataFileHandler.saveCoverageData(CoverageDataFileHandler.java:136)
        at net.sourceforge.cobertura.instrument.Main.parseArguments(Compiled
Code)
        at net.sourceforge.cobertura.instrument.Main.main(Main.java:462)

When i check generated-classes/cobertura directory i see that part of the
classes were instrumented but others don't exist.

This problem is not of one specific module but repits in all of them .

Any help appreciated, thanks a lot !
--
View this message in context: http://www.nabble.com/Cobertura+under+solaris-t1680318.html#a4556741
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Cobertura under solaris

Posted by vadimsh <va...@gmail.com>.
You are right ,
It was old jdk problem 
thanks a lot !
--
View this message in context: http://www.nabble.com/Cobertura+under+solaris-t1680318.html#a4571521
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Cobertura under solaris

Posted by Pete Marvin King <la...@gmail.com>.
   I agree with wayne fay there's usually a default jdk installed on
Solaris.
   try to verify  your  JAVA_HOME and PATH just to be sure.
 

Wayne Fay wrote:
> You must have an older JDK installed on your server.
>
> Run "java -fullversion" on both machines and upgrade the Solaris JDK
> to the version you're running on Windows.
>
> Wayne
>
> On 5/25/06, vadimsh <va...@gmail.com> wrote:
>>
>> Hi,
>> I use m2.0.4 and cobertura 2.0 for report generation. It works fine
>> under
>> windows , but under solaris i get follow error
>>
>> [INFO] [cobertura:instrument]
>> [INFO] Cobertura 1.7 - GNU GPL License (NO WARRANTY) - See COPYRIGHT
>> file
>> Instrumenting 30 classes to ....../target/generated-classes/cobertura
>>
>> [ERROR] Exception in thread "main" java.lang.NoClassDefFoundError:
>> java/util/TimerTask
>>         at java.lang.ClassLoader.defineClass0(Native Method)
>>         at java.lang.ClassLoader.defineClass0(Compiled Code)
>>         at java.lang.ClassLoader.defineClass(Compiled Code)
>>         at java.security.SecureClassLoader.defineClass(Compiled Code)
>>         at java.net.URLClassLoader.defineClass(Compiled Code)
>>         at java.net.URLClassLoader.access$1(Compiled Code)
>>         at java.net.URLClassLoader$1.run(Compiled Code)
>>         at java.security.AccessController.doPrivileged(Native Method)
>>         at java.security.AccessController.doPrivileged(Compiled Code)
>>         at java.net.URLClassLoader.findClass(Compiled Code)
>>         at java.lang.ClassLoader.loadClass(Compiled Code)
>>         at sun.misc.Launcher$AppClassLoader.loadClass(Compiled Code)
>>         at java.lang.ClassLoader.loadClass(Compiled Code)
>>         at java.lang.ClassLoader.loadClassInternal(Compiled Code)
>>         at java.lang.Class.getFields0(Native Method)
>>         at java.lang.Class.getFields0(Compiled Code)
>>         at java.lang.Class.getDeclaredFields(Compiled Code)
>>         at java.io.ObjectStreamClass$1.run(Compiled Code)
>>         at java.security.AccessController.doPrivileged(Native Method)
>>         at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:259)
>>         at
>> java.io.ObjectStreamClass.createLocalDescriptor(ObjectStreamClass.java:138)
>>
>>         at
>> java.io.ObjectStreamClass.lookupInternal(ObjectStreamClass.java:84)
>>         at
>> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:274)
>>         at
>> net.sourceforge.cobertura.coveragedata.CoverageDataFileHandler.saveCoverageData(CoverageDataFileHandler.java:170)
>>
>>         at
>> net.sourceforge.cobertura.coveragedata.CoverageDataFileHandler.saveCoverageData(CoverageDataFileHandler.java:136)
>>
>>         at
>> net.sourceforge.cobertura.instrument.Main.parseArguments(Compiled
>> Code)
>>         at net.sourceforge.cobertura.instrument.Main.main(Main.java:462)
>>
>> When i check generated-classes/cobertura directory i see that part of
>> the
>> classes were instrumented but others don't exist.
>>
>> This problem is not of one specific module but repits in all of them .
>>
>> Any help appreciated, thanks a lot !
>> -- 
>> View this message in context:
>> http://www.nabble.com/Cobertura+under+solaris-t1680318.html#a4556741
>> Sent from the Maven - Users forum at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Cobertura under solaris

Posted by Wayne Fay <wa...@gmail.com>.
You must have an older JDK installed on your server.

Run "java -fullversion" on both machines and upgrade the Solaris JDK
to the version you're running on Windows.

Wayne

On 5/25/06, vadimsh <va...@gmail.com> wrote:
>
> Hi,
> I use m2.0.4 and cobertura 2.0 for report generation. It works fine under
> windows , but under solaris i get follow error
>
> [INFO] [cobertura:instrument]
> [INFO] Cobertura 1.7 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
> Instrumenting 30 classes to ....../target/generated-classes/cobertura
>
> [ERROR] Exception in thread "main" java.lang.NoClassDefFoundError:
> java/util/TimerTask
>         at java.lang.ClassLoader.defineClass0(Native Method)
>         at java.lang.ClassLoader.defineClass0(Compiled Code)
>         at java.lang.ClassLoader.defineClass(Compiled Code)
>         at java.security.SecureClassLoader.defineClass(Compiled Code)
>         at java.net.URLClassLoader.defineClass(Compiled Code)
>         at java.net.URLClassLoader.access$1(Compiled Code)
>         at java.net.URLClassLoader$1.run(Compiled Code)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.security.AccessController.doPrivileged(Compiled Code)
>         at java.net.URLClassLoader.findClass(Compiled Code)
>         at java.lang.ClassLoader.loadClass(Compiled Code)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Compiled Code)
>         at java.lang.ClassLoader.loadClass(Compiled Code)
>         at java.lang.ClassLoader.loadClassInternal(Compiled Code)
>         at java.lang.Class.getFields0(Native Method)
>         at java.lang.Class.getFields0(Compiled Code)
>         at java.lang.Class.getDeclaredFields(Compiled Code)
>         at java.io.ObjectStreamClass$1.run(Compiled Code)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:259)
>         at
> java.io.ObjectStreamClass.createLocalDescriptor(ObjectStreamClass.java:138)
>         at
> java.io.ObjectStreamClass.lookupInternal(ObjectStreamClass.java:84)
>         at
> java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:274)
>         at
> net.sourceforge.cobertura.coveragedata.CoverageDataFileHandler.saveCoverageData(CoverageDataFileHandler.java:170)
>         at
> net.sourceforge.cobertura.coveragedata.CoverageDataFileHandler.saveCoverageData(CoverageDataFileHandler.java:136)
>         at net.sourceforge.cobertura.instrument.Main.parseArguments(Compiled
> Code)
>         at net.sourceforge.cobertura.instrument.Main.main(Main.java:462)
>
> When i check generated-classes/cobertura directory i see that part of the
> classes were instrumented but others don't exist.
>
> This problem is not of one specific module but repits in all of them .
>
> Any help appreciated, thanks a lot !
> --
> View this message in context: http://www.nabble.com/Cobertura+under+solaris-t1680318.html#a4556741
> Sent from the Maven - Users forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org