java.io.FileNotFoundException: URL [ftp://user:password@host//'MAINVIEW.DATASET'] cannot be resolved to absolute file path because it does not reside in the file system: ftp://user:password@host//'MAINVIEW.DATASET'

Spring JIRA | Milan Plancik | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Dear spring-batch team, I am getting unpredictable system exception which I am not able to debug, because when I am debugging it, no exception occurs at all. If I put breakpoint at some (not random place) then I see following exception (Also the exception occurs sometimes without any breakpoint): java.io.FileNotFoundException: URL [ftp://user:password@host//'MAINVIEW.DATASET'] cannot be resolved to absolute file path because it does not reside in the file system: ftp://user:password@host//'MAINVIEW.DATASET' at org.springframework.util.ResourceUtils.getFile(ResourceUtils.java:218) at org.springframework.core.io.AbstractFileResolvingResource.getFile(AbstractFileResolvingResource.java:52) at org.springframework.core.io.UrlResource.getFile(UrlResource.java:212) at com.swissre.g10.cds.ct.batch.G10UnloadFileItemReader.doRead(G10UnloadFileItemReader.java:44) at com.swissre.g10.cds.ct.batch.G10UnloadFileItemReader.doRead(G10UnloadFileItemReader.java:18) at org.springframework.batch.item.support.AbstractItemCountingItemStreamItemReader.read(AbstractItemCountingItemStreamItemReader.java:88) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208) at $Proxy54.read(Unknown Source) at org.springframework.batch.core.step.item.SimpleChunkProvider.doRead(SimpleChunkProvider.java:91) at org.springframework.batch.core.step.item.SimpleChunkProvider.read(SimpleChunkProvider.java:157) at org.springframework.batch.core.step.item.SimpleChunkProvider$1.doInIteration(SimpleChunkProvider.java:116) at org.springframework.batch.repeat.support.RepeatTemplate.getNextResult(RepeatTemplate.java:374) at org.springframework.batch.repeat.support.RepeatTemplate.executeInternal(RepeatTemplate.java:215) at org.springframework.batch.repeat.support.RepeatTemplate.iterate(RepeatTemplate.java:144) at org.springframework.batch.core.step.item.SimpleChunkProvider.provide(SimpleChunkProvider.java:110) at org.springframework.batch.core.step.item.ChunkOrientedTasklet.execute(ChunkOrientedTasklet.java:69) at org.springframework.batch.core.step.tasklet.TaskletStep$ChunkTransactionCallback.doInTransaction(TaskletStep.java:406) at org.springframework.batch.core.step.tasklet.TaskletStep$ChunkTransactionCallback.doInTransaction(TaskletStep.java:330) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133) at org.springframework.batch.core.step.tasklet.TaskletStep$2.doInChunkContext(TaskletStep.java:271) at org.springframework.batch.core.scope.context.StepContextRepeatCallback.doInIteration(StepContextRepeatCallback.java:81) at org.springframework.batch.repeat.support.RepeatTemplate.getNextResult(RepeatTemplate.java:374) at org.springframework.batch.repeat.support.RepeatTemplate.executeInternal(RepeatTemplate.java:215) at org.springframework.batch.repeat.support.RepeatTemplate.iterate(RepeatTemplate.java:144) at org.springframework.batch.core.step.tasklet.TaskletStep.doExecute(TaskletStep.java:257) at org.springframework.batch.core.step.AbstractStep.execute(AbstractStep.java:200) at org.springframework.batch.core.partition.support.TaskExecutorPartitionHandler$1.call(TaskExecutorPartitionHandler.java:139) at org.springframework.batch.core.partition.support.TaskExecutorPartitionHandler$1.call(TaskExecutorPartitionHandler.java:136) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.lang.Thread.run(Thread.java:662) I do not understand the stacktrace - Method G10UnloadFileItemReader.doRead does not contain any call to UrlResource.getFile method. I am using apache commons net for ftp resource, because the limited jdk ftp implementation is missing some functionality. I created custom reader for reading ftp resource, which reads ftp file successfully, but sometimes unpredictable exception occurs. I attached files... Could you please have a look into the issue, please?

    Spring JIRA | 1 year ago | Milan Plancik
    java.io.FileNotFoundException: URL [ftp://user:password@host//'MAINVIEW.DATASET'] cannot be resolved to absolute file path because it does not reside in the file system: ftp://user:password@host//'MAINVIEW.DATASET'
  2. 0

    Dear spring-batch team, I am getting unpredictable system exception which I am not able to debug, because when I am debugging it, no exception occurs at all. If I put breakpoint at some (not random place) then I see following exception (Also the exception occurs sometimes without any breakpoint): java.io.FileNotFoundException: URL [ftp://user:password@host//'MAINVIEW.DATASET'] cannot be resolved to absolute file path because it does not reside in the file system: ftp://user:password@host//'MAINVIEW.DATASET' at org.springframework.util.ResourceUtils.getFile(ResourceUtils.java:218) at org.springframework.core.io.AbstractFileResolvingResource.getFile(AbstractFileResolvingResource.java:52) at org.springframework.core.io.UrlResource.getFile(UrlResource.java:212) at com.swissre.g10.cds.ct.batch.G10UnloadFileItemReader.doRead(G10UnloadFileItemReader.java:44) at com.swissre.g10.cds.ct.batch.G10UnloadFileItemReader.doRead(G10UnloadFileItemReader.java:18) at org.springframework.batch.item.support.AbstractItemCountingItemStreamItemReader.read(AbstractItemCountingItemStreamItemReader.java:88) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133) at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208) at $Proxy54.read(Unknown Source) at org.springframework.batch.core.step.item.SimpleChunkProvider.doRead(SimpleChunkProvider.java:91) at org.springframework.batch.core.step.item.SimpleChunkProvider.read(SimpleChunkProvider.java:157) at org.springframework.batch.core.step.item.SimpleChunkProvider$1.doInIteration(SimpleChunkProvider.java:116) at org.springframework.batch.repeat.support.RepeatTemplate.getNextResult(RepeatTemplate.java:374) at org.springframework.batch.repeat.support.RepeatTemplate.executeInternal(RepeatTemplate.java:215) at org.springframework.batch.repeat.support.RepeatTemplate.iterate(RepeatTemplate.java:144) at org.springframework.batch.core.step.item.SimpleChunkProvider.provide(SimpleChunkProvider.java:110) at org.springframework.batch.core.step.item.ChunkOrientedTasklet.execute(ChunkOrientedTasklet.java:69) at org.springframework.batch.core.step.tasklet.TaskletStep$ChunkTransactionCallback.doInTransaction(TaskletStep.java:406) at org.springframework.batch.core.step.tasklet.TaskletStep$ChunkTransactionCallback.doInTransaction(TaskletStep.java:330) at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133) at org.springframework.batch.core.step.tasklet.TaskletStep$2.doInChunkContext(TaskletStep.java:271) at org.springframework.batch.core.scope.context.StepContextRepeatCallback.doInIteration(StepContextRepeatCallback.java:81) at org.springframework.batch.repeat.support.RepeatTemplate.getNextResult(RepeatTemplate.java:374) at org.springframework.batch.repeat.support.RepeatTemplate.executeInternal(RepeatTemplate.java:215) at org.springframework.batch.repeat.support.RepeatTemplate.iterate(RepeatTemplate.java:144) at org.springframework.batch.core.step.tasklet.TaskletStep.doExecute(TaskletStep.java:257) at org.springframework.batch.core.step.AbstractStep.execute(AbstractStep.java:200) at org.springframework.batch.core.partition.support.TaskExecutorPartitionHandler$1.call(TaskExecutorPartitionHandler.java:139) at org.springframework.batch.core.partition.support.TaskExecutorPartitionHandler$1.call(TaskExecutorPartitionHandler.java:136) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.lang.Thread.run(Thread.java:662) I do not understand the stacktrace - Method G10UnloadFileItemReader.doRead does not contain any call to UrlResource.getFile method. I am using apache commons net for ftp resource, because the limited jdk ftp implementation is missing some functionality. I created custom reader for reading ftp resource, which reads ftp file successfully, but sometimes unpredictable exception occurs. I attached files... Could you please have a look into the issue, please?

    Spring JIRA | 1 year ago | Milan Plancik
    java.io.FileNotFoundException: URL [ftp://user:password@host//'MAINVIEW.DATASET'] cannot be resolved to absolute file path because it does not reside in the file system: ftp://user:password@host//'MAINVIEW.DATASET'
  3. 0

    @RequestBody working with String but not working with pojo model Rest Web Service

    Stack Overflow | 2 years ago | Jim C
    java.io.FileNotFoundException: URL [bundleresource://96.fwk327208746/] cannot be resolved to absolute file path because it does not reside in the file system: bundleresource://96.fwk327208746/
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error when publishing Spring application to Geronimo web server

    Stack Overflow | 7 years ago | Corey
    java.io.FileNotFoundException: URL [bundle://316.0:1/com/unveiled/politics/] cannot be resolved to absolute file path because it does not reside in the file system: bundle://316.0:1/com/unveiled/politics/
  6. 0

    Dynmap not working

    GitHub | 5 years ago | Freirec
    java.io.FileNotFoundException: plugins\dynmap\texturepacks\standard\t errain.png (The system cannot find the file specified) 13:01:32 [SEVERE] [dynmap] Error loading texture pack 'standard' - not found 13:01:32 [SEVERE] [dynmap] Error: shader 'stdtexture-mcr-grid' cannot load textu re pack 'standard' 13:01:32 [INFO] [dynmap] Loaded 20 shaders. 13:01:33 [INFO] [dynmap] Loaded 82 perspectives. 13:01:33 [INFO] [dynmap] Loaded 12 lightings. 13:01:33 [INFO] [dynmap] Web server started on address 0.0.0.0:8123 13:01:33 [INFO] [dynmap] version 0.39-1163 is enabled - core version 0.39-259 13:01:33 [INFO] [dynmap] Loaded 3 maps of world 'Minecraft Server'. 13:01:33 [INFO] [dynmap] Loaded 2 maps of world 'Minecraft Server_nether'. 13:01:33 [INFO] [dynmap] Loaded 2 maps of world 'Minecraft Server_the_end'. 13:01:33 [INFO] [dynmap] Loaded 8 pending tile renders for world 'Minecraft Serv er_the_end 13:01:33 [INFO] [dynmap] Enabled 13:01:33 [INFO] [Essentials] Enabling Essentials v2.9.2 13:01:33 [INFO] Essentials: Using GroupManager based permissions. 13:01:33 [INFO] [EssentialsXMPP] Enabling EssentialsXMPP v2.9.2 13:01:33 [WARNING] config broken for xmpp 13:01:33 [INFO] [EssentialsProtect] Enabling EssentialsProtect v2.9.2 13:01:33 [INFO] Initializing c3p0-0.9.1.2 [built 21-May-2007 15:04:56; debug? tr ue; trace: 10] 13:01:33 [INFO] [WorldEdit] Enabling WorldEdit v5.3 13:01:33 [INFO] WEPIF: Using the Bukkit Permissions API. 13:01:34 [INFO] [EssentialsSpawn] Enabling EssentialsSpawn v2.9.2 13:01:34 [INFO] [EssentialsGeoIP] Enabling EssentialsGeoIP v2.9.2 13:01:34 [INFO] [EssentialsGeoIP] This product includes GeoLite data created by MaxMind, available from http://www.maxmind.com/. 13:01:34 [INFO] [Dynmap-GriefPrevention] Enabling Dynmap-GriefPrevention v0.10 13:01:34 [INFO] [Dynmap-GriefPrevention] initializing 13:01:34 [INFO] [Dynmap-GriefPrevention] version 0.10 is activated 13:01:34 [INFO] [EssentialsChat] Enabling EssentialsChat v2.9.2 13:01:34 [INFO] Server permissions file permissions.yml is empty, ignoring it 13:01:34 [INFO] Reload complete. 13:01:34 [WARNING] Can't keep up! Did the system time change, or is the server o verloaded? 13:01:34 [SEVERE] [dynmap] Exception during render job: world=Minecraft Server_t he_end, map=null 13:01:34 [SEVERE] [dynmap] Exception during render job: world=Minecraft Server_t he_end, map=null 13:01:34 [SEVERE] java.lang.NullPointerException 13:01:34 [SEVERE] at org.dynmap.hdmap.TexturePackHDShader$ShaderState.<ini t>(TexturePackHDShader.java:94) 13:01:34 [SEVERE] at org.dynmap.hdmap.TexturePackHDShader$ShaderState.<ini t>(TexturePackHDShader.java:69) 13:01:34 [SEVERE] at org.dynmap.hdmap.TexturePackHDShader.getStateInstance (TexturePackHDShader.java:229) 13:01:34 [SEVERE] at org.dynmap.hdmap.HDMapManager.getShaderStateForTile(H DMapManager.java:125) 13:01:34 [SEVERE] at org.dynmap.hdmap.IsoHDPerspective.render(IsoHDPerspec tive.java:1198) 13:01:34 [SEVERE] at org.dynmap.hdmap.HDMapTile.render(HDMapTile.java:96) 13:01:34 [SEVERE] at org.dynmap.MapManager$FullWorldRenderState.processTil e(MapManager.java:620) 13:01:34 [INFO] GroupManager - INFO - Bukkit Permissions Updated! 13:01:34 [SEVERE] at org.dynmap.MapManager$FullWorldRenderState.run(MapMan ager.java:566) 13:01:34 [SEVERE] at org.dynmap.MapManager$DynmapScheduledThreadPoolExecut or$1.run(MapManager.java:180) 13:01:34 [SEVERE] at org.dynmap.MapManager$DynmapScheduledThreadPoolExecut or$2.run(MapManager.java:196) 13:01:34 [SEVERE] at java.util.concurrent.Executors$RunnableAdapter.call(U nknown Source) 13:01:34 [SEVERE] at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) 13:01:34 [SEVERE] at java.util.concurrent.FutureTask.run(Unknown Source)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.FileNotFoundException

      URL [ftp://user:password@host//'MAINVIEW.DATASET'] cannot be resolved to absolute file path because it does not reside in the file system: ftp://user:password@host//'MAINVIEW.DATASET'

      at org.springframework.util.ResourceUtils.getFile()
    2. Spring Core
      UrlResource.getFile
      1. org.springframework.util.ResourceUtils.getFile(ResourceUtils.java:218)
      2. org.springframework.core.io.AbstractFileResolvingResource.getFile(AbstractFileResolvingResource.java:52)
      3. org.springframework.core.io.UrlResource.getFile(UrlResource.java:212)
      3 frames
    3. com.swissre.g10
      G10UnloadFileItemReader.doRead
      1. com.swissre.g10.cds.ct.batch.G10UnloadFileItemReader.doRead(G10UnloadFileItemReader.java:44)
      2. com.swissre.g10.cds.ct.batch.G10UnloadFileItemReader.doRead(G10UnloadFileItemReader.java:18)
      2 frames
    4. Spring Batch Infrastructure
      AbstractItemCountingItemStreamItemReader.read
      1. org.springframework.batch.item.support.AbstractItemCountingItemStreamItemReader.read(AbstractItemCountingItemStreamItemReader.java:88)
      1 frame
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    6. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
      4. org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)
      5. org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)
      6. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      7. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
      7 frames
    7. Unknown
      $Proxy54.read
      1. $Proxy54.read(Unknown Source)
      1 frame
    8. Spring Batch Core
      SimpleChunkProvider$1.doInIteration
      1. org.springframework.batch.core.step.item.SimpleChunkProvider.doRead(SimpleChunkProvider.java:91)
      2. org.springframework.batch.core.step.item.SimpleChunkProvider.read(SimpleChunkProvider.java:157)
      3. org.springframework.batch.core.step.item.SimpleChunkProvider$1.doInIteration(SimpleChunkProvider.java:116)
      3 frames
    9. Spring Batch Infrastructure
      RepeatTemplate.iterate
      1. org.springframework.batch.repeat.support.RepeatTemplate.getNextResult(RepeatTemplate.java:374)
      2. org.springframework.batch.repeat.support.RepeatTemplate.executeInternal(RepeatTemplate.java:215)
      3. org.springframework.batch.repeat.support.RepeatTemplate.iterate(RepeatTemplate.java:144)
      3 frames
    10. Spring Batch Core
      TaskletStep$ChunkTransactionCallback.doInTransaction
      1. org.springframework.batch.core.step.item.SimpleChunkProvider.provide(SimpleChunkProvider.java:110)
      2. org.springframework.batch.core.step.item.ChunkOrientedTasklet.execute(ChunkOrientedTasklet.java:69)
      3. org.springframework.batch.core.step.tasklet.TaskletStep$ChunkTransactionCallback.doInTransaction(TaskletStep.java:406)
      4. org.springframework.batch.core.step.tasklet.TaskletStep$ChunkTransactionCallback.doInTransaction(TaskletStep.java:330)
      4 frames
    11. Spring Tx
      TransactionTemplate.execute
      1. org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)
      1 frame
    12. Spring Batch Core
      StepContextRepeatCallback.doInIteration
      1. org.springframework.batch.core.step.tasklet.TaskletStep$2.doInChunkContext(TaskletStep.java:271)
      2. org.springframework.batch.core.scope.context.StepContextRepeatCallback.doInIteration(StepContextRepeatCallback.java:81)
      2 frames
    13. Spring Batch Infrastructure
      RepeatTemplate.iterate
      1. org.springframework.batch.repeat.support.RepeatTemplate.getNextResult(RepeatTemplate.java:374)
      2. org.springframework.batch.repeat.support.RepeatTemplate.executeInternal(RepeatTemplate.java:215)
      3. org.springframework.batch.repeat.support.RepeatTemplate.iterate(RepeatTemplate.java:144)
      3 frames
    14. Spring Batch Core
      TaskExecutorPartitionHandler$1.call
      1. org.springframework.batch.core.step.tasklet.TaskletStep.doExecute(TaskletStep.java:257)
      2. org.springframework.batch.core.step.AbstractStep.execute(AbstractStep.java:200)
      3. org.springframework.batch.core.partition.support.TaskExecutorPartitionHandler$1.call(TaskExecutorPartitionHandler.java:139)
      4. org.springframework.batch.core.partition.support.TaskExecutorPartitionHandler$1.call(TaskExecutorPartitionHandler.java:136)
      4 frames
    15. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      3. java.lang.Thread.run(Thread.java:662)
      3 frames