Hi,

I just downloaded the nightly from 6/13 and I was getting
NullPointerExceptions loading up the plugins. This occurred
only during searches, not during parsing/indexing. I tracked
it down a little and it's occuring in PluginManifestParser.parseLibraries.
The lines of interest are:

               NodeList list = library.getElementsByTagName("export");
               Element exportElement = (Element) list.item(0);

I found out that if your plugin.xml file has a library tag with
no explicit end tag like:

     <library name="nekohtml-0.9.4.jar"/>

The variable "list" is bogus. It's not null, but dereferencing it
causes exception. I didn't track it any further, but I'm guessing
that the problem lies with the XML parser creating a bad node
for these types of tags. Also it seems that you should do a
null check on the "list" variable.

My workaround was to change all the plugin.xml files so
that they use an explicit end tag:

     <library name="nekohtml-0.9.4.jar">
     </library>

Since no one else has seen this, maybe is a Windows only bug.
It's also possible that somehow I'm picking up a different XML
parsing library, but this wasn't an issue on 0.6 for me.

Howie




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Nutch-developers mailing list
Nutch-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nutch-developers

Reply via email to