Lotus Notes: set runtime security level e connessione socket

Lotus Notes 8, due agenti scritti in java. Entrambi si connettono ad un server mysql remoto, stesso ip, stesso utente e stessa password.
I due agenti condividono la classe che effettua la connessione. Il primo si connette regolarmente, il secondo mi segnala questo errore:

Errore: impossibile connettersi a mysql (jdbc:mysql://1.1.1.1/test): java.sql.SQLException: Unable to connect to any hosts due to exception: java.lang.SecurityException: non è permesso effettuare una connessione socket a 1.1.1.1,3306

Il problema era nel set runtime security level, impostato a

1. Do not allw restricted operations:

Impostato in questo modo:

2. Allow restricted operations

l’agente si connette.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>