velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: NullPointerException in setDefaultProperties
Date Wed, 21 Jan 2004 16:35:17 GMT

Howdy,
Thanks, I'll try, but I don't think it matters.  The init() function is
still called internally anyways, then the overridingProperties (your
file) are processed.  

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Yiannis Mavroukakis [mailto:yiannis@jaguarfreight.com]
>Sent: Wednesday, January 21, 2004 11:34 AM
>To: 'Velocity Users List'
>Subject: RE: NullPointerException in setDefaultProperties
>
>More or less the same, here it is:
>=========
># Velocity Properties
>runtime.log=/unix/velocity.log
>runtime.log.logsystem.class =
>org.apache.velocity.runtime.log.AvalonLogSystem
># This property has no default value. It is used to give Velocity an
>instantiated instance of a logging class that supports the interface
>org.apache.velocity.runtime.log.LogSystem., which allows the
combination of
>Velocity log messages with your other application log messages. Please
see
>the section Configuring the Log System for more information.
># runtime.log.logsystem
># Class to be used for the Velocity-instantiated log system.
># runtime.log.logsystem.class =
>org.apache.velocity.runtime.log.AvalonLogSystem
># Turns on stacktracing for the three error categories. These produce a
>large amount of log output.
>runtime.log.error.stacktrace = true
>runtime.log.warn.stacktrace = true
>runtime.log.info.stacktrace = true
># Property to turn off the log output when a reference isn't valid.
Good
>thing to turn of in production, but very valuable for debugging
>runtime.log.invalid.references = true
># Character encoding for input (templates). Using this, you can use
>alternative encoding for your templates, such as UTF-8
>input.encoding = ISO-8859-1
># Character encoding for output streams from the VelocityServlet and
>Anakia.
>output.encoding = ISO-8859-1
># #foreach configuration
>directive.foreach.counter.name = velocityCount
>directive.foreach.initial.value = 1
>directive.include.output.errormsg.start = <![[
>directive.include.output.errormsg.end = ]]>
>resource.loader = file
>file.resource.loader.description = Velocity File Resource Loader
>file.resource.loader.class =
>org.apache.velocity.runtime.resource.loader.FileResourceLoader
>file.resource.loader.path = /opt/cybertrax/WEB-INF/templates/company/
>file.resource.loader.cache = true
>file.resource.loader.modificationCheckInterval = 2
>velocimacro.library = inc/DAO_library.vm
>velocimacro.library.autoreload = true
>velocimacro.permissions.allow.inline = true
>velocimacro.permissions.allow.inline.to.replace.global = false
>velocimacro.permissions.allow.inline.local.scope = false
>velocimacro.context.localscope = false
>runtime.interpolate.string.literals = true
>parser.pool.size = 10
>output.compression = true
>==========
>
>I don't use the plain init() so I haven't determined behaviour for this
>sorry :(
>
>Yiannis
>-----Original Message-----
>From: Shapira, Yoav [mailto:Yoav.Shapira@mpi.com]
>Sent: 21 January 2004 16:28
>To: Velocity Users List
>Subject: RE: NullPointerException in setDefaultProperties
>
>
>
>Howdy,
>
>>I have a velocity.properties file, which I load into a Property
>>object and then provide it as an argument to VelocityEngine.init()
>
>What's in your velocity.properties?  A simple copy of the default
>properties?  If you use the plain .init() version without an argument,
>do you also get an NPE?  Thanks,
>
>Yoav Shapira
>
>
>
>This e-mail, including any attachments, is a confidential business
>communication, and may contain information that is confidential,
>proprietary
>and/or privileged.  This e-mail is intended only for the individual(s)
to
>whom it is addressed, and may not be saved, copied, printed, disclosed
or
>used by anyone else.  If you are not the(an) intended recipient, please
>immediately delete this e-mail from your computer system and notify the
>sender.  Thank you.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>
>_______________________________________________________________________
_
>This e-mail has been scanned for all viruses by Star Internet. The
>service is powered by MessageLabs.
>
>
>Note:__________________________________________________________________
>This message is for the named person's use only. It may contain
>confidential, proprietary or legally privileged information. No
>confidentiality or privilege is waived or lost by any mistransmission.
>If you receive this message in error, please immediately delete it and
>all copies of it from your system, destroy any hard copies of it and
>notify the sender. You must not, directly or indirectly, use, disclose,
>distribute, print, or copy any part of this message if you are not the
>intended recipient. Jaguar Freight Services and any of its subsidiaries
>each reserve the right to monitor all e-mail communications through its
>networks.
>Any views expressed in this message are those of the individual sender,
>except where the message states otherwise and the sender is authorized
>to state them to be the views of any such entity.
>_______________________________________________________________________
_
>This e-mail has been scanned for all viruses by Star Internet. The
>service is powered by MessageLabs.



This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message