Error Class 39: External Routine Invocation Exception

Error Class 39: External Routine Invocation Exception
SQLSTATE Message Text
39004 A NULL value cannot be passed to a method which takes a parameter of primitive type '<type>'.