On AGS call servlet error

 1 Replies
 0 Subscribed to this topic
 17 Subscribed to this forum
Sort:
Author
Messages
Asim
New Member
Posts: 2
New Member
    I am not Lawson expert. But I am integrating Lawson process via AGS call.
    I am having following problem when I am posting following AGS call on servlet:

    Requested XML structure:



    <_PDL>BETA
    <_TKN>XQII.1
    <_OUT>XML
    <_TDS>IGNORE
    <_DATEFMT>
    <_EVT>ADD
    <_LFN>ALL

    P
    1-TEST1
    28
    NOTB
    7
    0
    IS
    EGAT1




    Then I got following error response back:

    Apache Tomcat/5.5.9 - Error report

    HTTP Status 500 -


    type Exception report

    message

    description The server encountered an internal error () that prevented it from fulfilling this request.

    exception

    java.lang.StringIndexOutOfBoundsException: String index out of range: -1 
    java.lang.String.substring(String.java:1685)
    ags.doProcess(ags.java:231)
    ags.doPost(ags.java:156)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.catalina.servlets.InvokerServlet.serveRequest(Unknown Source)
    org.apache.catalina.servlets.InvokerServlet.doPost(Unknown Source)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs.


    Apache Tomcat/5.5.9




    But if I change

    to

    then I am getting proper response back.

    Looks like AGS servlet is not able to handle "xmlns:xsi" attribute.
    Is it correct?

    Thanks,
    Asim

    John Henley
    Posts: 3353
      Just a guess...
      Don't you need xmlns= prior to the xmlns:xsi=
      Thanks for using the LawsonGuru.com forums!
      John