This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin for Android App Development and have Peter Sommerhoff on-line!
See this thread for details.
Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

responseText: 'There was an error processing the supplied order. Additional Details: Unable to parse  RSS feed

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
During my project work, i have seen some behavior which is intermittent.
    When i pass the XML from source to destination for parsing, it is failing at destination with some null pointer exception.

    The response to source system is below.
    responseText: 'There was an error processing the supplied XML. Additional Details: Unable to parse the body content into XML'  

    When we check the XML and validated, the XML is showing as valid and able to submit successfully if we don't include the source system (independent submission is working).

    Not sure where could be the issue. Seeking some help. I can provide more information if required.

Thanks.
 
Marshal
Posts: 62881
203
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

We would need lots more details, please, before we can help.
 
Manduvakurity Ravindranath
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please let me know what details required so that i can try to provide.
 
Master Rancher
Posts: 3887
45
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, do you have logs showing what XML was being sent, and logs from the destination showing the XML at that end?

Some code around sending from source, and receiving at the destintaion might help, but only if you have logging that might point in the right direction.

And the exception stack trace, along with the code where it is happening.
 
Manduvakurity Ravindranath
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

    As per the request, below is the XML file that has been used which causes issue. (pasted XML as .txt and .xml are not allowing)

    Below are the error message from source and destination ends.

      Error at source:

                 query customer portfolio for  0015500000NtYYPAA3
                          [2019-01-21 15:32:00.820] [ERROR] CPQServer - { raisedInModule: 'sigma-cpq-services-orders',
                          responseCode: 'OrderCouldNotBeProcessed',
                          httpStatus: 500,
                          responseText: 'There was an error processing the supplied order. Additional Details: Unable to parse the body content into XML',
                          exceptionType: 'OrderAdapterException' }
                          [0mPOST /api/orders/f53d0f04-1e4f-4bd6-b4cc-53768953aad8/submit  [31m500  [0m3346.374 ms - 246 [0m
                         Pathhhh: [object Object]
                         Starting SalesforceContextProvider

      Error at Destination:

                     INFO  15:41:10 play-akka.actor.default-dispatcher-290 utils.CmnUtils> Computer Name :om-runtime.tst1.servicedelivery.inmarsat.com , ip :10.135.213.34
                        INFO  15:41:10 play-akka.actor.default-dispatcher-290 controllers.omapi.LogRequestInfo> Request 'POST /omapi/order/submit' from '???' at 10.135.213.34. QueryString: '{}'
                        Request headers: {X-Forwarded-For=[10.135.213.54], Content-Length=[109776], X-Forwarded-Port=[443], X-Forwarded-Proto=[https], Host=[om-runtime.tst1.servicedelivery.inmarsat.com], X-Amzn-Trace-Id=                  [Root=1-5c45e816-681d996c4641f416e9599600]}
                        ERROR 15:41:10 play-akka.actor.default-dispatcher-290 controllers.omapi.OMRest> Exception while Submit Order {}
                        java.lang.NullPointerException: null
                        at java.lang.String.<init>(String.java:491) ~[na:1.8.0_144]
                        at omutils.OmRestUtil.getRequestData(OmRestUtil.java:62) ~[com.sigma.om.core.om-api-3.3.3.jar:3.3.3]
                        at controllers.omapi.OMRest.submitOrder(OMRest.java:181) ~[com.sigma.om.core.om-api-3.3.3.jar:3.3.3]
   
Thanks,
Ravindranath M.
 
Manduvakurity Ravindranath
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please let me know what format would be supported to upload the XML file. It is not taking none of the extension.

I will update the XML once the extension is confirmed.
 
Campbell Ritchie
Marshal
Posts: 62881
203
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please avoid coloured text; it is hard to read. I have disabled smilies so youi get :‍o rather than and changed all the text to balck.
 
Dave Tolls
Master Rancher
Posts: 3887
45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Doesn't look like you are logging the XML.
That would be very useful for you to track the problem.

There's no point loading the XML onto here...that's not what's wrong (or is possibly not what's wrong).

You need to first know that what was sent matches your XML, and what was received matches what was sent.
 
Manduvakurity Ravindranath
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, let me know what inputs required from my side to sort out the issue.
 
Sheriff
Posts: 24089
54
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your original post said:

Manduvakurity Ravindranath wrote:responseText: 'There was an error processing the supplied XML. Additional Details: Unable to parse the body content into XML'  



A later post said:

Manduvakurity Ravindranath wrote:responseText: 'There was an error processing the supplied order. Additional Details: Unable to parse the body content into XML'



The first version suggests that there's a problem parsing an XML document. But then it suggests that the XML document is being parsed into an XML document, which sounds a bit unlikely to me.

The second version suggests that there's a problem parsing an order (in an unspecified format) into an XML document. This sounds a bit more likely to me.

In any case instead of rushing off to inspect XML documents it would be better to find out where that "body content" is coming from and what format it's supposed to be in. And you can also see from the stack trace:



that whatever is parsing the order's body content is throwing a NullPointerException. This also strikes me as not being anything to do with failure to parse an XML document.
 
Ranch Hand
Posts: 370
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

You mentioned the issue is intermittent . Check for variances/inconsistencies in the submissions . Look for the pattern is submissions that work and ones that don't.
Do all the elements in your xml have values or is there an element tag with nothing in it ?
If so, try omitting the tag or putting in a default value .
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!