[
http://jira.jboss.com/jira/browse/JBIDE-1264?page=all ]
Max Andersen reassigned JBIDE-1264:
-----------------------------------
Assignee: Rob Stryker (was: Max Andersen)
Ok seem like there a couple of NPE's occuring. I caught them by adding a
NullPointerException breakpoint when starting the Seam wizard.
First is in JBossRuntimeWizardFragment.getErrorString(int) which is called by isComplete()
at a time where the controls are not initialized...so I added a null check in getError to
only evaluate if controls are created:
private String getErrorString(int severity) {
if(nameText==null) { // We haven't yet been created so don't know any errors
yet.
return null;
}
if (getRuntime(nameText.getText()) != null) {
return Messages.rwf_NameInUse;
}
The above error is swallowed by WTP for some reason.
The other is similar, a method is called before the composite are initialized so the gives
a NPE:
The stacktrace is:
Thread [main] (Suspended (exception NullPointerException))
JBossServerWizardFragment.enter() line: 357
TaskWizard$3.run() line: 175
UILockListener.doPendingWork() line: 155
UISynchronizer$2.run() line: 126
RunnableLock.run() line: 35
UISynchronizer(Synchronizer).runAsyncMessages(boolean) line: 123
Display.runAsyncMessages(boolean) line: 3296
Display.readAndDispatch() line: 2974
ModalContext$ModalContextThread.block() line: 158
ModalContext.run(IRunnableWithProgress, boolean, IProgressMonitor, Display) line: 326
ClosableWizardDialog(WizardDialog).run(boolean, boolean, IRunnableWithProgress) line:
934
TaskWizard.performFinish() line: 221
ClosableWizardDialog(WizardDialog).finishPressed() line: 742
ClosableWizardDialog.finishPressed() line: 33
ClosableWizardDialog(WizardDialog).buttonPressed(int) line: 373
Dialog$2.widgetSelected(SelectionEvent) line: 616
TypedListener.handleEvent(Event) line: 227
EventTable.sendEvent(Event) line: 66
Button(Widget).sendEvent(Event) line: 1101
Display.runDeferredEvents() line: 3319
Display.readAndDispatch() line: 2971
ClosableWizardDialog(Window).runEventLoop(Shell) line: 820
ClosableWizardDialog(Window).open() line: 796
ServerUIPlugin.showNewServerWizard(Shell, String, String, String) line: 611
ServerUIUtil.showNewServerWizard(Shell, String, String, String) line: 74
SeamProjectWizard$SeamWebProjectFirstPage.launchNewServerWizard(Shell, IDataModel,
String) line: 200
SeamProjectWizard$SeamWebProjectFirstPage.internalLaunchNewServerWizard(Shell,
IDataModel) line: 242
SeamProjectWizard$SeamWebProjectFirstPage$1.widgetSelected(SelectionEvent) line: 170
TypedListener.handleEvent(Event) line: 227
And it happens on a clean workspace.
Create seam project
Create runtime (don't create server)
Create Server - Press Finish and then the NPE occurs.
Create server/runtime via seam wizard gives NPE
-----------------------------------------------
Key: JBIDE-1264
URL:
http://jira.jboss.com/jira/browse/JBIDE-1264
Project: JBoss Tools
Issue Type: Bug
Components: Seam
Affects Versions: 2.0.0.Beta4
Reporter: Max Andersen
Assigned To: Rob Stryker
Priority: Critical
Fix For: 2.0.0.CR1
(I don't know if this is the seam wizard or jboss as wizard failing...)
Pristine and new workspace
New Seam Project Wizard
fill in name
see it complains over runtime missing
create runtime for jb4.2 (for some reason the server is not created)
Create server - select jb4.2 and next ...I get a "NullPointerException" in a
dialog - nothing in the logs.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira