Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » scout » Can not create a new page
Can not create a new page [message #1741847] Tue, 30 August 2016 07:13 Go to next message
xiang yz is currently offline xiang yzFriend
Messages: 12
Registered: August 2016
Junior Member
HI, everyone. Dose anyone run into the same problem? I am using ctrl+N to create a new page, after I input the page name and click the finish button, I get the error message.
  • Attachment: message.png
    (Size: 62.27KB, Downloaded 67 times)

[Updated on: Tue, 30 August 2016 07:16]

Report message to a moderator

Re: Can not create a new page [message #1741849 is a reply to message #1741847] Tue, 30 August 2016 07:24 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1242
Registered: October 2011
Senior Member
This is really strange. Have you selected your "client" project when you press ctrl+N?

index.php/fa/26916/0/

I guess we need more information about your setup in order to be able to reproduce the problem.
  • Attachment: NewPage.png
    (Size: 50.04KB, Downloaded 128 times)
Re: Can not create a new page [message #1741852 is a reply to message #1741849] Tue, 30 August 2016 07:51 Go to previous messageGo to next message
xiang yz is currently offline xiang yzFriend
Messages: 12
Registered: August 2016
Junior Member
yes, I have. I got the error message, after I chose the super class "AbstractPage".
Re: Can not create a new page [message #1741856 is a reply to message #1741852] Tue, 30 August 2016 08:05 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1242
Registered: October 2011
Senior Member
I could reproduce your problem, this is a bug in the Scout SDK.

My guess is the only possible "Super Class" are:
* AbstractPageWithNodes
* AbstractPageWithTable

If you really need to create a page extending "AbstractPage", you can create one extending "AbstractPageWithNodes" with the wizard and then change it to "AbstractPage" in your code.

May I ask what is your use case?

Here the stacktrace in the Console Log:
[SEVERE]: 
java.lang.NullPointerException
	at org.eclipse.scout.sdk.core.s.sourcebuilder.page.PageSourceBuilder.setup(PageSourceBuilder.java:114)
	at org.eclipse.scout.sdk.s2e.operation.page.PageNewOperation.createPageBuilder(PageNewOperation.java:237)
	at org.eclipse.scout.sdk.s2e.operation.page.PageNewOperation.createPage(PageNewOperation.java:242)
	at org.eclipse.scout.sdk.s2e.operation.page.PageNewOperation.run(PageNewOperation.java:122)
	at org.eclipse.scout.sdk.s2e.job.ResourceBlockingOperationJob.run(ResourceBlockingOperationJob.java:104)
	at org.eclipse.scout.sdk.s2e.job.AbstractResourceBlockingJob.doRun(AbstractResourceBlockingJob.java:87)
	at org.eclipse.scout.sdk.s2e.job.AbstractResourceBlockingJob.run(AbstractResourceBlockingJob.java:75)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.lang.Exception: Job scheduled by:
	at org.eclipse.scout.sdk.s2e.job.AbstractResourceBlockingJob.shouldSchedule(AbstractResourceBlockingJob.java:67)
	at org.eclipse.core.internal.jobs.InternalJob.schedule(InternalJob.java:381)
	at org.eclipse.core.runtime.jobs.Job.schedule(Job.java:641)
	at org.eclipse.scout.sdk.s2e.ui.internal.wizard.page.PageNewWizard.schedulePageCreation(PageNewWizard.java:139)
	at org.eclipse.scout.sdk.s2e.ui.internal.wizard.page.PageNewWizard.schedulePageCreation(PageNewWizard.java:74)
	at org.eclipse.scout.sdk.s2e.ui.internal.wizard.page.PageNewWizard.performFinish(PageNewWizard.java:150)
	at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:790)
	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:423)
	at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:618)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:249)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4410)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4228)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3816)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:818)
	at org.eclipse.jface.window.Window.open(Window.java:794)
	at org.eclipse.ui.internal.handlers.WizardHandler$New.executeHandler(WizardHandler.java:269)
	at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:290)
	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:295)
	at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:54)
	at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:282)
	at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:264)
	at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
	at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:152)
	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:494)
	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:488)
	at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210)
	at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:353)
	at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:155)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:565)
	at org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java:397)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4410)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4228)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3816)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:687)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:604)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
Re: Can not create a new page [message #1741859 is a reply to message #1741856] Tue, 30 August 2016 08:40 Go to previous messageGo to next message
xiang yz is currently offline xiang yzFriend
Messages: 12
Registered: August 2016
Junior Member
Thanks.
I don't need to create a page extending "AbstractPage" right now. I am new to the Eclipse Scout, I got the error when I was doing some tests.
Re: Can not create a new page [message #1741888 is a reply to message #1741859] Tue, 30 August 2016 12:44 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1242
Registered: October 2011
Senior Member
I really enjoy that you are reporting your findings on the forum. Please continue!

If you are new to scout, I guess that a good starting point is the Eclipse Scout Beginners Guide. In particular:
* "Hello World" Tutorial
* "One Day" Tutorial

Re: Can not create a new page [message #1742645 is a reply to message #1741847] Tue, 06 September 2016 10:23 Go to previous message
Matthias Villiger is currently offline Matthias VilligerFriend
Messages: 112
Registered: September 2011
Senior Member
Hi Xiang & Jérémie

I created Bug 500906 to track this issue.

This bug should be fixed with Neon.1 RC3. This build should be available by the end of this week.

Thanks for reporting and analyzing this.
Previous Topic:Clearing a wrapped form field
Next Topic:[NEON] Login not working
Goto Forum:
  


Current Time: Sat Jul 29 12:02:17 GMT 2017

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

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