ASF Bugzilla – Attachment 25815 Details for
Bug 49665
When file not found error occurs it does not tell you which file caused the error.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to file not found reports the file that caused the error.
jasper_error_reporting.patch (text/plain), 2.43 KB, created by
Ted Leung
on 2010-07-29 05:59:10 UTC
(
hide
)
Description:
patch to file not found reports the file that caused the error.
Filename:
MIME Type:
Creator:
Ted Leung
Created:
2010-07-29 05:59:10 UTC
Size:
2.43 KB
patch
obsolete
>Index: java/org/apache/jasper/compiler/TagLibraryInfoImpl.java >=================================================================== >--- java/org/apache/jasper/compiler/TagLibraryInfoImpl.java (revision 980280) >+++ java/org/apache/jasper/compiler/TagLibraryInfoImpl.java (working copy) >@@ -131,7 +131,7 @@ > * Constructor. > */ > public TagLibraryInfoImpl(JspCompilationContext ctxt, ParserController pc, PageInfo pi, >- String prefix, String uriIn, String[] location, ErrorDispatcher err) >+ String prefix, String uriIn, String[] location, ErrorDispatcher err, Mark mark) > throws JasperException { > super(prefix, uriIn); > >@@ -157,7 +157,7 @@ > throw new FileNotFoundException(location[0]); > } > } catch (FileNotFoundException ex) { >- err.jspError("jsp.error.file.not.found", location[0]); >+ err.jspError(mark, "jsp.error.file.not.found", location[0]); > } > > parseTLD(ctxt, location[0], in, null); >Index: java/org/apache/jasper/compiler/Parser.java >=================================================================== >--- java/org/apache/jasper/compiler/Parser.java (revision 980280) >+++ java/org/apache/jasper/compiler/Parser.java (working copy) >@@ -384,7 +384,7 @@ > if (impl == null) { > String[] location = ctxt.getTldLocation(uri); > impl = new TagLibraryInfoImpl(ctxt, parserController, pageInfo, >- prefix, uri, location, err); >+ prefix, uri, location, err, reader.mark()); > if (ctxt.getOptions().isCaching()) { > ctxt.getOptions().getCache().put(uri, impl); > } >Index: java/org/apache/jasper/compiler/JspDocumentParser.java >=================================================================== >--- java/org/apache/jasper/compiler/JspDocumentParser.java (revision 980280) >+++ java/org/apache/jasper/compiler/JspDocumentParser.java (working copy) >@@ -1288,7 +1288,7 @@ > prefix, > uri, > location, >- err); >+ err, null); > if (ctxt.getOptions().isCaching()) { > ctxt.getOptions().getCache().put(uri, result); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 49665
:
25814
|
25815
|
25816