Issue Details (XML | Word | Printable)

Key: XWIKI-2035
Type: Bug Bug
Status: Closed Closed
Resolution: Won't Fix
Priority: Major Major
Assignee: Vincent Massol
Reporter: Ricardo Rodríguez
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
XWiki Core

"Exception while patching" error

Created: 25/Jan/08 10:26   Updated: 31/Jan/08 02:56
Component/s: Storage
Affects Version/s: 1.2
Fix Version/s: None

File Attachments: 1. Text File catalina.out.XwikiMigration.log (304 kB)
2. Java Archive File xwiki-core-1.2-SNAPSHOT.jar (1.43 MB)

Environment: Tomcat 6.0.10 running on Suse Linux and Mac OS X Leopard. MySQL 5.0.24a and MySQL 5.0.27
Issue Links:
Related

keywords: version history compare
Date of First Response: 25/Jan/08 10:39
Resolution Date: 29/Jan/08 23:46


 Description  « Hide
Working with 1.2.6932. New documents "seem" to work fine "for a while": you can access revisions and make comparisons without problem during some time, then any URL including ?rev= throws the following exception:

Error number 3103 in 3: Exception while reading document version {1}
Wrapped Exception: Error number 13027 in 13: Exception while patching
Wrapped Exception: line::java.lang.NumberFormatException
com.xpn.xwiki.XWikiException: Error number 3103 in 3: Exception while reading document version {1}
Wrapped Exception: Error number 13027 in 13: Exception while patching
Wrapped Exception: line::java.lang.NumberFormatException
at com.xpn.xwiki.doc.XWikiDocumentArchive.loadDocument(XWikiDocumentArchive.java:319)
at com.xpn.xwiki.store.XWikiHibernateVersioningStore.loadXWikiDoc(XWikiHibernateVersioningStore.java:162)
at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1060)
at com.xpn.xwiki.web.XWikiAction.handleRevision(XWikiAction.java:257)
at com.xpn.xwiki.web.ViewrevAction.render(ViewrevAction.java:29)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:148)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
at java.lang.Thread.run(Unknown Source)

Wrapped Exception:

com.xpn.xwiki.XWikiException: Error number 13027 in 13: Exception while patching
Wrapped Exception: line::java.lang.NumberFormatException
at com.xpn.xwiki.doc.rcs.XWikiPatch.patch(XWikiPatch.java:177)
at com.xpn.xwiki.doc.XWikiDocumentArchive.getVersionXml(XWikiDocumentArchive.java:332)
at com.xpn.xwiki.doc.XWikiDocumentArchive.loadDocument(XWikiDocumentArchive.java:304)
at com.xpn.xwiki.store.XWikiHibernateVersioningStore.loadXWikiDoc(XWikiHibernateVersioningStore.java:162)
at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1060)
at com.xpn.xwiki.web.XWikiAction.handleRevision(XWikiAction.java:257)
at com.xpn.xwiki.web.ViewrevAction.render(ViewrevAction.java:29)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:148)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
at java.lang.Thread.run(Unknown Source)

Wrapped Exception:

java.lang.NumberFormatException: For input string: " "
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at com.xpn.xwiki.doc.rcs.XWikiPatchUtils.patch(XWikiPatchUtils.java:89)
at com.xpn.xwiki.doc.rcs.XWikiPatch.patch(XWikiPatch.java:175)
at com.xpn.xwiki.doc.XWikiDocumentArchive.getVersionXml(XWikiDocumentArchive.java:332)
at com.xpn.xwiki.doc.XWikiDocumentArchive.loadDocument(XWikiDocumentArchive.java:304)
at com.xpn.xwiki.store.XWikiHibernateVersioningStore.loadXWikiDoc(XWikiHibernateVersioningStore.java:162)
at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1060)
at com.xpn.xwiki.web.XWikiAction.handleRevision(XWikiAction.java:257)
at com.xpn.xwiki.web.ViewrevAction.render(ViewrevAction.java:29)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:148)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
at java.lang.Thread.run(Unknown Source)



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Vincent Massol added a comment - 25/Jan/08 10:39
we're planning to release 1.2.1 on Monday so if we could fix this before that would be great...

Ricardo, any hint on how to reproduce this?

Thanks
-Vincent


Ricardo Rodríguez added a comment - 25/Jan/08 10:51
About the database required information:

00:23:25,854 http://xxen.xen.net/xwiki/bin/skin/skins/albatross/actionbar-bg2.png [http-80-1] INFO .AbstractXWikiMigrationManager - Starting migration for database [xwiki]...
00:23:28,857 http://xxen.xen.net/xwiki/bin/skin/skins/albatross/actionbar-bg2.png [http-80-1] INFO .AbstractXWikiMigrationManager - No storage migration required since current version is [6431]

