简体   繁体   English

是什么导致了 JVMTI_ERROR_NULL_POINTER?

[英]What is causing a JVMTI_ERROR_NULL_POINTER?

I'm getting an error when my application starts.我的应用程序启动时出现错误。 It appears to be after it's initialized its connection to the database.它似乎是在初始化与数据库的连接之后。 It also may be when it starts to spawn threads, but I haven't been able to cause it to happen on purpose.它也可能是在它开始产生线程的时候,但我没能故意让它发生。

The entire error message is:整个错误信息是:
FATAL ERROR in native method: JDWP NewGlobalRef, jvmtiError=JVMTI_ERROR_NULL_POINTER(100) JDWP exit error JVMTI_ERROR_NULL_POINTER(100): NewGlobalRef本机方法中的致命错误:JDWP NewGlobalRef, jvmtiError=JVMTI_ERROR_NULL_POINTER(100) JDWP 退出错误 JVMTI_ERROR_NULL_POINTER(100): NewGlobalRef

erickson: I'm not very familiar with the DB code, but hopefully this string is helpful: jdbc:sqlserver://localhost;databasename=FOO erickson:我对 DB 代码不是很熟悉,但希望这个字符串有帮助:jdbc:sqlserver://localhost;databasename=FOO

Tom Hawtin: It's likely I was only getting this error when debugging, but it wasn't consistent enough for me to notice. Tom Hawtin:很可能我只是在调试时遇到了这个错误,但我注意到它不够一致。

Also, I fixed a bug that was causing multiple threads to attempt to update the same row in DB and I haven't gotten the JVMTI... error since.此外,我修复了导致多个线程尝试更新数据库中的同一行的错误,并且我没有收到 JVMTI... 错误。

JVMTI is the debugging and profiling protocol. JVMTI是调试和概要分析协议。 So, I'm guessint it's something peculiar to the environment you are attempting to run your application in. 因此,我想这是您尝试在其中运行应用程序的环境所特有的。

I'm guessing you are using a native-code–based database driver (JDBC driver type 1 or 2). 我猜您正在使用基于本机代码的数据库驱动程序(JDBC驱动程序类型1或2)。 And I'm guessing that driver is buggy. 我猜该驱动程序是错误的。 If you could provide more information about the driver and your datasource configuration or connection string, it might help determine some answers. 如果您可以提供有关驱动程序和数据源配置或连接字符串的更多信息,则可能有助于确定一些答案。

I'm with Tom on this one, it looks like your debugger / JVMTI agent is passing a NULL value to the JVM through the JVMTI interface. 我与汤姆在一起,看来您的调试器/ JVMTI代理正在通过JVMTI接口将NULL值传递给JVM。 This particular error is probably not a problem with your application code. 此特定错误可能与您的应用程序代码无关。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM