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 226040 - AssertionError at org.netbeans.spi.editor.completion.support.CompletionUtilities.renderHtml
Summary: AssertionError at org.netbeans.spi.editor.completion.support.CompletionUtilit...
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 7.4
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 226464 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-02-13 00:32 UTC by dao
Modified: 2013-03-13 15:47 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 198543


Attachments
stacktrace (4.07 KB, text/plain)
2013-02-13 00:32 UTC, dao
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dao 2013-02-13 00:32:25 UTC
Build: NetBeans IDE Dev (Build 201302112300)
VM: Java HotSpot(TM) Client VM, 23.7-b01, Java(TM) SE Runtime Environment, 1.7.0_13-b20
OS: Windows 7

Stacktrace: 
java.lang.AssertionError
   at org.netbeans.spi.editor.completion.support.CompletionUtilities.renderHtml(CompletionUtilities.java:167)
   at org.netbeans.modules.editor.java.JavaCompletionItem.render(JavaCompletionItem.java:363)
   at org.netbeans.modules.editor.completion.CompletionJList$RenderComponent.paintComponent(CompletionJList.java:364)
   at javax.swing.JComponent.paint(JComponent.java:1054)
   at javax.swing.CellRendererPane.paintComponent(CellRendererPane.java:151)
   at javax.swing.plaf.basic.BasicListUI.paintCell(BasicListUI.java:227)
Comment 1 dao 2013-02-13 00:32:27 UTC
Created attachment 131330 [details]
stacktrace
Comment 2 dao 2013-02-13 01:33:38 UTC
Exception occurs when using Netbeans Metal L&F when switching to Windows L&F anther Exception[1] (already reported) occurs just once then completion works fine.

[1] Exception that occurs with Windows L&F (already reported elsewhere):

