The message was java.lang.RuntimeException: Could not generate DH keypair.

When I go to this page (https://www.greenmountainenergy.com/for-home/products/comed/) I receive this error: An input/output error occurred while connecting to 'http://www.greenmountainenergy.com/for-home/products/comed/'. The message was java.lang.RuntimeException: Could not generate DH keypair.

I found this topic that might explain the underlying java issue: https://community.qualys.com/thread/1407

Thanks, Jeremy

Hi Jeremy, This might be an

Hi Jeremy,

This might be an issue that's JRE-specific. I just ran a scraping session that requests this page and didn't get the error. I'm running Java 1.7.0_51-b13 on Mac OS X. Could you possibly try another JRE to see if it resolves the issue?

Thanks,

Todd

Can you try it on Windows? I

Can you try it on Windows? I just checked and I have the same version of Java installed. I'm running on Windows 8 (Pro 64). I also tried it on a Windows Server 2008 setup and received the same message.

Thanks, Jeremy

Hi Jeremy, You'll actually

Hi Jeremy,

You'll actually have to explicitly designate the JRE you'd like to use under Windows. It's fairly simple to do on Linux and Mac OS X, but under Windows you'll actually need to run screen-scraper from the command line. Here's the command I'm using to run the workbench:

C:\Program Files\screen-scraper Enterprise Edition>"c:\Program Files\Java\jre7\bin\java.exe" -Xmx128m -jar screen-scraper.jar

You'd do this to run screen-scraper in server mode:

C:\Program Files\screen-scraper Enterprise Edition>"c:\Program Files\Java\jre7\bin\java.exe" -Xmx128m -jar screen-scraper.jar --start-server --interactive

We use install4j to handle launching screen-scraper, which should allow for an alternate JRE to be used via a command line switch or by altering a properties file, but I wasn't able to get either of those methods to work. Here are a couple of pages I found on using those techniques if you'd like to give them a try:

http://resources.ej-technologies.com/install4j/help/doc/indexRedirect.html?http&&&resources.ej-technologies.com/install4j/help/doc/helptopics/installers/options.html (you'd want to use the "-manual" flag)

http://www.datamasking.com/FAQ/how-can-i-configure-camouflage-use-jre-other-default

Todd