GETATTACHREC

 6 Replies
 1 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
ALB
Veteran Member
Posts: 130
Veteran Member

    In version 9.0.1 IPA 10.1.0.35, the web run works fine.  In version 10.1.1, it fails.  In 10, I have:

    URL Type       = Infor Lawson (tried it with external too)

    Web Program = cgi-lawson/getattachrec.exe

    Post Sting       =  _OUT=Javascript&_PDL=PROD&_FN=APINVOICE&_IN=APISET1&K1=0100&K2=&K3=&K4=&K5=&_ATYP=C&_AUDT=A&_KS=zy&_OPM=C&_ON=Comments+...&_DATA=TRUE&_ECODE=FALSE

    The error in IPA is:

    Getattachrec_result =


    WebRun Getattachrec: Success string  found

     

    The error in the IOS log is:

    2016-01-27 17:06:10,491 INFO  [WebContainer : 0] [            ] [CGI-LAWSON  ] [IOSSecurityContext] Initializing security context for lawson
    2016-01-27 17:06:10,491 ERROR [WebContainer : 0] [lawson      ] [CGI-LAWSON  ] [AuthenticationFilter] Error occurred during request processing
    java.lang.NullPointerException
    at com.lawson.servlet.Cgilawson.retrievePostData(Cgilawson.java:222)
    at com.lawson.servlet.Cgilawson.doPost(Cgilawson.java:87)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1232)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:781)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:480)
    at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:136)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:97)
    at com.lawson.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:121)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
    at com.lawson.servlet.CallLoggingFilter.doFilter(CallLoggingFilter.java:117)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
    at com.lawson.servlet.XSSValidatorFilter.doFilter(XSSValidatorFilter.java:122)
    at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:195)
    at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:91)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:967)
    at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1107)
    at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:87)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:940)
    at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1817)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:200)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:463)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:530)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:316)
    at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:88)
    at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1818)
    at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
    at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
    at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
    at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
    at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
    at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
    at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1881)

     

    I have copied the parts of the URL from my IPD console and put it in a browser, and the result is as expected.


    I would appreciate any thoughts including if I should use something other than getattachrec.  Thanks!


    David Williams
    Veteran Member
    Posts: 1127
    Veteran Member
      Try changing the Call type to Lawson HTTP Call, and the Content Type to "text/plain" and see if that helps. There are new 'Lawson-ios" jobs that replace the CGI jobs, but these older type jobs still work for a lot of clients (just not all).
      The new jobs can be found at http://servername/lawson-ios/action/
      David Williams
      ALB
      Veteran Member
      Posts: 130
      Veteran Member
        I tried those but got the same error. Is there any documentation for these new jobs?
        David Williams
        Veteran Member
        Posts: 1127
        Veteran Member
          NO
          David Williams
          ALB
          Veteran Member
          Posts: 130
          Veteran Member
            I found information by running the actions in a browser. I resolved the CGI issue due to the changes in the web run node for 10.1.1.
            brainet
            Basic Member
            Posts: 18
            Basic Member
              AngelaC, I found some documentation for these new actions, thanks to David Williams. On the support site there is a doc called "Doc for Developers: IOS Application Program Interfaces -- Windows". The one I found was for version 9.0 but gives good examples.
              ALB
              Veteran Member
              Posts: 130
              Veteran Member
                Thanks, BrianT. I saw that too a few days ago, but I couldn't find this post. There is an example for submitting jobs with a wait option; however, there is no wait option.