0
public void updateSignature(ExchangeService exchange, String signature) {
try {
FolderId f = new FolderId(WellKnownFolderName.Root);
UserConfiguration user = UserConfiguration.bind(exchange,
"OWA.UserOptions", f, UserConfigurationProperties.All);
if (user.getDictionary().containsKey("signaturetext"))
user.getDictionary().setElements("signaturetext", signature);
else
user.getDictionary().addElement("signaturetext", signature);
user.update();
} catch (Exception e) {
e.printStackTrace();
}
}
user.update()에 대한 널 포인터 예외가 발생합니다. 콘솔에서 새 서명을 설정하기 전에 이전 서명을 인쇄 할 수 있으며 사전에 설정 한 후에 새 서명을 인쇄 할 수도 있습니다. 그러나 변경 사항을 영구적으로 업데이트 할 수는 없습니다. 미리 감사드립니다 .EWS 서명 업데이트 오류