JANIS and HTTP proxies

JANIS have access to the NEA remote database through the HTTP protocol, like a usual web browser, if you can see this page then you should be able to connect to the remote database.
But, for some organization, web access must go through a proxy server (usually for security reasons). This requires an additional setting, already done for your internet browser, but which should be set for JANIS as well.

Do I need to setup an HTTP proxy to be able to connect to the NEA remote database ?

You can obtain this information from your system administrator. In case you use Internet Explorer you can check this here :

Connection problem with NEA remote database on IPv6 enabled computers

On a computer with IPv6 enabled you may not be able to connect to the NEA remote database. An error like this will be displayed:

I/O Error with http://www.oecd-nea.org/janis647/connection
Versions :
JANIS Version 4.0 - build 5.4.647 - (2013-09-12)
Java 1.7.0_40-b43 (Classes 51.0)
Windows 7 v6.1 (x86)
Virtual Machine : Java HotSpot(TM) Client VM (Oracle Corporation)
Stack trace :
     I/O Error with http://www.oecd-nea.org/janis647/connection
Caused by: java.net.ConnectException: Connection refused: connect
                at java.net.DualStackPlainSocketImpl.connect0(Native Method)
                at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
                at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
                at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
                at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
                at java.net.PlainSocketImpl.connect(Unknown Source)
                at java.net.SocksSocketImpl.connect(Unknown Source)
                at java.net.Socket.connect(Unknown Source)

If you encounter this then you have to add the following option to Java in the janis.bat or janis.sh file:

The default command in these files is:
start javaw -Xms100M -Xmx512M -jar Janis.jar
change it to:
start javaw -Xms100M -Xmx512M -Djava.net.preferIPv4Stack=true -jar Janis.jar

Connection problem with NEA remote database in JANIS 2.2 and 2.2.1

For JANIS versions < 2.2.2, you may get the following error dialog when you attempt to connect to the NEA remote database.

The root cause of this problem is the HTTP proxy settings. The default proxy name (proxy.sample.com) was meant to be a fictitious one, but recently this address became accessible on the Internet making connection to the NEA database impossible. Besides, the checkbox (Use a proxy server) in the Preferences dialog was not working and all connections were attempting to contact this server as a proxy. This problem went unnoticed before this host became reachable on the internet and moreover rejects incoming connections.

You can solve the problem by applying the following steps if you want do not want to upgrade:

How to setup an HTTP proxy in JANIS 2.2 and 3.0

How to setup an HTTP proxy in an old JANIS version (<2.2)

In previous versions there was no dialog to set this, so you need to change the small file which launch JANIS : either janis.bat or janis.sh, depending on your operating system (.bat for windows, .sh for Unix flavours).
You should add this on the line which starts with "java" :

-DproxySet=true -Dhttp.proxyHost=XXXX -Dhttp.proxyPort=XXXX 

Replace the XXXX by the values you got from your network administrator or you find in Internet Explorer settings.

So your janis.bat (or janis.sh) should look like :

@echo off
cd software
java -DproxySet=true -Dhttp.proxyHost=myproxy -Dhttp.proxyPort=1234 -Djdbc.drivers=com.mckoi.JDBCDriver -Xms100M -Xmx200M -jar Janis.jar

rem # -Dlog4j.configuration=file:./log4j.properties 

E-mail : 

Last modified:14 October 2013