cancel
Showing results for 
Search instead for 
Did you mean: 

Error while Smart Sync inbound processing

Former Member
0 Kudos

Hi All.

I am using MAU on MI 2.5 SP16 P03 and I get an error after

generated some replacements and performed a sync:

[20061010 09:36:03:088] E [MI/Smartsync ] Error while Smart Sync inbound processing: java.lang.NullPointerException

java.lang.NullPointerException

at com.sap.ip.me.smartsync.syncIn.processors.ProcessorTopDeltaDelete.startWithContainer(ProcessorTopDeltaDelete.java:56)

at com.sap.ip.me.smartsync.syncIn.processors.RowProcessorManager$RowProcessorDispatcher.start(RowProcessorManager.java:497)

at com.sap.ip.me.smartsync.syncIn.SaxSyncInProcessor$3.startTop(SaxSyncInProcessor.java:508)

at com.sap.ip.me.smartsync.syncIn.SaxSyncInProcessor$3.getNextHandler(SaxSyncInProcessor.java:430)

at com.sap.ip.me.xmlParser.MIXMLEventHandlerManager.startElement(MIXMLEventHandlerManager.java:80)

at com.sap.ip.me.xmlParser.MIXMLParser$ElementParser.parse(MIXMLParser.java:527)

at com.sap.ip.me.xmlParser.MIXMLParser.parse(MIXMLParser.java:164)

at com.sap.ip.me.smartsync.syncIn.SaxSyncInProcessor.processSyncInMessage(SaxSyncInProcessor.java:87)

at com.sap.ip.me.smartsync.syncIn.SyncInRuntimeImpl.processSyncInMessage(SyncInRuntimeImpl.java:250)

at com.sap.ip.me.smartsync.core.SmartSyncRuntimeImpl.process(SmartSyncRuntimeImpl.java:344)

at com.sap.ip.me.smartsync.core.SmartSyncRuntimeManager.process(SmartSyncRuntimeManager.java:214)

at com.sap.ip.me.smartsync.core.SyncAdapter.process(SyncAdapter.java:56)

at com.sap.ip.me.sync.SyncManagerImpl.processSingleContainer(SyncManagerImpl.java:160)

at com.sap.ip.me.sync.SyncManagerMerger.processInboundContainers(SyncManagerMerger.java:166)

at com.sap.ip.me.sync.SyncManagerImpl.processSyncCycle(SyncManagerImpl.java:709)

at com.sap.ip.me.sync.SyncManagerImpl.syncForUser(SyncManagerImpl.java:1142)

at com.sap.ip.me.sync.SyncManagerImpl.processSynchronization(SyncManagerImpl.java:774)

at com.sap.ip.me.sync.SyncManagerImpl.synchronizeWithBackend(SyncManagerImpl.java:402)

at com.sap.ip.me.sync.SyncManagerImpl.synchronizeWithBackend(SyncManagerImpl.java:285)

at com.sap.ip.me.api.sync.SyncManager.synchronizeWithBackend(SyncManager.java:79)

at com.sap.ip.me.apps.jsp.Home$SyncRunnable.run(Home.java:447)

at java.lang.Thread.run(Thread.java:534)

[20061010 09:36:03:088] I [MI/Smartsync ] Processed Smart Sync inbound message for conversation id 45298DB3FCEC485FE10000000A64328F

[20061010 09:36:03:088] I [MI/Smartsync ] Dumping file 'C:\Programme\SAP Mobile Infrastructure\log\smartSyncInboundTmp.txt'

<?xml version="1.0" encoding="iso-8859-1"?>

<?xml version="1.0" encoding="iso-8859-1"?>

<Message xmlns="http://www.sap.com/ip/me/smartsync/data" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="45299999FCEC485FE10000000A64328F" schemaVersion="2.0"><Delta action="delete" objectID="0003790600" objectType="UMAM_I02"><PostStateID xsi:type="changeID">45299998FCEC485FE10000000A64328F</PostStateID><F pos="1">005050316556</F></Delta></Message><?xml version="1.0" encoding="iso-8859-1"?>

<Message xmlns="http://www.sap.com/ip/me/smartsync/data" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="4529999BFCEC485FE10000000A64328F" schemaVersion="2.0"><Delta action="delete" objectID="0003790786" objectType="UMAM_I02"><PostStateID xsi:type="changeID">4529999AFCEC485FE10000000A64328F</PostStateID><F pos="1">005050316576</F></Delta></Message><?xml version="1.0" encoding="iso-8859-1"?>

<Message xmlns="http://www.sap.com/ip/me/smartsync/data" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="4529999DFCEC485FE10000000A64328F" schemaVersion="2.0"><Delta action="delete" objectID="0003790600" objectType="UMAM_I02"><PostStateID xsi:type="changeID">4529999CFCEC485FE10000000A64328F</PostStateID><F pos="1">005050316556</F></Delta></Message><?xml version="1.0" encoding="iso-8859-1"?>

<Message xmlns="http:

