Invalid name provided (Mechanism level: KrbException: Cannot locate default realm) in groovy script

匿名 (未验证) 提交于 2019-12-03 08:57:35

问题:

i have a groovy script that connect to MSSQL database, a few week ago it works very nice, but today i had upload a last version of mac os, and my script give me this exception:

Caught: java.sql.SQLException: I/O Error: GSS Failed: Invalid name provided (Mechanism level: KrbException: Cannot locate default realm) java.sql.SQLException: I/O Error: GSS Failed: Invalid name provided (Mechanism level: KrbException: Cannot locate default realm)     at net.sourceforge.jtds.jdbc.TdsCore.login(TdsCore.java:654)     at net.sourceforge.jtds.jdbc.JtdsConnection.<init>(JtdsConnection.java:371)     at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:184)     at getMarque.run(getMarque.groovy:3) 

回答1:

Perhaps a little late.

I had the same error, when I was trying to connect to the database with an empty String as user name and password.

After I add a user name and password the error disappeared.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!