Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » IndexOutOfBoundsException openning a report with 4.4.1 designer
IndexOutOfBoundsException openning a report with 4.4.1 designer [message #1448888] Mon, 20 October 2014 15:33 Go to next message
Andre zug is currently offline Andre zugFriend
Messages: 2
Registered: October 2014
Junior Member
Hi,
I think there is a critical regression in BIRT 4.4.1 caused by Fix of Bug 423106.
StackTrace openning CCRFicheComite.rptdesign report :
java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
    at java.util.ArrayList.rangeCheck(ArrayList.java:635)
    at java.util.ArrayList.get(ArrayList.java:411)
    at org.eclipse.birt.report.model.elements.GridItem.getCellPositionInColumn(GridItem.java:393)
    at org.eclipse.birt.report.model.elements.GridItem.getColumn(GridItem.java:336)

It seems that the correction is already committed :
commit bae101f92325970fcaf8bd29f517e296b4b32449 in github.(model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/elements/GridItem.java)
I have not found a bug in bugzilla.
Do you think that the fix will soon be released before ECLIPSE luna SR2 (february 2015)

Thanks.
André.
Re: IndexOutOfBoundsException openning a report with 4.4.1 designer [message #1451056 is a reply to message #1448888] Thu, 23 October 2014 09:06 Go to previous messageGo to next message
Matej Liszka is currently offline Matej LiszkaFriend
Messages: 13
Registered: March 2012
Junior Member
I can confirm the problem. The released "bugfix" is an unbelievable hack that breaks essential programming rules... I did not see the checked-in new version of the code yet.

[Updated on: Thu, 23 October 2014 09:08]

Report message to a moderator

Re: IndexOutOfBoundsException openning a report with 4.4.1 designer [message #1457392 is a reply to message #1448888] Fri, 31 October 2014 09:23 Go to previous messageGo to next message
Matej Liszka is currently offline Matej LiszkaFriend
Messages: 13
Registered: March 2012
Junior Member
I created a patch for that bug in BIRT 4.4.1 by myself. Let me know if you need more info how to create it.
Re: IndexOutOfBoundsException openning a report with 4.4.1 designer [message #1478925 is a reply to message #1448888] Wed, 19 November 2014 03:13 Go to previous messageGo to next message
Stuart Tennant is currently offline Stuart TennantFriend
Messages: 4
Registered: November 2014
Junior Member
Have you heard anymore on this or have a work around?
I am having difficulty opening an older report in the new designer.
Re: IndexOutOfBoundsException openning a report with 4.4.1 designer [message #1479743 is a reply to message #1478925] Wed, 19 November 2014 17:49 Go to previous messageGo to next message
Matej Liszka is currently offline Matej LiszkaFriend
Messages: 13
Registered: March 2012
Junior Member
You can use the attached patched library, or patch your one by the class file if you are having slightly different version of the library.
Re: IndexOutOfBoundsException openning a report with 4.4.1 designer [message #1481728 is a reply to message #1479743] Fri, 21 November 2014 07:14 Go to previous messageGo to next message
Stuart Tennant is currently offline Stuart TennantFriend
Messages: 4
Registered: November 2014
Junior Member
Thank you for the assistance!

Alas, when it comes to using these files I am slightly at a loss ...

I have searched my drive for this file or similar files "org.eclipse.birt.runtime*.jar" to find that the jar file already exists in my tomcat "...\webapps\birt-viewer\WEB-INF\lib" folder. Does the file need to placed somewhere else for the Report Designer in eclipse (Luna) to be able to use it as I cannot see a similar file elsewhere on the system?
Re: IndexOutOfBoundsException openning a report with 4.4.1 designer [message #1481892 is a reply to message #1448888] Fri, 21 November 2014 09:57 Go to previous messageGo to next message
Matej Liszka is currently offline Matej LiszkaFriend
Messages: 13
Registered: March 2012
Junior Member
Hello Stuart,
plugin library org.eclipse.birt.report.model_4.4.1.v201409160530.jar has to be patched by the same class in order to fix the problem in the development environment. The library I uploaded before was for runtime only (where the bug appears as well).
Let me prepare the other patch, I will upload it later today.
Re: IndexOutOfBoundsException openning a report with 4.4.1 designer [message #1482060 is a reply to message #1481728] Fri, 21 November 2014 12:58 Go to previous messageGo to next message
Matej Liszka is currently offline Matej LiszkaFriend
Messages: 13
Registered: March 2012
Junior Member
This is the other patched library. After overwriting the original plugin JAR, restart Eclipse (once) with -clean option (eclipse.exe -clean) so that the OSGI cache is updated. After that, you can continue starting Eclipse like before.
Re: IndexOutOfBoundsException openning a report with 4.4.1 designer [message #1507100 is a reply to message #1479743] Thu, 11 December 2014 10:13 Go to previous messageGo to next message
chomnoue nghemning alain-michel is currently offline chomnoue nghemning alain-michelFriend
Messages: 1
Registered: December 2014
Junior Member
Thank you for this patch, it helped me
Re: IndexOutOfBoundsException openning a report with 4.4.1 designer [message #1551589 is a reply to message #1448888] Wed, 07 January 2015 18:25 Go to previous messageGo to next message
Shane Allred is currently offline Shane AllredFriend
Messages: 24
Registered: January 2012
Junior Member
I ran into this issue as well and the posted fix worked for me. Thanks!
Re: IndexOutOfBoundsException openning a report with 4.4.1 designer [message #1601973 is a reply to message #1551589] Thu, 05 February 2015 08:33 Go to previous messageGo to next message
Jonathan Dumont is currently offline Jonathan DumontFriend
Messages: 32
Registered: January 2013
Location: Laval
Member
I have seen in the class GridItem the comment near the part of code from which the exception resulting from this regression comes (line 383)
calculating spanned rows - see eclipse bug 423106


This leads me to this thread. I have updated my target platform with the patch, and it works fine, thanks !


[Updated on: Thu, 05 February 2015 08:40]

Report message to a moderator

Re: IndexOutOfBoundsException openning a report with 4.4.1 designer [message #1635830 is a reply to message #1601973] Thu, 26 February 2015 00:31 Go to previous messageGo to next message
Glen Mising name is currently offline Glen Mising nameFriend
Messages: 1
Registered: July 2009
Junior Member
Just came across this.

Bug number 446077 looks to be the one to follow for the fixes.
(the web forum won't let me post a link to the bugs.eclipse.org for whatever stupid reason)

And it includes an Eclipse signed jar so you know it's official (though the cert expires soon!)

From the comments the fix isn't due till 4.5.
Re: IndexOutOfBoundsException openning a report with 4.4.1 designer [message #1644928 is a reply to message #1635830] Mon, 02 March 2015 08:38 Go to previous message
Matej Liszka is currently offline Matej LiszkaFriend
Messages: 13
Registered: March 2012
Junior Member
Hello Glen

You are right, I did not notice that bug before. Good news is that on last Friday (Feb 27th 2015) a new release of Eclipse Luna (SR2) and BIRT (4.4.2) appeared, where this bug is fixed (I looked also at the latest source code, the fix is even little bit better than above). So, if possible, use that 4.4.2 version instead and you needn't patch this bug anymore.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=446077

[Updated on: Mon, 02 March 2015 08:38]

Report message to a moderator

Previous Topic:column height
Next Topic:Birt Scripted Data source Json Output
Goto Forum:
  


Current Time: Tue Jul 16 03:08:17 GMT 2019

Powered by FUDForum. Page generated in 0.02461 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top