11:15:54,403 http://xepecnet.environmentalchange.net/xwiki/bin/view/Main/ [http-193.144.34.240-80-1] INFO .AbstractXWikiMigrationManager - Starting migration for database [xwiki]...
11:15:57,085 http://xepecnet.environmentalchange.net/xwiki/bin/view/Main/ [http-193.144.34.240-80-1] INFO .AbstractXWikiMigrationManager - No storage migration required since current version is [6431]


Ricardo Rodríguez added a comment - 25/Jan/08 11:08
Vincent,

About reproducing the problem: no clue at all! I don't know at the moment how to debug the conversation with the database, so the only things I have are the logs and the sequences of mouse clicks leading to this situation. I have been trying to find a pattern, but nothing conclusive so far.

Some ideas:

1. Access to revisions of documents already in the database prior to the updated always fail.
2. Access to revisions of new documents created after the update, work. But it seems that something is not working fine: I could be completely wrong, but I think the contents showed by any version doesn't fit the contents in the document at that point.
3. Comparisons between revisions of old documents always show the whole document highlighted green. Property of the first term of the comparison are not shown.

During these last days I've been playing with:

1. LDAPAuthenticater. There are a number of pending issue on my side about this, but this revisions problem is a really big problem and is causing some frustrating situations with our users. I am really concern about this: you know how sensitive users are!
2. Virtual wikis. I've also seen some weird behaviors, but I am not able to blame XWiki code about them. It seems more related with my servlet containers.

I thought it could be related with importing/not importing the updated .xar. It doesn't seem the case.

Please, let me know how could I help to work out this issue. Thanks for your work!


Vincent Massol added a comment - 25/Jan/08 11:52
Ah I may have one idea...

In 1.2 XWiki saves the full document as a revision every 5 revisions. In between revisions are saved as diff only.

So it may happen you've done more than 5 revision saves and there's a problem after that.

I'll do some testing to about this here.


Ricardo Rodríguez added a comment - 25/Jan/08 12:21
On this side and about the last two test documents: three and five revisions; Both are in troubles now and throwing the exception.

Vincent Massol added a comment - 25/Jan/08 13:03
Ricardo,

Have you deleted any revision on these pages?
Have you rollbacked any revision too on these pages?

Thanks
-Vincent


Ricardo Rodríguez added a comment - 25/Jan/08 13:14
Deletion is not possible when the problem appears.

If I try to delete a revision, it throws...

Error number 13027 in 13: Exception while patching
Wrapped Exception: line::java.lang.NumberFormatException
com.xpn.xwiki.XWikiException: Error number 13027 in 13: Exception while patching
Wrapped Exception: line::java.lang.NumberFormatException
at com.xpn.xwiki.doc.rcs.XWikiPatch.patch(XWikiPatch.java:177)
at com.xpn.xwiki.doc.XWikiDocumentArchive.getVersionXml(XWikiDocumentArchive.java:332)
at com.xpn.xwiki.doc.XWikiDocumentArchive.removeVersions(XWikiDocumentArchive.java:273)
at com.xpn.xwiki.web.DeleteVersionsAction.action(DeleteVersionsAction.java:75)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:147)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
at java.lang.Thread.run(Unknown Source)

Wrapped Exception:

java.lang.NumberFormatException: For input string: " "
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at com.xpn.xwiki.doc.rcs.XWikiPatchUtils.patch(XWikiPatchUtils.java:89)
at com.xpn.xwiki.doc.rcs.XWikiPatch.patch(XWikiPatch.java:175)
at com.xpn.xwiki.doc.XWikiDocumentArchive.getVersionXml(XWikiDocumentArchive.java:332)
at com.xpn.xwiki.doc.XWikiDocumentArchive.removeVersions(XWikiDocumentArchive.java:273)
at com.xpn.xwiki.web.DeleteVersionsAction.action(DeleteVersionsAction.java:75)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:147)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
at java.lang.Thread.run(Unknown Source)

BUT rollback does work. And after rollingback to any version deletion and comparison seem to work again. Does this make any sense for you?


Vincent Massol added a comment - 25/Jan/08 13:19
Sorry I was asking for something different.

I was asking if you had done any deletion or rollbacks on the documents that are having problems BEFORE the problem appeared...

I'm checking if the deletion or rollback could have been the cause of the problem appearing.

Thanks


Ricardo Rodríguez added a comment - 25/Jan/08 13:37
Nope! The problem appears without deleting or rolling back to any version. But it is curiouse that after rolling back an in troubles document it seems to work again...

