This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-0a563c25-3972-4654-a6f4-3799ea5b8c13 XWIKI-24082 Open

Random "exception in macro" error related to Main.WebHome when creating a page

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-afff0702-d424-4bbc-85eb-f88453330f5d Ilie Andriuta created this issue on 04/Mar/26 16:15
 
Summary: Random "exception in macro" error related to Main.WebHome when creating a page
Issue Type: cid:jira-generated-image-avatar-0a563c25-3972-4654-a6f4-3799ea5b8c13 Bug
Affects Versions: 17.10.3
Assignee: Unassigned
Created: 04/Mar/26 16:15
Environment: Windows 11 Pro, Firefox 148, using an instance of XWiki 17.10.4 onOracle 19c, Tomcat 11, Java 21
Priority: cid:jira-generated-image-static-major-0085590f-c4c8-4f86-8737-053902980764 Major
Reporter: Ilie Andriuta
Description:

Steps to reproduce

  1. Go to Main.WebHome
  2. Click 'Create' button
  3. On the Location, click on 'Edit the new location' (Pencil) button
  4. Insert a non existing parent
  5. Insert a page name
  6. Click 'Create' button

Expected results

No errors are displayed in the logs.

Actual results

The following stacktrace is displayed:

2026-03-04 14:38:38,425 [http-nio-1115-exec-9 - http://localhost:1115/xwiki/bin/get/Main/WebHome?] ERROR o.a.v.d.null                   - Exception in macro #rawResponse called at <unknown template>[line 2998, column 1]
2026-03-04 14:38:38,425 [http-nio-1115-exec-9 - http://localhost:1115/xwiki/bin/get/Main/WebHome?] ERROR o.a.v.d.null                   - Exception in macro #jsonResponse called at xwiki:XWiki.DocumentTreeMacros[line 103, column 1]
2026-03-04 14:38:38,425 [http-nio-1115-exec-9 - http://localhost:1115/xwiki/bin/get/Main/WebHome?] ERROR o.a.v.d.null                   - Exception in macro #handleDocumentTreeRequest called at xwiki:XWiki.ExportDocumentTree[line 3, column 1]

The above steps were done on a clean XWiki 17.10.4 (Oracle 19c/ Tomcat 11.0.18) instance.

Unfortunately, I couldn't find the exact steps to reproduce the issue, I also tried on another clean instance by backtracking the steps that could lead to the issue.

 
 

1 update

 
cid:jira-generated-image-avatar-afff0702-d424-4bbc-85eb-f88453330f5d Changes by Ilie Andriuta on 04/Mar/26 16:17
 
Description: *Steps to reproduce*
# Go to {{Main.WebHome}}
# Click 'Create' button
# On the Location, click on 'Edit the new location' (Pencil) button
# Insert a non existing parent
# Insert a page name
# Click 'Create' button

*Expected results*

No errors are displayed in the logs.

*Actual results*

The following stacktrace is displayed
in XWiki console :
{code:java}
2026-03-04 14:38:38,425 [http-nio-1115-exec-9 - http://localhost:1115/xwiki/bin/get/Main/WebHome?] ERROR o.a.v.d.null                   - Exception in macro #rawResponse called at <unknown template>[line 2998, column 1]
2026-03-04 14:38:38,425 [http-nio-1115-exec-9 - http://localhost:1115/xwiki/bin/get/Main/WebHome?] ERROR o.a.v.d.null                   - Exception in macro #jsonResponse called at xwiki:XWiki.DocumentTreeMacros[line 103, column 1]
2026-03-04 14:38:38,425 [http-nio-1115-exec-9 - http://localhost:1115/xwiki/bin/get/Main/WebHome?] ERROR o.a.v.d.null                   - Exception in macro #handleDocumentTreeRequest called at xwiki:XWiki.ExportDocumentTree[line 3, column 1]{code}
The above steps were done on a clean XWiki 17.10.4 (Oracle 19c/ Tomcat 11.0.18) instance.

Unfortunately, I couldn't find the exact steps to reproduce the issue, I also tried on another clean instance by backtracking the steps that could lead to the issue.