confluence upgrade to 4.0 does not run properly

I did the upgrade from 3.5 to 4.0 and the log file says that the upgrade has completed succesfully, but the log says as well that some errors had occured.

And by testing version 4.0 I see some graphical errors. It shows just html code instead of downloading the right attachment.

the log says following during the upgrade:

2013-03-08 14:33:41,861 WARN [main] [atlassian.confluence.upgrade.UpgradeTask] doDeferredUpgrade Wiki to XHTML Exception Report:
Summary:
0 settings values failed.
0 PageTemplates failed.
15 ContentEntityObjects failed.
Content Migration Exceptions:
1) Type: page, Id: 361210, Title: Order Entry (AEBO0000), Space: cust - Customer Space. Cause: com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'choose-label' is unknown.. Message: The macro 'choose-label' is unknown.
2) Type: page, Id: 361219, Title: FX-Request Fonds-Order (AKBO00000), Space: cust - Customer Space. Cause: com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'choose-label' is unknown.. Message: The macro 'choose-label' is unknown.
3) Type: page, Id: 361222, Title: Placement Trading (AHBO00000), Space: cust - Customer Space. Cause: com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'choose-label' is unknown.. Message: The macro 'choose-label' is unknown.
4) Type: page, Id: 361227, Title: Order Placement (APBO00000), Space: cust - Customer Space. Cause: com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'choose-label' is unknown.. Message: The macro 'choose-label' is unknown.
5) Type: page, Id: 361598, Title: Order Placement (Entry) (APBOENTRY), Space: cust - Customer Space. Cause: com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'choose-label' is unknown.. Message: The macro 'choose-label' is unknown.
6) Type: page, Id: 1769552, Title: New Page, Space: team - Team Space. Cause: com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'choose-label' is unknown.. Message: The macro 'choose-label' is unknown.
7) Type: page, Id: 1769558, Title: muster_pfas, Space: cust - Customer Space. Cause: com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'html' is unknown.. Message: The macro 'html' is unknown.
8) Type: page, Id: 1772585, Title: test edit, save, Space: cust - Customer Space. Cause: com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'page operation' is unknown.. Message: The macro 'page operation' is unknown.
9) Type: page, Id: 12189818, Title: Payment Order (IPI), Space: cust - Customer Space. Cause: com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro '1,1' is unknown.. Message: The macro '1,1' is unknown.
10) Type: page, Id: 1774377, Title: Wiki quick start guideline, Space: cust - Customer Space. Cause: com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'menuicon' is unknown.. Message: The macro 'menuicon' is unknown.
11) Type: page, Id: 1775148, Title: new, Space: cust - Customer Space. Cause: com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'cBoAbschlussObjekt' is unknown.. Message: The macro 'cBoAbschlussObjekt' is unknown.
12) Type: page, Id: 7340055, Title: Business object stylesheet model, Space: cust - Customer Space. Cause: com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'GuptaFrameContext' is unknown.. Message: The macro 'GuptaFrameContext' is unknown.
13) Type: page, Id: 3407973, Title: Java scheduler, Space: cust - Customer Space. Cause: com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'sql' is unknown.. Message: The macro 'sql' is unknown.
14) Type: page, Id: 8061106, Title: FX Related Function, Space: team - Team Space. Cause: com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro ' [1 + ( InterestRateLeadingCurrency * days/daysPerYear)] / [1 + ( InterestRateSecondCurrency * days/daysPerYear )] ' is unknown.. Message: The macro ' [1 + ( InterestRateLeadingCurrency * days/daysPerYear)] / [1 + ( InterestRateSecondCurrency * days/daysPerYear )] ' is unknown.
15) Type: page, Id: 26509359, Title: Token 'Vasco', Space: usteam - U-Safe Team Space. Cause: com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro '12,12' is unknown.. Message: The macro '12,12' is unknown.

Content Migration Exception statistics:
Count: 6, com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'choose-label' is unknown.
Count: 1, com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'sql' is unknown.
Count: 1, com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'page operation' is unknown.
Count: 1, com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'menuicon' is unknown.
Count: 1, com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'html' is unknown.
Count: 1, com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'cBoAbschlussObjekt' is unknown.
Count: 1, com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'GuptaFrameContext' is unknown.
Count: 1, com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro '12,12' is unknown.
Count: 1, com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro '1,1' is unknown.
Count: 1, com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro ' [1 + ( InterestRateLeadingCurrency * days/daysPerYear)] / [1 + ( InterestRateSecondCurrency * days/daysPerYear )] ' is unknown.

FURTHERMORE: I get this Error message:

How can I find which tabel is affected, when they say at line 281,column 100??

