Start a new topic

Kerberos issue with 14.0

I updated from 13.x to 14.0 and now I can no longer connect to my Kerberized Hive instances...

An error occurred while establishing the connection:

Long Message:

Can't get Kerberos realm


   Type: java.lang.IllegalArgumentException

Stack Trace:

java.lang.IllegalAccessException: class cannot access class (in module because module does not export to unnamed module @7a33f674

   at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(

   at java.base/java.lang.reflect.AccessibleObject.checkAccess(

   at java.base/java.lang.reflect.Method.invoke(



[wrapped] java.lang.IllegalArgumentException: Can't get Kerberos realm




   at org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge.createClientWithConf(

   at org.apache.hive.service.auth.KerberosSaslHelper.getKerberosTransport(

   at org.apache.hive.jdbc.HiveConnection.createBinaryTransport(

   at org.apache.hive.jdbc.HiveConnection.openTransport(

   at org.apache.hive.jdbc.HiveConnection.<init>(

   at org.apache.hive.jdbc.HiveDriver.connect(

   at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

   at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(

   at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(

   at java.base/java.lang.reflect.Method.invoke(

   at com.onseven.dbvis.jdbc.b.e.b(Z:525)

   at com.onseven.dbvis.jdbc.b.g$

   at java.base/

   at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(

   at java.base/java.util.concurrent.ThreadPoolExecutor$

   at java.base/




The problem is that the JDBC uses internally APIs in Java. 

To workaround this, try add the following in Tools->Tool Properties and in the General category under Specify Overridden Java Properties here text area:


Regards Ulf

1 person likes this

This work around doesn't work for my case. 

Product: DbVisualizer Pro 23.1 (build: 3713)

OS: Windows 11

OS Version: 10.0

OS Arch: amd64

Java Version: 17.0.6

Java VM: OpenJDK 64-Bit Server VM

Java Vendor: Eclipse Adoptium

Java Home: c:\program files\dbvisualizer\jre

DbVis Home: C:\Program Files\DbVisualizer

Working in my case

@Ashish Doneriya what is "your case"?
Did you take some different step(s) than mentioned in this issue?

I was trying get Subject object login via kerberos credentials. Facing the same problem when updated from Java 8 to 17. So I add the export property during jar execution java --add-exports -jar jarname.jar
Login or Signup to post a comment