Message Oracle LPX-00014 - context is not clean

ERRORcontext is not clean
CAUSEAn operation was performed on a context that has already been used (so is not clean).
ACTIONSome functions must be performed on a newly initialized context before being used for parsing. For example, setting a shared DTD. Change the code and do the call before parsing.