2013-03-08 14:34:47,088 WARN [Indexer: 1] [plugins.macrousage.extractor.MacroExtractor] processXhtml Exception extracting macro usages on 3408673
com.atlassian.confluence.content.render.xhtml.XhtmlParsingException: The XML content could not be parsed. There is a problem at line 281, column 100. Parser message: Illegal character entity: expansion character (code 0xb) not a valid XML character
at [row,col {unknown-source}]: [281,100]
at com.atlassian.confluence.content.render.xhtml.StaxUtils.convertToXhtmlException(StaxUtils.java:274)
at com.atlassian.confluence.content.render.xhtml.storage.StorageXhtmlTransformer.transform(StorageXhtmlTransformer.java:49)
at com.atlassian.confluence.content.render.xhtml.DefaultXhtmlContent.handleMacroDefinitions(DefaultXhtmlContent.java:199)
at sun.reflect.GeneratedMethodAccessor354.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129)
at $Proxy131.handleMacroDefinitions(Unknown Source)
at sun.reflect.GeneratedMethodAccessor354.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154)
at $Proxy131.handleMacroDefinitions(Unknown Source)
at com.atlassian.confluence.plugins.macrousage.extractor.MacroExtractor.processXhtml(MacroExtractor.java:68)
at com.atlassian.confluence.plugins.macrousage.extractor.MacroExtractor.addFields(MacroExtractor.java:49)
at com.atlassian.confluence.plugin.descriptor.ExtractorModuleDescriptor$BackwardsCompatibleExtractor.addFields(ExtractorModuleDescriptor.java:45)
at com.atlassian.bonnie.search.BaseDocumentBuilder.getDocument(BaseDocumentBuilder.java:104)
at com.atlassian.confluence.search.lucene.ConfluenceDocumentBuilder.getDocument(ConfluenceDocumentBuilder.java:97)
at com.atlassian.confluence.search.lucene.tasks.AddDocumentIndexTask.perform(AddDocumentIndexTask.java:43)
at com.atlassian.bonnie.index.TempIndexWriter.perform(TempIndexWriter.java:73)
at com.atlassian.confluence.search.lucene.TempIndexWriterStrategy.perform(TempIndexWriterStrategy.java:43)
at com.atlassian.confluence.search.lucene.tasks.TempIndexBackedIndexTaskPerformer.perform(TempIndexBackedIndexTaskPerformer.java:21)
at com.atlassian.confluence.search.lucene.DefaultObjectQueueWorker.indexCollection(DefaultObjectQueueWorker.java:104)
at com.atlassian.confluence.search.lucene.DefaultObjectQueueWorker$1.doInTransaction(DefaultObjectQueueWorker.java:71)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128)
at com.atlassian.confluence.search.lucene.DefaultObjectQueueWorker.run(DefaultObjectQueueWorker.java:60)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)
Caused by: com.ctc.wstx.exc.WstxParsingException: Illegal character entity: expansion character (code 0xb) not a valid XML character
at [row,col {unknown-source}]: [281,100]
at com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:630)
at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:461)
at com.ctc.wstx.sr.StreamScanner.reportIllegalChar(StreamScanner.java:2400)
at com.ctc.wstx.sr.StreamScanner.checkAndExpandChar(StreamScanner.java:2346)
at com.ctc.wstx.sr.StreamScanner.resolveSimpleEntity(StreamScanner.java:1205)
at com.ctc.wstx.sr.BasicStreamReader.readTextSecondary(BasicStreamReader.java:4677)
at com.ctc.wstx.sr.BasicStreamReader.finishToken(BasicStreamReader.java:3703)
at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1023)
at com.ctc.wstx.evt.WstxEventReader.peek(WstxEventReader.java:306)
at com.ctc.wstx.evt.FilteredEventReader.peek(FilteredEventReader.java:120)
at com.ctc.wstx.evt.FilteredEventReader.hasNext(FilteredEventReader.java:70)
at com.atlassian.confluence.content.render.xhtml.XmlFragmentEventReader.hasNext(XmlFragmentEventReader.java:49)
at com.atlassian.confluence.content.render.xhtml.XmlFragmentBodyEventReader.hasNext(XmlFragmentBodyEventReader.java:41)
at com.atlassian.confluence.content.render.xhtml.transformers.DefaultFragmentTransformer.transform(DefaultFragmentTransformer.java:85)
at com.atlassian.confluence.content.render.xhtml.storage.StorageXhtmlTransformer.transform(StorageXhtmlTransformer.java:43)
... 27 more
2013-03-08 14:34:47,098 ERROR [Indexer: 1] [atlassian.bonnie.search.BaseDocumentBuilder] getDocument Error extracting search fields from page: Overview users frame v.43 (3408673) using BackwardsCompatibleExtractor wrapping com.atlassian.labs.mentions.MentionExtractor@79e2aac2 (com.atlassian.labs.confluence-mentions-plugin:labs.mentions.confluence.extractor): [com.ctc.wstx.exc.WstxLazyException] Illegal character entity: expansion character (code 0xb) not a valid XML character
at [row,col {unknown-source}]: [281,100]
[com.ctc.wstx.exc.WstxLazyException] com.ctc.wstx.exc.WstxParsingException: Illegal character entity: expansion character (code 0xb) not a valid XML character
at [row,col {unknown-source}]: [281,100]
at com.ctc.wstx.exc.WstxLazyException.throwLazily(WstxLazyException.java:45)
at com.ctc.wstx.evt.FilteredEventReader.hasNext(FilteredEventReader.java:72)
at com.atlassian.confluence.content.render.xhtml.XmlFragmentEventReader.hasNext(XmlFragmentEventReader.java:49)
at com.atlassian.confluence.content.render.xhtml.XmlFragmentBodyEventReader.hasNext(XmlFragmentBodyEventReader.java:41)
at com.atlassian.labs.mentions.MentionFinderImpl.getMentionedUsernamesFromXhtmlContent(MentionFinderImpl.java:106)
at com.atlassian.labs.mentions.MentionFinderImpl.getMentionedUsernames(MentionFinderImpl.java:75)
at com.atlassian.labs.mentions.MentionFinderImpl.getMentionedUsernames(MentionFinderImpl.java:49)
at com.atlassian.labs.mentions.MentionFinderImpl.getMentionedUsernames(MentionFinderImpl.java:44)
at com.atlassian.labs.mentions.MentionExtractor.addFields(MentionExtractor.java:29)
at com.atlassian.confluence.plugin.descriptor.ExtractorModuleDescriptor$BackwardsCompatibleExtractor.addFields(ExtractorModuleDescriptor.java:45)
at com.atlassian.bonnie.search.BaseDocumentBuilder.getDocument(BaseDocumentBuilder.java:104)
at com.atlassian.confluence.search.lucene.ConfluenceDocumentBuilder.getDocument(ConfluenceDocumentBuilder.java:97)
at com.atlassian.confluence.search.lucene.tasks.AddDocumentIndexTask.perform(AddDocumentIndexTask.java:43)
at com.atlassian.bonnie.index.TempIndexWriter.perform(TempIndexWriter.java:73)
at com.atlassian.confluence.search.lucene.TempIndexWriterStrategy.perform(TempIndexWriterStrategy.java:43)
at com.atlassian.confluence.search.lucene.tasks.TempIndexBackedIndexTaskPerformer.perform(TempIndexBackedIndexTaskPerformer.java:21)
at com.atlassian.confluence.search.lucene.DefaultObjectQueueWorker.indexCollection(DefaultObjectQueueWorker.java:104)
at com.atlassian.confluence.search.lucene.DefaultObjectQueueWorker$1.doInTransaction(DefaultObjectQueueWorker.java:71)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128)
at com.atlassian.confluence.search.lucene.DefaultObjectQueueWorker.run(DefaultObjectQueueWorker.java:60)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:679)
Caused by: com.ctc.wstx.exc.WstxParsingException: Illegal character entity: expansion character (code 0xb) not a valid XML character
at [row,col {unknown-source}]: [281,100]
at com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:630)
at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:461)
at com.ctc.wstx.sr.StreamScanner.reportIllegalChar(StreamScanner.java:2400)
at com.ctc.wstx.sr.StreamScanner.checkAndExpandChar(StreamScanner.java:2346)
at com.ctc.wstx.sr.StreamScanner.resolveSimpleEntity(StreamScanner.java:1205)
at com.ctc.wstx.sr.BasicStreamReader.readTextSecondary(BasicStreamReader.java:4677)
at com.ctc.wstx.sr.BasicStreamReader.finishToken(BasicStreamReader.java:3703)
at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1023)
at com.ctc.wstx.evt.WstxEventReader.peek(WstxEventReader.java:306)
at com.ctc.wstx.evt.FilteredEventReader.peek(FilteredEventReader.java:120)
at com.ctc.wstx.evt.FilteredEventReader.hasNext(FilteredEventReader.java:70)

