Solved

-1 Error

Posted on 2004-09-03
12
132 Views
Last Modified: 2013-12-24
Ok here is one that is throwing me through a loop. I wrote a page of code for a web app that generates 3 graphs. It worked perfectly without any sort of problem Then all of a sudden yesterday, it started giving me an error on the page which is as follows:



Error Occurred While Processing Request  
-1  
 
 
The error occurred in C:\Inetpub\wwwroot\mailpro\viewcampaign.cfm: line 226
Called from C:\Inetpub\wwwroot\mailpro\manager.cfm: line 302
Called from C:\Inetpub\wwwroot\mailpro\manager.cfm: line 187
Called from C:\Inetpub\wwwroot\mailpro\manager.cfm: line 121
Called from C:\Inetpub\wwwroot\mailpro\manager.cfm: line 111
Called from C:\Inetpub\wwwroot\mailpro\manager.cfm: line 1
 
224 :                  <cfchartdata item="Recipients" value="#totalsent#">
225 :                  <cfchartdata item="Opens" value="#getdata.opens#">
226 :                  </cfchartseries>
227 :            </cfchart>
228 :      </td>

 
 What exactly is -1? and what does this have to do with... If I disable this cfchart tag on the page the other two charts function perfectly. Also I have checked the values going into the chart tag and they are correct.

Cheers,
Rick
0
Comment
Question by:richardsimnett
  • 6
  • 6
12 Comments
 

Author Comment

by:richardsimnett
ID: 11974522
Just a note: the values going into the chart tag are as follows:

totalsent = 116080
opens= 317  

Cheers,
Rick
0
 
LVL 21

Expert Comment

by:pinaldave
ID: 11974596
Hi richardsimnett,
cna you post your chchart code forreferance...pls

Regards,
---Pinal
0
 

Author Comment

by:richardsimnett
ID: 11977432
Pinal,
Here is the cfchart code as it appears in my page.

<cfchart
   show3d=yes
   showlegend=no
   chartheight=100
   chartwidth=100
   showborder=no
   format='jpg'
   pieslicestyle=sliced>
  <cfchartseries type=pie paintstyle="light" colorlist="##9479F9,##F9F779">
      <cfchartdata item="Recipients" value="#totalsent#">
      <cfchartdata item="Opens" value="#getdata.opens#">
  </cfchartseries>
</cfchart>


The strange thing is that it only seems to report this error for 1 particular record in the database. Thats why I provided you with the values being inserted.

Cheers,
Rick
0
 
LVL 21

Expert Comment

by:pinaldave
ID: 11977626
Hi richardsimnett,
your code is correct.
the reason for error is this...
java.lang.ArrayIndexOutOfBoundsException
        -1
if you reduce the value of integer it will work... totalsent = 116080 is very large...
I now remember I had the same problem so what I did is displayed the information in K like totalsent is 116.060K
well this looks stupid but ya that works... and reason for arrayindexoutfoboundexception...
i do not know much but I can look into it....


Regards,
---Pinal
0
 
LVL 21

Expert Comment

by:pinaldave
ID: 11977641
Hi richardsimnett,
I aplogize for little misinformation above...
if you make that too 116.080 and other as .317...it will also show error again...
it seems to be that when they are devided or something pichard has some problem with JAVA.lang...

Regards,
---Pinal
0
 

Author Comment

by:richardsimnett
ID: 11977755
Pinal,
   So what do you think the solution to this is? Its a rather strange error to have happen.

Cheers,
Rick
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 21

Expert Comment

by:pinaldave
ID: 11977832
Hi richardsimnett,
 
public class ArrayIndexOutOfBoundsException
extends java.lang.IndexOutOfBoundsException

Students should understand this error/exception when it occurs in a program.

An object of this class is thrown when code accesses an array with an illegal index. This happens when an index is negative or greater than or equal to the length of the array being indexed. For example:

  int[] list = new int[5];
  list[5] = 33;            // illegal index, maximum index is 4

We had discovered a really nasty bug.
If a  form has a <cfchart> tag and there are more that 16 items to be
displayed with <cfchartseries> the following error is thrown:
java.lang.ArrayIndexOutOfBoundsException.
Now if the user refreshes the screen where the error occurred a few times a
blank page is
shown and after that CFMX doesn't respond to any requests. Task manager
shows 0 for cpu and no
memory increase. Each page being requested shows a slight spike in the cpu,
an indication that the CFMX is still alive. It seems that the page with the
cfchart  on it has been stuck in the queue and no other page can be
processed and no error is being thrown, either on the screen or in the logs.
The only way to fix the problem is to restart the CFMX service.


download the patch from this site... http://www.macromedia.com/support/coldfusion/ts/documents/cfmx61_sqlserver_cpu.htm



 

Regards,
---Pinal
0
 
LVL 21

Expert Comment

by:pinaldave
ID: 11977839
Hi richardsimnett,
I remember that i had used bar charts instead ... that will work for sure...

Regards,
---Pinal
0
 

Author Comment

by:richardsimnett
ID: 11977898
I will try installing this patch, although I dont think that this is the same error as what is mentioned above. Also I cannot switch the format to bar charts as the specification and page is designed for pie charts unfortunately.


Cheers,
Rick
0
 

Author Comment

by:richardsimnett
ID: 12078548
Pinal,
Installed the update from macromedia... no change... the -1 problem comes and goes intermittently... client is freaking out..... any new ideas?
0
 
LVL 21

Accepted Solution

by:
pinaldave earned 500 total points
ID: 12078589
Same error on my server. Seems like due to high value of ratio macromedia has some problem. I am sorry buddy but this is very strange and my co-worker are also concern and we have made this note in our company database so when we refer that we should knwo this is at the moment not solved.
sorry to hear this... may be you need to use some other chart... i clearly remember that you want to use pie chart as that is the requirement of your project.
Sorry my friend.
Regards,
---Pinal
0
 

Author Comment

by:richardsimnett
ID: 12079025
No problem... keep me posted of anything you find... can you recommend a good applet to generate pie charts and the like?

Cheers,
Rick
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now