javax.script.ScriptException

org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x65 (at char #7197, byte #3999)


Solutions on the web281

Solution icon of web
org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x65 (at char #7197, byte #3999)

Solution icon of web
sun.org.mozilla.javascript.internal.EvaluatorException: The choice of Java constructor write matching JavaScript argument types ([B) is ambiguous; candidate constructors are: void write(int) void write(byte[]) (#1) in at line number 1

Solution icon of stackoverflow
SyntaxError: empty range in char class in <eval> at line number 41

Solution icon of web
sun.org.mozilla.javascript.internal.WrappedException: Wrapped java.lang.NullPointerException (Unknown Source#8) in Unknown Source at line number 8

Solution icon of stackoverflow
sun.org.mozilla.javascript.internal.EcmaError: TypeError: Cannot find function map. (<Unknown source>#8) in <Unknown source> at line number 8

Solution icon of web
sun.org.mozilla.javascript.internal.EvaluatorException: The choice of Java constructor replace matching JavaScript argument types (function,string) is ambiguous; candidate constructors are: class java.lang.String replace(char,char) class java.lang.String replace(java.lang.CharSequence,java.lang.CharSequence) (<Unknown source>#5) in <Unknown source> at line number 5

Solution icon of web
via java-forum.org by Unknown author, 1 year ago
sun.org.mozilla.javascript.internal.EvaluatorException: The choice of Java constructor replace matching JavaScript argument types (function,string) is ambiguous; candidate constructors are: class java.lang.String replace(java.lang.CharSequence,java.lang.CharSequence) class java.lang.String replace(char,char) (<Unknown source>#1) in <Unknown source> at line number 1

Solution icon of github
via GitHub by Xgamefactory
, 7 months ago
sun.org.mozilla.javascript.internal.Eva luatorException: The choice of Java constructor replace matching JavaScript argu ment types (function,string) is ambiguous; candidate constructors are: class java.lang.String replace(char,char) class java.lang.String replace(java.lang.CharSequence,java.lang.CharSequence ) (<Unknown source>#5) in <Unknown source> at line number 5

Solution icon of github
java.lang.RuntimeException: java.lang.ClassNotFoundException: org.bukkit.Location in <eval> at line number 622 at column number 8

Solution icon of stackoverflow
SyntaxError: no viable alternative at input 'has_next_page' in <script> at line number 178 at column number 8

Stack trace

  • javax.script.ScriptException: org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x65 (at char #7197, byte #3999) at com.sun.script.groovy.GroovyScriptEngine.eval(GroovyScriptEngine.java:245) at com.sun.script.groovy.GroovyCompiledScript.eval(GroovyCompiledScript.java:46) at javax.script.CompiledScript.eval(CompiledScript.java:75) at org.apache.synapse.mediators.bsf.ScriptMediator.mediateForInlineScript(ScriptMediator.java:256) at org.apache.synapse.mediators.bsf.ScriptMediator.invokeScript(ScriptMediator.java:205) at org.apache.synapse.mediators.bsf.ScriptMediator.mediate(ScriptMediator.java:178) at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:60) at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:114) at org.apache.synapse.rest.Resource.process(Resource.java:319) at org.apache.synapse.rest.API.process(API.java:246) at org.apache.synapse.rest.RESTRequestHandler.dispatchToAPI(RESTRequestHandler.java:76) at org.apache.synapse.rest.RESTRequestHandler.process(RESTRequestHandler.java:63) at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:180) at org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:83) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181) at org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:144) at org.apache.axis2.transport.http.util.RESTUtil.processXMLRequest(RESTUtil.java:89) at org.apache.synapse.transport.nhttp.util.RESTUtil.processPOSTRequest(RESTUtil.java:188) at org.apache.synapse.transport.nhttp.ServerWorker.processEntityEnclosingMethod(ServerWorker.java:404) at org.apache.synapse.transport.nhttp.ServerWorker.run(ServerWorker.java:261) at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:173) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x65 (at char #7197, byte #3999) at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:296) at org.apache.axiom.om.impl.llom.OMSerializableImpl.build(OMSerializableImpl.java:78) at org.apache.axiom.om.impl.llom.OMElementImpl.build(OMElementImpl.java:722) at org.apache.axiom.om.impl.llom.OMElementImpl.detach(OMElementImpl.java:700) at org.apache.axiom.om.impl.llom.OMNodeImpl.setParent(OMNodeImpl.java:105) at org.apache.axiom.om.impl.llom.OMNodeImpl.insertSiblingAfter(OMNodeImpl.java:203) at org.apache.synapse.mediators.bsf.ScriptMessageContext.setPayloadXML(ScriptMessageContext.java:96) at org.apache.synapse.mediators.bsf.ScriptMessageContext$setPayloadXML.call(Unknown Source) at Script30.run(Script30.groovy:1) at com.sun.script.groovy.GroovyScriptEngine.eval(GroovyScriptEngine.java:243) ... 23 more Caused by: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x65 (at char #7197, byte #3999) at com.ctc.wstx.sr.StreamScanner.throwFromIOE(StreamScanner.java:708) at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1086) at org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.next(XMLStreamReaderWrapper.java:225) at org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuilder.java:681) at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:214) ... 32 more Caused by: java.io.CharConversionException: Invalid UTF-8 middle byte 0x65 (at char #7197, byte #3999) at com.ctc.wstx.io.UTF8Reader.reportInvalidOther(UTF8Reader.java:313) at com.ctc.wstx.io.UTF8Reader.read(UTF8Reader.java:204) at com.ctc.wstx.io.ReaderSource.readInto(ReaderSource.java:84) at com.ctc.wstx.io.BranchingReaderSource.readInto(BranchingReaderSource.java:57) at com.ctc.wstx.sr.StreamScanner.loadMoreFromCurrent(StreamScanner.java:1046) at com.ctc.wstx.sr.StreamScanner.parseLocalName2(StreamScanner.java:1796) at com.ctc.wstx.sr.StreamScanner.parseLocalName(StreamScanner.java:1756) at com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.java:2914) at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2848) at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1019) ... 35 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago