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 - Absent Code attribute in method that is not native or abstract in class file
Summary: Absent Code attribute in method that is not native or abstract in class file
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Yulia Novozhilova
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-27 07:20 UTC by aquaglia
Modified: 2011-08-11 13:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.