Messages and Codes Reference Guide (PDF)

Messages and Codes Reference Guide — Chapter 13

« Previous chapter
Next chapter »

JS Messages

JS-APPLY

Message Text

Cannot apply function: variable1

Cause

A JavaScript function passed in from another thread cannot be applied

Response

Avoid passing JavaScript functions as parameters that may be executed from a different thread.

JS-ASSERTERROR

Message Text

Assertion Error

Cause

An assertion in a JavaScript program fails

Response

Check your JavaScript program for the above assertion.

JS-BAD

Message Text

Unexpected failure: variable1 variable2

Cause

A JavaScript request causes an unexpected error while executing it.

Response

If you have a current maintenance contract, you can contact MarkLogic Technical Support.

JS-CTORASFUNCTION

Message Text

Cannot call constructor as function: variable1

JS-CTSWALK

Message Text

An exception is thrown from user callback function: variable1

JS-DECLAREUPDATE

Message Text

JavaScript updates must begin with declareUpdate()

JS-DOMERROR

Message Text

DOM API error: code variable1

JS-FATAL

Message Text

Request has fatal error: variable1

Cause

A JavaScript request causes a fatal error while executing it. This is often seen when the program requires too much memory or causes stack overflow.

Response

Check your JavaScript program for the above causes. For more assistance, contact MarkLogic Technical Support if you have a current maintenance contract.

JS-FROM

Message Text

Cannot convert undefined or null to object

JS-FROM-INVALIDMAPOPTION

Message Text

Invalid map option name

JS-FROM-INVALIDNUMBER

Message Text

sequence limit provided is not a valid number

JS-FROM-LIMITEXCEEDED

Message Text

Sequence limit exceeded

JS-FROM2

Message Text

variable1 is not a function

JS-ILLEGALMODULEPATH

Message Text

require: null or illegal module path variable1

Cause

The module path passed in to require function is not a non-empty string.

Response

Check the parameter passed to require.

JS-JAVASCRIPT

Message Text

Error running JavaScript request: variable1

Cause

A JavaScript request causes an error executing it

Response

Check the JavaScript program for syntax errors etc.

JS-JAVASCRIPTSIZE

Message Text

Size exceeds JavaScript type limit: variable1

JS-NOUPDATEALLOWED

Message Text

The JavaScript object cannot be updated: variable1

JS-NULLARGUMENT

Message Text

Argument cannot be null: variable1

JS-OOM

Message Text

Request runs out of memory: variable1

Cause

A JavaScript program requires too much memory to execute.

Response

Check your JavaScript program.

JS-PROGRAMTOOLARGE

Message Text

JavaScript program text exceeds limit:variable1 variable2...

Cause

JavaScript program text cannot exceed 512MB

JS-RANGE

Message Text

RangeError: Invalid array length

JS-TYPENOCTOR

Message Text

No constructor found for type: variable1

JS-WRAPPED

Message Text

Cannot pass a map:map or json:array value by reference to JavaScript which contains a JavaScript object

« Previous chapter
Next chapter »
Powered by MarkLogic Server | Terms of Use | Privacy Policy