Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error found when my image name include %20 or space #18

Closed
sveinjoe opened this issue Oct 20, 2016 · 12 comments
Closed

error found when my image name include %20 or space #18

sveinjoe opened this issue Oct 20, 2016 · 12 comments
Labels

Comments

@sveinjoe
Copy link

sveinjoe commented Oct 20, 2016

http://cf.jare.io/?u=http://www.32teamsjerseys.us/images/Nike%20NFL%20Jerseys/New%20England%20Patriots%20Jersey/Nike%20Jersey/201604281559358564.jpg

Please, submit this stacktrace to GitHub and we'll try to help: https://github.com/yegor256/jare/issues

java.lang.IllegalStateException: [GET http://relay.jare.io/?u=http%3A%2F%2Fwww.32teamsjerseys.us%2Fimages%2FNike+NFL+Jerseys%2FNew+England+Patriots+Jersey%2FNike+Jersey%2F201604281559358564.jpg] failed in 0ms: Illegal character in path at index 40: http://www.32teamsjerseys.us/images/Nike NFL Jerseys/New England Patriots Jersey/Nike Jersey/201604281559358564.jpg
    at org.takes.facets.fallback.TkFallback.error(TkFallback.java:233)
    at org.takes.facets.fallback.TkFallback.route(TkFallback.java:112)
    at org.takes.facets.fallback.TkFallback.access$000(TkFallback.java:54)
    at org.takes.facets.fallback.TkFallback$1.act(TkFallback.java:66)
    at org.takes.tk.TkWrap.act(TkWrap.java:61)
    at org.takes.facets.fork.FkHost$1.route(FkHost.java:81)
    at org.takes.facets.fork.FkWrap.route(FkWrap.java:61)
    at org.takes.facets.fork.FkChain.route(FkChain.java:75)
    at org.takes.facets.fork.TkFork.act(TkFork.java:100)
    at org.takes.facets.forward.TkForward.act(TkForward.java:69)
    at org.takes.facets.fork.FkFixed$1.route(FkFixed.java:56)
    at org.takes.facets.fork.FkWrap.route(FkWrap.java:61)
    at org.takes.facets.fork.FkChain.route(FkChain.java:75)
    at org.takes.facets.fork.TkFork.act(TkFork.java:100)
    at org.takes.facets.auth.TkAuth.act(TkAuth.java:91)
    at org.takes.tk.TkWrap.act(TkWrap.java:61)
    at org.takes.facets.fallback.TkFallback.route(TkFallback.java:85)
    at org.takes.facets.fallback.TkFallback.access$000(TkFallback.java:54)
    at org.takes.facets.fallback.TkFallback$1.act(TkFallback.java:66)
    at org.takes.tk.TkWrap.act(TkWrap.java:61)
    at org.takes.tk.TkWrap.act(TkWrap.java:61)
    at org.takes.facets.flash.TkFlash.act(TkFlash.java:108)
    at org.takes.tk.TkGzip$1.act(TkGzip.java:58)
    at org.takes.tk.TkWrap.act(TkWrap.java:61)
    at org.takes.tk.TkMeasured$1.act(TkMeasured.java:67)
    at org.takes.tk.TkWrap.act(TkWrap.java:61)
    at org.takes.tk.TkVersioned$1.act(TkVersioned.java:72)
    at org.takes.tk.TkWrap.act(TkWrap.java:61)
    at org.takes.tk.TkWithHeaders$1.act(TkWithHeaders.java:71)
    at org.takes.tk.TkWrap.act(TkWrap.java:61)
    at org.takes.tk.TkWrap.act(TkWrap.java:61)
    at org.takes.http.BkBasic.print(BkBasic.java:108)
    at org.takes.http.BkBasic.accept(BkBasic.java:84)
    at org.takes.http.BkSafe$1.accept(BkSafe.java:51)
    at org.takes.http.BkWrap.accept(BkWrap.java:52)
    at org.takes.http.BkTimeable.accept(BkTimeable.java:89)
    at org.takes.http.BkParallel$1$1.run(BkParallel.java:89)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalArgumentException: Illegal character in path at index 40: http://www.32teamsjerseys.us/images/Nike NFL Jerseys/New England Patriots Jersey/Nike Jersey/201604281559358564.jpg
    at java.net.URI.create(URI.java:852)
    at io.jare.tk.TkRelay.act(TkRelay.java:75)
    at org.takes.facets.fallback.TkFallback.route(TkFallback.java:85)
    ... 38 more
Caused by: java.net.URISyntaxException: Illegal character in path at index 40: http://www.32teamsjerseys.us/images/Nike NFL Jerseys/New England Patriots Jersey/Nike Jersey/201604281559358564.jpg
    at java.net.URI$Parser.fail(URI.java:2848)
    at java.net.URI$Parser.checkChars(URI.java:3021)
    at java.net.URI$Parser.parseHierarchical(URI.java:3105)
    at java.net.URI$Parser.parse(URI.java:3053)
    at java.net.URI.<init>(URI.java:588)
    at java.net.URI.create(URI.java:850)
    ... 40 more
@yegor256
Copy link
Owner

@sveinjoe thanks for reporting! I'll try to fix it ASAP

yegor256 pushed a commit that referenced this issue Nov 15, 2016
yegor256 pushed a commit that referenced this issue Nov 15, 2016
@yegor256
Copy link
Owner

@rultor release, tag is 0.6.2

@rultor
Copy link
Collaborator

rultor commented Nov 15, 2016

@rultor release, tag is 0.6.2

@yegor256 OK, I will release it now. Please check the progress here

@rultor
Copy link
Collaborator

rultor commented Nov 15, 2016

@rultor release, tag is 0.6.2

@sveinjoe @yegor256 Oops, I failed. You can see the full log here (spent 3min)

Tests in error: 
  TkRelayTest.sendsRequestThrough:57->lambda$sendsRequestThrough$0:60 » Http [40...
  TkRelayTest.sendsRequestThroughToHome:84->lambda$sendsRequestThroughToHome$1:87 » Http

Tests run: 20, Failures: 0, Errors: 2, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 32.802 s
[INFO] Finished at: 2016-11-15T11:50:48+00:00
[INFO] Final Memory: 55M/494M
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "jare" could not be activated because it does not exist.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project web: There are test failures.
[ERROR] 
[ERROR] Please refer to /home/r/repo/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project web: There are test failures.

Please refer to /home/r/repo/target/surefire-reports for the individual test results.
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
    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 org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures.

Please refer to /home/r/repo/target/surefire-reports for the individual test results.
    at org.apache.maven.plugin.surefire.SurefireHelper.reportExecution(SurefireHelper.java:91)
    at org.apache.maven.plugin.surefire.SurefirePlugin.handleSummary(SurefirePlugin.java:320)
    at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:892)
    at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:755)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
    ... 20 more
