java.lang.IllegalArgumentException: Illegal character in path at index 90: http://dams01-test.artic.edu/fcrepo/rest/resources/ext/imagingserver/Non_Object/Non-Object Archive/GlassN egProject/GlassNegDocumentation/.DS_Store/fcr:metadata

Sakai JIRA | Stefano Cossu | 2 years ago
  1. 0

    When accessing ".DS_Store" files on a federated filesystem, the following exception is thrown: INFO 17:25:40.434 (FedoraLdp) HEAD for: resources/ext/imagingserver/Non_Object/Non-Object Archive/GlassNegProject/GlassNegDocumentation/.DS_Store INFO 17:25:40.473 (WildcardExceptionMapper) Exception intercepted by WildcardExceptionMapper: java.lang.IllegalArgumentException: Illegal character in path at index 90: http://dams01-test.artic.edu/fcrepo/rest/resources/ext/imagingserver/Non_Object/Non-Object Archive/GlassN egProject/GlassNegDocumentation/.DS_Store/fcr:metadata at java.net.URI.create(URI.java:859) ~[na:1.7.0_55] at org.glassfish.jersey.uri.UriTemplate.normalize(UriTemplate.java:399) ~[jersey-common-2.13.jar:na] at org.glassfish.jersey.message.internal.JerseyLink$Builder.resolveLinkUri(JerseyLink.java:174) ~[jersey-common-2.13.jar:na] at org.glassfish.jersey.message.internal.JerseyLink$Builder.build(JerseyLink.java:161) ~[jersey-common-2.13.jar:na] at org.glassfish.jersey.message.internal.JerseyLink$Builder.build(JerseyLink.java:73) ~[jersey-common-2.13.jar:na] at org.fcrepo.http.api.FedoraLdp.addResourceLinkHeaders(FedoraLdp.java:521) ~[fcrepo-http-api-4.0.0-beta-05-SNAPSHOT.jar:na] at org.fcrepo.http.api.FedoraLdp.addResourceLinkHeaders(FedoraLdp.java:506) ~[fcrepo-http-api-4.0.0-beta-05-SNAPSHOT.jar:na] at org.fcrepo.http.api.FedoraLdp.addOptionsHttpHeaders(FedoraLdp.java:500) ~[fcrepo-http-api-4.0.0-beta-05-SNAPSHOT.jar:na] at org.fcrepo.http.api.FedoraLdp.addResourceHttpHeaders(FedoraLdp.java:470) ~[fcrepo-http-api-4.0.0-beta-05-SNAPSHOT.jar:na] at org.fcrepo.http.api.FedoraLdp.head(FedoraLdp.java:148) ~[fcrepo-http-api-4.0.0-beta-05-SNAPSHOT.jar:na] at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source) ~[na:na] I can access other .DS_Store files but this one (and one in sibling directories) has a space in its path. I can access other files under the path containing the space, but not .DS_Store files. Will try some more combination to establish a pattern.

    Sakai JIRA | 2 years ago | Stefano Cossu
    java.lang.IllegalArgumentException: Illegal character in path at index 90: http://dams01-test.artic.edu/fcrepo/rest/resources/ext/imagingserver/Non_Object/Non-Object Archive/GlassN egProject/GlassNegDocumentation/.DS_Store/fcr:metadata
  2. 0

    When accessing ".DS_Store" files on a federated filesystem, the following exception is thrown: INFO 17:25:40.434 (FedoraLdp) HEAD for: resources/ext/imagingserver/Non_Object/Non-Object Archive/GlassNegProject/GlassNegDocumentation/.DS_Store INFO 17:25:40.473 (WildcardExceptionMapper) Exception intercepted by WildcardExceptionMapper: java.lang.IllegalArgumentException: Illegal character in path at index 90: http://dams01-test.artic.edu/fcrepo/rest/resources/ext/imagingserver/Non_Object/Non-Object Archive/GlassN egProject/GlassNegDocumentation/.DS_Store/fcr:metadata at java.net.URI.create(URI.java:859) ~[na:1.7.0_55] at org.glassfish.jersey.uri.UriTemplate.normalize(UriTemplate.java:399) ~[jersey-common-2.13.jar:na] at org.glassfish.jersey.message.internal.JerseyLink$Builder.resolveLinkUri(JerseyLink.java:174) ~[jersey-common-2.13.jar:na] at org.glassfish.jersey.message.internal.JerseyLink$Builder.build(JerseyLink.java:161) ~[jersey-common-2.13.jar:na] at org.glassfish.jersey.message.internal.JerseyLink$Builder.build(JerseyLink.java:73) ~[jersey-common-2.13.jar:na] at org.fcrepo.http.api.FedoraLdp.addResourceLinkHeaders(FedoraLdp.java:521) ~[fcrepo-http-api-4.0.0-beta-05-SNAPSHOT.jar:na] at org.fcrepo.http.api.FedoraLdp.addResourceLinkHeaders(FedoraLdp.java:506) ~[fcrepo-http-api-4.0.0-beta-05-SNAPSHOT.jar:na] at org.fcrepo.http.api.FedoraLdp.addOptionsHttpHeaders(FedoraLdp.java:500) ~[fcrepo-http-api-4.0.0-beta-05-SNAPSHOT.jar:na] at org.fcrepo.http.api.FedoraLdp.addResourceHttpHeaders(FedoraLdp.java:470) ~[fcrepo-http-api-4.0.0-beta-05-SNAPSHOT.jar:na] at org.fcrepo.http.api.FedoraLdp.head(FedoraLdp.java:148) ~[fcrepo-http-api-4.0.0-beta-05-SNAPSHOT.jar:na] at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source) ~[na:na] I can access other .DS_Store files but this one (and one in sibling directories) has a space in its path. I can access other files under the path containing the space, but not .DS_Store files. Will try some more combination to establish a pattern.

    Sakai JIRA | 2 years ago | Stefano Cossu
    java.lang.IllegalArgumentException: Illegal character in path at index 90: http://dams01-test.artic.edu/fcrepo/rest/resources/ext/imagingserver/Non_Object/Non-Object Archive/GlassN egProject/GlassNegDocumentation/.DS_Store/fcr:metadata
  3. 0

    Curl -xget works, but fail when use RESTful client in java

    Google Groups | 2 years ago | Chia-Eng Chang
    java.lang.IllegalArgumentException: Illegal character in query at index 52: http://localhost:9200/obd2/_search?scroll=1m&size=50 -d '{"query" : {"match_all" : {}}}'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Possible Bug On Malformed URL

    GitHub | 2 years ago | neilchaudhuri
    java.lang.IllegalArgumentException: Illegal character in path at index 174
  6. 0

    windows: Illegal character in path at index 0: \foo.xsl

    GitHub | 3 years ago | yegor256
    java.lang.IllegalArgumentException: Illegal character in path at index 0: \foo.xsl

  1. rp 1 times, last 3 weeks ago
  2. richard77 1 times, last 2 months ago
  3. iridic 1 times, last 2 months ago
  4. maxxi 1 times, last 2 months ago
  5. lribeiro 12 times, last 7 months ago
