jonderry
jonderry

Reputation: 23643

NoSuchFieldException when calling com.javabi.sizeof.MemoryUtil.sizeOf() in testng test run with eclipse Juno

I'm using OpenJDK 1.7.0_06-icedtea and get the following exception when calling sizeof when running testng test cases through the eclipse plugin:

FAILED CONFIGURATION: @BeforeMethod setUpBeforeMethod
com.javabi.sizeof.ClassDefinitionInitialisationException: java.lang.NoSuchFieldException: header
at com.javabi.sizeof.ClassDefinitionMap.<init>(ClassDefinitionMap.java:49)
at com.javabi.sizeof.MemoryUtil.sizeOf(MemoryUtil.java:133)
...

Any ideas why this is happening and how to fix it? Per the title, I'm running eclipse Juno, and some other coworkers who are running eclipse Juno have the same problem. Other coworkers have different configurations that work without throwing the exception run the same code.

Upvotes: 0

Views: 228

Answers (1)

S.P.
S.P.

Reputation: 3054

Do you have this in your file?

import com.javabi.sizeof.MemoryUtil;

Second, in JUNO Specify the paths till the above location for the package.

Upvotes: 0

Related Questions