Jedi,

Thanks for the quick reply.  I don't quite have the back slash change
working yet.
I also wanted to say thanks for the free CFWACK book at CFUNITED a few
years ago. I was the one who won your blog tat contest.

*I think you are referring to this file*:

F:\ColdFusion9\wwwroot\WEB-INF\exception\java\lang\Exception.cfm

<cfimport taglib="../.." prefix="ex">
<ex:detail error=#error#>
</ex:detail>

Editing this file doesn't seem to change anything.

Any ideas?

*I also looked at this file*:
F:\ColdFusion9\wwwroot\WEB-INF\exception\errorcontext.cfm

<!---
  errorcontext.cfm reads the file specified by a TAGCONTEXT-type struct
  and returns an array of structures which contain the text of  the failing
  line,and lines near it, along with their line numbers.
  @param errorLocation  - the TAGCONTEXT entry for the failed template/line.
  @param showcontext    - number of additional lines before/after failure
displayed.
  @param resultVariable - the name of the caller's var where the resulting
--->

<cfparam name="attributes.errorLocation">
<cfparam name="attributes.showcontext">
<cfparam name="attributes.resultVariable">
<cfif thistag.executionmode is "start">
 <!--- localization --->
 <cfset locale = createObject("java",
"java.util.Locale").getDefault().getLanguage()>
 <cfset l10n_caller = "detail">

    <cftry>
        <cfif FileExists("exception_#locale#.xml")>
            <cfinclude template="exception_#locale#.xml">
        <cfelse>
            <cfinclude template="exception_en.xml">
        </cfif>
        <cfcatch>
            <cfinclude template="exception_en.xml">
        </cfcatch>
    </cftry>

 <cfset result = ArrayNew(1)>
 <cfscript>
  try
  {
  firstLine = attributes.errorLocation.line - attributes.showcontext;
  lastLine  = attributes.errorLocation.line + attributes.showcontext;
  //create an instance of VFSFileFactory to fetch the intputstream
  vfsfilefactory = createObject("java", "coldfusion.vfs.VFSFileFactory");

  //get the input stream for the file
  inputStream =
vfsfilefactory.getInputStream(attributes.errorLocation.Template);

  //  Wrap a InputStreamReader in a LineNumberReader to read the CFML
template as text.
  inputStreamReaderClass = createObject("java",
"java.io.InputStreamReader");
  inputStreamReader = inputStreamReaderClass.init(inputStream);

  lineReaderClass = createObject("java", "java.io.LineNumberReader" );
  lineReader = lineReaderClass.init(inputStreamReader);
  currentLine = lineReader.readLine();
  while ( isDefined("currentLine") and lineReader.getLineNumber() lte
lastLine )
  {
   if ( lineReader.getLineNumber() gte firstLine )
   {
       lineInfoStruct            = structNew();
    lineInfoStruct.line       = currentLine;
    lineInfoStruct.lineNumber = lineReader.getLineNumber();
    ArrayAppend(result, lineInfoStruct);
   }
   currentLine = lineReader.readLine();
  }
  } catch ( "Any" ex) {
   lineInfoStruct = structNew();
   lineInfoStruct.line = s_unable;
   lineInfoStruct.lineNumber = -1;
   lineInfoStruct.diagnostic = ex;

   ArrayAppend(result, lineInfoStruct);
  }
  finally
  {
   if(isDefined("lineReader"))
   {
    lineReader.close();
   }
  }
 </cfscript>
 <cfset setVariable("caller.#attributes.resultVariable#", result )>
</cfif>





On Wed, Nov 9, 2011 at 9:42 AM, Raymond Camden <[email protected]>wrote:

>
> The exception you see when an error occurs is actually driven by a CFM
> file, exception.cfm. In theory you can just edit that yourself.
>
>
> On Wed, Nov 9, 2011 at 9:04 AM, Ryan Duckworth
> <[email protected]> wrote:
> >
> > Does anyone know how to copy one of the paths below and open in
> ColdFusion
> > Builder 2…
> >
> > In ColdFusion Builder 1… File – Open – Paste Path – Enter…  would open
> the
> > file.
> >
> > I am not sure what caused paths in stack traces to change from back
> slashes
> > to forward slashes.
> >
> > Or, is there a way in the Local ColdFusion Admin to specify back slashes
> > instead of forward slashes in stack traces?
> > http://localhost/CFIDE/administrator/index.cfm
> >
> > Example Paths in Stack Trace:
> >
> > The error occurred in *G:/www/scripts/globalFunctions.cfm*: line 449
> > Called from *G:/www/com/server/Example.cfc*: line 5268
> >
> > Thanks,
> > Ryan
> >
>
> --
> ===========================================================================
> Raymond Camden, Adobe Developer Evangelist
>
> Email : [email protected]
> Blog : www.coldfusionjedi.com
> Twitter: cfjed
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348538
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to