Vincent Massol added a comment - 27/Jan/08 14:01
I've checked the xwiki.log and couldn't find any instance of the problem... so that's strange (note that xwiki.org is running 1.3 SNAPSHOT but that shouldn't make a difference)

Vincent Massol added a comment - 27/Jan/08 14:46
This problem should appear when xwiki consider that a revision is diff while it's actually a full content revision or vice-versa. So the only possibility of error I can imagine is when we reach 5 revisions. However I've added some unit tests for that and it seems to be working fine.

I'm stumped. And since it doesn't happen on xwiki.org either it would be nice if you could make your mysql dump available for download somewhere so that I could try with it.

Thanks
-Vincent


Sergiu Dumitriu added a comment - 27/Jan/08 14:56
Cannot reproduce this with Tomcat 6.0.14, MacOS and mySQL 5.0.45, on a clean install.

Some more details which could help:

  • Did you upgrade from a previous install, or you used a clean database and a new wiki directory?
  • Can you reproduce it with mySQL 5.0.45 or newer?
  • What version of the mysql-connector are you using?
  • Can you check that the xwikircs table exists in the database? (mysql> show tables
  • Can you check that there is something in that table? (mysql> select count from xwikircs

The fact that the history works fine for a period of time has a simple cause: the archive is taken from the cache. So, when you create a new document and some history for it, it is stored in an archive cache, and also persisted in the database. This cache expires at some moment, so when trying to use the document archive will result in a load from the database, instead of using the cache. And, when loading the archive from the database, something goes wrong. So the problem is somewhere between XWiki and the database.


Sergiu Dumitriu added a comment - 27/Jan/08 14:57
Forgot to mention, I am using mysql-connector-java-5.1.5.

Sergiu Dumitriu added a comment - 27/Jan/08 15:54
Just tried with mysql 5.0.27, and it works. So it probably doesn't depend on the mysql version.

Ricardo Rodríguez added a comment - 28/Jan/08 01:48
Hi Vincent, Sergiu,

This is making me nuts... I am not able to find a pattern for the error. Let's start by answering Sergiu's questions:

My test environment: Mac OS X (Leopard fully patched), MySQL 5.0.27, Tomcat 6.0.10, mysql-connector-java-5.1.5

  • Did you upgrade from a previous install, or you used a clean database and a new wiki directory?
    Upgrade from a previous installation running 1.1.x, 1.2x,...
  • Can you check that the xwikircs table exists in the database? (mysql> show tables
    Yes, the table exists
  • Can you check that there is something in that table? (mysql> select count from xwikircs
    The result is an integer > 0

I have been preparing an ad hoc database where you can be the errors. It was doing "fine" (I mean, errors appear systematically), but after some rollback operations and deleting some entries from the recyble bin, all the documents seem to work fine now.

I will sent to Vincent an account for the in troubles xwiki installation and to access to the mysql dump. It is running in a Linux box (Suse Linux 9.x / OES) and MySQL 5.0.24a, Tomcat 6.0.10.

Thanks!


Vincent Massol added a comment - 28/Jan/08 11:50
Ricardo, here's what I think happened:

You were using a 1.2 version of XE (maybe a milestone or a RC version). At some point there was a bug introduced (XWIKI-1878) and I wrote a Migrator for it. For some reason (maybe someone resetted the version table in the database, maybe there's a whole in the sequencing order of our migrators) this migrator wasn't executed on your database and you still have that mismatch.

I've tested your DB and any new revision added work just fine.

BTW when I imported your DB dump the version was 0 so that's really weird.

I'm going to modify the XWIKI-1878 migrator so that it can work on a already migrated XWIKIRCS table and then I'll show you how to force it.


Ricardo Rodríguez added a comment - 28/Jan/08 12:10
Yes, this database was used both with milestones and RC versions. There are a message somewhere in the list about this. We do need some bugs solved/improvements only available in the RCs, so we gone ahead with the "update".

As for editing the database by hand, as far as I remember I've only tried to remove an entry referenced in "[xwiki-users] document name including /" thread in

About new revisions I am not so sure. Pleae, check this...

http://xepecnet.environmentalchange.net/xwiki/bin/viewrev/Sandbox/TrackingChanges02?rev=4.1

This document was created after the last update to 1.2.6932 and is throwing the "Exception while patching"... at least here. It is a virtual wiki, I don't know if this mind or it doesn't.

Sorry, I don't get the point with the 0 version in the DB dump... Did I anything wrong while backing up the database? Anything I must check here?

Thank you so much!


Vincent Massol added a comment - 28/Jan/08 12:29
I've tried the TrackingChanges02 page and all the revisions I create (by modifying the content) are fine and I can view them using the history. It's only version 4.1 that doesn't work.

I know how to fix the problem for all your revisions but I don't know what's causing the problem apart from what I've mentioned in the previous comment. The fact that TrackingChanges02 was created in 1.2 final and has the problem is a real issue...

There's a table in the database called xwikidbversion. In your dump it didn't have any value inside. The value in there should have been 6430.


Sergiu Dumitriu added a comment - 28/Jan/08 12:35
Can you create a testing account, so that I can write some velocity code? You can send it by email to sergiu at xwiki.com

Vincent Massol added a comment - 28/Jan/08 12:44
Ricardo, I've given Sergiu my userid/pwd on your instance. Hope this is ok.

Ricardo Rodríguez added a comment - 28/Jan/08 12:44
Vincent,

As far as I understand, I must populate xwikidbversion with value 6430 (I see the value in this table for the controller is 6431).

And now, restart the servlet container and try again? Any other action? Stop until receive more instructions?

Thanks!


Vincent Massol added a comment - 28/Jan/08 12:48
No, no, no

You don't have to change anything and in general you should never touch the database's content

I was just surprised that the dump you gave me was not correct in this regards and I'm wondering why.


Ricardo Rodríguez added a comment - 28/Jan/08 13:25
Sttoped! I rolled back changes in xwiki_epecnet.xwikidbversion.

As for the account for Sergiu, of course it is OK, but I've sent him his own account.

Thanks!


Vincent Massol added a comment - 28/Jan/08 14:16
Ricardo,

It seems you didn't upgrade cleanly. For example Sergiu found that your version of http://xepecnet.environmentalchange.net/xwiki/bin/skin/skins/albatross/usersandgroups.js is not the same as this one:
http://svn.xwiki.org/svnroot/xwiki/xwiki-platform/web/tags/xwiki-web-1.2/standard/src/main/webapp/skins/albatross/usersandgroups.js

This implies you didn't upgrade correctly. A correct upgrade implies changing an existing WAR with a newer version and copying back the config files (xwiki.cfg, hibernate.cfg.xml) and possibly some additional libs (like extra plugins installed and jdbc jars).

Could you also check the version of the WEB-INF/lib/xwiki-core*.jar (i.e. the value replacing *)?

I think you should try to install a clean version of xwiki.

-Vincent


Ricardo Rodríguez added a comment - 28/Jan/08 14:50
I do hope all this work has not been only caused for an error of mine

This are the xwiki-core* files:

mire:/usr/share/tomcat-6.0.10/webapps/xwiki/WEB-INF/lib # ls xwiki-core*.* -l
rw-rr- 1 root root 1494798 Jan 17 16:08 xwiki-core-1.2.jar
rw-rr- 1 root root 7621 Jan 17 16:10 xwiki-core-action-1.2.jar
rw-rr- 1 root root 6578 Jan 17 16:08 xwiki-core-component-1.2.jar
rw-rr- 1 root root 4693 Jan 17 16:09 xwiki-core-container-api-1.2.jar
rw-rr- 1 root root 7197 Jan 17 16:10 xwiki-core-container-servlet-1.2.jar
rw-rr- 1 root root 10480 Jan 17 16:10 xwiki-core-plexus-1.2.jar
rw-rr- 1 root root 6853 Jan 17 16:09 xwiki-core-url-1.2.jar
mire:/usr/share/tomcat-6.0.10/webapps/xwiki/WEB-INF/lib #

As far as I remember, that is what I have done: substitute the WAR file, restarting the servlet container and copying bak a number of .jar files together and editing again xwiki.cfg an hibernate.cfg.xml to avoid to miss any new parameter added in tha last release.

As for skins, I use an unmodified albatross for the controller (well, I've substituted the logo). And any other virtual wiki has his own skin folder. So, I am not able to figure out why this erroneous .js is in the albatross folder. But it is obvious that I did something wrong.

Now, at this point,

1. Must I install a new 1.2.6932 or move to the snapshot you are using in xwiki.org?
2. Have I lost all the contents of the current database, I mean, I have to recreate them, or is there any way of using the same database with the brand new XWiki installation?

Thanks again,

Ricardo


Vincent Massol added a comment - 28/Jan/08 18:54
Ricardo,

Could you please do the following:

1) Reinstall XE 1.2 from a clean installation (you keep your DB)
2) Replace your WEB-INF/xwiki-core-1.2.jar by this attached jar
3) Modify your xwiki.cfg file and add

xwiki.store.migration.force=com.xpn.xwiki.store.migration.hibernate.R6079XWIKI1878Migrator

4) Start XE. This will force the execution of the migrator that fixes RCS data so your DB will be in a working state from now on
5) Stop XE
6) Remove/comment the line that you have added as otherwise it'll be executed every time
7) Restart again XE

Hope this will fix everything.

Thanks
-Vincent