cancel
Showing results for 
Search instead for 
Did you mean: 

Exception while sync event

Former Member
0 Kudos

I'm trying to write a simple program that performs a generic sync and I keep getting the following error.

The backend method I'm trying to call requires no parameters and returns and outbound container with a few DESCRIPTION registers.

Exception while sync event processing: null (java.lang.RuntimeException)

The code that fires up the sync is:

ClassLoader cl = getClass().getClassLoader();

OpportunitySourceDAL ip = new OpportunitySourceDAL(); InboundProcessorRegistry.getInstance().register(ip);

OutboundContainerFactory outfactory = OutboundContainerFactory.getInstance();

outfactory = OutboundContainerFactory.getInstance();

OutboundContainer out = outfactory.createOutboundContainer(VisibilityType.SEPARATED, "ZLISTA_SOURCES_ALIAS" , OutboundContainer.TYPE_REQUEST);

out.close();

SyncManager.getInstance().synchronizeWithBackend(VisibilityType.SEPARATED);

And the class OpportunitySourceDAL has a process method like this

public void process(InboundContainer inbound) {

try {

OpportunitySource op = OpportunitySource.getInstance();

InboundContainerElement[] sources= inbound.getElementsWithFieldName("DESCRIPTION");

for (int i = 0; i < sources.length; i++)

op.add( sources.getFieldValue() );

} catch (Exception e) {

}

I've already created the wrapper for the backend function using ME_WIZARD and checked that it works with ABAP debugger.

The backend function is in the same machine as was so I don't have to map an RFC destination.

Am I missing some steps?

Thanks in advance.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

hey

You will have to give your <b>method</b> and <b>Function</b> name in tables <b>BWAFMAPP</b> and <b>MEMAPPDEST</b>.

regards

Arun

Former Member
0 Kudos

Hi ,

Please check the following

1. The MI forms the outbound container and when you fire event synchronizeWithBackend these containers are serialized and sent to middleware and then to backend.

Please check that OutboundContainer out is not null.

2. Also see whether ht emapping b/w the backend table and the frontend tabkle is correct.

3. In case you are not able to crack error. attach the complete trace file.

regards

anubhav

Former Member
0 Kudos

hello rafa,

was this question already been answered?

if not, first do you receive the generic sync data containers

from the middleware? you can have a look at this in the trace

file if you have enabled it...

another thing, what is your object OpportunitySource for?

regards

jo