Skip to main content

[JAVAHELP] Browser Demo with jh2.0

No replies
Anonymous

Hi Binky,

I have just tried the browser demo using the jh2.0 release, and I'm getting
problems in two areas:

If a Presentation view is defined in the helpset .hs file, the
presentation toolbar items are not displayed (?).
If a Favorites view is defined, I get the following exception:
Java(TM) Plug-in: Version 1.3.1_06
Using JRE version 1.3.1_06 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\ChrisM

Parsing failed for null
Exception caught while parsing
nulljava.security.AccessControlException: access denied
(java.io.FilePermission C:\Documents and
Settings\ChrisM\.JavaHelp\Favorites.xml read)
Exception occurred during event dispatching:
java.lang.NullPointerException
at
javax.help.plaf.basic.BasicFavoritesNavigatorUI.reloadData(BasicFavoritesNavigatorUI.java:290)
at
javax.help.plaf.basic.BasicFavoritesNavigatorUI.installUI(BasicFavoritesNavigatorUI.java:228)
at javax.swing.JComponent.setUI(Unknown Source)
at javax.help.JHelpNavigator.setUI(JHelpNavigator.java:249)
at javax.help.JHelpNavigator.updateUI(JHelpNavigator.java:268)
at javax.help.JHelpNavigator.(JHelpNavigator.java:97)
at
javax.help.JHelpFavoritesNavigator.(JHelpFavoritesNavigator.java:55)
at javax.help.FavoritesView.createNavigator(FavoritesView.java:105)
at javax.help.JHelp.setupNavigators(JHelp.java:140)
at javax.help.JHelp.(JHelp.java:118)
at
javax.help.WindowPresentation.createJHelp(WindowPresentation.java:656)
at
javax.help.WindowPresentation.createHelpWindow(WindowPresentation.java:689)
at
javax.help.WindowPresentation.setDisplayed(WindowPresentation.java:328)
at
javax.help.DefaultHelpBroker.setDisplayed(DefaultHelpBroker.java:178)
at sunw.demo.browser.HelpButton.actionPerformed(HelpButton.java:92)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown
Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown
Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
If the Favorites view is removed, the helpset runs OK.

From the above trace, it would appear that there is a java security
issue with the pluggin applet trying to access the favorites.xml file.
I've tried granting access to the 'User home directory' in the
java.policy file for the Java-Pluggin, but with out success. Is there
any fix for this that you can suggest?

We have been using the browser applet since the first JavaHelp release,
to display helpsets on our Company Intranet and have not had any
problems until now. Any help on this would be appreciated.

Cheers
Chris
====================================================
Chris Morris
Technical Author
SAA Consultants Ltd
http://www.saaconsultants.com
http://www.reims.net
====================================================

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

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.