Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.LinkageError duplicate class definition #294

Open
GoogleCodeExporter opened this issue May 19, 2015 · 1 comment
Open

java.lang.LinkageError duplicate class definition #294

GoogleCodeExporter opened this issue May 19, 2015 · 1 comment
Labels
P4 type=defect Bug, not working as expected

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Try to benchmark code that has guava-17.0 as a dependency.

What is the expected output? What do you see instead?
Expect benchmarks to run, instead see this:

com.google.caliper.runner.ProxyWorkerException: An exception occurred in a 
worker process.  The stack trace is as follows:
    java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at com.google.caliper.worker.MicrobenchmarkAllocationWorker.measureAllocations(MicrobenchmarkAllocationWorker.java:66)
        at com.google.caliper.worker.MicrobenchmarkAllocationWorker.bootstrap(MicrobenchmarkAllocationWorker.java:49)
        at com.google.caliper.worker.WorkerMain.main(WorkerMain.java:55)
    Caused by: java.lang.LinkageError: loader (instance of  sun/misc/Launcher$AppClassLoader): attempted  duplicate class definition for name: "com/google/common/collect/Lists$StringAsImmutableList"


What version of the product are you using? On what operating system?
Latest from git. Mac OS X 10.9.3, Java 8



Original issue reported on code.google.com by [email protected] on 25 May 2014 at 5:57

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P4 type=defect Bug, not working as expected
Projects
None yet
Development

No branches or pull requests

3 participants