I'm not familiar with the specific thing you are trying to do but I have seen similar exceptions for other things I have worked on and have resolved similar issues by explicitly creating the expected type specified in the exception .
document.setField('Width', new java.lang.Long(750));
Alex Bleasdale wrote:
I've written something like this:
document.setField('Width', 750);
But I get this exception:
org.mozilla.javascript.WrappedException: Wrapped org.outerj.daisy.repository.DocumentTypeInconsistencyException: The supplied value for the field "Width" is not of the correct type. Expected was a long (java.lang.Long) but got a java.lang.Double (#2)