Details
-
Bug
-
Resolution: Fixed
-
Major
-
16.2.0, 16.9.0
-
None
-
Unit
-
Unknown
-
N/A
-
N/A
-
Description
Steps to reproduce:
- Edit any terminal page, for example the Sandbox Test Page 1.
- Switch to source.
- Add the syntax [[...]] anywhere in the content.
- Save and view the page.
Expected result:
The page content is displayed and no errors are logged.
Actual result:
Instead of the content, $renderedContent is displayed. In some cases, also " Unexpected error. Contact your administrator or report the issue. Click this box to get technical details. " is displayed.
In the log, the following errors are logged:
2024-11-19 11:46:36,758 [XWiki Solr index thread] ERROR o.x.s.s.i.DefaultSolrIndexer - Failed to process entry [INDEX xwiki:Sandbox.TestPage1] org.xwiki.search.solr.internal.api.SolrIndexerException: Failed to get input Solr document for entity 'xwiki:Sandbox.TestPage1' at org.xwiki.search.solr.internal.metadata.AbstractSolrMetadataExtractor.getSolrDocument(AbstractSolrMetadataExtractor.java:178) at org.xwiki.search.solr.internal.DefaultSolrIndexer.lambda$getSolrDocument$0(DefaultSolrIndexer.java:615) at org.xwiki.bridge.internal.DefaultDocumentContextExecutor.call(DefaultDocumentContextExecutor.java:65) at org.xwiki.search.solr.internal.DefaultSolrIndexer.getSolrDocument(DefaultSolrIndexer.java:615) at org.xwiki.search.solr.internal.DefaultSolrIndexer.processBatch(DefaultSolrIndexer.java:504) at org.xwiki.search.solr.internal.DefaultSolrIndexer.run(DefaultSolrIndexer.java:466) at java.base/java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException: Cannot invoke "org.xwiki.model.reference.EntityReference.getParent()" because "sourceReference" is null at org.xwiki.rendering.internal.resolver.AbstractResourceReferenceEntityReferenceResolver.trySpaceSiblingFallback(AbstractResourceReferenceEntityReferenceResolver.java:235) at org.xwiki.rendering.internal.resolver.AbstractResourceReferenceEntityReferenceResolver.resolveDocumentReference(AbstractResourceReferenceEntityReferenceResolver.java:190) at org.xwiki.rendering.internal.resolver.AbstractResourceReferenceEntityReferenceResolver.resolveDocumentReference(AbstractResourceReferenceEntityReferenceResolver.java:171) at org.xwiki.rendering.internal.resolver.DocumentResourceReferenceEntityReferenceResolver.resolveUntyped(DocumentResourceReferenceEntityReferenceResolver.java:86) at org.xwiki.rendering.internal.resolver.AbstractResourceReferenceEntityReferenceResolver.resolve(AbstractResourceReferenceEntityReferenceResolver.java:107) at org.xwiki.rendering.internal.resolver.AbstractResourceReferenceEntityReferenceResolver.resolve(AbstractResourceReferenceEntityReferenceResolver.java:47) at org.xwiki.rendering.internal.resolver.DefaultResourceReferenceEntityReferenceResolver.resolve(DefaultResourceReferenceEntityReferenceResolver.java:77) at org.xwiki.rendering.internal.resolver.DefaultResourceReferenceEntityReferenceResolver.resolve(DefaultResourceReferenceEntityReferenceResolver.java:44) at org.xwiki.rendering.internal.renderer.XWikiLinkLabelGenerator.generate(XWikiLinkLabelGenerator.java:79) at org.xwiki.rendering.internal.renderer.plain.PlainTextChainingRenderer.endLink(PlainTextChainingRenderer.java:121) at org.xwiki.rendering.listener.chaining.AbstractChainingListener.endLink(AbstractChainingListener.java:416) at org.xwiki.rendering.listener.chaining.EmptyBlockChainingListener.endLink(EmptyBlockChainingListener.java:305) at org.xwiki.rendering.listener.chaining.AbstractChainingListener.endLink(AbstractChainingListener.java:416) at org.xwiki.rendering.listener.chaining.BlockStateChainingListener.endLink(BlockStateChainingListener.java:585) at org.xwiki.rendering.listener.chaining.AbstractChainingListener.endLink(AbstractChainingListener.java:416) at org.xwiki.rendering.block.LinkBlock.after(LinkBlock.java:103) at org.xwiki.rendering.block.AbstractBlock.traverse(AbstractBlock.java:596) at org.xwiki.rendering.block.AbstractBlock.traverse(AbstractBlock.java:593) at org.xwiki.rendering.block.AbstractBlock.traverse(AbstractBlock.java:593) at org.xwiki.rendering.internal.renderer.AbstractBlockRenderer.render(AbstractBlockRenderer.java:63) at org.xwiki.rendering.internal.renderer.AbstractBlockRenderer.render(AbstractBlockRenderer.java:55) at org.xwiki.search.solr.internal.metadata.DocumentSolrMetadataExtractor.setFieldsInternal(DocumentSolrMetadataExtractor.java:126) at org.xwiki.search.solr.internal.metadata.AbstractSolrMetadataExtractor.getSolrDocument(AbstractSolrMetadataExtractor.java:171) ... 6 common frames omitted
and
2024-11-19 11:46:36,868 [task-manager-consumer] ERROR o.x.i.i.DefaultTasksManager - [org.xwiki.index.internal.TaskData@324e5b0c[timestamp=1732016796865,docId=5330878325779721977,type=links,attempts=10,stop=false,wikiId=xwiki,version=]] ab> java.lang.NullPointerException: Cannot invoke "org.xwiki.model.reference.EntityReference.getParent()" because "sourceReference" is null at org.xwiki.rendering.internal.resolver.AbstractResourceReferenceEntityReferenceResolver.trySpaceSiblingFallback(AbstractResourceReferenceEntityReferenceResolver.java:235) at org.xwiki.rendering.internal.resolver.AbstractResourceReferenceEntityReferenceResolver.resolveDocumentReference(AbstractResourceReferenceEntityReferenceResolver.java:190) at org.xwiki.rendering.internal.resolver.AbstractResourceReferenceEntityReferenceResolver.resolveDocumentReference(AbstractResourceReferenceEntityReferenceResolver.java:171) at org.xwiki.rendering.internal.resolver.DocumentResourceReferenceEntityReferenceResolver.resolveUntyped(DocumentResourceReferenceEntityReferenceResolver.java:86) at org.xwiki.rendering.internal.resolver.AbstractResourceReferenceEntityReferenceResolver.resolve(AbstractResourceReferenceEntityReferenceResolver.java:107) at org.xwiki.rendering.internal.resolver.AbstractResourceReferenceEntityReferenceResolver.resolve(AbstractResourceReferenceEntityReferenceResolver.java:47) at org.xwiki.rendering.internal.resolver.DefaultResourceReferenceEntityReferenceResolver.resolve(DefaultResourceReferenceEntityReferenceResolver.java:77) at org.xwiki.rendering.internal.resolver.DefaultResourceReferenceEntityReferenceResolver.resolve(DefaultResourceReferenceEntityReferenceResolver.java:44) at org.xwiki.rendering.internal.parser.LinkParser.addReference(LinkParser.java:170) at org.xwiki.rendering.internal.parser.LinkParser.getUniqueLinkedEntityReferences(LinkParser.java:144) at com.xpn.xwiki.doc.XWikiDocument.getUniqueLinkedEntityReferences(XWikiDocument.java:5795) at com.xpn.xwiki.doc.XWikiDocument.getUniqueLinkedEntityReferences(XWikiDocument.java:5744) at com.xpn.xwiki.doc.XWikiDocument.getUniqueLinkedEntities(XWikiDocument.java:5875) at com.xpn.xwiki.store.XWikiHibernateStore.extractLinks(XWikiHibernateStore.java:2253) at com.xpn.xwiki.store.XWikiHibernateStore.saveLinks(XWikiHibernateStore.java:2300) at org.xwiki.index.internal.DefaultLinksTaskConsumer.consume(DefaultLinksTaskConsumer.java:77) at org.xwiki.index.internal.TaskExecutor.internalExecute(TaskExecutor.java:103) at org.xwiki.index.internal.TaskExecutor.execute(TaskExecutor.java:83) at org.xwiki.index.internal.DefaultTasksManager.consume(DefaultTasksManager.java:226) at org.xwiki.index.internal.DefaultTasksManager.run(DefaultTasksManager.java:209) at java.base/java.lang.Thread.run(Unknown Source)