[ 
https://issues.apache.org/jira/browse/VELOCITY-527?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12479726
 ] 

Nathan Bubna commented on VELOCITY-527:
---------------------------------------

If you are using VelocityEngine.evaluate(...), then you should look at 
FileProducer.java line 649 to start to trace the source of the wrong file name. 
 the evaluate() methods have nothing to do with Files.  they only take Strings, 
InputStreams or Readers.  I believe the "logTag" parameter is what is being 
treated as the file name.

This may also have something to do with the column and line numbers being off...

> Name of template truncated in error messages
> --------------------------------------------
>
>                 Key: VELOCITY-527
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-527
>             Project: Velocity
>          Issue Type: Bug
>    Affects Versions: 1.5
>         Environment: Windows XP Pro SP2, JDK 1.5
>            Reporter: Michael Giroux
>
> Following was posted to mailing list:
> On 3/9/07, Will Glass-Husain <[EMAIL PROTECTED]> wrote:
> > Ouch.  Always hate that first bug report after a new release!
> > 
> > Would you mind please creating a JIRA issue at:
> > http://issues.apache.org/jira
> > 
> > On 3/9/07, Michael Giroux <[EMAIL PROTECTED]> wrote:
> > > I just upgraded to Velocity 1.5.  A key feature for me is the new
> > > functionality to include filename, line and column in error messages.
> > > When I was testing this feature with a faulty template, I discovered
> > > that the filename is being truncated. In the error message below, the
> > > actual file name should be "business-service-interface.vm"  It appears
> > > the parser truncated at the first "-".
> > >
> > >
> > > java.lang.Exception: Encountered "#else" at line 51, column 33 of business
> > > Was expecting one of: ...
> > >
> > >
> > > Michael:
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > 
> > 
> > --
> > Forio Business Simulations
> > 
> > Will Glass-Husain
> > [EMAIL PROTECTED]
> > www.forio.com
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to