Re: [xwiki-users] XWiki 1.8.2 : migration from 1.5, import default .xar not working

2009-06-03 Thread jerem

Problem cleared ... In fact it's the mysqldump that I reintegrated that was
corrupted (missing pages ! :/ ).
I still don't know why everything went wrong in first place, but now it's ok
and running ... :)
-- 
View this message in context: 
http://n2.nabble.com/XWiki-1.8.2-%3A-migration-from-1.5%2C-import-default-.xar-not-working-tp2747103p3019072.html
Sent from the XWiki- Users mailing list archive at Nabble.com.

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XWiki 1.8.2 : migration from 1.5, import default .xar not working

2009-05-06 Thread jerem



jerem wrote:
 
 Hi Sergiu,
 
 For encoding, on server side I have LANG=en_US.UTF-8.
 In xwiki.cfg : xwiki.encoding=ISO-8859-1
 

I was wondering : I believe in 1.5, there was no parameter for encoding.
Does it mean that all strings were converted using platform encoding (LANG)
? Does it mean that I should put en_US.UTF-8 as parameter xwiki.encoding
in xwiki.cfg for correct decoding of existing data ?

Thanks for help,
Jérémie

-- 
View this message in context: 
http://n2.nabble.com/XWiki-1.8.2-%3A-migration-from-1.5%2C-import-default-.xar-not-working-tp2747103p2820856.html
Sent from the XWiki- Users mailing list archive at Nabble.com.

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XWiki 1.8.2 : migration from 1.5, import default .xar not working

2009-05-06 Thread jerem

Ok, so I reimported my data and performed the migration again.

Now I have better view on exceptions that occurred at startup time :

**
2009-05-06 20:11:50,892 [http://vanille:8080/xwiki/bin/view/Main/WebHome]
[http-8080-Processor25] INFO  .AbstractXWikiMigrationManager  - Current
storage version = [7351] 
2009-05-06 20:11:50,914 [http://vanille:8080/xwiki/bin/view/Main/WebHome]
[http-8080-Processor25] INFO  .AbstractXWikiMigrationManager  - List of
migrations that will be executed: 
2009-05-06 20:11:50,915 [http://vanille:8080/xwiki/bin/view/Main/WebHome]
[http-8080-Processor25] INFO  .AbstractXWikiMigrationManager  -  
R15428XWIKI2977 - Add a GUID to existing objects when upgrading from
pre-1.8M1. 
2009-05-06 20:11:50,923 [http://vanille:8080/xwiki/bin/view/Main/WebHome]
[http-8080-Processor25] INFO  .AbstractXWikiMigrationManager  - Running
migration [R15428XWIKI2977] with version [15428] 
2009-05-06 20:11:52,400 [http://vanille:8080/xwiki/bin/view/Main/WebHome]
[http-8080-Processor25] ERROR store.XWikiHibernateBaseStore   - Exeption
while close transaction 
org.hibernate.HibernateException: identifier of an instance of
com.xpn.xwiki.objects.BaseObject was altered from -1950493164 to 1389182009
at
org.hibernate.event.def.DefaultFlushEntityEventListener.checkId(DefaultFlushEntityEventListener.java:58)
at
org.hibernate.event.def.DefaultFlushEntityEventListener.getValues(DefaultFlushEntityEventListener.java:164)
at
org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:120)
at
org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:196)
at
org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:76)
at
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
at
org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHibernateBaseStore.java:852)
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHibernateBaseStore.java:823)
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:1043)
at
com.xpn.xwiki.store.XWikiHibernateBaseStore.executeWrite(XWikiHibernateBaseStore.java:1084)
at
com.xpn.xwiki.store.migration.hibernate.R15428XWIKI2977Migrator.migrate(R15428XWIKI2977Migrator.java:76)
[...]
*

Something seems wrong with migration, but after that wiki starts fairly
right, and is accessible, except for (at least) the import feature ... I
don't know if exception at startup can explain the rest.

-- 
View this message in context: 
http://n2.nabble.com/XWiki-1.8.2-%3A-migration-from-1.5%2C-import-default-.xar-not-working-tp2747103p2822812.html
Sent from the XWiki- Users mailing list archive at Nabble.com.

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XWiki 1.8.2 : migration from 1.5, import default .xar not working

2009-05-04 Thread jerem

Hi Sergiu,

For encoding, on server side I have LANG=en_US.UTF-8.
In xwiki.cfg : xwiki.encoding=ISO-8859-1

