question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Worker exited without producing data, IllegalAccessError when trying to run the worker process manually

See original GitHub issue
C:\jdk\bin\java -Didea.launcher.port=7532 "-Didea.launcher.bin.path=C:\Program 
Files (x86)\JetBrains\IntelliJ IDEA 12.1.4\bin" -Dfile.encoding=UTF-8 
-classpath 
"C:\jdk\jre\lib\alt-rt.jar;C:\jdk\jre\lib\alt-string.jar;C:\jdk\jre\lib\charsets
.jar;C:\jdk\jre\lib\deploy.jar;C:\jdk\jre\lib\javaws.jar;C:\jdk\jre\lib\jce.jar;
C:\jdk\jre\lib\jsse.jar;C:\jdk\jre\lib\management-agent.jar;C:\jdk\jre\lib\plugi
n.jar;C:\jdk\jre\lib\resources.jar;C:\jdk\jre\lib\rt.jar;C:\jdk\jre\lib\ext\dnsn
s.jar;C:\jdk\jre\lib\ext\localedata.jar;C:\jdk\jre\lib\ext\sunjce_provider.jar;D
:\dev\alm\integers\build\classes\generated;D:\dev\alm\integers\lib\annotations.j
ar;D:\dev\alm\integers\lib\junit.jar;D:\dev\alm\integers\lib\caliper-1.0-beta-SN
APSHOT-all.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 
12.1.4\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain 
com.google.caliper.runner.CaliperMain com.almworks.integers.DlsBenchmark 
--verbose

Experiment selection:
  Instruments:   [allocation, runtime]
  User parameters:   {addSize=[100, 1000, 10000, 100000, 1000000]}
  Virtual machines:  [default]
  Selection type:    Full cartesian product

This selection yields 20 experiments.
<Output from dry run>
Starting experiment 1 of 20: {instrument=allocation, benchmarkMethod=dlsRemove, 
vm=default, parameters={addSize=100}}à The worker exited without producing 
data. It has likely crashed. Run with --verbose to see output.


I've inserted println statements in the beginning my @BeforeExperiment and 
@Benchmark methods, I marked them here as <Output from dry run>. 

I checked the command line for the child (worker) process and tried to run it 
manually in the command line, then I get this exception:
Exception in thread "main" java.lang.IllegalAccessError: tried to access class 
com.google.inject.multibindings.Multibinder$RealMultibinder from class 
com.google.inject.multibindings.Multibinder$RealMultibinder$$FastClassByGuice$$9
4efefc8
        at com.google.inject.multibindings.Multibinder$RealMultibinder$$FastClassByGuice$$94efefc8.invoke(<generated>)
        at com.google.inject.internal.cglib.reflect.$FastMethod.invoke(FastMethod.java:53)
        at com.google.inject.internal.SingleMethodInjector$1.invoke(SingleMethodInjector.java:56)
        at com.google.inject.internal.SingleMethodInjector.inject(SingleMethodInjector.java:90)
        at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:110)
        at com.google.inject.internal.MembersInjectorImpl$1.call(MembersInjectorImpl.java:75)
        at com.google.inject.internal.MembersInjectorImpl$1.call(MembersInjectorImpl.java:73)
        at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024)
        at com.google.inject.internal.MembersInjectorImpl.injectAndNotify(MembersInjectorImpl.java:73)
        at com.google.inject.internal.Initializer$InjectableReference.get(Initializer.java:147)
        at com.google.inject.internal.Initializer.injectAll(Initializer.java:92)
        at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:173)
        at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:109)
        at com.google.inject.Guice.createInjector(Guice.java:95)
        at com.google.inject.Guice.createInjector(Guice.java:83)
        at com.google.caliper.worker.WorkerMain.main(WorkerMain.java:38)

Full command line for the worker process:

C:\jdk\jre\bin\java 
-javaagent:C:\Users\igor\.IntelliJIdea12\system\groovyHotSwap\gragent.jar 
-Dfile.encoding=UTF-8 -Xmx3g -Xms3g -cp 
"C:\jdk\jre\lib\ext\dnsns.jar;C:\jdk\jre\lib\ext\localedata.jar;C:\jdk\jre\lib\e
xt\sunjce_provider.jar;C:\jdk\jre\lib\alt-rt.jar;C:\jdk\jre\lib\alt-string.jar;C
:\jdk\jre\lib\charsets.jar;C:\jdk\jre\lib\deploy.jar;C:\jdk\jre\lib\javaws.jar;C
:\jdk\jre\lib\jce.jar;C:\jdk\jre
\lib\jsse.jar;C:\jdk\jre\lib\management-agent.jar;C:\jdk\jre\lib\plugin.jar;C:\j
dk\jre\lib\resources.jar;C:\jdk\jre\lib\rt.jar;D:\dev\alm\integers\build\classes
\generated;D:\dev\alm\integers\lib\annotations.jar
;D:\dev\alm\integers\lib\junit.jar;D:\dev\alm\integers\lib\caliper-1.0-beta-SNAP
SHOT-all.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 
12.1.4\lib\idea_rt.jar;C:\Users\igor\.IntelliJIdea12\system\groovyHotSwap\gragen
t.jar" -Xbatch -XX:CICompilerCount=1 -XX:+UseParallelGC 
-Dsun.reflect.inflationThreshold=0 
-javaagent:D:\dev\alm\integers\lib\caliper-1.0-beta-SNAPSHOT-all.jar 
-Xbootclasspath/a:D:\dev\alm\integers\lib\caliper-1.0-beta-SNAPSHOT-all.jar 
-XX:+PrintFlagsFinal -XX:+PrintCompilation -XX:+PrintGC 
com.google.caliper.worker.WorkerMain 
{"workerClassName":"com.google.caliper.worker.MacrobenchmarkAllocationWorker","w
orkerOptions":{"trackAllocations":"true"},"benchmarkSpec":{"className":"com.almw
orks.integers.DlsBenchmark","methodName":"dlsRemove","parameters":{"addSize":"10
0"}},"methodParameterClassNames":[],"port":57244}

OS: Win 7; JVM: 
java version "1.6.0_34"
Java(TM) SE Runtime Environment (build 1.6.0_34-b04)
Java HotSpot(TM) 64-Bit Server VM (build 20.9-b04, mixed mode)

Original issue reported on code.google.com by ios...@gmail.com on 10 Sep 2013 at 9:34

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
cgdeckercommented, Jan 10, 2020

I’m not familiar with Criterion, but you may want to take a look at JMH. Caliper is currently not actively being developed; there’s newer code than the 1.0-beta-2 at head from work that was done in 2018, but we haven’t made an open source release with that and it would require some additional work to get it to that point.

0reactions
bitemyappcommented, Jan 10, 2020

@cgdecker thanks for the heads up. I’ll try to get JMH working.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Two java files. Getting IllegalAccessError when running class ...
Actual Issue. I got this exact same error* doing something very silly: I tried to run the file as java {main-class}.java . That...
Read more >
class..." error when attempting to start a domain in Canton ...
I'm working on a canton deployment using canton-enterprise-0.27.0 within a docker container and I'm facing some issues when attempting to start a domain....
Read more >
Multi-dex ProGuarded app getting IllegalAccessError for ...
The stack trace seems to say you are running with several definitions of one annotation. This seems to often be caused by including...
Read more >
IllegalAccessError in Java - Baeldung
An IllegalAccessError is thrown when an application attempts to access a field or invoke a method that is inaccessible.
Read more >
debezium/user - Gitter
I tried running the above said endpoint I get this error: ... I'm working on a Kafka project, using the Debezium connector to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found