Java – runtime errors in JUnit testing

I'm very unstable about unit testing, but I have part of the code, and I really need to make sure it's consistent I try to transfer data from an object to an external file using JSON, so I want to make sure that it will be the same when I extract data from an external file

I'm using unit tests to assert this equality, but I have a problem I don't know how to deal with This is a runtime error. This is what the console reads

A Fatal error has been detected by the Java Runtime Environment:

Internal Error (classFileParser.cpp:3494),pid=5032,tid=7048
Error: ShouldNotReachHere()

JRE version: 6.0_25-b06
Java VM: Java HotSpot(TM) 64-Bit Server VM (20.0-b11 mixed mode windows-amd64 compressed oops)
An error report file with more information is saved as:
L:\fliphouseWorkspace\Luas\hs_err_pid5032.log

If you would like to submit a bug report,please visit:
http://java.sun.com/webapps/bugreport/crash.jsp

Any help would be appreciated. Thank you

Solution

If you are using eclipse to develop Android applications, here is another possible explanation: http://independentlyemployed.co.uk/2010/11/17/worked-out-why/. (obviously, this also happens if you try / try to develop Android and regular Java in the same eclipse workspace; see https://stackoverflow.com/a/3223929/139985 )

If you are not, then I think the general problem is that the JVM is falling down when trying to parse (possibly load) class files The most likely cause seems to be that the class file is corrupted in some way If this is the case, then this is not a JVM error The JVM may have no choice but to report such problems through a crash report, as it may occur during JVM boot

This is an entry in the Java bug database, which reports this: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7032077. Unfortunately, it has been turned off because it cannot be reproduced

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>