Illegal character in path

1,178 views
Skip to first unread message

Henrik Wingerei

unread,
May 6, 2013, 8:42:33 AM5/6/13
to gat...@googlegroups.com
We have some problems in a gatling simulation where one of the requests we sends, results in a redirect to a URL containing the following URL-encoded character: %20.

When this redirect occurs, we get the following error in our gatling log:

java.net.URISyntaxException: Illegal character in path at index 37: htttp://www-t3.nav.no/Arbeid/Utlogging Fra Tjenesten

We have tried setting useRawUrl in gatling.conf to true, but with no effect.

Any tips on how to fix this problem?

Nicolas Rémond

unread,
May 6, 2013, 8:45:42 AM5/6/13
to gat...@googlegroups.com
Do you have an example of the returned "Location" header ?

java.net.URISyntaxException: Illegal character in path at index 37: htttp://www-t3.nav.no/Arbeid/Utlogging Fra Tjenesten

Did you noticed that there is 3 "t" in "htttp" here ?

cheers
nicolas


--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Henrik Wingerei

unread,
May 6, 2013, 8:49:32 AM5/6/13
to gat...@googlegroups.com
Sorry, a typo from me when pasting the error message... The URL and the redirect works in browsers, but when we run a simulation (recorded by Gatling) we get this error.

Henrik

Stéphane Landelle

unread,
May 6, 2013, 8:50:40 AM5/6/13
to gat...@googlegroups.com
If the issue is about the white space in your Location header:
Making it short, please wait 30 minutes and stay tuned.


2013/5/6 Nicolas Rémond <nicolas...@gmail.com>

Henrik Wingerei

unread,
May 6, 2013, 8:52:05 AM5/6/13
to gat...@googlegroups.com
The Location header looks like this:


The same as the URL printed in the error message.

-Henrik

Stéphane Landelle

unread,
May 6, 2013, 8:51:58 AM5/6/13
to gat...@googlegroups.com
BTW, if you can get this Location header fixed, you'll do the internet some good (even minor).


2013/5/6 Stéphane Landelle <slan...@excilys.com>

Stéphane Landelle

unread,
May 6, 2013, 9:14:49 AM5/6/13
to gat...@googlegroups.com
Done, Gatling 1.5.0 and 2.0.0-M2 are out! Check them out!


2013/5/6 Henrik Wingerei <henrikw...@gmail.com>
Message has been deleted

Stéphane Landelle

unread,
May 6, 2013, 9:52:03 AM5/6/13
to gat...@googlegroups.com



2013/5/6 Henrik Wingerei <henrikw...@gmail.com>
Thanks! But we have some problems trying to run 1.5.0. We get the following printed to the console when we run gatling.bat:

GATLING_HOME is set to "C:\apps\gatling-charts-highcharts-1.5.0"
Usage: scalac <options> <source files>
where possible standard options include:
  -Dproperty=value           Pass -Dproperty=value directly to the runtime system.
  -J<flag>                   Pass <flag> directly to the runtime system.
  -P:<plugin>:<opt>          Pass an option to a plugin
  -X                         Print a synopsis of advanced options.
  -bootclasspath <path>      Override location of bootstrap class files.
  -classpath <path>          Specify where to find user class files.
  -d <directory|jar>         destination for generated classfiles.
  -dependencyfile <file>     Set dependency tracking file.
  -deprecation               Emit warning and location for usages of deprecatedAPIs.
  -encoding <encoding>       Specify character encoding used by source files.
  -explaintypes              Explain type errors in more detail.
  -extdirs <path>            Override location of installed extensions.
  -g:<level>                 Set level of generated debugging info. (none,source,line,vars,notailcalls) default:vars
  -help                      Print a synopsis of standard options
  -javabootclasspath <path>  Override java boot classpath.
  -javaextdirs <path>        Override java extdirs classpath.
  -no-specialization         Ignore @specialize annotations.
  -nobootcp                  Do not use the boot classpath for the scala jars.
  -nowarn                    Generate no warnings.
  -optimise                  Generates faster bytecode by applying optimisations
 to the program
  -print                     Print program with Scala-specific features removed.

  -sourcepath <path>         Specify location(s) of source files.
  -target:<target>           Target platform for object files. (jvm-1.5,msil) default:jvm-1.5
  -toolcp <path>             Add to the runner classpath.
  -unchecked                 Enable detailed unchecked (erasure) warnings.
  -uniqid                    Uniquely tag all identifiers in debugging output.
  -usejavacp                 Utilize the java.class.path in classpath resolution.
  -verbose                   Output messages about what the compiler is doing.
  -version                   Print product version and exit.
  @<file>                    A text file containing compiler arguments (options
and source files)

