TwitNotes – deploying in Sametime

Deploying the TwitNotes shelfView (aka sidebar) component in Sametime 7.5.1/8.0 yields a nasty stacktrace from the underlying platform. I thought everything should work across both platforms with everything based on XPD. I haven taken care not to rely on Notes 8 API’s such as the topology service but I guess that would yield a bundle dependency issue and not a stacktrace like this.

Anyone seen similar?

java.lang.NullPointerException: The active part must not be null
        at org.eclipse.ui.internal.expressions.ActivePartExpression.(Unknown Source)
        at org.eclipse.ui.internal.PartSite.initializeDefaultServices(Unknown Source)
        at org.eclipse.ui.internal.PartSite.(Unknown Source)
        at org.eclipse.ui.internal.ViewSite.(Unknown Source)
        at com.ibm.rcp.ui.internal.shelf.ShelfViewReference.createPartHelper(Unknown Source)
        at com.ibm.rcp.ui.internal.shelf.ShelfViewReference.createPart(Unknown Source)
        at org.eclipse.ui.internal.WorkbenchPartReference.getPart(Unknown Source)
        at com.ibm.rcp.ui.shelf.ShelfPage.activatePart(Unknown Source)
        at com.ibm.rcp.ui.shelf.ShelfPage.access$10(Unknown Source)
        at com.ibm.rcp.ui.shelf.ShelfPage$7.handleEvent(Unknown Source)
        at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
        at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
        at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
        at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
        at org.eclipse.swt.widgets.Widget.notifyListeners(Unknown Source)
        at com.ibm.rcp.swt.swidgets.SViewForm.internalSetMaximized(Unknown Source)
        at com.ibm.rcp.swt.swidgets.SViewForm.setMaximized(Unknown Source)
        at com.ibm.rcp.swt.swidgets.SViewForm.onMouseUpTitle(Unknown Source)
        at com.ibm.rcp.swt.swidgets.SViewForm.onMouseUp(Unknown Source)
        at com.ibm.rcp.swt.swidgets.SViewForm$4.handleEvent(Unknown Source)
        at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
        at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
        at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Unknown Source)
        at org.eclipse.ui.internal.Workbench.runUI(Unknown Source)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Unknown Source)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Unknown Source)
        at com.ibm.rcp.personality.framework.internal.RCPApplication.run(Unknown Source)
        at org.eclipse.core.internal.runtime.PlatformActivator$1.run(Unknown Source)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
        at java.lang.reflect.AccessibleObject.invokeL(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
        at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
        at org.eclipse.core.launcher.Main.run(Main.java:977)
        at com.ibm.rcp.core.internal.launcher.Main.startLaunch(Main.java:895)
        at com.ibm.rcp.core.internal.launcher.Main.main(Main.java:1313)
        at java.lang.reflect.AccessibleObject.invokeV(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.ibm.oti.vm.JarRunner.main(Unknown Source)

3 thoughts on “TwitNotes – deploying in Sametime”

  1. IM’ed with Carl Tyler about this yesterday and he had a couple of ideas I’m going to try out. For one it appears that ST 7.5.1 is Eclipse based where as ST 8.0 is XPD based. Also ST 7.5.1 is on Java 1.4 whereas ST 8.0 is on Java 1.5. TwitNotes uses generics which is a Java 1.5 thing butt hat doesn’t explain the exception in ST 8.0 as well.

    I’m going to look at the OSGi console to see if it yields more info.

    Like

  2. Hey Mikkel,

    ever solved this? I have written a sametime plugin myself, recently updated to work well with sametime 8.01. I tried it with sametime 7.5.1 (before my updates it worked with 7.5.1), but I get the same stacktrace as the posted one above.

    CU, Dirk

    Like

  3. To be honest I never really looked into it again but I’m suspecting that it is caused by a java.lang.RuntimeException (or subclass) somewhere early when loading the plug-in. I would start by doing a very simple plug-in and installing that to see whether it sheds light on the issue. You might want to use my testplugins if you need some very simple plugins.

    https://lekkimworld.com/2009/02/17/the_stuff_you_need_to_test_plug_in_deployment_in_notes_8.html

    Like

Comments are closed.