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 165264 - AssertionError at org.openide.util.lookup.ProxyLookup.getData
Summary: AssertionError at org.openide.util.lookup.ProxyLookup.getData
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Lookup (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Jaroslav Tulach
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-15 12:01 UTC by Alexander Simon
Modified: 2009-05-18 16:53 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 151219


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2009-05-15 12:01:17 UTC
Build: NetBeans IDE Dev (Build 090515)
VM: Java HotSpot(TM) Client VM, 11.0-b16, Java(TM) SE Runtime Environment, 1.6.0_11-b03
OS: SunOS, 5.10, x86
User comments: 
STACKTRACE: (first 10 lines)
org.openide.util.RequestProcessor$Item: task failed: java.lang.AssertionError
        at org.openide.util.RequestProcessor$Item.fillInStackTrace(RequestProcessor.java:853)
        at java.lang.Throwable.<init>(Throwable.java:181)
        at java.lang.Exception.<init>(Exception.java:29)
        at org.openide.util.RequestProcessor$Item.<init>(RequestProcessor.java:819)
        at org.openide.util.RequestProcessor$Task.schedule(RequestProcessor.java:629)
        at org.openide.util.RequestProcessor.post(RequestProcessor.java:295)
        at org.openide.util.RequestProcessor.post(RequestProcessor.java:266)
        at org.netbeans.modules.cnd.modelimpl.trace.TraceXRef.traceProjectRefsStatistics(TraceXRef.java:285)
        at
org.netbeans.modules.cnd.modelui.trace.TestProjectReferencesAction.testProject(TestProjectReferencesAction.java:181)
        at
org.netbeans.modules.cnd.modelui.trace.TestProjectReferencesAction.performAction(TestProjectReferencesAction.java:157)
Comment 1 Vladimir Voskresensky 2009-05-17 09:27:44 UTC
nothing wrong on CND side. May be editor team can evaluate? because assert is from
at org.netbeans.modules.editor.mimelookup.impl.SwitchLookup.lookup(SwitchLookup.java:99) 
see 
http://statistics.netbeans.org/exceptions/detail.do?id=151219
Comment 2 Vitezslav Stejskal 2009-05-18 11:46:08 UTC
Umm, something strange going on in ProxyLookup. I'll leave it for Jarda to figure out under what circumstances this
assertion can be thrown. I don't see it.
Comment 3 Jaroslav Tulach 2009-05-18 16:53:24 UTC
A bug in JDK I guess. What else could lead code like following example to failure?:

        synchronized (ProxyLookup.this) {
            tmpLkps = getData().getLookups(false);
        }
    private ImmutableInternalData getData() {
        assert Thread.holdsLock(this);
        return data;
    }

info about JDK:

  Operating System        = SunOS version 5.10 running on x86
  Java; VM; Vendor        = 1.6.0_11; Java HotSpot(TM) Client VM 11.0-b16; Sun Microsystems Inc.
  Runtime                 = Java(TM) SE Runtime Environment 1.6.0_11-b03
  Java Home               = /usr/jdk/instances/jdk1.6.0_11/jre
Compiler: HotSpot Client Compiler
Heap memory usage: initial 32.0MB maximum 1488.5MB
Non heap memory usage: initial 54.0MB maximum 252.0MB
Garbage collector: Copy (Collections=204 Total time spent=0s)
Garbage collector: MarkSweepCompact (Collections=0 Total time spent=0s)
Classes: loaded=6580 total loaded=6580 unloaded 0