8 more registered users
11 unregistered visitors
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.lang.IllegalArgumentException

    Illegal character in path at index 90: http://dams01-test.artic.edu/fcrepo/rest/resources/ext/imagingserver/Non_Object/Non-Object Archive/GlassN egProject/GlassNegDocumentation/.DS_Store/fcr:metadata

    at java.net.URI.create()
  2. Java RT
    URI.create
    1. java.net.URI.create(URI.java:859)[na:1.7.0_55]
    1 frame
  3. Jersey Core
    JerseyLink$Builder.build
    1. org.glassfish.jersey.uri.UriTemplate.normalize(UriTemplate.java:399)[jersey-common-2.13.jar:na]
    2. org.glassfish.jersey.message.internal.JerseyLink$Builder.resolveLinkUri(JerseyLink.java:174)[jersey-common-2.13.jar:na]
    3. org.glassfish.jersey.message.internal.JerseyLink$Builder.build(JerseyLink.java:161)[jersey-common-2.13.jar:na]
    4. org.glassfish.jersey.message.internal.JerseyLink$Builder.build(JerseyLink.java:73)[jersey-common-2.13.jar:na]
    4 frames
  4. org.fcrepo.http
    FedoraLdp.head
    1. org.fcrepo.http.api.FedoraLdp.addResourceLinkHeaders(FedoraLdp.java:521)[fcrepo-http-api-4.0.0-beta-05-SNAPSHOT.jar:na]
    2. org.fcrepo.http.api.FedoraLdp.addResourceLinkHeaders(FedoraLdp.java:506)[fcrepo-http-api-4.0.0-beta-05-SNAPSHOT.jar:na]
    3. org.fcrepo.http.api.FedoraLdp.addOptionsHttpHeaders(FedoraLdp.java:500)[fcrepo-http-api-4.0.0-beta-05-SNAPSHOT.jar:na]
    4. org.fcrepo.http.api.FedoraLdp.addResourceHttpHeaders(FedoraLdp.java:470)[fcrepo-http-api-4.0.0-beta-05-SNAPSHOT.jar:na]
    5. org.fcrepo.http.api.FedoraLdp.head(FedoraLdp.java:148)[fcrepo-http-api-4.0.0-beta-05-SNAPSHOT.jar:na]
    5 frames
  5. Java RT
    GeneratedMethodAccessor69.invoke
    1. sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source)[na:na]
    1 frame