Mail Connector shape failing with "Bad type on operand stack" error message

Document created by RaphaelRivero Employee on Nov 17, 2015Last modified by luis_nevarez on Mar 1, 2016
Version 2Show Document
  • View in full screen mode
When running a process with the mail connector, you might get a similar error to the one below.

 

Bad type on operand stack
Exception Details:
Location:
com/boomi/connector/mail/MailSend.handle(Lcom/boomi/connector/ConnectorContext;Lcom/boomi/store/BaseData;)V @479: invokevirtual
Reason:
Type 'javax/mail/internet/MimeMultipart' (current frame, stack[1]) is not assignable to 'javax/mail/Multipart'
Current Frame:
bci: @479
flags: { }
locals: { 'com/boomi/connector/mail/MailSend', 'com/boomi/connector/ConnectorContext', 'com/boomi/store/BaseData', 'com/boomi/store/MetaData', 'com/boomi/store/MetaData', integer, 'com/boomi/store/MetaData', 'java/lang/String', 'com/boomi/execution/ExecutionLogger', 'java/lang/Throwable', 'java/lang/String', 'javax/mail/Address', '[Ljavax/mail/Address;', 'javax/mail/internet/MimeBodyPart', 'javax/mail/internet/MimeMultipart', 'javax/mail/internet/MimeMessage' }
stack: { 'javax/mail/internet/MimeMessage', 'javax/mail/internet/MimeMultipart' }
Bytecode:
0x0000000: 2bb6 0038 4e2d 1239 2ab4 002e b600 3ab6
0x0000010: 003b 2d12 3c2a b400 2eb6 003d b600 3b2c
0x0000020: 2bb6 003e b200 3fb2 0040 b600 413a 0404
0x0000030: 3605 2c12 42b2 0043 b200 44b6 0041 3a06
0x0000040: 1906 1245 b600 463a 07b8 0002 1907 b600
0x0000050: 47b8 0002 1907 b600 483a 0819 0812 49b6
0x0000060: 004a 013a 0919 0812 4bb6 004c 2ab4 001c
0x0000070: b600 4d19 0419 08b8 004e 3a0a 2d12 4f19
0x0000080: 0ab6 003b 2ab4 001c b600 5019 0419 08b8
0x0000090: 0051 3a0b 2d12 5219 0bb6 0053 b600 3b2a
0x00000a0: b400 1cb6 0054 1904 1908 b800 553a 0c2d
0x00000b0: 1256 1257 190c c000 58b8 0059 b600 3bbb
0x00000c0: 005a 59b7 005b 3a0d 190d 2ab4 001c b600
0x00000d0: 5cb6 005d b600 5ebb 005f 59b7 0060 3a0e
0x00000e0: b200 612a b400 1cb6 005c a600 8519 04c6
0x00000f0: 006d 1904 1262 b600 6399 0063 1904 1262
0x0000100: b600 463a 0f19 0fb8 0064 9a00 5219 08bb
0x0000110: 0032 59b7 0033 1265 b600 3519 0fb6 0035
0x0000120: b600 37b6 004c bb00 5a59 b700 5b3a 1019
0x0000130: 10b2 0066 b600 5db6 005e 1910 bb00 6759
0x0000140: 190f 2ab4 001c b600 68b6 0069 b700 6ab8
0x0000150: 006b b600 6c19 0e19 10b6 006d 190d 2ab4
0x0000160: 001c b600 5c19 0419 08b8 006e b600 6f19
0x0000170: 0dbb 0070 5901 2ab4 001c b600 71b6 0069
0x0000180: 2cb6 0072 b700 73b8 006b b600 6c19 0e19
0x0000190: 0db6 006d 2d12 7419 0db6 0075 b600 3b19
0x00001a0: 0812 76b6 004c bb00 7759 bb00 7859 b700
0x00001b0: 7901 b800 7ab7 007b 3a0f 190f 190b b600
0x00001c0: 7c19 0fb2 007d 190c b600 7e19 0f12 7fb8
0x00001d0: 0080 b800 81b6 0082 b600 8319 0f19 0eb6
0x00001e0: 0084 190f b600 853a 1019 10c6 000b 1910
0x00001f0: b200 86b6 0087 190a c600 0a19 0f19 0ab6
0x0000200: 0088 190f b600 892d 128a 190f b600 8bb6
0x0000210: 003b 2ab4 002e 190f b600 8c19 0812 8db6
0x0000220: 004c bb00 8e59 b700 8f3a 0a19 0a19 06b6
0x0000230: 0090 5715 0599 000e 2d12 9112 92b6 003b
0x0000240: a700 152d 1291 1293 b600 3bb8 0002 1907
0x0000250: 1909 b600 94b8 0002 1908 b600 9519 0a2d
0x0000260: b600 9057 2ab4 0008 2cb6 0072 190a b900
0x0000270: 9603 00a7 00c5 3a0a 0336 0519 0a3a 0919
0x0000280: 08b2 0098 190a b600 9919 0ab6 009a bb00
0x0000290: 8e59 b700 8f3a 0a19 0a19 06b6 0090 5715
0x00002a0: 0599 000e 2d12 9112 92b6 003b a700 152d
0x00002b0: 1291 1293 b600 3bb8 0002 1907 1909 b600
0x00002c0: 94b8 0002 1908 b600 9519 0a2d b600 9057
0x00002d0: 2ab4 0008 2cb6 0072 190a b900 9603 00a7
0x00002e0: 0059 3a11 bb00 8e59 b700 8f3a 1219 1219
0x00002f0: 06b6 0090 5715 0599 000e 2d12 9112 92b6
0x0000300: 003b a700 152d 1291 1293 b600 3bb8 0002
0x0000310: 1907 1909 b600 94b8 0002 1908 b600 9519
0x0000320: 122d b600 9057 2ab4 0008 2cb6 0072 1912
0x0000330: b900 9603 0019 11bf b1
Exception Handler Table:
bci [101, 546] => handler: 630
bci [101, 546] => handler: 738
bci [630, 654] => handler: 738
bci [738, 740] => handler: 738
Stackmap Table:
full_frame(@348,{Object[#270],Object[#271],Object[#308],Object[#309],Object[#309],Integer,Object[#309],Object[#245],Object[#310],Object[#228],Object[#245],Object[#311],Object[#312],Object[#313],Object[#314]},{})
same_frame(@367)
append_frame(@502,Object[#315],Object[#316])
same_frame(@514)
full_frame(@579,{Object[#270],Object[#271],Object[#308],Object[#309],Object[#309],Integer,Object[#309],Object[#245],Object[#310],Object[#228],Object[#317]},{})
same_frame(@597)
full_frame(@630,{Object[#270],Object[#271],Object[#308],Object[#309],Object[#309],Integer,Object[#309],Object[#245],Object[#310],Object[#228]},{Object[#231]})
append_frame(@687,Object[#317])
same_frame(@705)
full_frame(@738,{Object[#270],Object[#271],Object[#308],Object[#309],Object[#309],Integer,Object[#309],Object[#245],Object[#310],Object[#228]},{Object[#231]})
full_frame(@773,{Object[#270],Object[#271],Object[#308],Object[#309],Object[#309],Integer,Object[#309],Object[#245],Object[#310],Object[#228],Top,Top,Top,Top,Top,Top,Top,Object[#228],Object[#317]},{})
same_frame(@791)
full_frame(@824,{Object[#270],Object[#271],Object[#308],Object[#309],Object[#309],Integer,Object[#309],Object[#245],Object[#310],Object[#228]},{})

 

This error message only occurred on one atom and not others.
A way to isolate and resolve this error is below.

 

1. Create a simple process.
2. Replicate the error message in Test Mode using different atoms with different java versions.

 

You will see that the process will run successfully depending on the atom used.  When you have isolated which atom causes the error, restart that atom.

Attachments

    Outcomes