Menu

#2 single line comment can't end file.

open
None
5
2003-05-06
2003-05-06
Anonymous
No

Got the following error when a single line comment was
the last line of a template.

NVelocity.Exception.ParseErrorException: Lexical
error: NVelocity.Runtime.Parser.TokenMgrError: Lexical
error at line 58, column 66. Encountered: after : ""
at NVelocity.Runtime.Parser.Parser.process() in
C:\Data\work\SourceForge\NVelocity\src\Runtime\Parse
r\Parser.cs:line 267
at NVelocity.Runtime.Parser.Parser.parse
(TextReader reader, String templateName) in
C:\Data\work\SourceForge\NVelocity\src\Runtime\Parse
r\Parser.cs:line 115

Server stack trace:
at
NVelocity.Runtime.Resource.ResourceManagerImpl.get
Resource(String resourceName, Int32 resourceType,
String encoding) in
C:\Data\work\SourceForge\NVelocity\src\Runtime\Resou
rce\ResourceManagerImpl.cs:line 261
at NVelocity.Runtime.RuntimeInstance.getTemplate
(String name, String encoding) in
C:\Data\work\SourceForge\NVelocity\src\Runtime\Runti
meInstance.cs:line 726
at NVelocity.Runtime.RuntimeInstance.getTemplate
(String name) in
C:\Data\work\SourceForge\NVelocity\src\Runtime\Runti
meInstance.cs:line 707
at NVelocity.Runtime.RuntimeSingleton.getTemplate
(String name) in
C:\Data\work\SourceForge\NVelocity\src\Runtime\Runti
meSingleton.cs:line 281
at NVelocity.App.Velocity.GetTemplate(String name)
in
C:\Data\work\SourceForge\NVelocity\src\App\Velocity.c
s:line 355
at
Seamless.Manhattan.BusinessLogic.InvoiceFormat.For
mat(Invoice invoice) in
C:\Data\seamlessweb\manhattan\src\BusinessLogic\Inv
oiceFormat.cs:line 153
at
Seamless.Manhattan.Facade.FirmFacade.GetFormatted
Invoice(IdType invoiceId, IdType invoiceFormatId) in
C:\Data\seamlessweb\manhattan\src\Facade\FirmFacad
e.cs:line 64
at
System.Runtime.Remoting.Messaging.Message.Dispatc
h(Object target, Boolean fExecuteInContext)
at
System.Runtime.Remoting.Messaging.StackBuilderSink
.SyncProcessMessage(IMessage msg, Int32
methodPtr, Boolean fExecuteInContext)

Exception rethrown at [0]:
at
System.Runtime.Remoting.Proxies.RealProxy.HandleRe
turnMessage(IMessage reqMsg, IMessage retMsg)
at
System.Runtime.Remoting.Proxies.RealProxy.PrivateInv
oke(MessageData& msgData, Int32 type)
at
Seamless.Manhattan.Facade.FirmFacade.GetFormatted
Invoice(IdType invoiceId, IdType invoiceFormatId) in
C:\Data\seamlessweb\manhattan\src\Facade\FirmFacad
e.cs:line 58
at
Seamless.Manhattan.UI.Web.Controller.GetFormattedInv
oice.SecurePerform() in
C:\Data\seamlessweb\manhattan\src\UI\Web\Controller\ GetFormattedInvoice.cs:line 34
at
Seamless.Manhattan.UI.Web.Controller.ProtectedContro
ller.SafePerform() in
C:\Data\seamlessweb\manhattan\src\UI\Web\Controller\ ProtectedController.cs:line 36
at
Seamless.Manhattan.UI.Web.Controller.ErrorableControl
ler.Perform() in
C:\Data\seamlessweb\manhattan\src\UI\Web\Controller\ ErrorableController.cs:line 29

Discussion

  • Nobody/Anonymous

    template

     
  • Cort Schaefer

    Cort Schaefer - 2003-05-06
    • assigned_to: nobody --> corts
     
  • Cort Schaefer

    Cort Schaefer - 2003-10-29

    Logged In: YES
    user_id=541173

    This was identified in the Java version an looks like it will be
    available in the 1.4 version (which will probably be 0.5 for
    NVelocity).

    http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7382

     

Log in to post a comment.