java.io.FileNotFoundException: src\test\resources\bike\share-bike.json?SystemID=dummyid (The filename, directory name, or volume label syntax is incorrect)

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • GitHub comment 2339#246350291
    via GitHub by barbeau
    ,
  • DCEVM with Maven and GWT
    via Stack Overflow by Troncoso
    ,
  • Too many open files
    via GitHub by reagere
    ,
  • GitHub comment 55#217760534
    via GitHub by youyanghuang
    ,
  • Because of bug FOP-2177 we couldn't upgrade form FOP 1.0 to FOP 1.1. FOP 2.0 has solved this bug (tested with standalone FOP scripts). Now we would like to upgrade our Java code from FOP 1.0 to FOP 2.0. The Upgrading page (https://xmlgraphics.apache.org/fop/2.0/upgrading.html) says "You should encounter very few issues in upgrading from FOP 1.0, except as noted in the following: ...". The truth is completely different: starting by replacing fop.jar, our code gets dozens of compiler errors! Many methods are simply gone: FopFactory.newInstance() FoUserAgent.setBaseURL(String); FopFactory.getFontManager().setFontBaseURL(String) FopFactory.setURIResolver(URIResolver); etc. The javadocs from 1.1 to 2.0 simple changed - no deprecated methods, no hints how to replace old methods. The FOP 2.0 embedding page (https://xmlgraphics.apache.org/fop/2.0/embedding.html) just shows simple examples to start from the ground. I can't find any migration help how to replace old code. E.g. how can I set the font base? FopFactory.getFontManager().setFontBaseURL(String) is gone and I can't find any equivalent code for FOP 2.0! This is a major bug in FOP 2.0 as API changes are not documented to upgrade from FOP 1.x Java API to FOP 2.0! Now I just can search and try and experiment if I get our old code somehow running with all those undocumented API changes. Can you please state a migration documentation for all methods (method signatures) that don't exist anymore? We can't start coding all over again from scratch. Thank you very much!
    via by MH,
    • java.io.FileNotFoundException: src\test\resources\bike\share-bike.json?SystemID=dummyid (The filename, directory name, or volume label syntax is incorrect) at java.io.FileInputStream.open0(Native Method)[na:1.8.0_60] at java.io.FileInputStream.open(FileInputStream.java:195)[na:1.8.0_60] at java.io.FileInputStream.<init>(FileInputStream.java:138)[na:1.8.0_60] at java.io.FileInputStream.<init>(FileInputStream.java:93)[na:1.8.0_60] at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)[na:1.8.0_60] at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)[na:1.8.0_60] at java.net.URL.openStream(URL.java:1038)[na:1.8.0_60] at org.opentripplanner.updater.bike_rental.GenericJsonBikeRentalDataSource.update(GenericJsonBikeRentalDataSource.java:83)[classes/:na] at org.opentripplanner.updater.bike_rental.TestShareBikeRentalStationSource.testShareBike(TestShareBikeRentalStationSource.java:16)[test-classes/:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_60] at java.lang.reflect.Method.invoke(Method.java:497)[na:1.8.0_60] at junit.framework.TestCase.runTest(TestCase.java:168)[junit-4.8.1.jar:na] at junit.framework.TestCase.runBare(TestCase.java:134)[junit-4.8.1.jar:na] at junit.framework.TestResult$1.protect(TestResult.java:110)[junit-4.8.1.jar:na] at junit.framework.TestResult.runProtected(TestResult.java:128)[junit-4.8.1.jar:na] at junit.framework.TestResult.run(TestResult.java:113)[junit-4.8.1.jar:na] at junit.framework.TestCase.run(TestCase.java:124)[junit-4.8.1.jar:na] at junit.framework.TestSuite.runTest(TestSuite.java:232)[junit-4.8.1.jar:na] at junit.framework.TestSuite.run(TestSuite.java:227)[junit-4.8.1.jar:na] at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)[junit-4.8.1.jar:na] at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:236)[surefire-junit4-2.12.jar:2.12] at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:134)[surefire-junit4-2.12.jar:2.12] at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:113)[surefire-junit4-2.12.jar:2.12] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_60] at java.lang.reflect.Method.invoke(Method.java:497)[na:1.8.0_60] at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)[surefire-api-2.12.jar:2.12] at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)[surefire-booter-2.12.jar:2.12] at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)[surefire-booter-2.12.jar:2.12] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)[surefire-booter-2.12.jar:2.12] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)[surefire-booter-2.12.jar:2.12]

    Users with the same issue

    Nikolay Rybak
    Nikolay Rybak2 times, last one,
    Unknown visitor1 times, last one,
    rocday
    rocday4 times, last one,
    rp
    rp4 times, last one,
    stigkj
    stigkj2 times, last one,
    122 more bugmates