Deprecated settings:
  -make:<policy>             Recompilation detection policy (all,changed,immediate,transitive,transitivenocp) default:all
                               deprecated: this option is unmaintained.  Use sbt or an IDE for selective recompilation.

Exception in thread "main" java.util.zip.ZipException: ZIP file must have at least one entry
        at java.util.zip.ZipOutputStream.finish(ZipOutputStream.java:304)
        at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:140)
        at java.util.zip.ZipOutputStream.close(ZipOutputStream.java:321)
        at sbt.IO$$anonfun$withZipOutput$1.apply(IO.scala:497)
        at sbt.IO$$anonfun$withZipOutput$1.apply(IO.scala:482)
        at sbt.Using.apply(Using.scala:25)
        at sbt.IO$.withZipOutput(IO.scala:482)
        at sbt.IO$.archive(IO.scala:401)
        at sbt.IO$.zip(IO.scala:390)
        at sbt.compiler.AnalyzingCompiler$$anonfun$compileSources$1$$anonfun$apply$1.apply(AnalyzingCompiler.scala:124)
        at sbt.compiler.AnalyzingCompiler$$anonfun$compileSources$1$$anonfun$apply$1.apply(AnalyzingCompiler.scala:113)
        at sbt.IO$.withTemporaryDirectory(IO.scala:281)
        at sbt.compiler.AnalyzingCompiler$$anonfun$compileSources$1.apply(AnalyzingCompiler.scala:113)
        at sbt.compiler.AnalyzingCompiler$$anonfun$compileSources$1.apply(AnalyzingCompiler.scala:110)
        at sbt.IO$.withTemporaryDirectory(IO.scala:281)
        at sbt.compiler.AnalyzingCompiler$.compileSources(AnalyzingCompiler.scala:110)
        at sbt.compiler.IC$.compileInterfaceJar(IncrementalCompiler.scala:31)
        at com.typesafe.zinc.Compiler$.compilerInterface(Compiler.scala:126)
        at com.typesafe.zinc.Compiler$.create(Compiler.scala:52)
        at com.excilys.ebi.gatling.app.ZincCompiler$.apply(ZincCompiler.scala:96)
        at com.excilys.ebi.gatling.app.SimulationClassLoader$.fromSourcesDirectory(SimulationClassLoader.scala:34)
        at com.excilys.ebi.gatling.app.Gatling$$anonfun$12.apply(Gatling.scala:89)
        at com.excilys.ebi.gatling.app.Gatling$$anonfun$12.apply(Gatling.scala:89)
        at scala.Option.getOrElse(Option.scala:108)
        at com.excilys.ebi.gatling.app.Gatling.start(Gatling.scala:89)
        at com.excilys.ebi.gatling.app.Gatling$.fromMap(Gatling.scala:54)
        at com.excilys.ebi.gatling.app.Gatling$.runGatling(Gatling.scala:74)
        at com.excilys.ebi.gatling.app.Gatling$.main(Gatling.scala:49)
        at com.excilys.ebi.gatling.app.Gatling.main(Gatling.scala)
Press any key to continue . . .

Any ideas on why this happens?

One more thing: Seems like the links to the different versions have been mixed up on gatling-tool.org. The link for 1.5.0 points to 2.0.0-M2, and the link for 2.0.0-M2 points to 1.5.0

Henrik Wingerei

unread,
May 6, 2013, 9:52:40 AM5/6/13
to gat...@googlegroups.com
Thanks! Seems to work fine! 

One thing: Seems like the links to the different versions have been mixed up on gatling-tool.org. The link for 1.5.0 points to 2.0.0-M2, and the link for 2.0.0-M2 points to 1.5.0

Stéphane Landelle

unread,
May 6, 2013, 9:55:23 AM5/6/13
to gat...@googlegroups.com
Yep, I just fixed them, thanks!

So you no longer have your weird "Exception in thread "main" java.util.zip.ZipException: ZIP file must have at least one entry"?


2013/5/6 Henrik Wingerei <henrikw...@gmail.com>

Henrik Wingerei

unread,
May 6, 2013, 10:10:17 AM5/6/13
to gat...@googlegroups.com
No. The weird error got away when installing a fresh copy of Gatling.

