Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

"Object reference not set to an instance of an object" in chart constructor

Last post 08-14-2008 12:44 by [Infragistics] David Negley. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 07-03-2008 1:50

    • wildert
    • Not Ranked
    • Joined on 07-03-2008
    • Points 20

    "Object reference not set to an instance of an object" in chart constructor

    The line

     UltraChart c = new UltraChart();

    is throwing the following exception when the aspx page i'm load testing comes under heavy load.

    System.NullReferenceException: Object reference not set to an instance of an object.

    at Infragistics.WebUI.UltraWebChart.UltraChart.Infragistics.UltraChart.Resources.IChartComponent.Invalidate(CacheLevel cacheLevel)

    at Infragistics.UltraChart.Resources.Appearance.AppearanceHelper.UpdateParentProperty()

    at Infragistics.UltraChart.Resources.Appearance.PaintElement.set_StrokeWidth(Int32 value)

    at Infragistics.UltraChart.Resources.Appearance.HistogramLineAppearance..ctor(IChartComponent component)

    at Infragistics.UltraChart.Resources.Appearance.HistogramChartAppearance..ctor(IChartComponent component)

    at Infragistics.WebUI.UltraWebChart.UltraChart.CreateAppearanceObjects()

    at Infragistics.WebUI.UltraWebChart.UltraChart.CreateChart()

    at Infragistics.WebUI.UltraWebChart.UltraChart..ctor()

    at mPrism.Sharepoint.WebParts.ExceptionPieChart.ExceptionPieChart.OnPreRender(EventArgs e)

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

     

    Please help!

    Thanks

     Todd Wilder

    Filed under:
    • Post Points: 20
  • 07-03-2008 3:54 In reply to

    Re: "Object reference not set to an instance of an object" in chart constructor

    I’ve been trying this in standard ASP.NET page and there is no problem. As I’m seeing you are using the chart in SharePoint and the first error is:

    mPrism.Sharepoint.WebParts.ExceptionPieChart.ExceptionPieChart.OnPreRender(EventArgs e) 

     

    Do you have other charts in the WebPart? Could you provide us more information?

     

    Best regards,
    Teodor Taushanov
    • Post Points: 20
  • 07-11-2008 8:47 In reply to

    Re: "Object reference not set to an instance of an object" in chart constructor

    Also, do you hit the same problem in a similar scenario where SharePoint is not involved?  Developer Support currently has at least one support incident with a similar stack trace, but where SharePoint is not involved.

    We're not able to reproduce the behavior at current, so I suspect that your environment may have something to do with it.  What can you tell us about your environment, including:  server operating system, version of Internet Information Services, version of NetAdvantage for .NET in use (including build number), client operating system, and browser version?  There may be other relevant environment information, but this covers

    It seems likely that we'll need to ask you to log a support request if we can't find an answer, since this may require some in-depth research.  My signature includes more information about how to log support requests with Infragistics Developer Support.  If you do submit a support request, providing a sample project that reproduces the error (with or without SharePoint) will likely be helpful.

    Vince McDonald
    Manager of Developer Support, MCP
    Infragistics, Inc.

    Need help? Find the various ways you can get help from Infragistics.
    • Post Points: 20
  • 08-08-2008 7:36 In reply to

    • folle
    • Not Ranked
    • Joined on 08-08-2008
    • Points 20

    Re: "Object reference not set to an instance of an object" in chart constructor

    Hi, all 

    I have a similar issue on the ASP.NET website. Here is my stacktrace:

     

    System.NullReferenceException: Object reference not set to an instance of an object.

       at Infragistics.WebUI.UltraWebChart.UltraChart.Infragistics.UltraChart.Resources.IChartComponent.Invalidate(CacheLevel cacheLevel)

       at Infragistics.UltraChart.Resources.Appearance.AppearanceHelper.UpdateParentProperty() 

       at Infragistics.UltraChart.Resources.Appearance.HistogramLineAppearance..ctor(IChartComponent component)  

       at Infragistics.UltraChart.Resources.Appearance.HistogramChartAppearance..ctor(IChartComponent component)  

       at Infragistics.WebUI.UltraWebChart.UltraChart.CreateAppearanceObjects()  

       at Infragistics.WebUI.UltraWebChart.UltraChart.CreateChart()

       at Infragistics.WebUI.UltraWebChart.UltraChart..ctor()

       at ASP.summary_pieresource_ascx.__BuildControlPieChart()

    I'd like to note that this issue reproduces very rarely. I don't know exact steps to make it reproduce.

    It reproduced once on Windows Server 2003, IE6 browser, IIS 6.0, Infragistics NetAdvantage 7.3.

    Do you have any updates for this issue? May be you can help with some steps to reproduce it?

    Note: I've got only one Infragistics chart on the page where this issue reproduced.

    Thanks ahead

    • Post Points: 20
  • 08-14-2008 12:44 In reply to

    Re: "Object reference not set to an instance of an object" in chart constructor

    i think i found the cause of this while fixing another bug (BR35075).  this issue was fixed on 7/31 and will be released in an upcoming hotfix.  i haven't experienced the same null reference exception reported on this thread, but i think it will go away in the hotfix due to changes made to HistogramLineAppearance.

    • Post Points: 5
Page 1 of 1 (5 items)
Powered by Community Server (Commercial Edition), by Telligent Systems