gatling / gatling

Modern Load Testing as Code
https://gatling.io
Apache License 2.0
6.45k stars 1.19k forks source link

NullPointerException in recorder when using with open-jdk 1.7.0-internal #636

Closed dgouyette closed 12 years ago

dgouyette commented 12 years ago

Hello,

I have the following stacktrace when using when open jdk 7 on macos X (i didn't try with other version), it 's ok with jdk 7 I'm using gatling 1.2.5

MacBook-Pro-de-Damien-Gouyette:bin damiengouyette$ ./recorder.sh GATLING_HOME is set to /Users/damiengouyette/developpement/apps/gatling-charts-highcharts-1.2.5 Exception in thread "main" java.lang.NullPointerException at java.awt.Window.initGC(Window.java:464) at java.awt.Window.init(Window.java:484) at java.awt.Window.(Window.java:533) at java.awt.Frame.(Frame.java:418) at java.awt.Frame.(Frame.java:383) at javax.swing.JFrame.(JFrame.java:180) at com.excilys.ebi.gatling.recorder.ui.frame.ConfigurationFrame.(ConfigurationFrame.scala:36) at com.excilys.ebi.gatling.recorder.controller.RecorderController.configurationFrame(RecorderController.scala:54) at com.excilys.ebi.gatling.recorder.controller.RecorderController.com$excilys$ebi$gatling$recorder$controller$RecorderController$$showConfigurationFrame(RecorderController.scala:141) at com.excilys.ebi.gatling.recorder.controller.RecorderController$.apply(RecorderController.scala:48) at com.excilys.ebi.gatling.recorder.GatlingRecorder$.main(GatlingRecorder.scala:66) at com.excilys.ebi.gatling.recorder.GatlingRecorder.main(GatlingRecorder.scala)

slandelle commented 12 years ago

Hi Damien,

Well, looks like an OpenJDK bug to me... ;)

Generally speaking, we support JDK6: https://github.com/excilys/gatling/wiki/Getting-Started#wiki-requirements

Here's the JDK7 problems we're aware of:

Cheers,

Steph

2012/8/13 GOUYETTE Damien notifications@github.com

Hello,

I have the following stacktrace when using when open jdk 7 on macos X (i didn't try with other version), it 's ok with jdk 7 I'm using gatling 1.2.5

MacBook-Pro-de-Damien-Gouyette:bin damiengouyette$ ./recorder.sh GATLING_HOME is set to /Users/damiengouyette/developpement/apps/gatling-charts-highcharts-1.2.5 Exception in thread "main" java.lang.NullPointerException at java.awt.Window.initGC(Window.java:464) at java.awt.Window.init(Window.java:484) at java.awt.Window.(Window.java:533) at java.awt.Frame.(Frame.java:418) at java.awt.Frame.(Frame.java:383) at javax.swing.JFrame.(JFrame.java:180) at com.excilys.ebi.gatling.recorder.ui.frame.ConfigurationFrame.(ConfigurationFrame.scala:36) at com.excilys.ebi.gatling.recorder.controller.RecorderController.configurationFrame(RecorderController.scala:54) at com.excilys.ebi.gatling.recorder.controller.RecorderController.com $excilys$ebi$gatling$recorder$controller$RecorderController$$showConfigurationFrame(RecorderController.scala:141) at com.excilys.ebi.gatling.recorder.controller.RecorderController$.apply(RecorderController.scala:48) at com.excilys.ebi.gatling.recorder.GatlingRecorder$.main(GatlingRecorder.scala:66) at com.excilys.ebi.gatling.recorder.GatlingRecorder.main(GatlingRecorder.scala)

— Reply to this email directly or view it on GitHubhttps://github.com/excilys/gatling/issues/636.

dgouyette commented 12 years ago

Ok, thanks for your answer.

slandelle commented 12 years ago

This seems to be a very well known bug. Have you tried upgrading?

dgouyette commented 12 years ago

No more NPE with openjdk version "1.7.0-b24 The recorder seems to be ok, but i hava the following log at startup

Aug 15 17:55:46 MacBook-Pro-de-Damien-Gouyette.local java[91033] : CGContextGetCTM: invalid context 0x0 Aug 15 17:55:46 MacBook-Pro-de-Damien-Gouyette.local java[91033] : CGContextSetBaseCTM: invalid context 0x0 Aug 15 17:55:46 MacBook-Pro-de-Damien-Gouyette.local java[91033] : CGContextGetCTM: invalid context 0x0 Aug 15 17:55:46 MacBook-Pro-de-Damien-Gouyette.local java[91033] : CGContextSetBaseCTM: invalid context 0x0

nremond commented 12 years ago

http://forum.processing.org/topic/java-errors https://discussions.apple.com/thread/3948246?start=0&tstart=0

it may still be an issue in OpenJDK

slandelle commented 12 years ago

That's a general OS X issue since last JDK updates. Doesn't seem to be blocking though.

dgouyette commented 12 years ago

Ok thank you for the information.