Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: nbsp error while running db upgrade script from 6.2 to 7.2
Caused by: com.liferay.portal.kernel.xml.DocumentException: Error on line 317 of document : The entity "nbsp" was referenced, but not declared. Nested exception: The entity "nbsp" was referenced, but not declared.
at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:406)
at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:381)
at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:417)
at com.liferay.portal.kernel.xml.SAXReaderUtil.read(SAXReaderUtil.java:159)
at com.liferay.journal.internal.upgrade.v0_0_5.UpgradeJournal.convertStaticContentToDynamic(UpgradeJournal.java:256)
at com.liferay.journal.internal.upgrade.v0_0_5.UpgradeJournal.updateJournalArticles(UpgradeJournal.java:582)
at com.liferay.journal.internal.upgrade.v0_0_5.UpgradeJournal.updateJournalArticles(UpgradeJournal.java:562)
at com.liferay.journal.internal.upgrade.v0_0_5.UpgradeJournal.doUpgrade(UpgradeJournal.java:309)
at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:96)
... 26 more
Caused by: org.dom4j.DocumentException: Error on line 317 of document : The entity "nbsp" was referenced, but not declared. Nested exception: The entity "nbsp" was referenced, but not declared.
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.dom4j.io.SAXReader.read(SAXReader.java:365)
at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:403)
... 34 more
While running the db script, I receive the above error.
As a pre requisite tried checking randomly on few xml based columns for nbsp string. Did not find anything.Please let me kn ow if someone has faced something similar and resolution.
at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:406)
at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:381)
at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:417)
at com.liferay.portal.kernel.xml.SAXReaderUtil.read(SAXReaderUtil.java:159)
at com.liferay.journal.internal.upgrade.v0_0_5.UpgradeJournal.convertStaticContentToDynamic(UpgradeJournal.java:256)
at com.liferay.journal.internal.upgrade.v0_0_5.UpgradeJournal.updateJournalArticles(UpgradeJournal.java:582)
at com.liferay.journal.internal.upgrade.v0_0_5.UpgradeJournal.updateJournalArticles(UpgradeJournal.java:562)
at com.liferay.journal.internal.upgrade.v0_0_5.UpgradeJournal.doUpgrade(UpgradeJournal.java:309)
at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:96)
... 26 more
Caused by: org.dom4j.DocumentException: Error on line 317 of document : The entity "nbsp" was referenced, but not declared. Nested exception: The entity "nbsp" was referenced, but not declared.
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.dom4j.io.SAXReader.read(SAXReader.java:365)
at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:403)
... 34 more
While running the db script, I receive the above error.
As a pre requisite tried checking randomly on few xml based columns for nbsp string. Did not find anything.Please let me kn ow if someone has faced something similar and resolution.
Alberto Chaparro Terleira, modified 5 Years ago.
Liferay Master
Posts: 560
Join Date: 4/25/11
Recent Posts
Hi Shoaib,
Probably you have a journal article with a reference to an old DDM Structure. Please find in the journal Article records with the string "nbsp" in the content field, probably they can be removed or updated (use the UI preferably).
I hope it helps.
Probably you have a journal article with a reference to an old DDM Structure. Please find in the journal Article records with the string "nbsp" in the content field, probably they can be removed or updated (use the UI preferably).
I hope it helps.