This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 84844 - Regression:Cannot print by clicking on the print icon in the JavaHelp Viewer
Summary: Regression:Cannot print by clicking on the print icon in the JavaHelp Viewer
Status: VERIFIED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Help System (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: mslama
URL:
Keywords: JDK_SPECIFIC
Depends on:
Blocks:
 
Reported: 2006-09-13 22:03 UTC by Ch Nguyen
Modified: 2008-12-22 15:47 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (4.01 KB, application/octet-stream)
2006-09-13 22:12 UTC, Ch Nguyen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ch Nguyen 2006-09-13 22:03:40 UTC
Visual Web Pack Build 060905_7 (or the latest) w/ NetBeans Build 20060908
WinXP
JDK 1.6.0-rc-b98

Steps to reproduce:
1. Using Visual Web Pack installation instructions in the README at this
location http://clue.sfbay/kits/rave/main/latest/pack_installers;  All the
binaries needed for installation are under this location (e.g. NetBeans, Visual
Web Pack and GlassFish, etc).  However for this particular scenario, you don't
need to install GlassFish.
2. Start Netbeans: $installDir\bin\netbeans
3. Create a Web project with "Visual Web Application" category and select J2EE
1.4 as the J2EE project type
4. After the project is open, click on Dynamic Help tab window on the right hand
side
5. select any topic  to bring up the JavaHelp viewer and press print icon in the
JavaHelp viewer window
6. ok print dialog for installed printer OK

>>get UnexpectedException Dialog (see NPE below) but OK will not dismiss the

 dialog, nor will Show details button work. CAnnot dismiss dialog or close down IDE.
 Need to kill IDE via taskmgr.

 
  From the log:

java.lang.NullPointerException
        at java.awt.Window.updateChildFocusableWindowState(Window.java:858)
        at java.awt.Window.show(Window.java:844)
        at java.awt.Component.show(Component.java:1419)
        at java.awt.Component.setVisible(Component.java:1372)
        at java.awt.Window.setVisible(Window.java:801)
        at
com.sun.java.help.impl.JHelpPrintHandler$JHPrintable.createTransforms(JHelpPrintHandler.java:566)
        at
com.sun.java.help.impl.JHelpPrintHandler$JHPrintable.getNumberOfPages(JHelpPrintHandler.java:535)
        at
com.sun.java.help.impl.JHelpPrintHandler$JHPageable.getNumberOfPages(JHelpPrintHandler.java:891)
        at sun.awt.windows.WPrinterJob.getMaxPageAttrib(WPrinterJob.java:1532)
        at sun.awt.windows.WPrinterJob.getToPageAttrib(WPrinterJob.java:1507)
        at sun.awt.windows.WPrintDialogPeer._show(Native Method)
        at sun.awt.windows.WPrintDialogPeer.access$000(WPrintDialogPeer.java:16)
        at sun.awt.windows.WPrintDialogPeer$1.run(WPrintDialogPeer.java:48)
[catch] at java.lang.Thread.run(Thread.java:619)

Switched jdk in /etc/netbeans.conf to jdk1.5.0_07 and printing
worked ok. Switching back to jdk1.6.0, got the same hang, so confirming:
this is related to Mustang JDK.
Comment 1 Ch Nguyen 2006-09-13 22:07:21 UTC
See related log file and stack trace in related bugs:
http://bt2ws.central.sun.com/CrPrint?id=6467586
http://bt2ws.central.sun.com/CrPrint?id=6469440

It's important that we have this fixed in NB 5.5.  Thanks.
Comment 2 Ch Nguyen 2006-09-13 22:12:31 UTC
Created attachment 33905 [details]
messages.log
Comment 3 Marian Mirilovic 2006-09-14 08:53:19 UTC
I think this is JDK bug, see 
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6469440
Comment 4 mslama 2006-09-14 09:50:13 UTC
According to latest evalution of issue #6469440 it is problem in JavaHelp. If we
get JavaHelp update with fix we can update it in NB 5.5.
Comment 5 Ch Nguyen 2006-09-15 16:59:23 UTC
Since this is a regression,  I raising the priority so it can be addressed
before NB 5.5 FCS.
Comment 6 mslama 2006-09-18 10:44:54 UTC
Issue against JavaHelp is filed. Closing this issue as WONTFIX. We will update
JavaHelp version used in IDE as soon as fix will be available.
Comment 7 Ch Nguyen 2006-09-19 06:21:29 UTC
I'm confused.  Why did you close this bug while the issue still exists?  If
there is a fix in JavaHelp, you'll need to have the issue open in order to
integrate your changes, right?

I really hope they fix the jdk instead of Javahelp.  That case the issue can be
closed as will not fix.
Comment 8 mslama 2006-09-19 09:00:09 UTC
If bug is in JavaHelp it will not be fixed in JDK. I hope it is clear. We will
communicate with JavaHelp team so as new JavaHelp version will be available we
will update it in NetBeans IDE. We will create separate issue for such task or
if necessary we can reopen this issue. (Simply I was told to close this issue so
I did it.)
Comment 9 Antonin Nebuzelsky 2006-09-19 21:50:50 UTC
> If bug is in JavaHelp it will not be fixed in JDK. I hope it is clear.

If this is not supposed to be fixed in JDK, but in JavaHelp, this should not be
closed as WONTFIX.
Comment 10 Antonin Nebuzelsky 2006-09-27 11:13:12 UTC
Closing as wontfix, because the bugtraq bug 6469440 has been fixed for us on JDK
side (Mustang build b100).

Reporter, please, verify with b100.
Comment 11 Ch Nguyen 2006-09-27 19:26:33 UTC
Our QE had verified that this is now fixed in b100. :-)
Comment 12 Antonin Nebuzelsky 2006-09-28 14:12:15 UTC
Marking as verified.