thank you very much

2 answers

1 accepted

If it's not a plugin, most probably it's the user macro that had been written in Confluence 3.5 version is not compatible with Confluence 4.0. Please make sure that all the user macros are compatible and re-run the upgrade.

You could check whether you have some installed plugins by checking your PLUGINDATA table. Please check if there's some plugins installed there. It is weird as choose-label is not a macro from out of box Confluence.

We don't have any user macro!!

Why can't I see any plugin? Shouldn't it be at least some system plugins?

actually yes, there are 6 plugins installed. but I cannot see them (3.5 and 4.0).

What could I do for restoring these plugins?

Could you provide me the information how to find the page where the parsing error occurrs?

The page that the parsing error occurred is written on the snippet log that you mentioned earlier. I guess it would be better if you could raise a suport ticket at https://support.atlassian.com as we might need to investigate further this issue.

Hi Andrea,

I see that you have messages like:

com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'choose-label' is unknown.. Message: The macro 'choose-label' is unknown.

These messages seem related to incompatible plugins, I'd suggest to compare the installed plugin in your version 3.5 against version 4.0 and check at Atlassian Marketplace if they are in theirs lasted compatible version.

I hope this has helped.

Cheers

Hi Tiago,

I haven't installed any plugins. It might be, that there are some plugins, but even when I am checking >Confluence Admin > Plugins

there isn't listed any plugin. ( On both, the old version 3.5.13 and the new one 4.0)

other suggestions?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Friday in Off-topic

Friday Fun: Dry T-Shirt Competition - What's your BEST (Atlassian) T-Shirt!?

[Note: So it was my turn for Friday Fun and sadly I was sick thanks to rubbish sinus infection... so apologies to most of Europe and Asia for the delayed post. However, I finally got out of bed for t...

141 views 8 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you