Skip to main content



      Home
Home » Archived » 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 11:33 Go to next message
Eclipse UserFriend
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 05:06 Go to previous messageGo to next message
Eclipse UserFriend
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 05:08] by Moderator

Re: IndexOutOfBoundsException openning a report with 4.4.1 designer [message #1457392 is a reply to message #1448888] Fri, 31 October 2014 05:23 Go to previous messageGo to next message
Eclipse UserFriend
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] Tue, 18 November 2014 22:13 Go to previous messageGo to next message
Eclipse UserFriend
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 12:49 Go to previous messageGo to next message
Eclipse UserFriend
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 02:14 Go to previous messageGo to next message
Eclipse UserFriend
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 04:57 Go to previous messageGo to next message
Eclipse UserFriend
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 07:58 Go to previous messageGo to next message
Eclipse UserFriend
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 05:13 Go to previous messageGo to next message
Eclipse UserFriend
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 13:25 Go to previous messageGo to next message
Eclipse UserFriend
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 03:33 Go to previous messageGo to next message
Eclipse UserFriend
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 03:40] by Moderator

Re: IndexOutOfBoundsException openning a report with 4.4.1 designer [message #1635830 is a reply to message #1601973] Wed, 25 February 2015 19:31 Go to previous messageGo to next message
Eclipse UserFriend
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 03:38 Go to previous message
Eclipse UserFriend
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 03:38] by Moderator

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


Current Time: Sun Mar 23 01:45:40 EDT 2025

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

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

Back to the top