CentralConnection.read error saving a big Business View using Apache as proxy
search cancel

CentralConnection.read error saving a big Business View using Apache as proxy

book

Article ID: 248237

calendar_today

Updated On:

Products

CA Automic Dollar Universe

Issue/Introduction

UVC Webconsole, in the context of Proxy Apache + Tomcat + Reverse Proxy Apache all in SSL, fails to update a big BV with the errors below after only 2seconds:

|2022-02-12 21:53:24,282|ERROR||BackgroundWorker-36|com.orsyp.comm.connection.WebConnection|CentralConnection.read error
com.orsyp.UniverseException: CentralConnection.read error
at com.orsyp.comm.connection.WebConnection.checkMethodCall(WebConnection.java:428)
at com.orsyp.comm.connection.WebConnection.postMessages(WebConnection.java:645)
at com.orsyp.comm.connection.WebConnection.postMessage(WebConnection.java:569)
at com.orsyp.comm.connection.WebConnection.sendInternal(WebConnection.java:516)
at com.orsyp.comm.connection.WebConnection.read(WebConnection.java:171)
at com.orsyp.comm.ServerWebConnection.read(ServerWebConnection.java:84)
at com.orsyp.std.EnvironmentWebConnection.read(EnvironmentWebConnection.java:67)
at com.orsyp.std.nfile.IoFile.put(IoFile.java:292)
at com.orsyp.owls.impl.bv.OwlsBusinessViewImpl.saveFile(OwlsBusinessViewImpl.java:236)
...
|2022-02-12 21:53:24,282|ERROR||BackgroundWorker-36|com.orsyp.kmeleon.swing.businessviews.commands.AbstractSaveCommand$SaveRunnable|com.orsyp.UniverseException: Unable to create BVI data file
|2022-02-12 21:53:24,282|ERROR||BackgroundWorker-36|com.orsyp.kmeleon.environment.ExceptionManager|An error occured on ENVIRONMENT: (node = NODENAME environment = [COMPANY/NODENAME/X])
com.orsyp.UniverseException: Unable to create BVI data file
  • If the proxy/reverse proxy is not used ( like when launching directly the webconsole from the Tomcat in SSL), the issue does not occur, so it must be somehow related to this architecture.
  • If the BV is split into a smaller one, the issue cannot be reproduced either.
  • When using UVC Webstart / Standalone, the problem does not occur.

Environment

Release : 6.x

Component : Univiewer Webconsole

Context: Proxy Apache + Tomcat + Reverse Proxy Apache all in SSL

Cause

Configuration issue in Apache proxy (LimitRequestFields by default is set to 100 and it's insufficient)

The cause could be found in the Apache error_log:

[DATE [core:info] [pid 47842:tid X] [client IP:57837] AH00563: Number of request headers exceeds LimitRequestFields
[DATE] [core:debug] [pid 47842:tid X ] protocol.c(1375): [client IP:57837] AH00567: request failed: error reading the headers

The Headers for Business View request were more than default value 100, so it needed to be increased.

Resolution

To fix it, LimitRequestFields value needs to be increased to a bigger value in Apache httpd.conf, to do so:

  • Edit Apache httpd.conf (default value is 100) (https://httpd.apache.org/docs/2.4/mod/core.html#limitrequestfields ) and add the following line to increase it to 200:

LimitRequestFields 200

  • Restart Apache

Additional Information

For any other application issue while happening in case of Proxy involved, try to check without proxy, if it works without proxy, it must be an issue in the proxy configuration.

To troubleshoot this, look for errors in Apache error log (error_log), and configure proxy server accordingly.

You can look at proxy server config documentation of different configurations.