excilys/gatling — pull request #464 by nire (2012-04-10 16:28:59+00:00)
Title: Impossible to start the "https" proxy in the recorder

Hi,

On my laptop, it happened that my keystore was more than 2048 bytes and couldn't be loaded in memory.

cheers
Nicolas

PS : The documentation doesn't mention anything about the fact that a keystore called "gatling.jks" must be present in the classpath.

GATLING_HOME is set to "D:\tools\gatling-charts-highcharts-1.1.2"
10 avr. 2012 14:59:52 org.jboss.netty.channel.socket.nio.NioServerSocketPipeline
Sink
ATTENTION: Failed to accept a connection.
java.lang.Error: Failed to initialize the server-side SSLContext
at org.jboss.netty.example.securechat.SecureChatSslContextFactory.(SecureChatSslContextFactory.java:94)
at com.excilys.ebi.gatling.recorder.http.ssl.SSLEngineFactory.newServerSSLEngine(SSLEngineFactory.java:29)
at com.excilys.ebi.gatling.recorder.http.channel.BootstrapFactory$2.getPipeline(BootstrapFactory.java:101)
at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink$Boss.registerAcceptedChannel(NioServerSocketPipelineSink.java:258)
at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink$Boss.run(NioServerSocketPipelineSink.java:225)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.io.EOFException
at java.io.DataInputStream.readInt(DataInputStream.java:375)
at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:664)
at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:38)
at java.security.KeyStore.load(KeyStore.java:1185)
at org.jboss.netty.example.securechat.SecureChatSslContextFactory.(SecureChatSslContextFactory.java:84)
... 7 more