java.lang.NoSuchMethodError: org.netbeans.modules.glassfish.spi.ServerUtilities.getAssociatedJavaDoc()[Ljava/lang/String;
	at org.netbeans.modules.glassfish.javaee.ide.Hk2PluginProperties.getJavadocs(Hk2PluginProperties.java:310)
	at org.netbeans.modules.glassfish.javaee.Hk2JavaEEPlatformImpl$2.run(Hk2JavaEEPlatformImpl.java:456)
Caused: org.openide.util.RequestProcessor$SlowItem: task failed due to
	at org.openide.util.RequestProcessor.post(RequestProcessor.java:424)
	at org.netbeans.modules.glassfish.javaee.Hk2JavaEEPlatformImpl.initLibraries(Hk2JavaEEPlatformImpl.java:450)
	at org.netbeans.modules.glassfish.javaee.Hk2JavaEEPlatformImpl.<init>(Hk2JavaEEPlatformImpl.java:116)
	at org.netbeans.modules.glassfish.javaee.Hk2JavaEEPlatformFactory.getJ2eePlatformImpl(Hk2JavaEEPlatformFactory.java:125)
	at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.getJ2eePlatformImpl(ServerInstance.java:347)
	at org.netbeans.modules.j2ee.deployment.devmodules.api.J2eePlatform.create(J2eePlatform.java:281)
	at org.netbeans.modules.j2ee.deployment.devmodules.api.ServerInstance.getJ2eePlatform(ServerInstance.java:147)
	at org.netbeans.modules.glassfish.javaee.JavaEEServerModule.<init>(JavaEEServerModule.java:83)
	at org.netbeans.modules.glassfish.javaee.JavaEEServerModuleFactory.createModule(JavaEEServerModuleFactory.java:165)
	at org.netbeans.modules.glassfish.common.GlassfishInstance.updateFactories(GlassfishInstance.java:1136)
	at org.netbeans.modules.glassfish.common.GlassfishInstance.updateModuleSupport(GlassfishInstance.java:312)
	at org.netbeans.modules.glassfish.common.GlassfishInstanceProvider.init(GlassfishInstanceProvider.java:428)
	at org.netbeans.modules.glassfish.common.GlassfishInstanceProvider.getEe6(GlassfishInstanceProvider.java:135)
	at org.netbeans.modules.glassfish.spi.ServerUtilities.getEe6Utilities(ServerUtilities.java:98)
	at org.netbeans.modules.glassfish.javaee.Hk2OptionalFactory.createEe6(Hk2OptionalFactory.java:89)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	at org.netbeans.core.startup.layers.BinaryFS$AttrImpl$MethodAndParams.invoke(BinaryFS.java:773)
	at org.netbeans.core.startup.layers.BinaryFS$AttrImpl.getValue(BinaryFS.java:703)
	at org.netbeans.core.startup.layers.BinaryFS$BFSBase.getAttribute(BinaryFS.java:549)
	at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:944)
	at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:877)
	at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:940)
	at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:877)
	at org.openide.filesystems.MultiFileObject.getAttribute(MultiFileObject.java:798)
	at org.openide.loaders.InstanceDataObject$Ser.instanceCreate(InstanceDataObject.java:1398)
	at org.openide.loaders.InstanceDataObject.instanceCreate(InstanceDataObject.java:846)
	at org.openide.loaders.FolderLookup$ICItem.getInstance(FolderLookup.java:597)
	at org.openide.util.lookup.AbstractLookup.lookup(AbstractLookup.java:422)
	at org.openide.util.lookup.ProxyLookup.lookup(ProxyLookup.java:223)
	at org.openide.util.lookup.ProxyLookup.lookup(ProxyLookup.java:223)
	at org.netbeans.modules.j2ee.deployment.impl.Server.getOptionalFactory(Server.java:249)
	at org.netbeans.modules.j2ee.deployment.impl.ServerRegistry.init(ServerRegistry.java:160)
	at org.netbeans.modules.j2ee.deployment.impl.ServerRegistry.instancesMap(ServerRegistry.java:184)
	at org.netbeans.modules.j2ee.deployment.impl.ServerRegistry.getInstanceURLs(ServerRegistry.java:291)
	at org.netbeans.modules.j2ee.deployment.plugins.api.InstanceProperties.getInstanceList(InstanceProperties.java:326)
	at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.getServerInstanceIDs(Deployment.java:346)
	at org.netbeans.modules.j2ee.deployment.impl.query.J2eePlatformSourceForBinaryQuery.findSourceRoots2(J2eePlatformSourceForBinaryQuery.java:96)
	at org.netbeans.modules.j2ee.deployment.impl.query.J2eePlatformSourceForBinaryQuery.findSourceRoots(J2eePlatformSourceForBinaryQuery.java:132)
	at org.netbeans.api.java.queries.SourceForBinaryQuery.findSourceRoots(SourceForBinaryQuery.java:96)
	at org.netbeans.api.java.source.SourceUtils.getFile(SourceUtils.java:499)
	at org.netbeans.modules.editor.java.JavaCompletionProvider$JavaCompletionQuery.query(JavaCompletionProvider.java:289)
	at org.netbeans.spi.editor.completion.support.AsyncCompletionTask.run(AsyncCompletionTask.java:223)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1454)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2048)
Comment 3 bjblazko 2013-02-19 09:17:44 UTC
I can confirm this bug and tested at least with nightly builds from Feb 12th and Feb 18th 2013.

It happens with dark theme enabled when attempting to do auto-completion.
I have the following additions in ./etc/netbeans.conf:

--laf Metal -J-Dnetbeans.plaf.dark.theme=true --fontsize 10
Comment 4 bjblazko 2013-02-19 19:06:33 UTC
Can confirm for both OS, GNU/Linux (Ubuntu 12.10) and MacOS Mountain Lion.
Comment 5 Dusan Balek 2013-02-21 14:06:15 UTC
*** Bug 226464 has been marked as a duplicate of this bug. ***
Comment 6 Dusan Balek 2013-03-04 08:16:58 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/b3b0329032b0
Comment 7 Quality Engineering 2013-03-05 01:51:02 UTC
Integrated into 'main-golden', will be available in build *201303042300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/b3b0329032b0
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #226040: AssertionError at org.netbeans.spi.editor.completion.support.CompletionUtilities.renderHtml - fixed.
Comment 8 bjblazko 2013-03-05 11:21:24 UTC
Works perfectly - thank you very much!
Comment 9 rdion 2013-03-05 11:25:51 UTC
Yes works perfect! Thank you!
Is there a way to change the font-colors in the completion window.
Some colors are very dark...
Comment 10 Jiri Prox 2013-03-13 15:47:59 UTC
v.