You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Thomas Singer <th...@regnis.de> on 2002/05/27 12:09:21 UTC

Anybody success with Texen?

Has anybody got Texen running? I tried the example, but it simply does not 
work (no file is created, beside the log-file).

Tom


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Anybody success with Texen?

Posted by Simon Christian <si...@cpd.co.uk>.
That was initially using 1.2, but I've just tried the same with 1.3rc1 
(the dep version) and get the same results.

Excerpt from log file:
-------------------------------------------------------
Mon May 27 12:00:27 GMT+00:00 2002   [info] ResourceManager : found 
Control.vm with loader 
org.apache.velocity.runtime.resource.loader.FileResourceLoader
Mon May 27 12:00:27 GMT+00:00 2002  [error] RHS of #set statement is 
null. Context will not be modified. Control.vm [line 14, column 5]
Mon May 27 12:00:27 GMT+00:00 2002  [error] ASTMethod.execute() : 
exception from introspection : java.lang.NullPointerException
Mon May 27 12:00:27 GMT+00:00 2002   [warn] 
org.apache.velocity.runtime.exception.ReferenceException: reference : 
template = Control.vm [line 15,column 5] : $g
enerator.parse("HtmlTemplate.vm", $outputFile, "planet", $planet) is not 
a valid reference.
-------------------------------------------------------

It's revealing looking at the TexenTask code: the only object placed 
into the context is $now, a java.util.Date.

- simon



Geir Magnusson Jr. wrote:

> On 5/27/02 7:50 AM, "Simon Christian" <si...@cpd.co.uk> wrote:
> 
> 
>>Tom,
>>
>>I've just had success with the example after a slight modification to
>>the 'Control.vm' file - on line 14 where is has:
>>
>>  #set ($outputFile = $stringutils.concat([$planet, ".html"]))
>>
>>I changed to
>>
>>  #set ($outputFile = $planet.concat( ".html" ))
>>
>>Evidently the $stringutils reference was not valid.
>>
> 
> Weird...  What version?
> 
> 



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Anybody success with Texen?

Posted by Matt Koss <m....@open.ac.uk>.
On Monday 27 May 2002 12:55 pm, Geir Magnusson Jr. wrote:
> On 5/27/02 7:50 AM, "Simon Christian" <si...@cpd.co.uk> wrote:
> > Tom,
> >
> > I've just had success with the example after a slight modification to
> > the 'Control.vm' file - on line 14 where is has:
> >
> >   #set ($outputFile = $stringutils.concat([$planet, ".html"]))
> >
> > I changed to
> >
> >   #set ($outputFile = $planet.concat( ".html" ))
> >
> > Evidently the $stringutils reference was not valid.
>
> Weird...  What version?

stringutils example didn't work for me either, but simple concatenating worked 
e.g. "${world.Instance}.jsp" 
instead of $stringutils.concat( [$world.Instance, ".jsp"]) 

Using latest 1.3rc1 velocity.

Cheers

Matt

-- 
Matt Koss
Knowledge Media Institute
Open University
e-mail: m.koss@open.ac.uk

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Anybody success with Texen?

Posted by "Geir Magnusson Jr." <ge...@optonline.net>.
On 5/27/02 7:50 AM, "Simon Christian" <si...@cpd.co.uk> wrote:

> Tom,
> 
> I've just had success with the example after a slight modification to
> the 'Control.vm' file - on line 14 where is has:
> 
>   #set ($outputFile = $stringutils.concat([$planet, ".html"]))
> 
> I changed to
> 
>   #set ($outputFile = $planet.concat( ".html" ))
> 
> Evidently the $stringutils reference was not valid.

Weird...  What version?

-- 
Geir Magnusson Jr.
Research & Development, Adeptra Inc.
geirm@adeptra.com
+1-203-247-1713



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Anybody success with Texen?

Posted by Simon Christian <si...@cpd.co.uk>.
Tom,

I've just had success with the example after a slight modification to 
the 'Control.vm' file - on line 14 where is has:

    #set ($outputFile = $stringutils.concat([$planet, ".html"]))

I changed to

    #set ($outputFile = $planet.concat( ".html" ))

Evidently the $stringutils reference was not valid.

- simon

Thomas Singer wrote:

> Has anybody got Texen running? I tried the example, but it simply does 
> not work (no file is created, beside the log-file).
> 
> Tom
> 
> 
> -- 
> To unsubscribe, e-mail:   
> <ma...@jakarta.apache.org>
> For additional commands, e-mail: 
> <ma...@jakarta.apache.org>
> 
=



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Anybody success with Texen?

Posted by "Geir Magnusson Jr." <ge...@optonline.net>.
On 5/27/02 6:09 AM, "Thomas Singer" <th...@regnis.de> wrote:

> Has anybody got Texen running? I tried the example, but it simply does not
> work (no file is created, beside the log-file).
> 

There is plenty of usage of Texen.  What does the log file say?

-- 
Geir Magnusson Jr.
Research & Development, Adeptra Inc.
geirm@adeptra.com
+1-203-247-1713



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>