Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » NullPointerException in SetPerspective
NullPointerException in SetPerspective [message #870993] Thu, 10 May 2012 13:40 Go to next message
Hugo Herrera is currently offline Hugo HerreraFriend
Messages: 20
Registered: July 2009
Junior Member

I'm using Indigo and JavaSE 1.6 to create a Rap app.

I created an additional plugin which defines a new Perspective.

In the ApplicationWorkbenchWindowAdvisor of the main plugin, the configurer.setShowPerspectiveBar is set to true.

In Run Configurations I added/selected the new bundle.

When I try to switch to the new perspective, i got the following error.

Am I missing something?

	at org.eclipse.ui.internal.WorkbenchPage.setPerspective(
	at org.eclipse.ui.handlers.ShowPerspectiveHandler.openPerspective(
	at org.eclipse.ui.handlers.ShowPerspectiveHandler.openOther(
	at org.eclipse.ui.handlers.ShowPerspectiveHandler.execute(
	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(
	at org.eclipse.core.commands.Command.executeWithChecks(
	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(
	at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(
	at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(
	at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(
	at org.eclipse.swt.widgets.Display.runPendingMessages(
	at org.eclipse.swt.widgets.Display.readAndDispatch(
	at org.eclipse.ui.internal.Workbench.runEventLoop(
	at org.eclipse.ui.internal.Workbench.runUI(
	at org.eclipse.ui.internal.Workbench.access$5(
	at org.eclipse.ui.internal.Workbench$
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(
	at org.vsoft.vmenu.web.Application.start(
	at org.eclipse.rap.ui.internal.application.EntrypointApplicationWrapper.createUI(
	at org.eclipse.rwt.internal.lifecycle.EntryPointManager.createUI(
	at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(
	at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$

Re: NullPointerException in SetPerspective [message #872254 is a reply to message #870993] Tue, 15 May 2012 19:19 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hola Hugo,

our demo bundle org.eclipse.rap.demo contains different perspectives.
The bundle org.eclipse.rap.demo.databinding contributes another
perspective. Maybe you can spot the difference between your application
and this demo? Have you tried your application with RCP?

Saludos, Ralf

Ralf Sternberg

Twitter: @EclipseRAP

Professional services for RAP and RCP?
Re: NullPointerException in SetPerspective [message #876059 is a reply to message #872254] Wed, 23 May 2012 20:31 Go to previous messageGo to next message
Hugo Herrera is currently offline Hugo HerreraFriend
Messages: 20
Registered: July 2009
Junior Member
Hola Ralf,

thanks for your response.

I did another try with a simple sample and it worked.

I will dig a little bit more on mine.

Re: NullPointerException in SetPerspective [message #886766 is a reply to message #876059] Fri, 15 June 2012 15:41 Go to previous messageGo to next message
Agnes Thanbichler is currently offline Agnes ThanbichlerFriend
Messages: 2
Registered: May 2012
Junior Member
Hola Hugo,

did you find out something more on this issue?

Re: NullPointerException in SetPerspective [message #910662 is a reply to message #886766] Mon, 10 September 2012 07:08 Go to previous message
Dmitrij Zavrid is currently offline Dmitrij ZavridFriend
Messages: 1
Registered: September 2012
Junior Member

Had the same issue (rap version 1.5).
Helped to add configurer.setShowCoolBar(true) to resolve the issue.
public class ApplicationWorkbenchWindowAdvisor extends WorkbenchWindowAdvisor {

	public ApplicationWorkbenchWindowAdvisor(IWorkbenchWindowConfigurer configurer) {

	public void preWindowOpen() {
		IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
		// some how cool bar is required for rap to switch perspectives,
		// otherwise - NPE

[Updated on: Mon, 10 September 2012 07:09]

Report message to a moderator

Previous Topic:Java to Java script conversion
Next Topic:[ANN] RAP 1.5M7 published, API changes
Goto Forum:

Current Time: Wed Dec 08 13:12:57 GMT 2021

Powered by FUDForum. Page generated in 0.01375 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top