Problems to run JavaHelp's search engine using usual server path

K

kelox2000

Hi there,

i ran my createt JavaHelp on my local machine without any problems.
Now I moved the whole stuff (HelpSet, TOC, HTML-files, Map,
JavaHelpSearch etc.) on a server.
When I start the HelpSet from my Local machine using:

URL url = new URL("file:\\\\server01\\java\\help\\helpSet.hs");

JavaHelp opens correctly, navigaton works fine, but the searchengine
throws an exception:

Exception while creating engine named
com.sun.java.help.search.DefaultSearchEngine for view:
javax.help.SearchView@cc5002
java.lang.reflect.InvocationTargetException

I mapped the server path to the drive letter Y and tried again:

URL url = new URL("file:Y:\\helpSet.hs")

the damn search engine works correctly!!!

can anyone help me?

thanx

Jay
 
C

Chris Smith

kelox2000 said:
JavaHelp opens correctly, navigaton works fine, but the searchengine
throws an exception:

Exception while creating engine named
com.sun.java.help.search.DefaultSearchEngine for view:
javax.help.SearchView@cc5002
java.lang.reflect.InvocationTargetException

An InvocationTargetException wraps another exception. What's the
wrapped exception? It would help if you could provide a complete stack
trace.

--
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
 
K

kelox2000

Chris said:
An InvocationTargetException wraps another exception. What's the
wrapped exception? It would help if you could provide a complete stack
trace.

this is the complete stack trace:

java.lang.NullPointerException
at div.swing.BackgroundPanel.initImageJPanel(BackgroundPanel.java:71)
at div.swing.BackgroundPanel.<init>(BackgroundPanel.java:42)
at lw.main.BasicForm.jbInit(BasicForm.java:151)
at lw.main.BasicForm.<init>(BasicForm.java:48)
at lw.main.LagerWare.run(LagerWare.java:65)

Exception while creating engine named
com.sun.java.help.search.DefaultSearchEngine for view:
javax.help.SearchView@170b819

java.lang.reflect.InvocationTargetException

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at javax.help.search.MergingSearchEngine.makeEngine(MergingSearchEngine.java:160)
at javax.help.search.MergingSearchEngine.<init>(MergingSearchEngine.java:62)
at javax.help.JHelpSearchNavigator.getSearchEngine(JHelpSearchNavigator.java:102)
at javax.help.plaf.basic.BasicSearchNavigatorUI$SearchActionListener.actionPerformed(BasicSearchNavigatorUI.java:109)
at javax.swing.JTextField.fireActionPerformed(JTextField.java:491)
at javax.swing.JTextField.postActionEvent(JTextField.java:672)
at javax.swing.JTextField$NotifyAction.actionPerformed(JTextField.java:786)
at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1530)
at javax.swing.JComponent.processKeyBinding(JComponent.java:2438)
at javax.swing.JComponent.processKeyBindings(JComponent.java:2473)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2401)
at java.awt.Component.processEvent(Component.java:4909)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1713)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:627)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:831)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:741)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:592)
at java.awt.Component.dispatchEventImpl(Component.java:3506)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Caused by: java.security.InvalidParameterException
at com.sun.java.help.search.DefaultSearchEngine.<init>(DefaultSearchEngine.java:75)
... 35 more
 
C

Chris Smith

kelox2000 said:
this is the complete stack trace:

I don't know the answer, but a quick search points to a lot of people
having the same problem (DefaultSearchEngine's constructor throwing an
InvalidParameterException) when:

1. There is a corrupted XML file.
2. There is a corrupted search index.
3. (???) Maybe a space in a path name, though this is unclear.

--
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top