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

Bug 346590

Summary: NullPointerException while creating search form
Product: z_Archived Reporter: Philip Heck <phe>
Component: ScoutAssignee: Andreas Hoegger <Andreas.Hoegger>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Andreas.Hoegger, mbk, zimmermann
Version: unspecifiedFlags: zimmermann: indigo+
zimmermann: juno+
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
sdk screenshot
none
Patch Proposal zimmermann: iplog+

Description Philip Heck CLA 2011-05-20 03:32:32 EDT
I get a NullPointerException when I try to add a search form to an existing table page (right click on the table page - create search form).


eclipse.buildId=I20110428-0848
java.version=1.6.0_23
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE Framework arguments:  -product org.eclipse.epp.package.scout.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.scout.product

Error
Thu May 19 17:40:55 CEST 2011
org.eclipse.scout.sdk.ui.wizard.form.SearchFormNewWizard.performFinish(Unknown Source)
	exception during perfoming finish of wizard.

java.lang.NullPointerException
	at org.eclipse.jdt.internal.core.Region.getAncestors(Region.java:78)
	at org.eclipse.jdt.internal.core.Region.contains(Region.java:55)
	at org.eclipse.jdt.internal.core.Region.add(Region.java:42)
	at org.eclipse.scout.sdk.ScoutSdk.getLocalTypeHierarchy(Unknown Source)
	at org.eclipse.scout.sdk.internal.typestructure.StructuredType.<init>(Unknown Source)
	at org.eclipse.scout.sdk.workspace.type.SdkTypeUtility.createStructuredForm(Unknown Source)
	at org.eclipse.scout.sdk.operation.form.SearchFormFromTablePageFillOperation.run(Unknown Source)
	at org.eclipse.scout.sdk.operation.form.SearchFormNewOperation.run(Unknown Source)
	at org.eclipse.scout.sdk.ui.wizard.form.SearchFormNewWizard.performFinish(Unknown Source)
	at org.eclipse.scout.sdk.ui.wizard.AbstractWorkspaceWizard$P_PerformFinishOperation.run(Unknown Source)
	at org.eclipse.scout.sdk.jobs.OperationJob.run(Unknown Source)
	at org.eclipse.scout.sdk.jobs.AbstractWorkspaceBlockingJob.doRun(Unknown Source)
	at org.eclipse.scout.sdk.jobs.AbstractWorkspaceBlockingJob.run(Unknown Source)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Comment 1 Marcel Burkhard CLA 2011-05-24 06:05:10 EDT
void startSearch() is missing in [PROJECT]/client/ui/searchforms/[SEARCHFORM].java
Comment 2 Marcel Burkhard CLA 2011-05-24 06:08:16 EDT
It seems, that the error I encounter is not the same as Philip's.

Mine results in a corrupt search form (see comment before).

!ENTRY org.eclipse.ui 4 4 2011-05-24 09:52:27.434
!MESSAGE Referenced part does not exist yet: eclipse.org.minicrm.ui.swt.views.TablePageView.

!ENTRY org.eclipse.core.jobs 4 2 2011-05-24 10:02:56.601
!MESSAGE An internal error occurred during: "Busy in 300ms".
!STACK 0
java.lang.NullPointerException
	at org.eclipse.scout.commons.logger.internal.eclipse.EclipseLogWrapper.logImpl(Unknown Source)
	at org.eclipse.scout.commons.logger.internal.AbstractScoutLogger.log(Unknown Source)
	at org.eclipse.scout.commons.logger.internal.AbstractScoutLogger.warn(Unknown Source)
	at org.eclipse.scout.rt.ui.swt.AbstractSwtEnvironment.getDisplay(Unknown Source)
	at org.eclipse.scout.rt.ui.swt.AbstractSwtEnvironment$4.run(Unknown Source)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

!ENTRY org.eclipse.core.jobs 2 2 2011-05-24 10:02:57.043
!MESSAGE Job found still running after platform shutdown.  Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.progress.TaskBarProgressManager$2
Job found still running after platform shutdown.  Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.ui.internal.progress.TaskBarProgressManager$2
Comment 3 Andreas Hoegger CLA 2011-05-24 10:03:43 EDT
Resolved in Indigo RC2
Comment 4 Andreas Hoegger CLA 2011-05-27 06:09:44 EDT
*** Bug 347420 has been marked as a duplicate of this bug. ***
Comment 5 Marcel Burkhard CLA 2011-05-30 03:58:28 EDT
(In reply to comment #3)
> Resolved in Indigo RC2
Installed RC2 Package from: http://www.eclipse.org/downloads/index-developer.php
I also created a new workspace but I'm still getting the same error
Comment 6 Matthias Zimmermann CLA 2011-06-08 03:38:18 EDT
Created attachment 197563 [details]
sdk screenshot
Comment 7 Matthias Zimmermann CLA 2011-06-08 03:42:57 EDT
creation wizard for search form in scout sdk not working properly.

steps to reproduce
1) follow minicrm tutorial up to creation of search form
2) user context menu 'create search form' on 'CompanyTablePage'
3) sdk creates the serachform, searchformdata, and link to table page
4) on the serachform an access restriction error occurs (see attached screenshot)

workaround:
- choose quick fix suggested according to the screenshot
Comment 8 Marcel Burkhard CLA 2011-07-07 09:04:44 EDT
The search dialog produces another error when using the workaround.
Comment 9 Matthias Villiger CLA 2011-08-31 04:09:20 EDT
Created attachment 202486 [details]
Patch Proposal
Comment 10 Andreas Hoegger CLA 2011-09-07 10:21:09 EDT
patch applied on head and indigo sp1.
Thank you Matthias.
Comment 11 Matthias Zimmermann CLA 2011-10-11 03:07:35 EDT
fixed for scout 3.7.1
Comment 12 Matthias Zimmermann CLA 2011-10-11 03:08:00 EDT
shipped with 3.7.1
Comment 13 Matthias Zimmermann CLA 2011-10-11 11:52:40 EDT
removed iplog flag from ticket and added iplog flag to attachment