Search code examples
marklogicmarklogic-9

How can I avoid error trying to get the developer license?


When clicking on 'get developer license' from the admin interface I get the following error. How can I fix it?

500 Internal Server Error
XDMP-CAST: (err:FORG0001) xs:integer(fn:substring-before($version, ".")) -- Invalid cast: "" cast as xs:integer
in /3.X/default.xqy, at 192:0 [0.9-ml]
$version = ""
$hostname = ""
$cpus = ""
$platform = ""
$target = ""
$licensee = ""
$company = ""
$email = ""
$website = ""
$phonenumber = ""
$usage = ""
$title = ""
$employees = ()
$address = ""
$city = ""
$state = ""
$zip = ""
$retrying = ()
$host = "developer.marklogic.com"
$mint = "mint.marklogic.com"
$mint-url = "http://mint.marklogic.com/3X/demo-keygen-3.X.xqy"

Solution

  • Try adding your marklogic version (9.0-6 in my case) to the url like this:

    https://developer.marklogic.com/license/3.X/default.xqy?version=9.0-6&hostname=&cpus=&platform=&target=&licensee=&company=&email=&website=&phonenumber=&address=&city=&state=&zip=&title=&usage=
    

    This gets me to the next window where you can request your licence key. I am still waiting for a email with my licence key though.

    Update: This issue has been resolved by MarkLogic. My suggested solution to request a licence key should not be needed anymore. See comments on this answer for details.