Any chance this is max java class code issue?

Breaking up the code into functions might help test the issue.
Sean has something in this blog about this limit

WG

-----Original Message-----
From: Michael Dinowitz [mailto:
Sent: 24 March 2003 13:45
To: CF-Talk
Subject: Re: (CFMX) Array Max size?


OK, this is stranger than hell even though I got it to work.
Basically, the error is thrown when a CFMODULE is called that has a certain
amount of code in it. On first examination, it looks like it was the array
size
as limiting the array size causes the template to run OK. This was proven
not to
be the issue in experimentation. Additional tests made it look like ANY call
to
the large array from within a CFOUTPUT was causing a problem. Very strange.
One
thing that I tried was to remove the
<cfsetting EnableCFOutputOnly="YES">
from the template and all of a sudden it worked. Something with that tag and
either the size of the array or the size of the template (or even the size
of
the result code) caused a strange error.
Once I get some sleep I'll try to write this one up and submit it to MM.


> This works too.
>
> <cfset myarray = arraynew(2) />
>
> <cfloop from=1 to=1500 index=i >
>
> <cfset myarray[i][1] = "a#i#" />
> <cfset myarray[i][2] = "test xxxxxxxxxx" />
> <cfset myarray[i][3] = "text xxxxxxxxxx" />
>
> <cfdump var="#myarray[i]#" />
>
>
> </cfloop>
>
>
> Any chance this is an out-by-one error?
>
> BTW I'm just updating to ud3
>
> WG
>
>
> -----Original Message-----
> From: Michael Dinowitz [mailto:[EMAIL PROTECTED]
> Sent: 24 March 2003 13:24
> To: CF-Talk
> Subject: Re: (CFMX) Array Max size?
>
>
> Did you try to access each array element on each loop iteration?
>
>
> > <cfset myarray = arraynew(2) />
> >
> > <cfloop from=1 to=1500 index=i >
> >
> > <cfset myarray[i][1] = "index#i#" />
> > <cfset myarray[i][2] = "test xxxxxxxxxx" />
> > <cfset myarray[i][3] = "text xxxxxxxxxx" />
> >
> > </cfloop>
> >
> > this works fine for me.
> >
> > WG
> >
> > -----Original Message-----
> > From: Michael Dinowitz [mailto:[EMAIL PROTECTED]
> > Sent: 24 March 2003 13:11
> > To: CF-Talk
> > Subject: (CFMX) Array Max size?
> >
> >
> > I've got a 2 dimensional array (well, it's actually someone else's) and
> when
> > I
> > run it I get this error message:
> > The system has attempted to use an undefined value, which usually
> indicates
> > a
> > programming error, either in your code or some system code.
> > Null Pointers are another name for undefined values.
> >
> > I've traced the problem to the array itself. When there are 89 entries
in
> > it, no
> > problem. Once a 90th entry is added, it chokes.
> > The 89th entry looks like this (in CFSCRIPT):
> >  langs[89][1] = "F";  langs[89][2] = "es-bo";  langs[89][3] = "Spanish
> > (Bolivia)";
> > If I cut out every entry over 89, no problem. If I add a 90th entry,
even
> as
> > a
> > duplicate of 89, I get the error.
> > Can someone else please test out their CFMX system for this? Just a
simple
> 2
> > dimensional array with 3 items per row. See what the max is for you. I'm
> > using
> > UD3.
> > Thanks
> >
> > Michael Dinowitz
> > Master of the House of Fusion
> > http://www.houseoffusion.com
> >
> >
> >
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to