Symptoms or Error
From the console we can see a failed deployment for a personal hotspot policy, all other policies then in a pending state
Debug logs shows the following exception à
2016-04-04T14:07:10.26+0000 | C7DDC06021CE8581 [UID=64,usr=CitrixTest,dev=216] | ?? INFO | http-nio-10080-exec-60 | com.sparus.nps.apple.push.ApplePush | Installing profile /cfg/Cop-Restrictions on device 216.
2016-04-04T14:07:10.27+0000 | C7DDC06021CE8581 [UID=64,usr=CitrixTest,dev=216] |?? ERROR | http-nio-10080-exec-60 | com.sparus.nps.apple.push.ApplePush | Caught exception while dealing with target ApplePushTarget[os=iOS, device=216, user=CitrixTest, type=DEVICE] at 172.24.1.57. Aborting push.
java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String
?? ?? ?? at com.sparus.nps.ios.push.deployment.actions.ApplySettingsAction.execute(ApplySettingsAction.java:123)
?? ?? ?? at com.sparus.nps.ios.push.deployment.ActionResourceHandler.handleResource(ActionResourceHandler.java:107)
?? ?? ?? at com.sparus.nps.apple.push.deployment.DeploymentHandlerImpl.setupDeployment(DeploymentHandlerImpl.java:147)
??
Solution
A simple workaround is to simply recreate the device policy which will then store the value correctly and wont be an issue going forward.
Problem Cause
{“PersonalHotspot”:false}
??
On a fresh XMS this value is stored as a String: {"PersonalHotspot":"true"}
??
That explains the exception: ClassCastException: java.lang.Boolean cannot be cast to java.lang.String
Supporto Citrix
Traduzione automatica
Questo articolo ?? ¨ stato tradotto da un sistema di traduzione automatica e non ?? ¨ stata valutata da persone. Citrix fornisce traduzione automatica per aumentare l'accesso per supportare contenuti; tuttavia, articoli automaticamente tradotte possono possono contenere degli errori. Citrix non ?? ¨ responsabile di incongruenze, errori o danni derivanti dell'uso di articoli automaticamente tradotte.
Citrix技術支持
自動翻譯
這篇文章被翻譯由一個自動翻譯系統,並沒有受到人們的審查。 Citrix提供自動翻譯,增加獲得支持的內容;但是,自動翻譯的文章可能可以包含錯誤。思傑不負責不一致,錯誤或損壞因使用自動翻譯的文章的結果。
Поддержка Citrix
Tradução automática
Эта статья была переведена автоматической системой перевода и не был рассмотрен людьми. Citrix обеспечивает автоматический перевод с целью расширения доступа для поддержки контента; Однако, автоматически переведенные статьи могут может содержать ошибки. Citrix не несет ответственности за несоответствия, ошибки, или повреждения, возникшие в результате использования автоматически переведенных статей.
시트릭스 지원
자동 번역
이 문서 자동 번역 시스템에 의해 번역 된 사람들에 의해 검토되지 않았다. 시트릭스는 컨텐츠를 지원하기 위해 접근을 높이기 위해 자동 번역을 제공합니다; 그러나, 자동으로 번역 기사 오류를 포함 할 수있다. 시트릭스는 자동으로 번역 된 기사의 사용의 결과로 발생하는 불일치, 오류 또는 손해에 대해 책임을지지 않습니다.