I get NullPointerException in line below. filedName and fieldValue are not null.
acroFields.setField(fieldName, fieldValue);
In that particular line? Or is there a stack trace that points to something that gets called by "setField"? If not, is "acroFields" null? (It's probably blatantly obvious that it isn't, but just to make sure.)