Friday, June 27, 2014

Oracle File Adapter Scalable DOM

I have tried to activate streaming parsing of an xml file with OSB:

this consists in replacing oracle.tip.adapter.file.inbound.FileActivationSpec with oracle.tip.adapter.file.inbound.ScalableFileActivationSpec, and enabling streaming parsing on the File poller Proxy Service. I also set MaxFileAge to 5, to avoid picking up a file before it's completely copied to the Input folder.

I put a SMALL (3 kb file) document 608-12.xml in the input folder, and I get:

Generic Error caught while translating inbound file  in streaming mode  : 608-12.xml
        at oracle.tip.adapter.file.inbound.InboundTranslatorDelegate.xlate(
        at oracle.tip.adapter.file.inbound.InboundTranslatorDelegate.doXlate(
        at oracle.tip.adapter.file.inbound.ProcessorDelegate.doXlate(
        at oracle.tip.adapter.file.inbound.ProcessorDelegate.process(

According to Oracle Support KB, this should happen only for HUUUGE documents and in old versions of OSB (we use Related thread on the forum, reporting the same issue, are unanswered.

I am afraid we shall not use this streaming option for the time being.

See also (discussion archived without solution...)

No comments: