Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

-1 Error

Posted on 2004-09-03
12
Medium Priority
?
143 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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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
 
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 2000 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

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

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

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…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses
Course of the Month13 days, 17 hours left to enroll

580 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