This issue has been created
There are 5 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-d801643d-cce9-4bb2-aa84-13e1f49fdc9f XWIKI-22575 Open

Errors in logs when starting XWiki 16.8.0 on Tomcat with Office server configured

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-1a57ccfc-a903-4f54-8b21-ff73d9af7f02 Ilie Andriuta created this issue on 15/Oct/24 11:26
 
Summary: Errors in logs when starting XWiki 16.8.0 on Tomcat with Office server configured
Issue Type: cid:jira-generated-image-avatar-d801643d-cce9-4bb2-aa84-13e1f49fdc9f Bug
Affects Versions: 16.8.0
Assignee: Unassigned
Attachments: Full_logs_Tomcat_MySQL_XWiki_16_8_0.txt
Created: 15/Oct/24 11:26
Environment: Windows 11 Pro, Firefox 131, using a local instance of XWiki 16.8.0 on PostgreSQL 16, Tomcat 9.0.96
Priority: cid:jira-generated-image-static-blocker-c5449577-5b78-41c4-a7cd-9d6da10cab22 Blocker
Reporter: Ilie Andriuta
Description:

Steps to reproduce

  1. Configure XWiki 16.8.0 with Tomcat (tested with Tomcat 9.0.95 and 9.0.96), the database seems to not be relevant, since the issue reproduced on PostgreSQL 16 and MySQL 9 as well
  2. Configure the Office server in xwiki.properties file by uncommenting/configuring the following lines, in my case:
    openoffice.serverType = 0
    openoffice.serverPorts = 8100,8101
    openoffice.autoStart = true
    openoffice.homePath = C:/Program Files//LibreOffice
  1. Start XWiki

Expected results

No errors are displayed in the logs.

Actual results

In XWiki console, after the Tomcat server starts, at the end, there are the following errors displayed:

2024-10-15 12:11:31,270 [Thread-25] ERROR o.j.l.o.VerboseProcess         - Entity: line 1: parser error : Document is empty
2024-10-15 12:11:31,270 [Thread-25] ERROR o.j.l.o.VerboseProcess         -
2024-10-15 12:11:31,270 [Thread-25] ERROR o.j.l.o.VerboseProcess         - ^
2024-10-15 12:11:31,314 [Thread-27] ERROR o.j.l.o.VerboseProcess         - Entity: line 1: parser error : Document is empty
2024-10-15 12:11:31,314 [Thread-27] ERROR o.j.l.o.VerboseProcess         -
2024-10-15 12:11:31,314 [Thread-27] ERROR o.j.l.o.VerboseProcess         - ^

From my tests, the issue seems to be reproducing only when the Office server is configured.

The issue seems to not be reproducing on earlier XWiki versions, tested on XWiki 16.4.4 and 16.7.1.

Also, I tested by starting XWiki 16.8.0 on Docker, but the issue did not reproduce.

 
 

5 updates

 
cid:jira-generated-image-avatar-1a57ccfc-a903-4f54-8b21-ff73d9af7f02 Changes by Ilie Andriuta on 15/Oct/24 11:26
 
Environment: Windows 11 Pro, Firefox 131, using a local instance of XWiki 16.8.0 on PostgreSQL 16, Tomcat 9.0.96 , LibreOffice 24.2.6.2
Fix Version: 16.9.0-rc-1
Description: *Steps to reproduce*
# Configure XWiki 16.8.0 with Tomcat (tested with Tomcat 9.0.95 and 9.0.96), the database seems to not be relevant, since the issue reproduced on PostgreSQL 16 and MySQL 9 as well
# Configure the Office server
(tested with {*}LibreOffice 24.2.6.2{*}) in {{xwiki.properties}} file by uncommenting/configuring the following lines, in my case:
{code:java}
openoffice.serverType = 0
openoffice.serverPorts = 8100,8101
openoffice.autoStart = true
openoffice.homePath = C:/Program Files//LibreOffice{code}

# Start XWiki

*Expected results*

No errors are displayed in the logs.

*Actual results*

In XWiki console, after the Tomcat server starts, at the end, there are the following errors displayed:
{code:java}
2024-10-15 12:11:31,270 [Thread-25] ERROR o.j.l.o.VerboseProcess         - Entity: line 1: parser error : Document is empty
2024-10-15 12:11:31,270 [Thread-25] ERROR o.j.l.o.VerboseProcess         -
2024-10-15 12:11:31,270 [Thread-25] ERROR o.j.l.o.VerboseProcess         - ^
2024-10-15 12:11:31,314 [Thread-27] ERROR o.j.l.o.VerboseProcess         - Entity: line 1: parser error : Document is empty
2024-10-15 12:11:31,314 [Thread-27] ERROR o.j.l.o.VerboseProcess         -
2024-10-15 12:11:31,314 [Thread-27] ERROR o.j.l.o.VerboseProcess         - ^{code}
From my tests, the issue seems to be reproducing only when the Office server is configured.

The issue seems to not be reproducing on earlier XWiki versions, tested on XWiki 16.4.4 and 16.7.1.

Also, I tested by starting XWiki 16.8.0 on Docker, but the issue did not reproduce.
Component: Office
Labels: regression