Embedded message: Unexpected error occurred while initializing a shape.;  Caused by: com.sun.org.apache.xerces.internal.dom.ElementNSImpl cannot be cast to com.boomi.model.profile.xml.XMLProfile

Document created by anton_serbanescu Employee on Oct 31, 2016Last modified by chris_stevens on Oct 31, 2016
Version 2Show Document
  • View in full screen mode

When a process that has large XML source data files, it will error out with the following :

Embedded message: Unexpected error occurred while initializing a shape.;
Caused by: com.sun.org.apache.xerces.internal.dom.ElementNSImpl cannot be cast to com.boomi.model.profile.xml.XMLProfile

Issue

When configuring EDI X12 profiles for the processes that will handle large XML source files, 1 MB or higher, and the processes attempt to execute on Atoms

with the default or low memory, for example, -Xmx is set to 512 MB or 1024 MB, the processes will fail with the following:

 

Embedded message: Unexpected error occurred while initializing a shape.;
Caused by: com.sun.org.apache.xerces.internal.dom.ElementNSImpl cannot be cast to com.boomi.model.profile.xml.XMLProfile

 

Solution

If these processes are running on the public Boomi Atom Cloud or Test Atom Cloud, the source XML files need to be adjusted to smaller sizes.

If these processes are running on local (on-premises) Atoms, Private Molecules or Private Clouds, logon to the local servers, or hosting servers,

where the Atoms, Molecules and/or Clouds are installed, and/or the file share servers, and navigate to the directory where the Atoms,

Molecules or Clouds are installed.

 

1. Log on to the hosting server as an Admin user

2. Navigate to the directory where the Atom/Molecule or Clouds are installed or to the file share servers:

   (a) <Boomi_Atomsphere>\<Atom-name>\bin

3. Edit the file called atom.vmoptions.

4. Adjust or increase the line:

-Xmx512m

to

-Xmx4096m

5. Save the atom.vmoptions changes.

6. Restart the atom, Molecule or Cloud

7. Rerun or retest the process.

Attachments

    Outcomes