2.0.1 to 2.3 fails ArrayIndexOutOfBoundsException:

View: New views
4 Messages — Rating Filter:   Alert me  

2.0.1 to 2.3 fails ArrayIndexOutOfBoundsException:

by John B. Moore :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I just attempted to upgrade on of our multi-blogs from 2.0.1 to 2.3 and
had to return to my 2.0.1 version because I could not get it to run
correctly..

Attached is the two catalinia.out (catalina_1 is the upgrade, the other
is after a restart of tomcat) outputs that show "a" problem (whether
that is all of the problem, I don't know) Basically it looks like it
trips over this error..

ERROR net.sourceforge.pebble.index.TagIndex  - Error while reading index
java.lang.ArrayIndexOutOfBoundsException: 0
        at net.sourceforge.pebble.index.TagIndex.readIndex(TagIndex.java:137)
        at net.sourceforge.pebble.index.TagIndex.<init>(TagIndex.java:63)
        at net.sourceforge.pebble.domain.Blog.init(Blog.java:190)



in several places while both converting/upgrading and while trying to
load the blogs..

The end result is that I get a "blank" page if I try and access any
blog.. not a desired result..<grin>

Fortunately I had made backups and was able to get back to my original
2.0.1 status..

I would like to try this again next weekend if I can come up with some
suggestions as to what might have gone wrong..

Thanks much..

John Moore
SonicSpider LLC




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Pebble-user mailing list
Pebble-user@...
https://lists.sourceforge.net/lists/listinfo/pebble-user

catalina_1.out (47K) Download Attachment
catalina.out (16K) Download Attachment

Re: 2.0.1 to 2.3 fails ArrayIndexOutOfBoundsException:

by John B. Moore :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Any ideas on this... Please...

Thanks..

John..

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Pebble-user mailing list
Pebble-user@...
https://lists.sourceforge.net/lists/listinfo/pebble-user

Re: 2.0.1 to 2.3 fails ArrayIndexOutOfBoundsException:

by Olaf Kock :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

John B. Moore schrieb:
> I just attempted to upgrade on of our multi-blogs from 2.0.1 to 2.3 and
> had to return to my 2.0.1 version because I could not get it to run
> correctly..

Hi,

I have no 2.0.1 installed, so I'm not able to upgrade myself. From what
I've seen in the code, the exception that you mention is logged and
ignored and the worst thing that might happen is that the tags index is
not initialized (e.g. the mapping from tag name to blog entry)

> ERROR net.sourceforge.pebble.index.TagIndex  - Error while reading index
> java.lang.ArrayIndexOutOfBoundsException: 0
>     at net.sourceforge.pebble.index.TagIndex.readIndex(TagIndex.java:137)
>     at net.sourceforge.pebble.index.TagIndex.<init>(TagIndex.java:63)
>     at net.sourceforge.pebble.domain.Blog.init(Blog.java:190)

[...]

you could look into pebbles data directory and locate a file (or
multiple ones) named indexes/tags.index . This should contain entries in
the form of

tag1=entry1,entry2
tag2=entry3,

where entryX is a blog entry id and tagX is the name of a tag. If this
isn't the case, the exception is thrown, caught, logged and ignored...

> The end result is that I get a "blank" page if I try and access any
> blog.. not a desired result..<grin>

It might be that the reason for this is something different than the
given exception. Just in case - make sure, that each blog has at least
one tag that leads to a valid tag.index file (note that all entries
there end with ",")

Be aware: This is a wild guess from poking a bit through the code, not
from running or debugging it.

Earlier I've found some issues with regards to creation of directories
and files during the upgrade process (at least one patch is pending,
waiting for Simon) - see my posts from May.

I'll post another review result that I've found soon, just not tonight.
I believe (or hope) that this has nothing to do with your issues even
though I've found it during this session. Maybe I'll get some time
tomorrow (Sunday) otherwise it will be Monday or Tuesday.

Sorry that I can't be of more help.

Cheers,
Olaf


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Pebble-user mailing list
Pebble-user@...
https://lists.sourceforge.net/lists/listinfo/pebble-user

Re: 2.0.1 to 2.3 fails ArrayIndexOutOfBoundsException:

by David McLure :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This sounds a lot like the problem I encountered a while back when I
upgraded.  I seem to recall that the problem ended up being that the
template.jsp and/or the screen.css files were empty (size=0).  Once I
replaced these, everything returned to normal.  I'm not sure what
caused this problem however.

-dav0

On Sat, May 31, 2008 at 6:09 PM, Olaf Kock <okock@...> wrote:

> John B. Moore schrieb:
>> I just attempted to upgrade on of our multi-blogs from 2.0.1 to 2.3 and
>> had to return to my 2.0.1 version because I could not get it to run
>> correctly..
>
> Hi,
>
> I have no 2.0.1 installed, so I'm not able to upgrade myself. From what
> I've seen in the code, the exception that you mention is logged and
> ignored and the worst thing that might happen is that the tags index is
> not initialized (e.g. the mapping from tag name to blog entry)
>
>> ERROR net.sourceforge.pebble.index.TagIndex  - Error while reading index
>> java.lang.ArrayIndexOutOfBoundsException: 0
>>     at net.sourceforge.pebble.index.TagIndex.readIndex(TagIndex.java:137)
>>     at net.sourceforge.pebble.index.TagIndex.<init>(TagIndex.java:63)
>>     at net.sourceforge.pebble.domain.Blog.init(Blog.java:190)
>
> [...]
>
> you could look into pebbles data directory and locate a file (or
> multiple ones) named indexes/tags.index . This should contain entries in
> the form of
>
> tag1=entry1,entry2
> tag2=entry3,
>
> where entryX is a blog entry id and tagX is the name of a tag. If this
> isn't the case, the exception is thrown, caught, logged and ignored...
>
>> The end result is that I get a "blank" page if I try and access any
>> blog.. not a desired result..<grin>
>
> It might be that the reason for this is something different than the
> given exception. Just in case - make sure, that each blog has at least
> one tag that leads to a valid tag.index file (note that all entries
> there end with ",")
>
> Be aware: This is a wild guess from poking a bit through the code, not
> from running or debugging it.
>
> Earlier I've found some issues with regards to creation of directories
> and files during the upgrade process (at least one patch is pending,
> waiting for Simon) - see my posts from May.
>
> I'll post another review result that I've found soon, just not tonight.
> I believe (or hope) that this has nothing to do with your issues even
> though I've found it during this session. Maybe I'll get some time
> tomorrow (Sunday) otherwise it will be Monday or Tuesday.
>
> Sorry that I can't be of more help.
>
> Cheers,
> Olaf
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Pebble-user mailing list
> Pebble-user@...
> https://lists.sourceforge.net/lists/listinfo/pebble-user
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Pebble-user mailing list
Pebble-user@...
https://lists.sourceforge.net/lists/listinfo/pebble-user