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

Bug 195026

Summary: Creating new report from Sequence diagram throws null pointer
Product: z_Archived Reporter: Praful Rajawat <prafulr>
Component: TPTP.monitoringAssignee: Yasuhisa Gotoh <gotohy>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P1 CC: apnan, jkubasta, labadie, smith
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard: closed460
Attachments:
Description Flags
Patch file none

Description Praful Rajawat CLA 2007-06-30 12:36:43 EDT
Build ID: tptp.sdk-TPTP-4.4.0-200706140100C

Steps To Reproduce:
1.Start RCP
2.Setup for large log configuration
3.Import Apache HTTP Server access log
4.Create a time correlation for the log
5.Open Sequence Diagram : Log interaction view.
6.Create an new report.
7.Press next.
Following exception get thrown.


More information:
!ENTRY org.eclipse.ui 4 0 2007-06-30 11:23:14.640
!MESSAGE Unhandled event loop exception
!STACK 0
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.WizardDialog.updateForPage(WizardDialog.java:1147)
	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:616)
	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:938)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
	at org.eclipse.jface.window.Window.open(Window.java:796)
	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:545)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
	at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:443)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
	at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at com.ibm.etools.ac.rcp.log.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:533)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:155)
	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:363)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
	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:504)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
Comment 1 Dave Smith CLA 2007-07-04 13:14:47 EDT
Praful, does the report get generated or does the operation fail because of this NPE?
Comment 2 Praful Rajawat CLA 2007-07-04 13:35:11 EDT
Yes, operation fail.
Comment 3 Dave Smith CLA 2007-07-04 16:31:53 EDT
Increasing severity and priority but this is not a stop ship issue for TPTP 4.4 so targetting to 4.4.1.  A workaround is to import the log without large log support and print a report.

Eugene, please add a readme item to the 4.4.0 release notes for this problem.
Comment 4 Eugene Chan CLA 2007-07-05 13:45:17 EDT
Readme entry submitted to CVS HEAD for 4.4 release.
Comment 5 Dave Smith CLA 2007-08-01 12:34:03 EDT
Targetting to future because it is not a high priority for consumers.
Comment 6 Eric Labadie CLA 2007-08-09 16:56:46 EDT
This is required from AC perspective.
Comment 7 Alex Nan CLA 2007-10-30 20:03:03 EDT
Targetting 4.5 i2.
Comment 8 Alex Nan CLA 2007-11-05 18:20:48 EST
Changing target to 4.5 i4.
Comment 9 Yasuhisa Gotoh CLA 2007-11-22 01:35:52 EST
*** Bug 208704 has been marked as a duplicate of this bug. ***
Comment 10 Yasuhisa Gotoh CLA 2007-12-05 07:01:41 EST
Created attachment 84511 [details]
Patch file

Alex, here is the patch.  Please review.

Also the fix appears to be applied to the platform project so I cannot check in the code.  If it is OK, could you check in the patch to CVS?
Comment 11 Alex Nan CLA 2007-12-05 22:18:19 EST
Fix checked in CVS.
Comment 12 Paul Slauenwhite CLA 2009-06-30 10:24:55 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.