This is the same problem I had about 2 weeks ago, got busy after sending my 
configuration files into the list. No response came back to that config file request, 
so I assume that there was nothing wrong with the files.

I used devgui to auto-generate jsp for about 15 tables. The jsp looks fine. I have the 
same jar file for the MySQL database available to tomcat as is available to devgui. 
All the tables error out at this point:

org.apache.jasper.JasperException
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)

<stuff removed>

root cause 

java.lang.NullPointerException
at org.dbforms.taglib.DbFormTag.setTableName(DbFormTag.java:300)
at 
org.apache.jsp.budget_raw_viewTable_jsp._jspService(budget_raw_viewTable_jsp.java:144)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

Note that it is not a configuration issue because config.getTableByName works. It is 
when the system attempts to get the table id that it fails. 

Any ideas?

Thanks,
Bill

Supporting code snippets:

 budget_raw_viewTable_jsp.java  (corresponding servlet-generated java file to the jsp)
         
          org.dbforms.taglib.DbFormTag _jspx_th_db_dbform_0 = 
(org.dbforms.taglib.DbFormTag) 
_jspx_tagPool_db_dbform_tableName_multipart_maxRows_followUp_autoUpdate.get(org.dbforms.taglib.DbFormTag.class);
      _jspx_th_db_dbform_0.setPageContext(pageContext);
      _jspx_th_db_dbform_0.setParent(null);
      _jspx_th_db_dbform_0.setMultipart("false");
      _jspx_th_db_dbform_0.setAutoUpdate("false");
      _jspx_th_db_dbform_0.setFollowUp("/budget_raw_viewTable.jsp");
      _jspx_th_db_dbform_0.setMaxRows("15");
      _jspx_th_db_dbform_0.setTableName("budget_raw"); // Line 144 where error occurred

DbFormTag.java 

        /**
           /**
         *  Sets the tableName attribute of the DbFormTag object
         *
         * @param  tableName The new tableName value
         */
        public void setTableName(String tableName) {
                this.tableName = tableName;
                this.table = config.getTableByName(tableName);
                this.tableId = table.getId();  // line 300 where error occurred
        }+wzf+,좷o$y؜2{+8bAzAhb+^vئz.!b
'jYh׫梷򺖧vh%a}Ƙz))wa
0&zb)]Ƣ).+-i0~zwߢ

Reply via email to