Skip to main content
Inspiring
June 5, 2007
Answered

cfgrid and Internet Explorer Runtime Error

  • June 5, 2007
  • 7 replies
  • 1307 views
using cfgrid I frequently get a Microsft Visual C++ Runtime Library Runtime Error on Program: C:\Program Files\internet Explorer\ieexplore.exe. Clicking on the OK closes the internet window and I must start over. Has anyone else experienced this and solved it? The problem is quite annoying.
I use
I.E. 6.0.2800
Coldfusion MX7
Java Plug-in version 1.3.0_10
JRE version 1.3.0_01
Java Hotspot(TM) client VM

Text from the Java Console is as follows:

java.lang.NullPointerException

at java.util.Hashtable.get(Unknown Source)

at sun.applet.AppletPanel.getClassLoader(Unknown Source)

at sun.applet.AppletPanel.sendEvent(Unknown Source)

at sun.plugin.AppletViewer.onPrivateClose(Unknown Source)

at sun.plugin.AppletViewer$2.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)


    This topic has been closed for replies.
    Correct answer brenirish1234
    Thank You Guys!
    I downloaded version 1.4.2 and have been working with it for several hours and all is well. Thank you again!

    7 replies

    Inspiring
    June 6, 2007
    Awesome!

    Just send Phil a check ... .LOL!

    Inspiring
    June 5, 2007
    Please let us know if that works...
    brenirish1234AuthorCorrect answer
    Inspiring
    June 6, 2007
    Thank You Guys!
    I downloaded version 1.4.2 and have been working with it for several hours and all is well. Thank you again!
    Inspiring
    June 5, 2007
    If I were you, I would follow Phil's advice and update the JRE.

    Here is where you can download the latest version:

    http://java.sun.com/j2se/1.4.2/download.html


    Inspiring
    June 5, 2007
    Thank you,
    I have discussed this with my team lead and received the go-ahead. I shall indeed let you know.
    Participating Frequently
    June 5, 2007
    JRE version 1.3.0_01? Holy cow, this is quite old... have you considered updating your JRE?

    Phil
    Inspiring
    June 5, 2007
    Didn't know this was an old version. How do I upgrade? I have very little control over my computer.
    Inspiring
    June 5, 2007
    Can you please post the code you have written for your simple cfform with a 1 column grid so I can look at it?
    Inspiring
    June 5, 2007
    Hi,
    The 1st section is the display page while the 2nd is the processing page.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns=" http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    </head>
    <cfquery name="aTest" datasource="prodctlT">
    SELECT id,name
    FROM Table1
    </cfquery>
    <body>
    <cfform name="aTest" method="post" action="aTest1.cfm" height="700" width="1000">
    <cfinput type="submit" name="aTest">
    <cfgrid name="aTestGrid"
    query ="aTest"
    autowidth="yes"
    width="500"
    height= "200"
    colheaders="Yes"
    rowheaders="no"
    bgcolor="E4E4E4"
    selectmode="edit"
    colheaderbold="no"
    fontsize="14"
    delete="yes" deletebutton="DELETE"
    insert="yes" insertbutton="INSERT">

    <cfgridcolumn name="id" display="yes" header="ID" type="text">
    <cfgridcolumn name="name" display="yes" header="NAME" type="text">
    </cfgrid>
    </cfform>
    </body>
    </html>

    PROCESSING PAGE

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns=" http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>

    <cfif isdefined('form.aTestGrid.rowstatus.action')>
    <cfloop index="i" from ="1" to ="#arraylen(form.aTestGrid.rowstatus.action)#">
    <cfif form.aTestGrid.rowstatus.action is "U" >
    <cfquery name="updProdGrid1" datasource="prodctlT">
    UPDATE Table1
    SET
    Name = '#form.aTestGrid.name
    #',
    WHERE Id = #form.aTestGrid.original.Id #
    </cfquery>
    </cfif>

    <cfif form.aTestGrid.rowstatus.action
    is "D">
    <cfquery name="delProdName" datasource="prodctlT">
    SELECT
    FROM table1
    WHERE Id = #form.aTestGrid.original.Id #
    </cfquery>
    </cfif>

    <cfif form.aTestGrid.rowstatus.action
    is "I" >
    <cfquery name="insProdGrid" datasource="prodctlT">
    INSERT INTO table1
    (name,address)
    VALUES
    ('#form.aTestGrid.name #')
    </cfquery>
    </cfif>
    </cfloop>
    </cfif>
    <cflocation url = "aTest.cfm">
    </head>

    <body>
    </body>
    </html>

    Inspiring
    June 5, 2007
    1) Have you tried creating the simple grid as found in the CF docs?

    2) Have you tried clearing the cache in your browser?

    3) Have you tried using different browsers or different computers?


    Reading the error dump, however, points to referencing a variable or db column that does not exist.

    That's why i'm suggesting you create the simplest grid in the whole wide world and work your way up from there.
    Inspiring
    June 5, 2007
    I have cleaned up all extra files including the caches. I have not used it on different computers nor used different browers. We are supposed to create web pages for I.E.
    I shall try using a very simple grid. Do you think the a complex grid is the problem? I am using several grids to insert, delete and modify data from the database.
    Thank you very much.
    Inspiring
    June 5, 2007
    I created a simple cfform with a 1 column grid. After inserting a name 4 times on the 5th, I received the same I.E. error message.
    Inspiring
    June 5, 2007
    Does this happen with all CFGRIDs that you create, or is it just one specific one?

    Thanks,
    Peter
    Inspiring
    June 5, 2007
    All grids that I create. It is really causing a problem.