Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error : UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 1110: ordinal not in range(128) in <script> at line number 28' on task 'xld_deploy' #92

Open
edahenit opened this issue Feb 12, 2018 · 0 comments

Comments

@edahenit
Copy link

hello,

I always get the error each time the XL Deploy response contains a character such as é or à :
javax.script.ScriptException: UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 1110: ordinal not in range(128) in <script> at line number 28
at org.python.jsr223.PyScriptEngine.scriptException(PyScriptEngine.java:222)
at org.python.jsr223.PyScriptEngine.eval(PyScriptEngine.java:59)
at org.python.jsr223.PyScriptEngine.eval(PyScriptEngine.java:31)
at com.xebialabs.xlrelease.script.Jsr223ScriptExecutor.lambda$evalScriptPrivileged$186(Jsr223ScriptExecutor.java:60)
at java.security.AccessController.doPrivileged(Native Method)
at com.xebialabs.xlrelease.script.Jsr223ScriptExecutor.evalScriptPrivileged(Jsr223ScriptExecutor.java:60)
at com.xebialabs.xlrelease.script.jython.JythonScriptExecutor.evalScriptWithUtilities(JythonScriptExecutor.java:60)
at com.xebialabs.xlrelease.script.jython.JythonScriptExecutor.evalScriptWithApi(JythonScriptExecutor.java:49)
at com.xebialabs.xlrelease.script.DefaultScriptService.executeScript(DefaultScriptService.java:557)
at com.xebialabs.xlrelease.script.DefaultScriptService.lambda$executeCustomScriptTask$181(DefaultScriptService.java:203)
at com.xebialabs.deployit.plumbing.scheduler.Scheduler.lambda$withLoggedExceptions$0(Scheduler.java:68)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.python.core.PyException: null
at org.python.core.codecs.strict_errors(codecs.java:208)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.python.core.JavaFunc.call(Py.java:3029)
at org.python.core.PyObject.call(PyObject.java:450)
at org.python.core.codecs.encoding_error(codecs.java:1538)
at org.python.core.codecs.PyUnicode_EncodeIntLimited(codecs.java:1211)
at org.python.core.codecs.PyUnicode_EncodeASCII(codecs.java:1170)
at org.python.core.codecs.encode(codecs.java:165)
at org.python.core.PyString.encode(PyString.java:3981)
at org.python.core.PyString.str_encode(PyString.java:3989)
at org.python.core.PyUnicode.unicode_encode(PyUnicode.java:1851)
at org.python.core.PyUnicode$unicode_encode_exposer.call(Unknown Source)
at org.python.core.PyObject.call(PyObject.java:480)
at org.python.core.PyObject.call(PyObject.java:484)
at xml.parsers.expat$py.Parse$14(C:/product/xl-release-7.5.0-server/lib/jython-standalone-2.7.1.patch2609.jar/Lib/xml/parsers/expat.py:213)
at xml.parsers.expat$py.call_function(C:/product/xl-release-7.5.0-server/lib/jython-standalone-2.7.1.patch2609.jar/Lib/xml/parsers/expat.py)
at org.python.core.PyTableCode.call(PyTableCode.java:171)
at org.python.core.PyBaseCode.call(PyBaseCode.java:171)
at org.python.core.PyFunction.call(PyFunction.java:434)
at org.python.core.PyMethod.call(PyMethod.java:156)
at xml.etree.ElementTree$py.feed$109(C:/product/xl-release-7.5.0-server/lib/jython-standalone-2.7.1.patch2609.jar/Lib/xml/etree/ElementTree.py:1655)
at xml.etree.ElementTree$py.call_function(C:/product/xl-release-7.5.0-server/lib/jython-standalone-2.7.1.patch2609.jar/Lib/xml/etree/ElementTree.py)
at org.python.core.PyTableCode.call(PyTableCode.java:171)
at org.python.core.PyBaseCode.call(PyBaseCode.java:154)
at org.python.core.PyFunction.call(PyFunction.java:423)
at org.python.core.PyMethod.call(PyMethod.java:141)
at xml.etree.ElementTree$py.XML$86(C:/product/xl-release-7.5.0-server/lib/jython-standalone-2.7.1.patch2609.jar/Lib/xml/etree/ElementTree.py:1314)
at xml.etree.ElementTree$py.call_function(C:/product/xl-release-7.5.0-server/lib/jython-standalone-2.7.1.patch2609.jar/Lib/xml/etree/ElementTree.py)
at org.python.core.PyTableCode.call(PyTableCode.java:171)
at org.python.core.PyBaseCode.call(PyBaseCode.java:308)
at org.python.core.PyBaseCode.call(PyBaseCode.java:132)
at org.python.core.PyFunction.call(PyFunction.java:413)
at xlr_xldeploy.XLDeployClient$py.add_orchestrators$8(pyclasspath/xlr_xldeploy/XLDeployClient.py:100)
at xlr_xldeploy.XLDeployClient$py.call_function(pyclasspath/xlr_xldeploy/XLDeployClient.py)
at org.python.core.PyTableCode.call(PyTableCode.java:171)
at org.python.core.PyBaseCode.call(PyBaseCode.java:154)
at org.python.core.PyFunction.call(PyFunction.java:423)
at xlr_xldeploy.XLDeployClient$py.deployment_prepare_deployeds$22(pyclasspath/xlr_xldeploy/XLDeployClient.py:250)
at xlr_xldeploy.XLDeployClient$py.call_function(pyclasspath/xlr_xldeploy/XLDeployClient.py)
at org.python.core.PyTableCode.call(PyTableCode.java:171)
at org.python.core.PyBaseCode.call(PyBaseCode.java:308)
at org.python.core.PyBaseCode.call(PyBaseCode.java:199)
at org.python.core.PyFunction.call(PyFunction.java:482)
at org.python.core.PyMethod.instancemethod___call__(PyMethod.java:237)
at org.python.core.PyMethod.call(PyMethod.java:228)
at org.python.core.PyMethod.call(PyMethod.java:218)
at org.python.pycode._pyx178.f$0(<script>:70)
at org.python.pycode._pyx178.call_function(<script>)
at org.python.core.PyTableCode.call(PyTableCode.java:171)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.Py.runCode(Py.java:1614)
at org.python.core.builtin.eval(builtin.java:497)
at org.python.core.builtin.eval(builtin.java:501)
at org.python.util.PythonInterpreter.eval(PythonInterpreter.java:259)
at org.python.jsr223.PyScriptEngine.eval(PyScriptEngine.java:57)
... 16 common frames omitted
2018-02-12 15:47:18.850 [scheduler-p
Can you help us ?

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant