IBM Support

IT16548: CREATE DOCUMENT POST API FAILS WITH ERROR - "API000467: LENGTH TOO LONG FOR \"PAYLOAD\" ; MAXLENGTH IS 10,000 CHARACTERS

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • Create Document POST API fails with the error:
    "API000467: Length too long for \"payload\"; maxlength is
    10,000 characters.".
    There is a way to confgure payload size.
    sb2bi_install/liberty/wlp/usr/servers/SIServer/logs/messages.lo
    gpr
    
    ints an exception as below.
    00000065 com.ibm.tenx.ws.WebServiceServlet
         E GORCR9999E:                 None: API000467: Length too
    long for "payload"; max length is 10,000 characters.
    com.ibm.tenx.ws.WebServiceException: API000467: Length too
    longf or "payload"; max length is 10,000 characters.
            atcom.
    ibm.b2b.api.IntegratorWebServiceBrowser.execute(IntegratorWebSer
    viceBrowser.java:48)
            atcom.
    ibm.tenx.ws.WebServiceServlet.processWebServiceRequest(WebServic
    eServlet.java:268)
            atcom.
    ibm.tenx.ws.WebServiceServlet.service(WebServiceServlet.java:190
    )
            atcom.
    ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrappe
    r.java:1287)
            atcom.
    ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(Servlet
    Wrapper.java:778)
            atcom.
    ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(Servlet
    Wrapper.java:475)
            atcom.
    ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebApp
    FilterChain.java:150)
            atcom.
    ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilt
    erChain.java:93)
            atcom.
    ibm.b2b.api.swagger.SimpleCORSFilter.doFilter(SimpleCORSFilter.j
    ava:23)
            atcom.
    ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(Filter
    InstanceWrapper.java:207)
            atcom.
    ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilt
    erChain.java:90)
            atcom.
    ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFi
    lterManager.java:1020)
            atcom.
    ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(Web
    AppFilterManager.java:1142)
            atcom.
    ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:4867
    )
            atcom.
    ibm.ws.webcontainer.osgi.DynamicVirtualHost$2.handleRequest(Dyna
    micVirtualHost.java:297)
            atcom.
    ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java
    :997)
            atcom.
    ibm.ws.webcontainer.osgi.DynamicVirtualHost$2.run(DynamicVirtual
    Host.java:262)
            atcom.
    ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink$TaskW
    rapper.run(HttpDispatcherLink.java:955)
            atcom.
    ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLink.ready
    (HttpDispatcherLink.java:341)
            atcom.
    ibm.ws.http.channel.internal.inbound.HttpInboundLink.handleDiscr
    imination(HttpInboundLink.java:470)
            atcom.
    ibm.ws.http.channel.internal.inbound.HttpInboundLink.handleNewRe
    quest(HttpInboundLink.java:404)
            atcom.
    ibm.ws.http.channel.internal.inbound.HttpInboundLink.processRequ
    est(HttpInboundLink.java:284)
            atcom.
    ibm.ws.http.channel.internal.inbound.HttpInboundLink.ready(HttpI
    nboundLink.java:255)
            atcom.
    ibm.ws.tcpchannel.internal.NewConnectionInitialReadCallback.send
    ToDiscriminators(NewConnectionInitialReadCallback.java:174)
            atcom.
    ibm.ws.tcpchannel.internal.NewConnectionInitialReadCallback.comp
    lete(NewConnectionInitialReadCallback.java:83)
            atcom.
    ibm.ws.tcpchannel.internal.WorkQueueManager.requestComplete(Work
    QueueManager.java:504)
            atcom.
    ibm.ws.tcpchannel.internal.WorkQueueManager.attemptIO(WorkQueueM
    anager.java:574)
            atcom.
    ibm.ws.tcpchannel.internal.WorkQueueManager.workerRun(WorkQueueM
    anager.java:929)
            atcom.
    ibm.ws.tcpchannel.internal.WorkQueueManager$Worker.run(WorkQueue
    Manager.java:1018)
            atjava
    .util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor
    .java:1157)
            atjava
    .util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecuto
    r.java:627)
            at java.lang.Thread.run(Thread.java:798)
    Caused by: com.ibm.tenx.ws.WebServiceException: Length toolon
    gf or "payload"; max length is 10,000 characters.
            atcom.
    ibm.tenx.ws.ui.WebServiceBrowser.execute(WebServiceBrowser.java:
    502)
            atcom.
    ibm.b2b.api.IntegratorWebServiceBrowser.execute(IntegratorWebSer
    viceBrowser.java:32)
            ... 31 more
    Caused by: com.ibm.tenx.core.exception.ValidationException:Leng
    th too long for "payload"; max length is 10,000 characters.
            atcom.
    ibm.tenx.db.EntityOperation.validateInput(EntityOperation.java:3
    25)
            atcom.
    ibm.tenx.db.svc.EntityService.validateInput(EntityService.java:6
    5)
            atcom.
    ibm.tenx.db.svc.CreateService.validateInput(CreateService.java:1
    35)
            atcom.
    ibm.tenx.db.svc.CreateService.validateInput(CreateService.java:1
    24)
            atcom.
    ibm.b2b.api.svc.document.impl.generated.CreateDocumentSupport.va
    lidateInput(CreateDocumentSupport.java:85)
            atcom.
    ibm.b2b.api.svc.document.impl.generated.CreateDocumentSupport.cr
    eate(CreateDocumentSupport.java:54)
            at
    sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMe thod)
            atsu
    n.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm
    pl.java:95)
            atsu
    n.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc
    cessorImpl.java:56)
            at java.lang.reflect.Method.invoke(Method.java:620)
            atco
    m.ibm.tenx.db.svc.EntityService.invokeMethod(EntityService.java:
    304)
            atco m.ib
    m.tenx.db.svc.CreateService.create(CreateService.java:113)
            atcom.ib
    m.tenx.ws.ui.WebServiceBrowser.create(WebServiceBrowser.java:109
    4)
            atcom.ib
    m.tenx.ws.ui.WebServiceBrowser.doPost(WebServiceBrowser.java:104
    6)
            atcom.ib
    m.tenx.ws.ui.WebServiceBrowser.executeCRUD(WebServiceBrowser.jav
    a:572)
            atcom.ib
    m.tenx.ws.ui.WebServiceBrowser.execute(WebServiceBrowser.java:48
    8)
            ... 32 more
    

Local fix

  • None
    
    STRRTC 510272
    KK/KK
    

Problem summary

  • Users Affected:
    All
    
    Problem Description:
    Create Document POST API fails with "API000467: Length too long
    for \"payload\"; maxlength is 10,000 characters".
    
    
    Platform Affected:
    All
    

Problem conclusion

  • Resolution Summary:
    A code fix is provided.
    
    Delivered in:
    5020602_1
    5020603
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT16548

  • Reported component name

    STR B2B INTEGRA

  • Reported component ID

    5725D0600

  • Reported release

    526

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-08-10

  • Closed date

    2016-09-01

  • Last modified date

    2016-12-15

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    STR B2B INTEGRA

  • Fixed component ID

    5725D0600

Applicable component levels

  • R526 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS3JSW","label":"IBM Sterling B2B Integrator"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"5.2.6","Edition":"","Line of Business":{"code":"LOB02","label":"AI Applications"}}]

Document Information

Modified date:
15 December 2016