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 163397 - [67cat] IllegalStateException in code coverage
Summary: [67cat] IllegalStateException in code coverage
Status: RESOLVED FIXED
Alias: None
Product: contrib
Classification: Unclassified
Component: Codecoverage (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Schovanek
URL:
Keywords:
Depends on:
Blocks: 162538
  Show dependency tree
 
Reported: 2009-04-22 14:34 UTC by theshadow27
Modified: 2009-04-25 07:32 UTC (History)
1 user (show)

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 theshadow27 2009-04-22 14:34:48 UTC
When running a project with code coverage enabled, there are many of these exceptions.

java.lang.IllegalStateException: You are trying to access file: emma.properties from the default package. Please see 
http://www.netbeans.org/download/dev/javadoc/org-openide-modules/org/openide/modules/doc-files/classpath.html#default_package
	at org.netbeans.ProxyClassLoader.printDefaultPackageWarning(ProxyClassLoader.java:576)
	at org.netbeans.ProxyClassLoader.getResource(ProxyClassLoader.java:343)
	at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1214)
	at com.vladium.util.ResourceLoader.getResourceAsStream(ResourceLoader.java:103)
	at com.vladium.util.Property.getProperties(Property.java:256)
	at com.vladium.util.Property.getAppProperties(Property.java:116)
	at com.vladium.logging.Logger.<clinit>(Logger.java:569)
	at com.vladium.emma.data.DataFactory.mergeload(DataFactory.java:396)
	at com.vladium.emma.data.DataFactory.load(DataFactory.java:56)
	at org.netbeans.modules.coverage.data.local.CoverageDataFactory.getCoverageData(CoverageDataFactory.java:93)
	at org.netbeans.modules.coverage.actionperformers.ClassMarkupCoverage.run(ClassMarkupCoverage.java:93)
	at org.netbeans.modules.coverage.actionperformers.RefreshProjectOpenedEditors$Refresher.run(RefreshProjectOpenedEditors.java:132)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:300)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:210)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:200)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:195)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:187)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Comment 1 Martin Schovanek 2009-04-22 16:35:31 UTC
emma.class and amma_run.class reside in default package. So I cannot fix the cause of this problem. I can only supress
the warning at ProxyClassLoader.printDefaultPackageWarning() if Jesse permits.

Jesse what is your opinion? Can I exclude the 'emma.properties' and 'emma_default.properties' from the warning like we
do for 'log4j.properties', ... ?
Comment 2 Jesse Glick 2009-04-22 16:44:38 UTC
You can. Please file a request for Emma devs to pick a better location for the properties file, though this might now be
impossible for compatibility reasons. Perhaps it would make sense to suppress the warning for all *.properties due to
the commonness of this convention (for better or worse)?
Comment 3 Martin Schovanek 2009-04-24 17:10:49 UTC
Fixed in web-main by: a16c2bd928a8
Comment 4 Quality Engineering 2009-04-25 07:32:34 UTC
Integrated into 'main-golden', will be available in build *200904250201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/a16c2bd928a8
User: Martin Schovanek <mschovanek@netbeans.org>
Log: #163397 - IllegalStateException in code coverage