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 223678 - NoGo for plugin Swingbox Javahelp Viewer
Summary: NoGo for plugin Swingbox Javahelp Viewer
Status: VERIFIED FIXED
Alias: None
Product: updatecenters
Classification: Unclassified
Component: Pluginportal (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: František Mantlík
URL:
Keywords:
: 223715 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-12-11 20:30 UTC by ent38
Modified: 2012-12-19 16:32 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
NB logs. (61.63 KB, application/octet-stream)
2012-12-11 20:35 UTC, ent38
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ent38 2012-12-11 20:30:37 UTC
org.osgi.framework.BundleException at each NB startup

http://plugins.netbeans.org/plugin/45693
Comment 1 ent38 2012-12-11 20:34:22 UTC
I get this exception at each NetBeans startup:

java.lang.NullPointerException
	at org.eclipse.core.internal.net.ProxyManager.getPluggedInAuthenticator(ProxyManager.java:390)
	at org.eclipse.core.internal.net.ProxyManager.registerAuthenticator(ProxyManager.java:383)
	at org.eclipse.core.internal.net.ProxyManager.initialize(ProxyManager.java:284)
	at org.eclipse.core.internal.net.Activator.start(Activator.java:179)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
Caused: org.osgi.framework.BundleException: Exception in org.eclipse.core.internal.net.Activator.start() of bundle org.eclipse.core.net.
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299)
	at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
	at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:268)
	at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
Caused: org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException: An error occurred while automatically activating bundle org.eclipse.core.net (106).
	at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:122)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:462)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
	at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:400)
	at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:35)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:473)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
Caused: java.lang.NoClassDefFoundError: org/eclipse/core/net/proxy/IProxyService
	at org.eclipse.mylyn.internal.commons.net.CommonsNetPlugin.start(CommonsNetPlugin.java:91)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
Caused: org.osgi.framework.BundleException: Exception in org.eclipse.mylyn.internal.commons.net.CommonsNetPlugin.start() of bundle org.eclipse.mylyn.commons.net.
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:389)
	at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1131)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
	at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(EquinoxLauncher.java:271)
	at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(EquinoxLauncher.java:241)
	at org.eclipse.osgi.launch.Equinox.start(Equinox.java:258)
	at org.netbeans.core.netigso.Netigso.start(Netigso.java:187)
	at org.netbeans.NetigsoHandle.startFramework(NetigsoHandle.java:196)
	at org.netbeans.ModuleManager.enable(ModuleManager.java:1180)
	at org.netbeans.ModuleManager.enable(ModuleManager.java:1002)
	at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:340)
	at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:276)
	at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:296)
	at org.netbeans.core.startup.Main.getModuleSystem(Main.java:169)
	at org.netbeans.core.startup.Main.start(Main.java:305)
	at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:123)
[catch] at java.lang.Thread.run(Thread.java:722)


Clean NB installation and profile, NB7.2.1 (full distro) on JDK7u09 (tested on JDK6u37 too) on Windows7 x86_32.

Could you take a look at this ? Thx.
Comment 2 ent38 2012-12-11 20:35:00 UTC
Created attachment 129223 [details]
NB logs.

Added NB logs.
Comment 3 František Mantlík 2012-12-11 21:42:21 UTC
I get the same exception, nevertheless there is no influence on Netbeans or plugin functionality. In my system, the exception is logged in the system log only, no interaction with users takes place.

According to the attached log, the plugin is loaded. If you start Javahelp (press F1), plugin should recognize the component and install Swingbox viewer (appearance of the browsed content should change after a short while). 

Browsing experience with Netbeans Help is not goot because of CSS problems - missing units (px) in style.css used by Netbeans. Plugin is primarily dedicated to be embedded into RCP applications.

When the plugin is embedded into any of my RCP application, the reported exception does not appear. Most probably, it is caused by a conflict with a Netbeans plugin which is part of the full Netbeans installation? I do not use OSGI, so I could not recognize influence on it.
Comment 4 ent38 2012-12-11 21:46:31 UTC
On my test machine, the exception is also displayed in a pop-up window.
This is why I can't validate the plugin.
Comment 5 Jiri Kovalsky 2012-12-12 11:12:56 UTC
*** Bug 223715 has been marked as a duplicate of this bug. ***
Comment 6 Jiri Kovalsky 2012-12-12 11:16:32 UTC
Product Version: NetBeans IDE 7.2.1 (Build 201210100934)
Java: 1.7.0_10-ea; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
System: Linux version 3.0.0-12-generic running on amd64; UTF-8; cs_CZ (nb)
User directory: /home/cesilko/.netbeans/7.2.1
Cache directory: /home/cesilko/.cache/netbeans/7.2.1

I got the same exception. Frantisku, can you please fix it?
Comment 7 František Mantlík 2012-12-14 19:25:04 UTC
The source of the problem was found in duplicate presence of XercesImpl plugin.

New issue was created upstream at the plugin hosting project:

https://code.google.com/p/swingbox-javahelp-viewer/issues/detail?id=1

Proposed solution:

When installing JHelpContentViewerUI, modify JEditorPane creation following these steps:

- Put XercesImpl as provided dependency only, do not include Xerces library with the plugin.

- Create new classloader which combines swingbox-javahelp-viewer module classloader with xerces module class loader and load BrowserPane implementation via reflection with the use of the combined classloader.

- Create BrowserPane instance and plug it into JHelpContentViewer

instead of simple instantiation of BrowserPane.
Comment 8 František Mantlík 2012-12-14 19:45:37 UTC
Fix is available at the upstream source repository:

http://code.google.com/p/swingbox-javahelp-viewer/source/detail?r=d8eab410a66b
Comment 9 František Mantlík 2012-12-14 20:16:43 UTC
Binary at plugins.netbeans.org was replaced with the new version 1.0.1.
Comment 10 ent38 2012-12-14 21:27:46 UTC
New version works fine. Thx for the fix!
Comment 11 Jiri Kovalsky 2012-12-19 16:32:41 UTC
Professional cooperation guys. Thank you!