Skip to main content

Printing Problems in JavaHelp 2.0

5 replies [Last post]
rutkowsr
Offline
Joined: 2005-11-21
Points: 0

The OS is SUSE 10.0 with latest updgrades.
JDK is SUN's 1.5.0_03
Help Viewer is HSVIEW
Printing system is CUPS
The IDE is Netbeans 5.0
When the Print ICON is pressed the native print dialogue appears. However, when the Print button is pressed a Null Pointer Exception is thrown. The application does not hang it just doesn't print.
I can print out of the Help Viewer in Netbeans and that appears to be HSVIEW.
Any help or direction would be appreciated.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Richard Rutkowski

No I did not get it fixed. Also, your response is the first that I have
seen from this forum regarding the problem. I have done enough work on
it to believe it is in the JavaHelp System or a switch that I know
nothing about. Our code can print out of a Java application so it
probably is not a problem with the local setup. I noticed also that
when JavaHelp is called from the application, it uses the Applet Viewer
and not HSViewer but I haven't had the time to check that possibllity.

Hope that helps.

Rich Rutkowski

javahelp@JAVADESKTOP.ORG wrote:
> Did you ever get an answer on this or were you able to resolve it?
>
> We are hitting the same problem, and are at the point of planning to hide the Print button in the Toolbar if we can't get it fixed. We had a different printing problem with pre-2.0 JavaHelp (printing infinite pages, mentioned by other Forum users) but now hit this new problem of not being able to print from the applcation with JavaHelp 2.0. (Same as you, we can print from the HSViewer directly but not from the viewer called by the application.)
>
> Any info on what you found out would be greatly appreciated. Please, anyone else chime in if you have info.--Thanks, Vicky
> [Message sent by forum member 'vickyb' (vickyb)]
>
> http://forums.java.net/jive/thread.jspa?messageID=152366
>
> ********************************************************************************
>
> You may leave the list at any time by sending message with no subject and
> "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
> are available at http://archives.java.sun.com/archives/javahelp-interest.html.
> Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.
>
>

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

vickyb
Offline
Joined: 2006-09-12
Points: 0

Did you ever get an answer on this or were you able to resolve it?

We are hitting the same problem, and are at the point of planning to hide the Print button in the Toolbar if we can't get it fixed. We had a different printing problem with pre-2.0 JavaHelp (printing infinite pages, mentioned by other Forum users) but now hit this new problem of not being able to print from the applcation with JavaHelp 2.0. (Same as you, we can print from the HSViewer directly but not from the viewer called by the application.)

Any info on what you found out would be greatly appreciated. Please, anyone else chime in if you have info.--Thanks, Vicky

Roger Brinkley

javahelp@JAVADESKTOP.ORG wrote:
> Did you ever get an answer on this or were you able to resolve it?
>
> We are hitting the same problem, and are at the point of planning to
> hide the Print button in the Toolbar if we can't get it fixed. We had
> a different printing problem with pre-2.0 JavaHelp (printing infinite
> pages, mentioned by other Forum users) but now hit this new problem
> of not being able to print from the applcation with JavaHelp 2.0.
> (Same as you, we can print from the HSViewer directly but not from
> the viewer called by the application.)
>
> Any info on what you found out would be greatly appreciated. Please,
> anyone else chime in if you have info.

The AWT team has a bug logged against them related to a NPE being
thrown. Please post your trail and we can check it. It has to do with an
update to Java 1.5.

BTW, if it works in the hsviewer and doesn't work in your code then it's
is most likely a different JDK that is being used. Please verify.

Binky

********************************************************************************

You may leave the list at any time by sending message with no subject and
"SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@JAVA.SUN.COM. Archives
are available at http://archives.java.sun.com/archives/javahelp-interest.html.
Submit bug reports at http://java.sun.com/cgi-bin/bugreport.cgi.

vickyb
Offline
Joined: 2006-09-12
Points: 0

Hi,
Thanks for quick response. We upgraded to a newer build of our application, and printing from JavaHelp 2.0 print tool button is now working in this build. So, it must have been our build issue and not anything with JavaHelp 2.0.

--Thanks again, Vicky

rutkowsr
Offline
Joined: 2005-11-21
Points: 0

This is an update to the posted problem. The actual problem is not with HSViewer. If I start the HSViewer from the command line and then load one of my Helpsets printing works fine. The problem is JavaHelp from within the application is not loading the HSViewer, it is loading the Applet Viewer. My assumption has been that JavaHelp automatically used the HSViewer and I cannot find information to make that happen. I can start digging into the source files for the HelpBroker to determine how the viewer is selected. I hope I have missed the obvious and can get a quick answer in this Forum and save myself much time.

It is kind of interesting that printing doesn't work from within the Applet Viewer that is part of the JDK, but that is a problem for another day and another project.