Bug 36168 - Need better error messages when config or option xml files not found
Summary: Need better error messages when config or option xml files not found
Status: RESOLVED FIXED
Alias: None
Product: Taglibs
Classification: Unclassified
Component: RDC Taglib (show other bugs)
Version: 1.0
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-12 20:00 UTC by stu robertson
Modified: 2005-08-18 01:19 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description stu robertson 2005-08-12 20:00:12 UTC
Currently, if the value of the RDC attributes specifying config or option files
doesn't resolve to a valid XML file, a crypic exception is thrown.  It would be
better if the RDC gave an error message indicating the problem, and specifying
the value of the attribute it failed to find.

I may take a swing at fixing this one, but wanted to get this into bugilla.  

org.xml.sax.SAXParseException: Premature end of file.
	at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
	at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
	at
org.apache.taglibs.standard.tag.common.xml.ParseSupport.parseInputSource(Unknown
Source)
	at
org.apache.taglibs.standard.tag.common.xml.ParseSupport.parseInputSourceWithFilter(Unknown
Source)
	at
org.apache.taglibs.standard.tag.common.xml.ParseSupport.parseReaderWithFilter(Unknown
Source)
	at org.apache.taglibs.standard.tag.common.xml.ParseSupport.doEndTag(Unknown Source)
	at
com.ibm.ws.jsp.tagfile.taglibs_2D_rdc.rdc._configure._jspx_meth_x_parse_0(_configure.java:216)
	at
com.ibm.ws.jsp.tagfile.taglibs_2D_rdc.rdc._configure._jspx_meth_c_import_0(_configure.java:265)
	at
com.ibm.ws.jsp.tagfile.taglibs_2D_rdc.rdc._configure._jspx_meth_c_otherwise_0(_configure.java:303)
	at
com.ibm.ws.jsp.tagfile.taglibs_2D_rdc.rdc._configure._jspx_meth_c_choose_0(_configure.java:335)
	at com.ibm.ws.jsp.tagfile.taglibs_2D_rdc.rdc._configure.doTag(_configure.java:99)
	at
com.ibm.ws.jsp.tagfile.taglibs_2D_rdc.rdc._ssn._jspx_meth_rdc_configure_0(_ssn.java:494)
	at
com.ibm.ws.jsp.tagfile.taglibs_2D_rdc.rdc._ssn._jspx_meth_c_when_0(_ssn.java:608)
	at
com.ibm.ws.jsp.tagfile.taglibs_2D_rdc.rdc._ssn._jspx_meth_c_choose_0(_ssn.java:708)
	at com.ibm.ws.jsp.tagfile.taglibs_2D_rdc.rdc._ssn.doTag(_ssn.java:220)
	at
com.ibm._jsp._member_2D_enter_2D_ssn$_member_2D_enter_2D_ssnHelper.invoke0(_member_2D_enter_2D_ssn.java:207)
	at
com.ibm._jsp._member_2D_enter_2D_ssn$_member_2D_enter_2D_ssnHelper.invoke(_member_2D_enter_2D_ssn.java:226)
	at com.ibm.ws.jsp.tagfile.taglibs_2D_rdc.rdc._task.doTag(_task.java:77)
Comment 1 Rahul Akolkar 2005-08-18 09:19:49 UTC
I've made a couple of changes based on your feedback -- client-side, a prompt 
will play indicating the file name that was not found/parsed and the ID of the 
RDC that was looking for the file, followed by a VoiceXML <exit/> with the 
error message as the expr attribute; and server-side, a marginally better 
error message will appear in the logs.

Thanks for the feedback.