java.lang.IllegalArgumentException

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.

  • Camel Olingo2 parses the URI?
    via Stack Overflow by mariob
    ,
  • GitHub comment 703#130549111
    via GitHub by cjellick
    ,
  • GitHub comment 205#174972004
    via GitHub by jnioche
    ,
  • Cannot search with spaces
    via GitHub by gossi
    ,
  • The nexus UI allows you to enter invalid URL's in proxy repository configuration. The stack below is the result of entering "http://files.couchbase.com/maven2 /". {quote} 2014-07-11 08:17:51 WARN [pxpool-1-thread-2] admin org.sonatype.scheduling.DefaultScheduledTask - Exception in call method of scheduled task Creating initial index, repositoryId=couch java.io.IOException: Cannot fetch remote index for repository "couch" [id=couch], error occurred. at org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteIndex(DefaultIndexerManager.java:1342) ~[na:na] at org.sonatype.nexus.index.DefaultIndexerManager.access$1100(DefaultIndexerManager.java:189) ~[na:na] at org.sonatype.nexus.index.DefaultIndexerManager$IndexUpdateRunnable.run(DefaultIndexerManager.java:1058) ~[na:na] at org.sonatype.nexus.index.DefaultIndexerManager.sharedSingle(DefaultIndexerManager.java:2310) ~[na:na] at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:999) ~[na:na] at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:962) ~[na:na] at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:939) ~[na:na] at org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexRepository(ReindexTaskHandlerLegacy.java:62) ~[na:na] at org.sonatype.nexus.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:69) ~[na:na] at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:157) ~[nexus-core-2.7.2-03.jar:2.7.2-03] at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:419) ~[nexus-scheduler-2.7.2-03.jar:2.7.2-03] at org.sonatype.nexus.threads.MDCAwareCallable.call(MDCAwareCallable.java:45) [nexus-core-2.7.2-03.jar:2.7.2-03] at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) [shiro-core-1.2.2.jar:1.2.2] at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) [shiro-core-1.2.2.jar:1.2.2] at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_60] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) [na:1.7.0_60] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) [na:1.7.0_60] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_60] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_60] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_60] Caused by: java.lang.IllegalArgumentException: Illegal character in path at index 33: http://files.couchbase.com/maven2 /.index/nexus-maven-repository-index.properties at java.net.URI.create(URI.java:859) ~[na:1.7.0_60] at org.apache.http.client.methods.HttpGet.<init>(HttpGet.java:69) ~[httpclient-4.2.6.jar:4.2.6] at org.sonatype.nexus.proxy.storage.remote.httpclient.HttpClientRemoteStorage.retrieveItem(HttpClientRemoteStorage.java:190) ~[nexus-core-2.7.2-03.jar:2.7.2-03] at org.sonatype.nexus.index.DefaultIndexerManager$11.retrieve(DefaultIndexerManager.java:1252) ~[na:na] at org.apache.maven.index.updater.DefaultIndexUpdater.downloadIndexProperties(DefaultIndexUpdater.java:465) ~[na:na] at org.apache.maven.index.updater.DefaultIndexUpdater.access$000(DefaultIndexUpdater.java:76) ~[na:na] at org.apache.maven.index.updater.DefaultIndexUpdater$IndexAdaptor.setProperties(DefaultIndexUpdater.java:595) ~[na:na] at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:822) ~[na:na] at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:159) ~[na:na] at org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteIndex(DefaultIndexerManager.java:1289) ~[na:na] ... 19 common frames omitted Caused by: java.net.URISyntaxException: Illegal character in path at index 33: http://files.couchbase.com/maven2 /.index/nexus-maven-repository-index.properties at java.net.URI$Parser.fail(URI.java:2829) ~[na:1.7.0_60] at java.net.URI$Parser.checkChars(URI.java:3002) ~[na:1.7.0_60] at java.net.URI$Parser.parseHierarchical(URI.java:3086) ~[na:1.7.0_60] at java.net.URI$Parser.parse(URI.java:3034) ~[na:1.7.0_60] at java.net.URI.<init>(URI.java:595) ~[na:1.7.0_60] at java.net.URI.create(URI.java:857) ~[na:1.7.0_60] ... 28 common frames omitted {quote}
    via by Rich Seddon,
  • GitHub comment 6#35196140
    via GitHub by confile
    ,
    • java.lang.IllegalArgumentException: Illegal character in query at index 131: https://<hostname>/Persons/?$top=5&$filter=Timestamp gt datetime'2014-06-26T03:30:00.000'&$format=json at java.net.URI.create(URI.java:852)[na:1.8.0_45] at org.apache.http.client.methods.HttpGet.<init>(HttpGet.java:69)[httpclient-4.5.2.jar:4.5.2] at org.apache.camel.component.olingo2.api.impl.Olingo2AppImpl.read(Olingo2AppImpl.java:190)[camel-olingo2-api-2.17.1.jar:2.17.1] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_45] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_45] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_45] at java.lang.reflect.Method.invoke(Method.java:497)[na:1.8.0_45] at org.apache.camel.util.component.ApiMethodHelper.invokeMethod(ApiMethodHelper.java:461)[camel-core-2.17.1.jar:2.17.1] Caused by: java.net.URISyntaxException: Illegal character in query at index 131: https://<hostname>/Persons/?$top=5&$filter=Timestamp gt datetime'2014-06-26T03:30:00.000'&$format=json at java.net.URI$Parser.fail(URI.java:2848)[na:1.8.0_45] at java.net.URI$Parser.checkChars(URI.java:3021)[na:1.8.0_45] at java.net.URI$Parser.parseHierarchical(URI.java:3111)[na:1.8.0_45] at java.net.URI$Parser.parse(URI.java:3053)[na:1.8.0_45] at java.net.URI.<init>(URI.java:588)[na:1.8.0_45] at java.net.URI.create(URI.java:850)[na:1.8.0_45] ... 8 more

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    richard77richard77
    1 times, last one,
    sriharshakiransriharshakiran
    1 times, last one,
    r1chjamesr1chjames
    3 times, last one,
    51 more bugmates