[20061010 09:36:03:088] I [MI/Smartsync ] End of content of file 'C:\Programme\SAP Mobile Infrastructure\log\smartSyncInboundTmp.txt'

[20061010 09:36:03:098] E [MI/Smartsync ] java.lang.RuntimeException: Error while Smart Sync inbound processing: java.lang.NullPointerException

java.lang.RuntimeException: Error while Smart Sync inbound processing: java.lang.NullPointerException

at com.sap.ip.me.smartsync.syncIn.SyncInRuntimeImpl.processSyncInMessage(SyncInRuntimeImpl.java:279)

at com.sap.ip.me.smartsync.core.SmartSyncRuntimeImpl.process(SmartSyncRuntimeImpl.java:344)

at com.sap.ip.me.smartsync.core.SmartSyncRuntimeManager.process(SmartSyncRuntimeManager.java:214)

at com.sap.ip.me.smartsync.core.SyncAdapter.process(SyncAdapter.java:56)

at com.sap.ip.me.sync.SyncManagerImpl.processSingleContainer(SyncManagerImpl.java:160)

at com.sap.ip.me.sync.SyncManagerMerger.processInboundContainers(SyncManagerMerger.java:166)

at com.sap.ip.me.sync.SyncManagerImpl.processSyncCycle(SyncManagerImpl.java:709)

at com.sap.ip.me.sync.SyncManagerImpl.syncForUser(SyncManagerImpl.java:1142)

at com.sap.ip.me.sync.SyncManagerImpl.processSynchronization(SyncManagerImpl.java:774)

at com.sap.ip.me.sync.SyncManagerImpl.synchronizeWithBackend(SyncManagerImpl.java:402)

at com.sap.ip.me.sync.SyncManagerImpl.synchronizeWithBackend(SyncManagerImpl.java:285)

at com.sap.ip.me.api.sync.SyncManager.synchronizeWithBackend(SyncManager.java:79)

at com.sap.ip.me.apps.jsp.Home$SyncRunnable.run(Home.java:447)

at java.lang.Thread.run(Thread.java:534)

....

Anyway, the notifications and replacements are correctly updated in the backend.

Any ideas?

Thankyou in advance.

Cheers

Sascha

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi.

After I rechecked the trace I found out, that the XML which is logged regarding the messages seems to be invalid. Unfortunately I don nozt have the trace anymore but there was invalis XML like the following:

<xxx<b>>tus><a>...</</b>a></status></xxx>

I am not sure whether this is just a bug in logging xml or this is the xml as received.

After i resynced no error was given, but some of the data in nearly each syncbo are missing, for example the customer name is missing or some of the connection objects are missing in I02.

Very strange.

Any ideas?

Cheers,

Sascha

Former Member
0 Kudos

Hi again.

Just another suggestion/question. I am not sure which Sync Servlet is installed on the WAS but I guess it is older then SP16. Where can I get the corresponding ear files for Sync Servlet SP16 or SP 17.

Thanks again.

Sascha

Former Member
0 Kudos

hello sascha,

looking at the messages, you have two delete messages for

the same syncbo processed at the same time... this might

have triggered the error...

<Message id="45299999FCEC485FE10000000A64328F" schemaVersion="2.0">

<Delta action="delete" objectID="<b>0003790600</b>" objectType="UMAM_I02">

<PostStateID xsi:type="changeID">45299998FCEC485FE10000000A64328F</PostStateID>

<Message xmlns="http://www.sap.com/ip/me/smartsync/data" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="4529999DFCEC485FE10000000A64328F" schemaVersion="2.0">

<Delta action="delete" objectID="<b>0003790600</b>" objectType="UMAM_I02"><PostStateID xsi:type="changeID">4529999CFCEC485FE10000000A64328F</PostStateID>

regards

jo

Former Member
0 Kudos

Hello Jo.

Thanks for that hint I did not see it by myself

But how should I handle this? It means that the middlewra sne two deletion messaged for the same object, am I rite?

How can this happen?

Best regards,

Sascha

Former Member
0 Kudos

hello sascha,

yeh, it's really weird. try checking your worklist monitor

if the middleware really did sent 2 succeeding delete messages.

might also worth checking on the merep_log for any errors

which lead to this.

regards

jo

Former Member
0 Kudos

Hello Jo.

Seems that we have some error with our SyncBo exists on the middleware. As we switched them off, everything works fine so we have to recheck whats wrong with the exits.

But thank you very much so far. I did not see the duplicated delete messages in the trace.

Cheers,

Sascha

Message was edited by: Sascha Dingeldey

Former Member
0 Kudos

hello sascha,

nice to hear that... first i suspected that it might be a problem with the BAPI but i doubted. anyway, just give us

a feedback on what was wrong with your exits.

regards

jo

Former Member
0 Kudos

Hi Jo.

We are fetching data from 2 backends in these exits. There were some bugs in this area but I can't tell in detail, cause this programming part was not mine.

Anyway thanks for your usefull hint.

I already assigned you some points but I bet this is not very interesting for you, cause you have a lot of

Cheers,

Sascha

Answers (0)