My Oracle Support Banner

B2B Import Errors Fails In B2B UI and ANT Utility With java.lang.StackOverflowError (Doc ID 1646399.1)

Last updated on FEBRUARY 03, 2019

Applies to:

Oracle B2B 10g (Business to Business) - Version and later
Information in this document applies to any platform.


On : version, User Interface and Ant import script

When attempting to import B2B Metadata via the B2B command line utility from PS5 to PS6
the following error occurs.

[2013-12-30T13:29:14.204-06:00] [WLS_B2B4a] [TRACE:32] [] [oracle.soa.b2b.engine] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: b2bUser] [ecid: 1d85d1f37a543599:-51420fdc:1431ddee20b:-7ffd-00000000000f57f4,0] [APP: soa-infra] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [SRC_METHOD: log]
[2013-12-30T13:29:14.205-06:00] [WLS_B2B4a] [ERROR] [] [oracle.soa.b2b.engine] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: b2bUser] [ecid: 1d85d1f37a543599:-51420fdc:1431ddee20b:-7ffd-00000000000f57f4,0] [APP: soa-infra] java.lang.StackOverflowError[[
at oracle.tip.b2b.transfer.MergeXML.merge(

The issue can be reproduced at will with the following steps:
1) Prepare your B2B agreements for import
2) Update the /opt/oracle/middleware/soa/bin/ with all the connection details.
This is what I have in my file.

3) Run the below ANT command
export ANT_HOME=/opt/oracle/middleware/modules/org.apache.ant_1.7.1
export JAVA_HOME=/opt/oracle/jrmc/
export STAGE_DIR=
cd /opt/oracle/middleware/soa/bin
$ANT_HOME/bin/ant -f ant-b2b-util.xml -f ant-b2b-util.xml b2bimport -Dlocalfile=true -Doverwrite=true -Dexportfile=${STAGE_DIR}/


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process and therefore has not been subject to an independent technical review.
My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.