• Post Reply Bookmark Topic Watch Topic
  • New Topic

getting error when trying to run unit tests  RSS feed

Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I created a game for android using Eclipse and I am trying to run the tests using JUnit. But I get an error every time I try run the tests and it creates a log file

here is error log file:
# A fatal error has been detected by the Java Runtime Environment:
# Internal Error (javaClasses.cpp:129), pid=6056, tid=5492
# fatal error: Invalid layout of preloaded class
# JRE version: 7.0_17-b02
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.7-b01 mixed mode windows-amd64 compressed oops)
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp

--------------- T H R E A D ---------------

Current thread (0x00000000004cd000): JavaThread "Unknown thread" [_thread_in_vm, id=5492, stack(0x0000000002470000,0x0000000002570000)]

Stack: [0x0000000002470000,0x0000000002570000]

--------------- P R O C E S S ---------------

Java Threads: ( => current thread )

Other Threads:

=>0x00000000004cd000 (exited) JavaThread "Unknown thread" [_thread_in_vm, id=5492, stack(0x0000000002470000,0x0000000002570000)]

VM state:not at safepoint (not fully initialized)

VM Mutex/Monitor currently owned by a thread: None

GC Heap History (0 events):
No events

Deoptimization events (0 events):
No events

Internal exceptions (0 events):
No events

Events (10 events):
Event: 0.008 loading class 0x0000000002260750 done
Event: 0.008 loading class 0x0000000002222b90 done
Event: 0.008 loading class 0x0000000002222b60
Event: 0.008 loading class 0x00000000022b0a80
Event: 0.008 loading class 0x00000000022b0a80 done
Event: 0.008 loading class 0x00000000022b0ac0
Event: 0.008 loading class 0x00000000022b0ac0 done
Event: 0.008 loading class 0x00000000022b2c40
Event: 0.008 loading class 0x00000000022b2c40 done
Event: 0.008 loading class 0x0000000002222b60 done

Dynamic libraries:
0x000000013f250000 - 0x000000013f283000 C:\Program Files\Java\jre7\bin\javaw.exe
0x0000000077210000 - 0x00000000773b9000 C:\windows\SYSTEM32\ntdll.dll
0x00000000770f0000 - 0x000000007720f000 C:\windows\system32\kernel32.dll
0x000007fefd0b0000 - 0x000007fefd11b000 C:\windows\system32\KERNELBASE.dll
0x000007fefd780000 - 0x000007fefd85b000 C:\windows\system32\ADVAPI32.dll
0x000007feff140000 - 0x000007feff1df000 C:\windows\system32\msvcrt.dll
0x000007fefefa0000 - 0x000007fefefbf000 C:\windows\SYSTEM32\sechost.dll
0x000007fefee70000 - 0x000007fefef9d000 C:\windows\system32\RPCRT4.dll
0x0000000076ff0000 - 0x00000000770ea000 C:\windows\system32\USER32.dll
0x000007fefd420000 - 0x000007fefd487000 C:\windows\system32\GDI32.dll
0x000007feff1e0000 - 0x000007feff1ee000 C:\windows\system32\LPK.dll
0x000007fefde40000 - 0x000007fefdf09000 C:\windows\system32\USP10.dll
0x000007fefbbd0000 - 0x000007fefbdc4000 C:\windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_fa396087175ac9ac\COMCTL32.dll
0x000007fefdb50000 - 0x000007fefdbc1000 C:\windows\system32\SHLWAPI.dll
0x000007fefde00000 - 0x000007fefde2e000 C:\windows\system32\IMM32.DLL
0x000007fefda40000 - 0x000007fefdb49000 C:\windows\system32\MSCTF.dll
0x0000000071a70000 - 0x0000000071b41000 C:\Program Files\Java\jre7\bin\msvcr100.dll
0x000000005d370000 - 0x000000005da8f000 C:\Program Files\Java\jre7\bin\server\jvm.dll
0x000007fef9bf0000 - 0x000007fef9bf9000 C:\windows\system32\WSOCK32.dll
0x000007fefee20000 - 0x000007fefee6d000 C:\windows\system32\WS2_32.dll
0x000007fefde30000 - 0x000007fefde38000 C:\windows\system32\NSI.dll
0x000007fefa1e0000 - 0x000007fefa21b000 C:\windows\system32\WINMM.dll
0x00000000773d0000 - 0x00000000773d7000 C:\windows\system32\PSAPI.DLL
0x0000000071d80000 - 0x0000000071d8f000 C:\Program Files\Java\jre7\bin\verify.dll
0x0000000071d50000 - 0x0000000071d78000 C:\Program Files\Java\jre7\bin\java.dll
0x000000006b510000 - 0x000000006b525000 C:\Program Files\Java\jre7\bin\zip.dll

VM Arguments:
jvm_args: -Dfile.encoding=Cp1252 -Xbootclasspath:C:\Android\adt-bundle-windows-x86_64-20130522\sdk\platforms\android-17\android.jar
java_command: org.eclipse.jdt.internal.junit.runner.RemoteTestRunner -version 3 -port 64101 -testLoaderClass org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader -loaderpluginname org.eclipse.jdt.junit4.runtime -classNames com.karen.mygdxgame.BobTest
Launcher Type: SUN_STANDARD

Environment Variables:
CLASSPATH=.;C:\Program Files (x86)\Java\jre7\lib\ext\QTJava.zip
PATH=C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Rational\common;C:\Program Files\Java\jdk1.7.0_17\bin;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;C:\PROGRAM FILES\OPENOFFICE.ORG 3\URE\BIN; C:\PROGRAM FILES (X86)\OPENOFFICE.ORG 3\URE\BIN
PROCESSOR_IDENTIFIER=AMD64 Family 16 Model 4 Stepping 3, AuthenticAMD

--------------- S Y S T E M ---------------

OS: Windows 7 , 64 bit Build 7601 Service Pack 1

CPU:total 4 (4 cores per cpu, 1 threads per core) family 16 model 4 stepping 3, cmov, cx8, fxsr, mmx, sse, sse2, sse3, popcnt, mmxext, 3dnowpref, lzcnt, sse4a, tsc, tscinvbit, tscinv

Memory: 4k page, physical 8383888k(5570364k free), swap 16765916k(13314516k free)

vm_info: Java HotSpot(TM) 64-Bit Server VM (23.7-b01) for windows-amd64 JRE (1.7.0_17-b02), built on Mar 1 2013 03:38:30 by "java_re" with unknown MS VC++:1600

time: Wed Mar 12 16:19:33 2014
elapsed time: 0 seconds

Posts: 42975
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seems more like a JVM problem than an Android problem. While I have no knowledge of this issue in particular, I note that you seem to be using an outdated Java version (7.0_17 - the current one is 7.0_51). So I would start by updating that.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!