Skip to Content
avatar image
Former Member

Exception while sync event

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Apr 07, 2006 at 04:12 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 10, 2006 at 03:08 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 11, 2006 at 06:58 AM

    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

    Add comment
    10|10000 characters needed characters exceeded