Sunday, 15 April 2012

javascript - How to avoid the exception "Invalid hex characters in a String" -



javascript - How to avoid the exception "Invalid hex characters in a String" -

i'm using javascript , rhino (to java codes). want execute next code.

service.push(devicetoken,payload);

as first string contains 'x' gives next exception.

com.sun.phobos.script.util.extendedscriptexception: org.mozilla.javascript.wrappedexception: wrapped java.lang.runtimeexception: invalid hex character: x

that string has there is. hence no replaces possible.

i'm using java-apns , utilize method force notifications device token , payload.

your device token should contain hexadecimal characters 0–9 , a, b, c, d, e, f (or alternatively a–f)

javascript rhino

No comments:

Post a Comment