Project

General

Profile

Defect #1608

When running plugins.VelocityReport.getPDFReport('contract.html', json) the error no protocol apears in the servoy admin log

Added by Gerard Immeker 3 months ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
velocity
Target version:
Start date:
10/29/2025
Due date:
% Done:

0%

Estimated time:
Browser (if web client):

Description

Hi Patrick,

When I run var byteArray = plugins.VelocityReport.getPDFReport('contract.html', json); the error no protocol apears in the servoy admin log.
What could be the issue?

I am using version 3.9.6.

Regards,

Gerard Immeker

History

#1

Updated by Gerard Immeker 3 months ago

THe resut of the var byteArray = null.

#2

Updated by Gerard Immeker 3 months ago

You can close the issue, found the problem.
On my localhost the velocityreport.serverURL was not set

#3

Updated by Patrick Talbot 3 months ago

Indeed a base URL is needed for the XML parser to locate possible referenced external files to include and create a XML Document that the renderer can then create a PDF from... So the velocityreport.serverURL is used for this (among others things :)).
In later versions (starting v3.9.7 - see https://www.servoyforge.net/news/699 ) I'm setting a default URL if velocityreport.serverURL is not set.

#4

Updated by Patrick Talbot 3 months ago

  • Status changed from New to Resolved

Also available in: Atom PDF