Skip to main content

Search engine strange problem

2 replies [Last post]
Anonymous

I have a different setup for my project. All the files are generated on a PC
and then uploaded to a web server (Apache). The JavaHelp is used in a JAVA
application.

But I have the following problems:
1. When the Java application starts I get an exception:
Exception while creating engine named
com.sun.java.help.search.DefaultSearchEngine for view:
javax.help.SearchView@149105b
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at
javax.help.search.MergingSearchEngine.makeEngine(MergingSearchEngine.java:169)
at javax.help.search.MergingSearchEngine.(MergingSearchEngine.java:63)
at
javax.help.JHelpSearchNavigator.getSearchEngine(JHelpSearchNavigator.java:102)
at javax.help.JHelpSearchNavigator.merge(JHelpSearchNavigator.java:158)
at
javax.help.plaf.basic.BasicSearchNavigatorUI.addSubHelpSets(BasicSearchNavigatorUI.java:265)
at
javax.help.plaf.basic.BasicSearchNavigatorUI.reloadData(BasicSearchNavigatorUI.java:215)
at
javax.help.plaf.basic.BasicSearchNavigatorUI.installUI(BasicSearchNavigatorUI.java:164)
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.JHelpSearchNavigator.(JHelpSearchNavigator.java:58)
at javax.help.SearchView.createNavigator(SearchView.java:72)
at javax.help.JHelp.setupNavigators(JHelp.java:140)
at javax.help.JHelp.(JHelp.java:118)
at javax.help.WindowPresentation.createJHelp(WindowPresentation.java:843)
at javax.help.WindowPresentation.createHelpWindow(WindowPresentation.java:879)
at javax.help.DefaultHelpBroker.initPresentation(DefaultHelpBroker.java:170)
at com.alcatel.train.help.helpService.HelpWindow.(HelpWindow.java:71)
at com.alcatel.train.help.helpService.HelpService.run(HelpService.java:91)
at java.lang.Thread.run(Unknown Source)
Caused by: java.security.InvalidParameterException
at
com.sun.java.help.search.DefaultSearchEngine.(DefaultSearchEngine.java:75)
... 25 more

Then when trying to use the search fom JavaHelp window I get:
2006-11-13 16:33:28,262 ERROR - Failed to create URL from
http://web_server_name/help_alias/help.hs|C:/local_path_on_web_server/html_file.html

2. If I go on the local system of the web server and reindex the files
(using a config file where I leave only a relative path to the help.hs file
using IndexRemove) to regenerate the search dababase I get still get the
error when starting the application; but I do not get the "Failed to create
URL" error and the search is working with one very very big incovenient: the
list of the topics is filled with "No content available" instead of the
topic descriptions.

So if anybody has seen a problem similar with this please let me know. if
you need additional information I will give them to you. This is bugging me
from two days now and I want to solve it if possible.

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

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.

Reply viewing options

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

Problem solved.

I was statically merging multiple helpsets into a master helpset file. But
in the master helpset file I had an error for the search view:

Search

javax.help.SearchView
engine="com.sun.java.help.search.DefaultSearchEngine">JavaHelpSearch

the correct view is

Search

javax.help.SearchView

without the data tag because each helpset had it's own search database, but
the master helpset didn't.

So if you have the 'Exception while creating engine named
com.sun.java.help.search.DefaultSearchEngine for view:' be sure that your
.hs file is OK.

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

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.

gereac
Offline
Joined: 2006-01-09
Points: 0

Problem solved.

I was statically merging multiple helpsets into a master helpset file. But in the master helpset file I had an error for the search view:
Search

javax.help.SearchView
JavaHelpSearch

the correct view is

Search

javax.help.SearchView

without the data tag because each helpset had it's own search database, but the master helpset didn't.

So if you have the 'Exception while creating engine named com.sun.java.help.search.DefaultSearchEngine for view:' be sure that your .hs file is OK.