Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Jesper W
5.2.2 Clustered Ehcache problem?
17. Februar 2009 03:37
Antwort

Jesper W

Rang: Expert

Nachrichten: 315

Eintrittsdatum: 25. März 2007

Neue Beiträge

This morning we attempted to deploy a 5.2.2 based release to our production cluster.
It failed. Unfortunatly we have only a single VM stageing environment to test in... ;-)

Has anyone successfully started Liferay 5.2.2 clustered?

It seems to me the problem would show everywhere.

The traceback of the problem (IP adresses censored with ....):

 1java.lang.ExceptionInInitializerError
 2    at com.liferay.portal.events.StartupAction.run(StartupAction.java:84)
 3....
 4Caused by: net.sf.ehcache.CacheException: Problem starting listener for RMICachePeer //...:53270/com.liferay.portal.kernel.dao.orm.FinderCache#com.liferay.portal.model.Company. Initial cause was invalid character, '#', in URL name: //...:53270/com.liferay.portal.kernel.dao.orm.FinderCache#com.liferay.portal.model.Company
 5    at java.lang.Thread.run(Thread.java:619)
 6    at net.sf.ehcache.distribution.RMICacheManagerPeerListener.notifyCacheAdded(RMICacheManagerPeerListener.java:513)
 7....
 8    at com.liferay.portal.cache.EhcachePortalCacheManager.getCache(EhcachePortalCacheManager.java:75)
 9....
10Caused by: java.net.MalformedURLException: invalid character, '#', in URL name: //...:53270/com.liferay.portal.kernel.dao.orm.FinderCache#com.liferay.portal.model.Company
11    at java.rmi.Naming.intParseURL(Naming.java:262)
12    at java.rmi.Naming.parseURL(Naming.java:220)
13    at java.rmi.Naming.rebind(Naming.java:154)
14    at net.sf.ehcache.distribution.RMICacheManagerPeerListener.bind(RMICacheManagerPeerListener.java:230)


The same server runs the 5.1 release just fine.
The #-character in the cache name has been there since 5.1.
So compared to 5.1 we have the same URL, the same Java, but an updated Ehcache version.
Not shure what to make of that...

Any ideas?
Mika Koivisto
RE: 5.2.2 Clustered Ehcache problem?
17. Februar 2009 03:31
Antwort

Mika Koivisto

LIFERAY STAFF

Rang: Liferay Legend

Nachrichten: 1505

Eintrittsdatum: 7. August 2006

Neue Beiträge

EhCache was upgraded to 1.5 so could that cause the problem. I'm not familiar with EhCache RMI inner workings but I'm just wondering why is the hash mark part of the rmiUrl shouldn't that be the cache key.
Jesper W
RE: 5.2.2 Clustered Ehcache problem?
17. Februar 2009 04:51
Antwort

Jesper W

Rang: Expert

Nachrichten: 315

Eintrittsdatum: 25. März 2007

Neue Beiträge

Actually the same problem occurs if I replace with echache.jar 1.4.1
So it seems to be Liferay related.

It's easy to reproduce, just take 5.2.x branch and change to:

net.sf.ehcache.configurationResourceName=/ehcache/hibernate-clustered.xml
ehcache.multi.vm.config.location=/ehcache/liferay-multi-vm-clustered.xml

Start server and watch the crash...
Jesper W
RE: 5.2.2 Clustered Ehcache problem?
17. Februar 2009 05:40
Antwort

Jesper W

Rang: Expert

Nachrichten: 315

Eintrittsdatum: 25. März 2007

Neue Beiträge

Also verified that the same problem exists in trunk.
Jonas Yuan
RE: 5.2.2 Clustered Ehcache problem?
17. Februar 2009 05:47
Antwort

Jonas Yuan

Rang: Liferay Master

Nachrichten: 993

Eintrittsdatum: 26. April 2007

Neue Beiträge

Hi Jesper,

Thank you!

According to our experience in Sesame Street, the clustering settings must be used in the clustering environment only.

That is, in the normal environment, we have to remove the clustering settings. Only in the clustering environment, we need to turn on the clustering settings. Does this make sense?

Best regards,

Jonas Yuan
Jesper W
RE: 5.2.2 Clustered Ehcache problem?
17. Februar 2009 05:50
Antwort

Jesper W

Rang: Expert

Nachrichten: 315

Eintrittsdatum: 25. März 2007

Neue Beiträge

It makes sense, but I'm afraid exactly the same crash happens in the real clustered environment.
Have you gotten 5.2.2 running clustered?
Brian Chan
RE: 5.2.2 Clustered Ehcache problem?
17. Februar 2009 11:36
Antwort

Brian Chan

LIFERAY STAFF

Rang: Liferay Master

Nachrichten: 751

Eintrittsdatum: 4. August 2004

Neue Beiträge

Fixed in LPS-2120.
Jonas Yuan
RE: 5.2.2 Clustered Ehcache problem?
17. Februar 2009 12:47
Antwort

Jonas Yuan

Rang: Liferay Master

Nachrichten: 993

Eintrittsdatum: 26. April 2007

Neue Beiträge

Thank you so much, Brian!

It was getting fixed so quick ....
Jesper W
RE: 5.2.2 Clustered Ehcache problem?
19. Februar 2009 23:03
Antwort

Jesper W

Rang: Expert

Nachrichten: 315

Eintrittsdatum: 25. März 2007

Neue Beiträge

For the record, there was actually two problems here. Fixing the first one exposed a class loader problem in JBoss which is now fixed in LPS-2178.
/j
Marco Altieri
RE: 5.2.2 Clustered Ehcache problem?
17. März 2009 08:19
Antwort

Marco Altieri

Rang: New Member

Nachrichten: 16

Eintrittsdatum: 7. März 2008

Neue Beiträge

Hi all,
where can I get the a patch for this bug?

thanks
Jesper W
RE: 5.2.2 Clustered Ehcache problem?
19. März 2009 15:21
Antwort

Jesper W

Rang: Expert

Nachrichten: 315

Eintrittsdatum: 25. März 2007

Neue Beiträge

Read the respective LPS issues on http://support.liferay.com.
Marco Altieri
RE: 5.2.2 Clustered Ehcache problem?
9. April 2009 03:22
Antwort

Marco Altieri

Rang: New Member

Nachrichten: 16

Eintrittsdatum: 7. März 2008

Neue Beiträge

Ok, thank you!
Marco