This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 198114

Summary: Absent Code attribute in method that is not native or abstract in class file
Product: java Reporter: aquaglia <aquaglia>
Component: JUnitAssignee: Yulia Novozhilova <ynov>
Status: RESOLVED INVALID    
Severity: normal    
Priority: P3    
Version: 7.0   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description aquaglia 2011-04-27 07:20:48 UTC
I have this problem only when I run a single unit test.

I can Test the whole project and build it with no problem.

Error message:

Testsuite: eu.europa.ec.inspire.geoportal.ogc.wms.WMSCapabilitiesTest
readInfo
createINSPIREResource
Tests run: 2, Failures: 0, Errors: 1, Time elapsed: 0.093 sec

------------- Standard Output ---------------
readInfo
createINSPIREResource
------------- ---------------- ---------------
Testcase: testUpdateINSPIREResource(eu.europa.ec.inspire.geoportal.ogc.wms.WMSCapabilitiesTest):	Caused an ERROR
Absent Code attribute in method that is not native or abstract in class file eu/europa/ec/inspire/geoportal/exception/MetadataTransformationException
java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file eu/europa/ec/inspire/geoportal/exception/MetadataTransformationException
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
	at java.security.SecureClassLoader.defineClass(Se
Test eu.europa.ec.inspire.geoportal.ogc.wms.WMSCapabilitiesTest FAILED
test:
Deleting: C:\DOCUME~1\quaglan\LOCALS~1\Temp\TEST-eu.europa.ec.inspire.geoportal.ogc.wms.WMSCapabilitiesTest.xml
BUILD SUCCESSFUL (total time: 32 seconds)
Comment 1 aquaglia 2011-04-28 08:36:01 UTC
It has gone away.
It must have been a data corruption within the compiled classes.
Sorry about this one.