Translated message

A translation of this page exists in English.

Apache HTTPD で mod_jk を使用する場合に 413 応答でヘッダー値の追加に失敗する

Solution Verified - Updated -

Issue

  • mod_jk を使用する場合に一部のリクエストに対して 413 応答が表示されます。

    Request Entity Too Large
    The requested resource
    /app does not allow request data with GET requests, or the amount of data provided in the request exceeds the capacity limit.  
    
  • また、 mod_jk ログは以下のようになります。

    [error] ajp_marshal_into_msgb::jk_ajp_common.c (476): (node1) failed adding the header value for header 'Authorization' of length 13
    [info] ajp_service::jk_ajp_common.c (2577): (node1) Creating AJP message failed without recovery - check max_packet_size
    
  • WireGuard トレースは、以下の応答で Web サーバーが拒否されていることを示していますが、デバッグモードを使用している場合に、同じエラーが JBoss EAP ログまたは apache ログには表示されません。

    Hypertext Transfer Protocol
        HTTP/1.1 413 Request Entity Too Largern
            [Expert Info (Chat/Sequence): HTTP/1.1 413 Request Entity Too Largern]
                [Message: HTTP/1.1 413 Request Entity Too Largern]
                [Severity level: Chat]
                [Group: Sequence]
            Request Version: HTTP/1.1
            Status Code: 413
            Response Phrase: Request Entity Too Large
        Date: Fri, 15 Feb 2013 21:49:36 GMTrn
        Server: Apache/2.2.15 (Red Hat)rn
        Connection: closern
        Content-Type: text/html; charset=iso-8859-1rn
        rn
    
    [ajp-10.10.10.10-8009-1] DEBUG (org.jboss.ws.core.soap.MessageFactoryImpl) - createMessage: [contentType=multipart/related; 
    boundary=MIMEBoundary_31c97d726c91ad383489007f7b814a12eee5a08a363091bf; 
    type="application/xop+xml"; 
    start="<0.21c97d726c91ad383489007f7b814a12eee5a08a363091bf@apache.org>"; 
    start-info="application/soap+xml"; action="urn:processNPCMsg"]
    
    [ajp-10.10.10.10-8009-1] DEBUG (org.apache.coyote.ajp.AjpMessage) - Received 0 18
    [ajp-10.10.10.10-8009-1] TRACE (org.jboss.ws.core.soap.MessageFactoryImpl) - createMessage
    
    [ajp-10.10.10.10-8009-1] DEBUG (org.jboss.ws.metadata.umdm.EndpointMetaData) - Configure SOAPBinding
    [ajp-10.10.10.10-8009-1] ERROR (org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS) - SOAP request exception
    java.lang.IllegalArgumentException: multipart/related stream invalid, no root part was found
        at org.jboss.ws.core.soap.attachment.MultipartRelatedDecoder.decodeMultipartRelatedMessage(MultipartRelatedDecoder.java:171)
    
  • サイズの大きいファイルをアップロードするために、maxPostSize の値をデフォルトの 2MB から 10MB に増やすにはどうすればよいですか?

Environment

  • Red Hat Enterprise Linux (RHEL)
  • Red Hat Software Collections (RHSCL)
  • Red Hat JBoss Web Server (JWS)
    • 3.0.x
  • Red Hat JBoss Core Services (JBCS)
  • Apache Web Server (HTTPD)
    • mod_jk
    • mod_proxy

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content