Sounds like:

https://issues.apache.org/jira/browse/VELOCITY-720

Which would be reduced to a one-line warning if we upgrade to Velocity 1.7.

Can you please file a bug in Jira for this?

Thanks,

Doug

On 03/21/2011 11:38 AM, Arun Ramakrishnan wrote:
> Hi
>   I am encountering this problem with avro-compiler 1.5. This is while
> calling SpecificCompiler.compileSchema. Its is not really a problem
> since the java source files get generated, but I encounter this in the
> full log.
> 
> 
> **********************************
> 
> 4:56:28.819 [main] DEBUG AvroVelocityLogChute - Created '20' parsers.
> 
> 14:56:28.823 [main] DEBUG AvroVelocityLogChute - Velocimacro :
> "velocimacro.library" is not set.  Trying default library:
> VM_global_library.vm
> 
> 14:56:28.824 [main] DEBUG AvroVelocityLogChute - Velocity was not
> initialized! Calling init()...
> 
> 14:56:28.827 [main] DEBUG AvroVelocityLogChute - Could not load resource
> 'VM_global_library.vm' from ResourceLoader
> org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader: 
> 
> org.apache.velocity.exception.ResourceNotFoundException:
> ClasspathResourceLoader Error: cannot find resource VM_global_library.vm
> 
> at
> org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader.getResourceStream(ClasspathResourceLoader.java:131)
> ~[velocity-1.6.4.jar:1.6.4]
> 
> at
> org.apache.velocity.runtime.resource.loader.ResourceLoader.resourceExists(ResourceLoader.java:224)
> ~[velocity-1.6.4.jar:1.6.4]
> 
> at
> org.apache.velocity.runtime.resource.ResourceManagerImpl.getLoaderForResource(ResourceManagerImpl.java:641)
> [velocity-1.6.4.jar:1.6.4]
> 
> at
> org.apache.velocity.runtime.resource.ResourceManagerImpl.getLoaderNameForResource(ResourceManagerImpl.java:624)
> [velocity-1.6.4.jar:1.6.4]
> 
> at
> org.apache.velocity.runtime.RuntimeInstance.getLoaderNameForResource(RuntimeInstance.java:1464)
> [velocity-1.6.4.jar:1.6.4]
> 
> at
> org.apache.velocity.runtime.VelocimacroFactory.initVelocimacro(VelocimacroFactory.java:159)
> [velocity-1.6.4.jar:1.6.4]
> 
> at
> org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:261)
> [velocity-1.6.4.jar:1.6.4]
> 
> at
> org.apache.velocity.runtime.RuntimeInstance.requireInitialization(RuntimeInstance.java:290)
> [velocity-1.6.4.jar:1.6.4]
> 
> at
> org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1398)
> [velocity-1.6.4.jar:1.6.4]
> 
> at
> org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java:1380)
> [velocity-1.6.4.jar:1.6.4]
> 
> at
> org.apache.velocity.app.VelocityEngine.getTemplate(VelocityEngine.java:401)
> [velocity-1.6.4.jar:1.6.4]
> 
> at
> org.apache.avro.compiler.specific.SpecificCompiler.renderTemplate(SpecificCompiler.java:226)
> [avro-compiler-1.5.0.jar.zip:1.5.0]
> 
> at
> org.apache.avro.compiler.specific.SpecificCompiler.compile(SpecificCompiler.java:269)
> [avro-compiler-1.5.0.jar.zip:1.5.0]
> 
> at
> org.apache.avro.compiler.specific.SpecificCompiler.compileToDestination(SpecificCompiler.java:215)
> [avro-compiler-1.5.0.jar.zip:1.5.0]
> 
> at
> org.apache.avro.compiler.specific.SpecificCompiler.compileSchema(SpecificCompiler.java:165)
> [avro-compiler-1.5.0.jar.zip:1.5.0]
> 
> at com.incentica.avro.GenJava.main(GenJava.java:32) [bin/:na]
> 
> 14:56:28.828 [main] DEBUG AvroVelocityLogChute - Velocimacro : Default
> library not found.
> 
> 14:56:28.828 [main] DEBUG AvroVelocityLogChute - Velocimacro :
> allowInline = true : VMs can be defined inline in templates
> 
> 14:56:28.828 [main] DEBUG AvroVelocityLogChute - Velocimacro :
> allowInlineToOverride = false : VMs defined inline may NOT replace
> previous VM definitions
> 
> 14:56:28.828 [main] DEBUG AvroVelocityLogChute - Velocimacro :
> allowInlineLocal = false : VMs defined inline will be global in scope if
> allowed.
> 
> 14:56:28.828 [main] DEBUG AvroVelocityLogChute - Velocimacro : autoload
> off : VM system will not automatically reload global library macros
> 
> 14:56:28.849 [main] DEBUG AvroVelocityLogChute - ResourceManager : found
> /org/apache/avro/compiler/specific/templates/java/classic/record.vm with
> loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
> 
> **********************************************
> 
> 
> thanks
> 
> Arun
> 
> 

Reply via email to