Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 342000

Summary: I want to export My plugin in a Workbench in order to get a new splashHandler
Product: [Eclipse Project] PDE Reporter: abaza <ali.abaza>
Component: UIAssignee: PDE-UI-Inbox <pde-ui-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: remy.suen
Version: 4.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description abaza CLA 2011-04-06 06:48:52 EDT
Build Identifier: 20110218-0911

Steps executed to create the plugin:
wizard "create plugin project" with extension "org.eclipse.ui.splashHandlers" and a Class called "org.eclipse.coclico.wp5.mapage.splashHandlers.InteractiveSplashHandler"

The Plugin is executed perfectly when runned from the "run configuration" menu as an eclipse workbench application with a splashscreen handler with id authentication layout.

The problem is raised when I try to export the plugin using the "deployable plugins and fragments" option in the export menu. In fact after exporting the plugin as a jar file and copying it in the "plugins" directory of the eclipse workbench and launching eclipse... I get the standard eclipse splash screen without any authentication and login layout with the new "splash.bmp" I created in the plugin project.

To resolve the problem I tried to implement the "IStartup" interface in the "InteractiveSplashHandler" class but without success. I had added the code below to the startup method but an error is raised when exetuded the test.

public void earlyStartup() {
		// TODO Auto-generated method stub
		configureUISplash();


To get the plugin you can go to the URL : https://forge.projet-coclico.org/frs/?group_id=11&release_id=17#wp5-1-0-0-qualifier-title-content

Reproducible: Always

Steps to Reproduce:
1.build a plugin project using the extension "splashHandlers" with login identification/authentification and apply it for a eclipse workbench application type
2. export the plugin as a jar file for example and copy it in the plugins directory of an eclipse (or dropins directory of eclipse workbench)
3. launch eclipse and try to reproduce the identification splash screen
Comment 1 abaza CLA 2011-04-06 07:51:03 EDT
Errors when executing using "IStartup" interface implementation in "InteractiveSplashHandler" class:

Hello World!
!SESSION 2011-04-06 11:45:14.604 -----------------------------------------------
eclipse.buildId=M20110210-1200
java.version=1.6.0_24
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=fr_FR
Framework arguments:  -product org.eclipse.platform.ide
Command-line arguments:  -product org.eclipse.platform.ide -data D:\Bull\workplace\workspace\coclico/../runtime-EclipseApplication -dev file:D:/Bull/workplace/workspace/coclico/.metadata/.plugins/org.eclipse.pde.core/Eclipse Application/dev.properties -os win32 -ws win32 -arch x86 -consoleLog

!ENTRY org.eclipse.ui.workbench 4 2 2011-04-06 11:45:25.667
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
!STACK 0
java.lang.NullPointerException
	at org.eclipse.coclico.wp5.mapage.splashHandlers.InteractiveSplashHandler.configureUISplash(InteractiveSplashHandler.java:363)
	at org.eclipse.coclico.wp5.mapage.splashHandlers.InteractiveSplashHandler.earlyStartup(InteractiveSplashHandler.java:371)
	at org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup(EarlyStartupRunnable.java:87)
	at org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartupRunnable.java:66)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.ui.internal.Workbench$59.run(Workbench.java:2409)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

!ENTRY org.eclipse.ui 4 4 2011-04-06 11:45:25.683
!MESSAGE Unhandled Exception

!ENTRY org.eclipse.coclico.wp5.MaPage 4 0 2011-04-06 11:45:25.683
!MESSAGE Unable to execute early startup code for an extension
!STACK 0
java.lang.NullPointerException
	at org.eclipse.coclico.wp5.mapage.splashHandlers.InteractiveSplashHandler.configureUISplash(InteractiveSplashHandler.java:363)
	at org.eclipse.coclico.wp5.mapage.splashHandlers.InteractiveSplashHandler.earlyStartup(InteractiveSplashHandler.java:371)
	at org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup(EarlyStartupRunnable.java:87)
	at org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartupRunnable.java:66)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.ui.internal.Workbench$59.run(Workbench.java:2409)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Comment 2 Eclipse Genie CLA 2019-08-02 20:11:03 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.