Tag: smartfoxserver

Java错误java.util.concurrent.ConcurrentHashMap.keySet

嘿家伙得到这个错误:你们可能会尝试解决这个问题吗? 或者看到什么是错误的修复或其他东西 非常感谢你的家伙:) Exception in thread “ExtensionHandler-1” java.lang.NoSuchMethodE rror: java.util.concurrent.ConcurrentHashMap.keySet()Ljava/util/concurrent/Concu rrentHashMap$KeySetView; at aerivial.requests.aqw.GetAction.process(GetAction.java:196) at it.gotoandplay.smartfoxserver.controllers.ExtensionHandler.processEve nt(ExtensionHandler.java:535) at it.gotoandplay.smartfoxserver.controllers.ExtensionHandler.run(Extens ionHandler.java:344) at java.lang.Thread.run(Thread.java:619) 错误代码: ConcurrentHashMap tgtBuffDebuffs = (ConcurrentHashMap)userTgt.properties.get(Users.BUFFS_DEBUFFS); for (Iterator i = tgtBuffDebuffs.keySet().iterator(); i.hasNext(); ) { int auraId = ((Integer)i.next()); Aura aura = (Aura)World.instance.auras.get(Integer.valueOf(auraId)); if ((aura.getDamage() >= 0.0D) && (!aura.getCategory().equals(“d”))) { damage = (int)(damage * aura.getDamage()); } […]

JDBC SQLServerException:“此驱动程序未配置为集成身份validation。”

我的标准免责声明:我在大约10年内没有使用Java,所以我很可能在这里做了一些基本错误。 我正在为SmartFoxServer (SFS)编写一个“服务器端扩展”。 在我的登录脚本中,我需要连接到MS SQL Server,我试图使用JDBC进行连接。 我在调试环境中测试了JDBC代码,它工作正常。 但 当我将服务器端扩展放在SFS“extensions”文件夹中时(根据规范),我得到一个com.microsoft.sqlserver.jdbc.SQLServerException : “此驱动程序未配置为集成身份validation。” 我用Google搜索了这个错误,发现这通常是因为文件sqljdbc_auth.dll不在系统路径中; 我已将此文件复制到系统路径中的文件夹中,但仍无效! 还有其他建议吗?