Skip to content
Advertisement

java.sql.SQLException: ORA-01005: null password given; logon denied

I’m getting the follwing exception while trying to connect to a database:

JavaScript

here the method used to get the connection:

JavaScript

But even when the params (url, password..) are hardcoded, I still get the exception.

Could you tell me how to fix this problem ? thanks

Advertisement

Answer

it appears the problem is linked to the “-Djava.endorsed.dirs” parameter from the java startup command line.

By removing this one, everything goes well.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement