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.

An error occurs when calling io.github.classgraph.Scanner.performScan().

See original GitHub issue

After upgrading from 4.8.33 to 4.8.34, an error occurs when calling io.github.classgraph.Scanner.performScan().

The statcktrace is as follows.

Caused by: io.github.classgraph.ClassGraphException: Uncaught exception during scan
	at io.github.classgraph.ClassGraphException.newClassGraphException(ClassGraphException.java:89)
	at io.github.classgraph.ClassGraph.scan(ClassGraph.java:1183)
	at io.github.classgraph.ClassGraph.scan(ClassGraph.java:1201)
	at io.github.classgraph.ClassGraph.scan(ClassGraph.java:1214)
	at jp.co.nextcolors.framework.bean.util.BeanConverterUtil.registerConverters(BeanConverterUtil.java:49)
	at jp.co.nextcolors.koinomi.listener.ApplicationContextListener.contextInitialized(ApplicationContextListener.java:33)
	at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:5156)
	at com.sun.enterprise.web.WebModule.contextListenerStart(WebModule.java:682)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:5725)
	... 48 more
Caused by: java.lang.IllegalArgumentException: Class META-INF.versions.9.module-info should not have been scheduled more than once for scanning due to classpath masking -- please report this bug at: https://github.com/classgraph/classgraph/issues
	at io.github.classgraph.Scanner.performScan(Scanner.java:817)
	at io.github.classgraph.Scanner.openClasspathElementsThenScan(Scanner.java:971)
	at io.github.classgraph.Scanner.call(Scanner.java:1006)
	at io.github.classgraph.Scanner.call(Scanner.java:74)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	... 1 more

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ahamanacommented, May 15, 2019

@lukehutch The version 4.8.35 works fine! Thank you.

1reaction
lukehutchcommented, May 14, 2019

@lukehutch The latest version in Maven is still 4.8.34. I will test after it is updated to 4.8.35 in Maven.

@ahamana You’re right, there was a transient failure on Sonatype. I just pushed the release again. You should be able to get the jar from Sonatype now, or it usually takes an hour or two to sync to Maven Central.

Thank you so much for your quick action.

You’re welcome. I just published this a couple of days ago…

https://github.com/classgraph/classgraph/blob/master/Zero-Bugs-Commitment.md

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting Exception IllegalArgumentException: getClassInfo ...
Exception in thread "main" io.github.classgraph.ClassGraphException: Uncaught exception during scan at io.github.classgraph.
Read more >
Scan Resources Folder Error · Issue #395 · classgraph ...
I am trying to scan a resource folder called fxml/single in Gradle project where all resources are in the java/resources folder.
Read more >
ParseException while scanning Scala jar dependency · Issue #495 ...
Hi, I am trying to use ClassGraph to analyze our Scala project. Sadly while scanning the project with new ClassGraph().verbose().
Read more >
classgraph/Scanner.java at latest - GitHub
Scanning is started by calling {@link #call()} on this object. *. * @param performScan. * If true, performing a scan. If false, only...
Read more >
OOM while loading classpath with large JAR files #338 - GitHub
ClassGraph.scan(ClassGraph.java:1181) at io.github.classgraph. ... (So make sure .verbose() is not called in production.).
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