[ERROR] 
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
container f219e121dc6a8b371bc96a1c1cdc512580a92cfadc36026e798bfa15abbce20b is dead
Tue Nov 15 11:50:57 UTC 2016

yegor256 pushed a commit that referenced this issue Nov 15, 2016
@yegor256
Copy link
Owner

@rultor release, tag is 0.6.2

@rultor
Copy link
Collaborator

rultor commented Nov 15, 2016

@rultor release, tag is 0.6.2

@yegor256 OK, I will release it now. Please check the progress here

@yegor256
Copy link
Owner

@rultor status

@rultor
Copy link
Collaborator

rultor commented Nov 15, 2016

@rultor status

@yegor256 This is what's going on here:

  • 1 build(s) archived: 9970-260620781
  • request 260622068 is in processing, command is release
  • request has 3 parameter(s):
    • head: git@github.com:yegor256/jare.git
    • head_branch: master
    • tag: 0.6.2
  • build started 60 seconds ago
  • build is running in /tmp/rultor-3NNj directory
  • Docker container ID: 2223e8caa5b70b44578f...
  • working directory size: 57M
  • server load average: 3.91

More information about Rultor commands you can get here.

@rultor
Copy link
Collaborator

rultor commented Nov 15, 2016

@rultor release, tag is 0.6.2

@yegor256 Done! FYI, the full log is here (took me 4min)

@dekhtyarev
Copy link

@rultor deploy

@rultor
Copy link
Collaborator

rultor commented Nov 15, 2016

@rultor deploy

@dekhtyarev Thanks for your request. @yegor256 Please confirm this.

@yegor256
Copy link
Owner

@sveinjoe I believe the problem is fixed. Try it again. Your URL is not encoded, that's why the server throws an exception.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants