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

Michael Giroux commented on VELOCITY-527:
-----------------------------------------

OK, first let me say I'm sorry about the last remark.  The issue here is that 
the error message suggested (to me) that the file name was 'business' 
something.  In fact, the file name was actually session-facade.vm so this JIRA 
is not just about file name truncation, but having the wrong file name all 
together.

Next, I added the comment before I did a refresh so I did not see the post by 
Claude.  I'll do better next time.

Finally, as I was collecting the full trace for Claude, I discovered that the 
code (that would be code I inherited, but no excuses, it's my code) is catching 
the exception and rethrowing a java.lang.Exception.  I'll correct my code to 
display the original stack trace and post it soon.


> 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