Enygma
September 27, 2017, 4:24pm
1
The XWiki development team is proud to announce the availability of XWiki 9.8.
This release introduces a new feature for the Notifications: Watched Entities. It is an experimental feature that will soon replace the Watchlist Application. To try it out and get familiar with it, you need to enable it, since it is currently disabled by default.
For users, we now have more usable notification filter settings, a nice helper when you edit a “Database List” field and a feature that was missing from the CKEditor integration, which is office import.
For developers, it is easier to propose an extension containing REST resources, or to customize the Flamingo LESS code. We have also exposed more database columns in the Query Module for users who don’t have programming rights. The notification filters AST (Abstract Syntax Tree) proposes new types of nodes to create complex filter queries. There are also new facilities to avoid using SyntaxFactory, to make Extension Manager faster, or to have more control over some skin elements (CSS IDs and layout variables).
You can download it here: http://www.xwiki.org/xwiki/bin/view/Main/Download
Make sure to review the release notes:
Thanks for your support
-The XWiki dev team
1 Like
YannR
September 29, 2017, 9:11am
2
Hello,
Not sure is the right thread to write this post, but as it is related, I will start here.
I tried to upgrade from 9.6 to 9.8 yesterday, but I got the error messages I paste at the end of this post.
I use tomcat 8.0.3, Apache 2.2.15 and Mysqld 5.1.73. The first error I saw was related to notification preferences for a specific user. Then I got this message each time I tried to upgrade (same message here it seems : Loading... ). I finally rollbacked to version 9.6.
Thanks for your help
vmassol
September 29, 2017, 9:17am
3
@YannR Thanks for posting. The following looks like a bug:
java.lang.NullPointerException
com.xpn.xwiki.XWiki.deleteDocument(XWiki.java:4016)
com.xpn.xwiki.XWiki.deleteDocument(XWiki.java:3981)
org.xwiki.notifications.filters.internal.migrators.ScopeNotificationFilterClassMigrator.hibernateMigrate(ScopeNotificationFilterClassMigrator.java:133)
Could you report an issue at Log in - XWiki.org JIRA ?
Thanks
@gdelhumeau : ping for you
YannR
September 29, 2017, 9:23am
4
@vmassol thanks for your quick answer. I report the issue rigth away.
Looks like we’ll need a 9.8.1. Note that it does not seems to happen for everyone since I did not got this issue when upgrading from 9.7 to 9.8 (but it was on two instances when nobody use the new annotations yet).
com.xpn.xwiki.store.migration.DataMigrationException: Data migration R98000NotificationPreferenceScopeMigration failed
com.xpn.xwiki.store.migration.hibernate.AbstractHibernateDataMigration.migrate(AbstractHibernateDataMigration.java:113)
com.xpn.xwiki.store.migration.AbstractDataMigrationManager.startMigrations(AbstractDataMigrationManager.java:848)
com.xpn.xwiki.store.migration.AbstractDataMigrationManager.migrateDatabase(AbstractDataMigrationManager.java:743)
com.xpn.xwiki.store.migration.AbstractDataMigrationManager.startMigrations(AbstractDataMigrationManager.java:664)
com.xpn.xwiki.store.migration.hibernate.HibernateDataMigrationManager.startMigrations(HibernateDataMigrationManager.java:355)
com.xpn.xwiki.store.migration.AbstractDataMigrationManager.startMigrationsOnlyOnce(AbstractDataMigrationManager.java:644)
com.xpn.xwiki.store.migration.AbstractDataMigrationManager.tryToProcceedToMigration(AbstractDataMigrationManager.java:621)
com.xpn.xwiki.store.migration.AbstractDataMigrationManager.checkDatabase(AbstractDataMigrationManager.java:538)
com.xpn.xwiki.store.XWikiHibernateBaseStore.setDatabase(XWikiHibernateBaseStore.java:765)
com.xpn.xwiki.store.XWikiHibernateBaseStore.beginTransaction(XWikiHibernateBaseStore.java:942)
com.xpn.xwiki.store.XWikiHibernateBaseStore.beginTransaction(XWikiHibernateBaseStore.java:873)
com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:866)
com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:280)
com.xpn.xwiki.XWiki.getDocument(XWiki.java:1819)
com.xpn.xwiki.XWiki.getDocument(XWiki.java:1860)
org.xwiki.configuration.internal.AbstractXWikiPreferencesConfigurationSource.getBaseObject(AbstractXWikiPreferencesConfigurationSource.java:86)
org.xwiki.configuration.internal.AbstractXWikiPreferencesConfigurationSource.getBaseProperty(AbstractXWikiPreferencesConfigurationSource.java:139)
org.xwiki.configuration.internal.AbstractXWikiPreferencesConfigurationSource.getBaseProperty(AbstractXWikiPreferencesConfigurationSource.java:156)
org.xwiki.configuration.internal.AbstractDocumentConfigurationSource.getPropertyValue(AbstractDocumentConfigurationSource.java:313)
org.xwiki.configuration.internal.AbstractDocumentConfigurationSource.containsKey(AbstractDocumentConfigurationSource.java:192)
org.xwiki.configuration.internal.AbstractSpacesConfigurationSource$SpaceConfigurationSource.containsKey(AbstractSpacesConfigurationSource.java:172)
org.xwiki.configuration.internal.AbstractCompositeConfigurationSource.containsKey(AbstractCompositeConfigurationSource.java:45)
org.xwiki.configuration.internal.AbstractCompositeConfigurationSource.containsKey(AbstractCompositeConfigurationSource.java:45)
org.xwiki.configuration.internal.AbstractCompositeConfigurationSource.getProperty(AbstractCompositeConfigurationSource.java:95)
org.xwiki.store.filesystem.internal.DefaultFilesystemAttachmentsConfiguration.cleanOnStartup(DefaultFilesystemAttachmentsConfiguration.java:52)
org.xwiki.store.filesystem.internal.DefaultFilesystemStoreTools.initialize(DefaultFilesystemStoreTools.java:179)
org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39)
org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:322)
org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:424)
org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:392)
org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:190)
org.xwiki.component.embed.EmbeddableComponentManager.getDependencyInstance(EmbeddableComponentManager.java:363)
org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:312)
org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:424)
org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:392)
org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:190)
org.xwiki.component.internal.multi.DelegateComponentManager.getInstance(DelegateComponentManager.java:83)
org.xwiki.component.internal.multi.DelegateComponentManager.getInstance(DelegateComponentManager.java:83)
org.xwiki.component.internal.multi.DelegateComponentManager.getInstance(DelegateComponentManager.java:83)
org.xwiki.component.internal.multi.DelegateComponentManager.getInstance(DelegateComponentManager.java:83)
org.xwiki.component.internal.multi.DelegateComponentManager.getInstance(DelegateComponentManager.java:83)
com.xpn.xwiki.web.Utils.getComponent(Utils.java:753)
com.xpn.xwiki.web.Utils.getComponent(Utils.java:716)
com.xpn.xwiki.XWiki.initXWiki(XWiki.java:1164)
com.xpn.xwiki.XWiki.initXWiki(XWiki.java:1105)
com.xpn.xwiki.XWiki.<init>(XWiki.java:1078)
com.xpn.xwiki.internal.XWikiInitializerJob.runInternal(XWikiInitializerJob.java:117)
org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:206)
org.xwiki.job.AbstractJob.run(AbstractJob.java:189)
java.lang.Thread.run(Thread.java:745)
cause mère
java.lang.NullPointerException
com.xpn.xwiki.XWiki.deleteDocument(XWiki.java:4016)
com.xpn.xwiki.XWiki.deleteDocument(XWiki.java:3981)
@YannR : could you please retry your migration with the this file ?
All you have to do is to put it under the xwiki/WEB-INF/lib
folder where your XWiki instance is installed, and remove the file named xwiki-platform-store-filesystem-oldcore-9.8.jar
in the same place.
Please keep me updated!
Thanks,
Guillaume
YannR
October 3, 2017, 10:22am
8
@gdelhumeau thanks for your answer. I am going to test it as soon as possible. Just one question though, shall I rename the new file to xwiki-platform-store-filesystem-oldcore-9.8.jar or can I just let its name xwiki-platform-store-filesystem-oldcore-9.8-SNAPSHOT-XWIKI-14749-PATCHED.jar as it is?
Thanks,
Yann
You can let it as it is, as soon as you remove the old one.
vmassol
October 3, 2017, 11:07am
10
The important part is to remove the old JAR file. The name doesn’t matter.
YannR
October 3, 2017, 12:08pm
11
Thanks for your answers. I try to test the upgrade today and will let you know the result.
vmassol
October 3, 2017, 12:11pm
12
Thanks @YannR The faster you can tell us if it’s ok the faster we can release XWiki 9.8.1 with the fix!
YannR
October 3, 2017, 3:02pm
13
I was able to upgrade to 9.8 successfuly this time. Thanks a lot for your help.
Yann
Thanks you, you helped us a lot Now we are almost ready to release XWiki 9.8.1
1 Like
YannR
October 3, 2017, 3:21pm
15
thanks for patching so quickly!