Quick update,
I set some breakpoint and etc trying to work backwards was was
throwing the Array error. Ended up changing the way getMixedUri
handled exception and set it to throw e.printStackTrace(); which gave
a much more in depth view as to what threw the
ArrayIndexOutOfBoundsException
Got this
java.lang.ArrayIndexOutOfBoundsException: 1
at net.sf.zekr.common.resource.QuranText.refineRawText(QuranText.java:
130)
at net.sf.zekr.common.resource.QuranText.<init>(QuranText.java:68)
at net.sf.zekr.common.resource.QuranText.getSimpleTextInstance
(QuranText.java:100)
at net.sf.zekr.common.resource.QuranText.getInstance(QuranText.java:
90)
at net.sf.zekr.common.resource.QuranText.getInstance(QuranText.java:
78)
at net.sf.zekr.common.resource.FilteredQuranText.<init>
(FilteredQuranText.java:32)
at net.sf.zekr.common.runtime.HtmlRepository.getMixedUri
(HtmlRepository.java:135)
at net.sf.zekr.common.runtime.HtmlRepository.getMixedUri
(HtmlRepository.java:233)
at net.sf.zekr.common.runtime.HtmlRepository.getMixedUri
(HtmlRepository.java:254)
at net.sf.zekr.ui.QuranForm.updateQuranView(QuranForm.java:1418)
at net.sf.zekr.ui.QuranForm.updateView(QuranForm.java:1330)
at net.sf.zekr.ui.QuranForm.apply(QuranForm.java:1182)
at net.sf.zekr.ui.QuranForm.navTo(QuranForm.java:1254)
at net.sf.zekr.ui.QuranForm.init(QuranForm.java:305)
at net.sf.zekr.ui.QuranForm.<init>(QuranForm.java:258)
at net.sf.zekr.ZekrMain.startZekr(ZekrMain.java:51)
at net.sf.zekr.ZekrMain.main(ZekrMain.java:88)
Code in question is this
private void refineRawText() {
QuranProperties quranProps = QuranProperties.getInstance();
String delim = config.getProps().getString("quran.text.delim");
fullQuran = rawText.split(delim);
String[] sura;
quranText = new String[114][];
int ayaTotalCount = 0;
for (int i = 0; i < 114; i++) {
int ayaCount = quranProps.getSura(i + 1).getAyaCount();
sura = new String[ayaCount];
for (int j = 0; j < ayaCount; j++) {
sura[j] = fullQuran[ayaTotalCount + j];
}
quranText[i] = sura;
ayaTotalCount += ayaCount;
}
}
Why would it throw this issue out in OS X with Java 64 and not in
Windows Java 64 makes me go o_0 I looked and made sure to include as
many vm options from the mac_zekr.sh file in my Eclipse build.
On Nov 30, 9:49 pm, Mohsen Saboorian <
mohs...@gmail.com> wrote:
> Please add a breakpoint to getMixedUri(int sura, int aya, boolean update)
> and check where is the exception coming from. I have no idea.
>
> Mohsen
>
> >
zsiddi...@gmail.com
>
> > On Mon, Nov 30, 2009 at 9:29 PM, Mohsen Saboorian <
mohs...@gmail.com>
> > wrote:
> > > -XstartOnFirstThread
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "zekr-dev" group.
> > To post to this group, send email to
zekr...@googlegroups.com.
> > To unsubscribe from this group, send email to
> >
zekr-dev+u...@googlegroups.com<
zekr-dev%2Bunsu...@googlegroups.com>
> > .