"ReflectionsException: could not create Vfs.Dir from url …" when restoring multilayer network
See original GitHub issueUsing the following pom.xml configuration:
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.25</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.25</version>
</dependency>
<dependency>
<groupId>org.deeplearning4j</groupId>
<artifactId>deeplearning4j-core</artifactId>
<version>0.8.0</version>
</dependency>
<dependency>
<groupId>org.nd4j</groupId>
<artifactId>nd4j-native-platform</artifactId>
<version>0.8.0</version>
</dependency>
</dependencies>
And the following code:
ModelSerializer.restoreMultiLayerNetwork( Example.class.getResourceAsStream( "/model.zip" ) );
I’m getting a bunch of these warnings (revealed through SLF4J):
[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:/System/Library/Java/Extensions/libAppleScriptEngine.jnilib]
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.deeplearning4j.nn.conf.NeuralNetConfiguration.registerSubtypes(NeuralNetConfiguration.java:431)
at org.deeplearning4j.nn.conf.NeuralNetConfiguration.configureMapper(NeuralNetConfiguration.java:386)
at org.deeplearning4j.nn.conf.NeuralNetConfiguration.initMapper(NeuralNetConfiguration.java:376)
at org.deeplearning4j.nn.conf.NeuralNetConfiguration.<clinit>(NeuralNetConfiguration.java:123)
at org.deeplearning4j.nn.conf.MultiLayerConfiguration.fromJson(MultiLayerConfiguration.java:124)
at org.deeplearning4j.util.ModelSerializer.restoreMultiLayerNetwork(ModelSerializer.java:239)
at org.deeplearning4j.util.ModelSerializer.restoreMultiLayerNetwork(ModelSerializer.java:267)
at org.deeplearning4j.util.ModelSerializer.restoreMultiLayerNetwork(ModelSerializer.java:271)
at com.github.beatngu13.dl4jplayground.Example.main(Example.java:10)
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:498)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
I’m on macOS Sierra (10.12.5) and JDK 8 (1.8.0_121-b13).
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
could not create Vfs.Dir from url …" when restoring multilayer ...
To confirm, this is just due to the reflections library, and can be ignored (or, just set your logging configuration so it doesn't...
Read more >Docker + Spring Boot Error : could not create Vfs.Dir from url
When we create a reflection with a package which is only part of this external jar, and this jar is not part of...
Read more >ERROR [Reflections] could not create Vfs.Dir from url. ignoring ...
ReflectionsException : could not create Dir using org.jboss.errai.bus.server.service.metadata.VFSUrlType from url vfszip:/E:/download/jboss-5.1.0.
Read more >jBPM 5.2 vfs error JBoss 7.1 final
ReflectionsException : could not create Dir using org.jboss.errai.bus.server.service.metadata.VFSUrlType from url ...
Read more >could not create Vfs.Dir from url · Issue #I4USS9 - Gitee
ReflectionsException : could not create Vfs.Dir from url, no matching ... either use fromURL(final URL url, final List urlTypes) or use the ...
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 Free
Top 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
Is this issue related to this as well? (it occurs right before the warning mentioned above)
I am having container failures and I wonder if it is not related to this warning. I filed: https://github.com/deeplearning4j/deeplearning4j/issues/4181
To confirm, this is just due to the reflections library, and can be ignored (or, just set your logging configuration so it doesn’t show up). The reflections library will be going away in the next release too.