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 web

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)

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, 1 month 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, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
1 more bugmates