The exception occurs before there are any explicit page requests made.
As part of the startup, WikiEngine issues a getAllPages request and has
(presumably) built a Collection of pages from the result of that call.
Just which items in that collection (of several thousand) triggered the
exception, I have no way of knowing (without inserting a lot of
debugging statements and re-running the scenario).
I have a couple of pages that consist merely of a redirect (ie, [{SET
redirect='xxx'}]), and in addition, it's possible that there are some
placeholder pages that only contain permissions (though I recall that
caused problems in the past and I added some text to all of those).
Lastly a couple of my pages start with the TableOfContents plugin.
In any case, would it be hard to check for a null item inside that
method and handle it, maybe logging such an event (including info on the
page involved), but letting the ReferenceManager processing proceed anyway?
Janne Jalkanen wrote:
OK, I've pretty much confirmed that this (pretty serious) problem is
caused by a bug in or around JSPWikiMarkupParser - apparently in the
'paragraphify' method. (Maybe not checking for nulls?) This is
where the stacktrace indicates the problem is coming from (partial
copy attached). Looking at Changelog, I note that there was a change
made in 2.5.14 dealing with this. I changed to 2.5.11 and was able
to generate a new refmgr.ser quite easily (and fast - it looks like
it only took a few seconds). I then went back to 2.5.19 and used
that new refmgr.ser to run, and it was just fine.
The stack trace you have is really weird. Could you possibly post the
first few lines from the offending page? I.e. could you print out the
page name when the exception is thrown and send me the first few
lines? If I'm right, this only occurs with pages which have a plugin
on the first line or something.
/Janne
_______________________________________________
Jspwiki-users mailing list
[email protected]
http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users
_______________________________________________
Jspwiki-users mailing list
[email protected]
http://ecyrd.com/cgi-bin/mailman/listinfo/jspwiki-users