You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jim Collings <jl...@gmail.com> on 2010/03/29 19:45:20 UTC

Tracking a logging/dependency problem

Here is what I am seeing when I try to run "mvn test":

I've been poking around looking for someone else who might have been
having similar problems but so far all I've been able to discover is
that it is likely to be a transitive dependency problem with the
logger.  Could use some clues as to how I should go about tracking
this down.  Have been using "mvn dependency:tree" but this doesn't
tell me which jar has the offending class. If I knew that I could try
an exclude.

INFO [main] (?:?) - Refreshing
org.apache.cxf.bus.spring.BusApplicationContext@b6e39f: display name
[org.apache.cxf.bus.spring.BusApplicationContext@b6e39f]; startup date
[Mon Mar 29 13:41:23 EDT 2010]; root of context hierarchy
DEBUG [main] (?:?) - Class
[org.apache.commons.collections.map.LinkedMap] or one of its
dependencies is not present: java.lang.ClassNotFoundException:
org.apache.commons.collections.map.LinkedMap
DEBUG [main] (?:?) - Class
[edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap] or
one of its dependencies is not present:
java.lang.ClassNotFoundException:
edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap
Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.29
sec <<< FAILURE!
org.apache.maven.surefire.booter.SurefireExecutionException: null;
nested exception is java.lang.NullPointerException: null
java.lang.NullPointerException
        at java.io.Writer.write(Writer.java:140)
        at java.io.PrintWriter.newLine(PrintWriter.java:436)
        at java.io.PrintWriter.println(PrintWriter.java:585)
        at java.io.PrintWriter.println(PrintWriter.java:696)
        at org.apache.maven.surefire.report.AbstractFileReporter.testSetStarting(AbstractFileReporter.java:59)
        at org.apache.maven.surefire.report.ReporterManager.testSetStarting(ReporterManager.java:219)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
        at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        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 org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
        at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)

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


Re: Tracking a logging/dependency problem

Posted by Raphael Ackermann <ra...@gmail.com>.
You can do a classname search on http://repository.sonatype.org/  if
you click on the advanced search button.

then you'll see that e.g. commons-collections contains the class
LinkedMap if you are using for that class.

Raphael

On Mon, Mar 29, 2010 at 20:27, Jim Collings <jl...@gmail.com> wrote:
> Well, what I'm really looking for is an approach to figuring out the
> problem or if I can't get that, at least a better understanding of it.
>
>> I'm not sure I understand your question, but in general, if you need to find
>> a JAR containing an arbitrary class, you can use the Nexus search engine,
>> e.g. on http://repository.sonatype.org/
>>
>> Justin
>
> ---------------------------------------------------------------------
> 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: Tracking a logging/dependency problem

Posted by Jim Collings <jl...@gmail.com>.
Well, what I'm really looking for is an approach to figuring out the
problem or if I can't get that, at least a better understanding of it.

> I'm not sure I understand your question, but in general, if you need to find
> a JAR containing an arbitrary class, you can use the Nexus search engine,
> e.g. on http://repository.sonatype.org/
>
> Justin

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


Re: Tracking a logging/dependency problem

Posted by Justin Edelson <ju...@gmail.com>.
I'm not sure I understand your question, but in general, if you need to 
find a JAR containing an arbitrary class, you can use the Nexus search 
engine, e.g. on http://repository.sonatype.org/

Justin

Jim Collings wrote:
> Here is what I am seeing when I try to run "mvn test":
>
> I've been poking around looking for someone else who might have been
> having similar problems but so far all I've been able to discover is
> that it is likely to be a transitive dependency problem with the
> logger.  Could use some clues as to how I should go about tracking
> this down.  Have been using "mvn dependency:tree" but this doesn't
> tell me which jar has the offending class. If I knew that I could try
> an exclude.
>
> INFO [main] (?:?) - Refreshing
> org.apache.cxf.bus.spring.BusApplicationContext@b6e39f: display name
> [org.apache.cxf.bus.spring.BusApplicationContext@b6e39f]; startup date
> [Mon Mar 29 13:41:23 EDT 2010]; root of context hierarchy
> DEBUG [main] (?:?) - Class
> [org.apache.commons.collections.map.LinkedMap] or one of its
> dependencies is not present: java.lang.ClassNotFoundException:
> org.apache.commons.collections.map.LinkedMap
> DEBUG [main] (?:?) - Class
> [edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap] or
> one of its dependencies is not present:
> java.lang.ClassNotFoundException:
> edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap
> Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.29
> sec <<< FAILURE!
> org.apache.maven.surefire.booter.SurefireExecutionException: null;
> nested exception is java.lang.NullPointerException: null
> java.lang.NullPointerException
>         at java.io.Writer.write(Writer.java:140)
>         at java.io.PrintWriter.newLine(PrintWriter.java:436)
>         at java.io.PrintWriter.println(PrintWriter.java:585)
>         at java.io.PrintWriter.println(PrintWriter.java:696)
>         at org.apache.maven.surefire.report.AbstractFileReporter.testSetStarting(AbstractFileReporter.java:59)
>         at org.apache.maven.surefire.report.ReporterManager.testSetStarting(ReporterManager.java:219)
>         at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
>         at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
>         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 org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
>         at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
>
> ---------------------------------------------------------------------
> 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