Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » XMLResource.OPTION_CONFIGURATION_CACHE can produce ArrayIndexOutOfBoundsException
XMLResource.OPTION_CONFIGURATION_CACHE can produce ArrayIndexOutOfBoundsException [message #420363] Thu, 26 June 2008 07:02 Go to next message
Winfried Stenzel is currently offline Winfried StenzelFriend
Messages: 13
Registered: July 2009
Junior Member
Hi,

When using the save performance option
"XMLResource.OPTION_CONFIGURATION_CACHE", an
ArrayIndexOutOfBoundsException can occur
at
org.eclipse.emf.ecore.xmi.impl.StringSegment.writeAscii(Stri ngSegment.java:331)
at
org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.writeAscii(XMLSav eImpl.java:966)

Is this a known bug or is it already fixed?

It is difficult for me to create a simple test case, but the problem seems
to be at line 411 in StringSegment.java..This is the only place where
outputchars is reinitialized with a length different than 8192, without
reinitializing outputbytes.

I use EMF 2.3.0.v200706262000.

Best regards
Winfried
Re: XMLResource.OPTION_CONFIGURATION_CACHE can produce ArrayIndexOutOfBoundsException [message #420369 is a reply to message #420363] Thu, 26 June 2008 10:56 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Winfried,

No, I haven't seen that before. If I can reproduce it in 2.4 I'll fix
it. Could you try that and provide a test case?


Winfried Stenzel wrote:
> Hi,
>
> When using the save performance option
> "XMLResource.OPTION_CONFIGURATION_CACHE", an
> ArrayIndexOutOfBoundsException can occur
> at
> org.eclipse.emf.ecore.xmi.impl.StringSegment.writeAscii(Stri ngSegment.java:331)
> at
> org.eclipse.emf.ecore.xmi.impl.XMLSaveImpl.writeAscii(XMLSav eImpl.java:966)
>
> Is this a known bug or is it already fixed?
>
> It is difficult for me to create a simple test case, but the problem seems
> to be at line 411 in StringSegment.java..This is the only place where
> outputchars is reinitialized with a length different than 8192, without
> reinitializing outputbytes.
>
> I use EMF 2.3.0.v200706262000.
>
> Best regards
> Winfried
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[CDO] checkout & build is painfull
Next Topic:[EMF Query] recursive conditions
Goto Forum:
  


Current Time: Sat Apr 27 02:19:04 GMT 2024

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

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

Back to the top