I did not find any more errors in the logs, except at one time, during
showing of preferences :
2009-04-30 13:58:20,997
[http://vanille:8080/xwiki/bin/save/XWiki/XWikiPreferences]
[http-8080-Processor23] WARN  web.XWikiAction - Uncaught
exception: Error number 13007 in 3: Exception while loading lock
Wrapped Exception: a different object with the same identifier value was
already associated with the session: [com.xpn.xwiki.doc.XWikiLock#104408758]
com.xpn.xwiki.XWikiException: Error number 13007 in 3: Exception while
loading lock
Wrapped Exception: a different object with the same identifier value was
already associated with the session: [com.xpn.xwiki.doc.XWikiLock#104408758]
at
com.xpn.xwiki.store.XWikiHibernateStore.loadLock(XWikiHibernateStore.java:1693)
at
com.xpn.xwiki.store.XWikiCacheStore.loadLock(XWikiCacheStore.java:461)
at
com.xpn.xwiki.doc.XWikiDocument.removeLock(XWikiDocument.java:4039)
at com.xpn.xwiki.web.SaveAction.save(SaveAction.java:179)
[...]

... but it does not show up anymore.

For errors on import, if I import 1 page after the other, it works. But it
fails when trying to import 2 or 3 or more pages at the same time ...

Thanks,
Jeremie


Sergiu Dumitriu-2 wrote:
 
 jerem wrote:
 Hi,
 
 I migrated the binaries from 1.5 to 1.8.2 (I'm on linux redhad / tomcat
 5.5
 / mysql 5).
 
 When importing default xar, most of the pages fail to be imported. Logs
 show
 these kind of messages :
 ERROR packaging.Package   - Failed to save document
 Stats.WebHome
 
 In some cases, it fails on delete of existing pages.
 
 As I had many errors I removed the activity stream plugin temporarily. As
 it
 was too resource consuming, I also removed lucene to avoid full indexing
 at
 startup. Errors on import were the same with or without these plugins.
 
 I really don't know what I missed ... If anyone has a clue, thanks.
 
 Can you tell me what encoding do you use?
 
 Also, there should be a more specific error message in the logs, 
 indicating a database-related problem. Can you dig that up?
 
 -- 
 Sergiu Dumitriu
 http://purl.org/net/sergiu/
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
 
 

-- 
View this message in context: 
http://n2.nabble.com/XWiki-1.8.2-%3A-migration-from-1.5%2C-import-default-.xar-not-working-tp2747103p2786069.html
Sent from the XWiki- Users mailing list archive at Nabble.com.

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XWiki 1.8.2 : migration from 1.5, import default .xar not working

2009-05-04 Thread jerem

I finally found another exception in the logs, but it does not happen on each
page import :
2009-04-30 17:46:26,582
[http://vanille:8080/xwiki/bin/import/XWiki/Import?editor=globaladminsection=Import]
[http-8080-Processor22] ERROR packaging.Package   - Failed to
save document Main.Dashboard
org.hibernate.MappingException: Unknown entity:
com.xpn.xwiki.plugin.activitystream.impl.ActivityEventImpl
at
org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:550)
at
org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1338)
at
org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:98)
at
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:187)
at
org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:33)
at
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:172)
at
org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:27)
at
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:535)
at org.hibernate.impl.SessionImpl.save(SessionImpl.java:523)
at org.hibernate.impl.SessionImpl.save(SessionImpl.java:519)
at
com.xpn.xwiki.plugin.activitystream.impl.ActivityStreamImpl.addActivityEvent(ActivityStreamImpl.java:142)
at
com.xpn.xwiki.plugin.activitystream.impl.ActivityStreamImpl.addDocumentActivityEvent(ActivityStreamImpl.java:203)
at
com.xpn.xwiki.plugin.activitystream.impl.ActivityStreamImpl.addDocumentActivityEvent(ActivityStreamImpl.java:183)
at
com.xpn.xwiki.plugin.activitystream.impl.ActivityStreamImpl.notify(ActivityStreamImpl.java:353)
at com.xpn.xwiki.notify.DocChangeRule.verify(DocChangeRule.java:61)
at
com.xpn.xwiki.notify.XWikiNotificationManager.verify(XWikiNotificationManager.java:210)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1300)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1244)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1239)
at
com.xpn.xwiki.plugin.packaging.Package.installDocument(Package.java:607)
at com.xpn.xwiki.plugin.packaging.Package.install(Package.java:537)
at
com.xpn.xwiki.plugin.packaging.PackageAPI.install(PackageAPI.java:225)
at com.xpn.xwiki.web.ImportAction.render(ImportAction.java:89)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:216)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
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.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:145)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:111)

I'm not sure it's linked ... It's the errors I talked about activitystream.
I thought I deactivated the plugin, but in fact not :/ Anyway you're right
that it shows some problems with database ...

-- 
View this message in context: 
http://n2.nabble.com/XWiki-1.8.2-%3A-migration-from-1.5%2C-import-default-.xar-not-working-tp2747103p2786132.html
Sent from the XWiki- Users mailing list archive at Nabble.com.

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XWiki 1.8.2 : migration from 1.5, import default .xar not working

2009-05-02 Thread Sergiu Dumitriu
jerem wrote:
 Hi,
 
 I migrated the binaries from 1.5 to 1.8.2 (I'm on linux redhad / tomcat 5.5
 / mysql 5).
 
 When importing default xar, most of the pages fail to be imported. Logs show
 these kind of messages :
 ERROR packaging.Package   - Failed to save document
 Stats.WebHome
 
 In some cases, it fails on delete of existing pages.
 
 As I had many errors I removed the activity stream plugin temporarily. As it
 was too resource consuming, I also removed lucene to avoid full indexing at
 startup. Errors on import were the same with or without these plugins.
 
 I really don't know what I missed ... If anyone has a clue, thanks.

Can you tell me what encoding do you use?

Also, there should be a more specific error message in the logs, 
indicating a database-related problem. Can you dig that up?

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XWiki 1.8.2 : migration from 1.5, import default .xar not working

2009-04-30 Thread jerem

In fact, to be complete, it seems I have many problems with my new migrated
wiki ...

For example, if I modify and save the xwiki preferences page, I get this :
 Error number 13007 in 3: Exception while loading lock
Wrapped Exception: a different object with the same identifier value was
already associated with the session: [com.xpn.xwiki.doc.XWikiLock#104408758]
com.xpn.xwiki.XWikiException: Error number 13007 in 3: Exception while
loading lock

I think something went wrong at first and just puts everything in a bad
state ...

-- 
View this message in context: 
http://n2.nabble.com/XWiki-1.8.2-%3A-migration-from-1.5%2C-import-default-.xar-not-working-tp2747103p2747166.html
Sent from the XWiki- Users mailing list archive at Nabble.com.

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users