Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Velocity Problem after QB update #2630

Laba42 ·
We updated our QB from 5.0x to 5.1.1
After the update, the evaluation of velocity templates fails

<HTML>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<BODY>
#set( $Link = ${vars.get("ParentBuildID")} )
<table width="100%" cellspacing="1" cellpadding="5" border="0" >
<tr bgcolor="99C1DB" >
<td valign="top" ><a style="text-decoration: none;" target="_blank" href="$system.url/build/$Link/scm_changes">
<font size="3" color="000000">Zu den Perfocre Änderungen, des zugehörigen Elternknotens, <b>($configuration.parent)</b></font></a>
</td>
</tr>
</table>
</BODY>
</HTML>


Error Message

14:05:07,296 TRACE - Velocimacro : initialization starting.
14:05:07,296 DEBUG - Velocimacro : "velocimacro.library" is not set. Trying default library: VM_global_library.vm
14:05:07,296 DEBUG - Velocimacro : Default library not found.
14:05:07,296 DEBUG - Velocimacro : allowInline = true : VMs can be defined inline in templates
14:05:07,296 DEBUG - Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions
14:05:07,296 DEBUG - Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed.
14:05:07,296 DEBUG - Velocimacro : autoload off : VM system will not automatically reload global library macros
14:05:07,296 TRACE - Velocimacro : Velocimacro : initialization complete.
14:05:07,296 TRACE - RuntimeInstance successfully initialized.
14:05:07,296 INFO - Executing post-execute action...
14:05:07,296 ERROR - Step 'master>Composition-SCM-Link>Misc-Create-SCM-Changes-Link' is failed: Failed to evaluate Velocity template.
14:05:07,296 TRACE - Stack trace for the failure
com.pmease.quickbuild.QuickbuildException: Failed to evaluate Velocity template.
at com.pmease.quickbuild.util.ExceptionUtils.wrapException(ExceptionUtils.java:89)
at com.pmease.quickbuild.plugin.basis.TemplateEvalStep.run(TemplateEvalStep.java:84)
at com.pmease.quickbuild.plugin.basis.TemplateEvalStep$$EnhancerByCGLIB$$7b1b3c73.CGLIB$run$0(<generated>)
at com.pmease.quickbuild.plugin.basis.TemplateEvalStep$$EnhancerByCGLIB$$7b1b3c73$$FastClassByCGLIB$$f468f0d8.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:215)
at com.pmease.quickbuild.DefaultScriptEngine$Interpolator.intercept(DefaultScriptEngine.java:270)
at com.pmease.quickbuild.plugin.basis.TemplateEvalStep$$EnhancerByCGLIB$$7b1b3c73.run(<generated>)
at com.pmease.quickbuild.stepsupport.Step.execute(Step.java:508)
at com.pmease.quickbuild.stepsupport.StepExecutionJob.executeStepAwareJob(StepExecutionJob.java:30)
at com.pmease.quickbuild.stepsupport.StepAwareJob.executeBuildAwareJob(StepAwareJob.java:47)
at com.pmease.quickbuild.BuildAwareJob.execute(BuildAwareJob.java:61)
at com.pmease.quickbuild.grid.GridJob.run(GridJob.java:71)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException: logTag (i.e. template name) cannot be null, you must provide an identifier for the content being evaluated
at org.apache.velocity.runtime.RuntimeInstance.evaluate(RuntimeInstance.java:1291)
at org.apache.velocity.runtime.RuntimeInstance.evaluate(RuntimeInstance.java:1265)
at org.apache.velocity.app.VelocityEngine.evaluate(VelocityEngine.java:199)
at com.pmease.quickbuild.plugin.basis.TemplateEvalStep.run(TemplateEvalStep.java:80)
... 16 more
14:05:07,491 INFO -


could it be due to the update?

Georg
  • replies 5
  • views 2606
  • stars 0
robinshen ADMIN ·
Probably. We upgraded velocity engine to most recent version in 5.1.1, and we tested against the default html template and it works. Maybe you've customized the template?
Laba42 ·
I have customized the template <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: -->
	
<HTML>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<BODY>
<p>nix</p>
</BODY>
</HTML>


produces the same error
robinshen ADMIN ·
Thanks for the info. This is a bug and has been logged as:
http://track.pmease.com/browse/QB-1882

This bug will be fixed in 5.1.3 and you may watch the bug to get notification when the fix is released
robinshen ADMIN ·
Now fixed in 5.1.2.
Laba42 ·
Thanks