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

Bug 208704

Summary: Exception when trying to generate a log interactions diagram report in LA RCP
Product: z_Archived Reporter: Alex Nan <apnan>
Component: TPTPAssignee: Yasuhisa Gotoh <gotohy>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P1 Keywords: plan
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard: closed460

Description Alex Nan CLA 2007-11-04 14:17:49 EST
java.lang.NullPointerException
	at org.eclipse.hyades.uml2sd.util.SDPrintDialogUI.<init>(SDPrintDialogUI.java:505)
	at org.eclipse.hyades.uml2sd.internal.reports.PrintSDViewReportPage.createControl(PrintSDViewReportPage.java:41)
	at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:170)
	at org.eclipse.hyades.ui.internal.wizard.HyadesWizard.createPageControls(HyadesWizard.java:93)
	at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:669)
	at org.eclipse.jface.wizard.WizardDialog.setWizard(WizardDialog.java:1083)
	at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:1142)
	at org.eclipse.jface.wizard.WizardDialog.access$2(WizardDialog.java:1139)
	at org.eclipse.jface.wizard.WizardDialog$4.run(WizardDialog.java:1128)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
	at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:1126)
	at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:820)
	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:369)
	at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:621)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1105)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3355)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3002)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
	at org.eclipse.jface.window.Window.open(Window.java:801)
	at org.eclipse.hyades.uml2sd.ui.actions.widgets.OpenReportAction.run(OpenReportAction.java:55)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:580)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:498)
	at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:451)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1105)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3355)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3002)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2395)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2359)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2225)
	at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:468)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:463)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.tptp.platform.rcp.log.internal.Application.run(Unknown Source)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:615)
	at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethod(EclipseAppContainer.java:570)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:195)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:362)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:175)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:615)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:515)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:455)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1193)
Comment 1 Alex Nan CLA 2007-11-04 14:40:14 EST
Gotoh-san please take a look.
Comment 2 Yasuhisa Gotoh CLA 2007-11-04 21:31:38 EST
It appears that org.eclipse.swt.printing.Printer#getDefaultPrinterData() returns null since there is no default printer in the system.

Need further investigation on how to deal with the situation.

Info:
project = org.eclipse.tptp.platform.common.ui
location = /src-uml2sd/org/eclipse/hyades/uml2sd/util/SDPrintDialogUI.java
Comment 3 Alex Nan CLA 2007-11-05 18:05:56 EST
Targetting 4.5 i4.
Comment 4 Yasuhisa Gotoh CLA 2007-11-21 05:24:55 EST
I have noticed that this defect appears to be a dup of bug 195026 since they have the same phenomenon and stack trace.

Alex, what would you think?

If agreed, I will reject this defect and continue to work on bug 195026.
Comment 5 Alex Nan CLA 2007-11-21 10:07:44 EST
Yes, it sounds like. Please mark it as a duplicate.
Comment 6 Yasuhisa Gotoh CLA 2007-11-22 01:35:52 EST

*** This bug has been marked as a duplicate of bug 195026 ***
Comment 7 Paul Slauenwhite CLA 2009-06-30 10:32:54 EDT
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant enhancements/defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement/defect is verified/closed by the Project Lead since the originator of this enhancement/defect has an inactive Bugzilla account and considered to be fixed. If this enhancement/defect is still unresolved and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.