[rules-users] Processing xml with control characters in droolserver

Shameer E S shameerind at gmail.com
Thu Jul 17 05:39:30 EDT 2014


Hi,

I am sending xml to initiate rule execution in drools server 5.4. When
there is control character in the xml, it is failing with following error,
is there any way to overcome this?

16 Jul 2014 00:03:28,852 ERROR
[org.apache.camel.processor.DefaultErrorHandler] (http--0.0.0.0-8080-239)
Failed delivery for exchangeId:
ID-svl-prod-prwf04-juniper-net-51091-1404737660521-0-3260214. Exhausted
after delivery attempt: 1 caught:
com.thoughtworks.xstream.converters.ConversionException:  : Illegal
character ((CTRL-CHAR, code 8)) [note: in XML 1.1, it could be included via
entity expansion]
 at [row,col {unknown-source}]: [30,126] :  : Illegal character
((CTRL-CHAR, code 8)) [note: in XML 1.1, it could be included via entity
expansion]
 at [row,col {unknown-source}]: [30,126]
---- Debugging information ----
message             :  : Illegal character ((CTRL-CHAR, code 8)) [note: in
XML 1.1, it could be included via entity expansion]
 at [row,col {unknown-source}]: [30,126]
cause-exception     : com.thoughtworks.xstream.io.StreamException
cause-message       :  : Illegal character ((CTRL-CHAR, code 8)) [note: in
XML 1.1, it could be included via entity expansion]
 at [row,col {unknown-source}]: [30,126]
class               : java.lang.String
required-type       : java.lang.String
converter-type      :
com.thoughtworks.xstream.converters.SingleValueConverterWrapper
wrapped-converter   :
com.thoughtworks.xstream.converters.basic.StringConverter
path                : /batch-execution/set-global[7]/map/entry[50]/string[2]
line number         : 2
class[1]            : java.util.HashMap
converter-type[1]   :
com.thoughtworks.xstream.converters.collections.MapConverter
class[2]            : org.drools.command.runtime.SetGlobalCommand
converter-type[2]   :
org.drools.runtime.help.impl.XStreamXML$SetGlobalConverter
class[3]            : org.drools.command.runtime.BatchExecutionCommandImpl
converter-type[3]   :
com.thoughtworks.xstream.converters.reflection.ReflectionConverter
version             : null

Thanks & Regards,
Shameer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20140717/adb0b6e8/attachment.html 


More information about the rules-users mailing list