cancel
Showing results for 
Search instead for 
Did you mean: 

javax.ejb.RemoveException: An attemp was made to remove stateful instance

AndyK
Explorer
0 Kudos

Hi,

I am working with a SAP PI 7.1 File adapter without content conversion but attachments. I created an adapter module to change the attachments name and its Mime type. But get following error when i use this module. Even if i just pass the rinputModuleData back without any coding in between i get the same error. (Adapter engine is on the latest SP stack)

Does anyone know what is wrong and how to solve this problem ?

Error: javax.ejb.RemoveException: An attemp was made to remove stateful instance while it still participates in a transaction.This is strictly forbidden by the EJB Specification. However the current transaction won't be marked for rollback allowing you to recover from the error.

Regards,

Andreas

Accepted Solutions (1)

Accepted Solutions (1)

prasannakrishna_mynam
Contributor
0 Kudos

Hi,

- Check your bean type whether it is stateless or statefull. Since it shows stateful instance.

Regards,

Prasanna

Answers (3)

Answers (3)

AndyK
Explorer
0 Kudos

Hi,

this solved my problemm the bean was Statefull instead of Stateless.

Thank you.

AndyK
Explorer
0 Kudos

Hi Agasthuri,

thank you for your quick reply. I use exactly the scenario described in following Blog

/people/francesco.bersani/blog/2007/03/27/rename-attachment-adapter-module

The only thing i did is changing the coding a bit so that it fits PI7.1

Regards,

Andreas

agasthuri_doss
Active Contributor
0 Kudos

Andreas,

Adapter Module need to follow the Sequence, Can you Paste the Adapter Module you are using ?

Cheers

Agasthuri