Reflections exception thrown on test startup
See original GitHub issueWhen I run my tests in IntelliJ 2017.1.3
on Linux, I get this output:
[main] WARN org.reflections.Reflections - could not create Vfs.Dir from url. ignoring the exception and continuing
org.reflections.ReflectionsException: could not create Vfs.Dir from url, no matching UrlType was found [file:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/ext/libatk-wrapper.so]
either use fromURL(final URL url, final List<UrlType> urlTypes) or use the static setDefaultURLTypes(final List<UrlType> urlTypes) or addDefaultURLTypes(UrlType urlType) with your specialized UrlType.
at org.reflections.vfs.Vfs.fromURL(Vfs.java:109)
at org.reflections.vfs.Vfs.fromURL(Vfs.java:91)
at org.reflections.Reflections.scan(Reflections.java:237)
at org.reflections.Reflections.scan(Reflections.java:204)
at org.reflections.Reflections.<init>(Reflections.java:129)
at org.reflections.Reflections.<init>(Reflections.java:170)
at io.kotlintest.Project.<init>(Project.kt:13)
at io.kotlintest.Project.<clinit>(Project.kt:6)
at io.kotlintest.Spec.run$kotlintest_main(Spec.kt:45)
at io.kotlintest.KTestJUnitRunner.run(KTestJUnitRunner.kt:14)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:51)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
[main] INFO org.reflections.Reflections - Reflections took 1734 ms to scan 85 urls, producing 7827 keys and 41046 values
This doesn’t show up when I run gradle test
, so maybe it’s specific to the JUnit test runner in IntelliJ, but the exception still originates from kotlintest. Downgrading to 1.3.7
removes this error, and using any of 2.0.x
causes this message to reappear.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:12 (6 by maintainers)
Top Results From Across the Web
Reflections exception thrown on test startup · Issue #183
When I run my tests in IntelliJ 2017.1.3 on Linux, I get this output: [main] WARN org.reflections.Reflections - could not create Vfs.Dir ...
Read more >Using reflection to identify if the error thrown matches ...
In the first one there is only one rule, if the test won't throw an exception the test should pass, and it is...
Read more >System.Reflection.ReflectionTypeLoadException when ...
I'm facing problems with unit tests. I wrote some tests which worked fine and yielded the expected results. Then I wrote a test...
Read more >Call Methods at Runtime Using Java Reflection - Baeldung
In this short article, we'll take a quick look at how to invoke methods at runtime using the Java Reflection API.
Read more >Reflections exception thrown on test startup - Bountysource
Reflections exception thrown on test startup. kotlintest. 06 June 2017 Posted by Dan. When I run my tests in IntelliJ 2017.1.3 on Linux,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi! On kotlintest 2.0.7 and running gradle, and seeing the same issue. Just updated to High Sierra, so I believe that may be the issue. I think the error is in reflections as ronmamo/reflections#80 states. But if there is anything that can be done here, that would be great.
Be happy to help if you point i the right direction as well.
Cheers, Alf
3.0.0-RC3 should be fixed. I have tested it on travis, locally, windows and linux and after the latest fixes I don’t see this error anymore.