But, I was a bit quick on checking our original error. Seems like it's still there in version 1.5.0. I've also set useRawUrls to true in gatling.conf.

Here is the full stack trace. I can't see that AsyncHttpProviderUtils is active in the call stack?

[ERROR] [05/06/2013 15:54:46.28] [GatlingSystem-akka.actor.default-dispatcher-13] 
[akka://GatlingSystem/user/$c/$a] Illegal character in path at index 37: http://www-t3.nav.no/Arbeid/Utlogging fra tjenesten
java.lang.IllegalArgumentException: Illegal character in path at index 37: http://www-t3.nav.no/Arbeid/Utlogging fra tjenesten
        at java.net.URI.create(URI.java:859)
        at com.ning.http.client.RequestBuilderBase.buildURI(RequestBuilderBase.java:390)
        at com.ning.http.client.RequestBuilderBase.setUrl(RequestBuilderBase.java:373)
        at com.ning.http.client.RequestBuilder.setUrl(RequestBuilder.java:154)
        at com.excilys.ebi.gatling.http.ahc.GatlingAsyncHandlerActor.handleFollowRedirect$1(GatlingAsyncHandlerActor.scala:178)
        at com.excilys.ebi.gatling.http.ahc.GatlingAsyncHandlerActor.com$excilys$ebi$gatling$http$ahc$GatlingAsyncHandlerActor$$processResponse(GatlingAsyncHandlerActor.scala:210)
        at com.excilys.ebi.gatling.http.ahc.GatlingAsyncHandlerActor$$anonfun$receive$1.apply(GatlingAsyncHandlerActor.scala:108)
        at com.excilys.ebi.gatling.http.ahc.GatlingAsyncHandlerActor$$anonfun$receive$1.apply(GatlingAsyncHandlerActor.scala:84)
        at akka.actor.Actor$class.apply(Actor.scala:318)
        at com.excilys.ebi.gatling.http.ahc.GatlingAsyncHandlerActor.apply(GatlingAsyncHandlerActor.scala:70)
        at akka.actor.ActorCell.invoke(ActorCell.scala:626)
        at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:197)
        at akka.dispatch.Mailbox.run(Mailbox.scala:179)
        at akka.dispatch.ForkJoinExecutorConfigurator$MailboxExecutionTask.exec(AbstractDispatcher.scala:516)
        at akka.jsr166y.ForkJoinTask.doExec(ForkJoinTask.java:259)
        at akka.jsr166y.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:975)
        at akka.jsr166y.ForkJoinPool.runWorker(ForkJoinPool.java:1479)
        at akka.jsr166y.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104)
Caused by: java.net.URISyntaxException: Illegal character in path at index 37: http://www-t3.nav.no/Arbeid/Utlogging fra tjenesten
        at java.net.URI$Parser.fail(URI.java:2829)
        at java.net.URI$Parser.checkChars(URI.java:3002)
        at java.net.URI$Parser.parseHierarchical(URI.java:3086)
        at java.net.URI$Parser.parse(URI.java:3034)
        at java.net.URI.<init>(URI.java:595)
        at java.net.URI.create(URI.java:857)
        ... 17 more

Stéphane Landelle

unread,
May 6, 2013, 10:16:20 AM5/6/13
to gat...@googlegroups.com
Ah, I see. That's something I didn't backport in Gatling 1. Will do for 1.5.1.

If your willing to migrate to 2.0.0-M2, it should work.


2013/5/6 Henrik Wingerei <henrikw...@gmail.com>

Henrik Wingerei

unread,
May 6, 2013, 10:21:01 AM5/6/13
to gat...@googlegroups.com
Sounds good!

Looks like we're able to change the Location in the header. Any idea of when 1.5.1 will be released?

Stéphane Landelle

unread,
May 6, 2013, 10:26:00 AM5/6/13
to gat...@googlegroups.com
Looks like we're able to change the Location in the header.

Great.
 
Any idea of when 1.5.1 will be released?

It depends on this issues that might arise in the next days. We tend to release fixes at most every 2 weeks. 

Stéphane Landelle

unread,
May 6, 2013, 10:33:55 AM5/6/13
to gat...@googlegroups.com
Also note that you can grab SNAPSHOTs from  our CI: http://repository-gatling.forge.cloudbees.com/snapshot

A 1.5.X build is under way with the backport: https://github.com/excilys/gatling/issues/1138


2013/5/6 Stéphane Landelle <slan...@excilys.com>
Reply all
Reply to author
Forward
0 new messages