Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
shah bhat
Upgrade to 5.1 to 5.2 -- com.liferay.portal.util.PortalUtil.getHo
March 17, 2009 9:07 AM
Answer

shah bhat

Rank: New Member

Posts: 4

Join Date: July 29, 2008

Recent Posts

I am trying to upgrade liferay from 5.1 to 5.2. I have updated the database with
update-5.1.2-5.2.0-mysql.sql
update-5.2.0-5.2.1-mysql.sql
scripts, but when I start the server I get:
java.lang.NullPointerException
at com.liferay.portal.util.PortalUtil.getHomeURL(PortalUtil.java:266)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:92)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:619)


Any idea how to fix it, thanks.
Manish Kumar Gupta
Re: [Liferay Forums][1. Installation / Deployment / Setup] Upgrade to 5.1 t
March 17, 2009 9:32 AM
Answer

Manish Kumar Gupta

LIFERAY STAFF

Rank: Liferay Master

Posts: 535

Join Date: May 15, 2008

Recent Posts

See this
<http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Upgrade+Instructions+from+5.1+to+5.2>
page.
Igor Beslic
RE: Re: [Liferay Forums][1. Installation / Deployment / Setup] Upgrade to 5
March 17, 2009 4:27 PM
Answer

Igor Beslic

Rank: Junior Member

Posts: 39

Join Date: August 3, 2006

Recent Posts

If anybody faced some of these issues please help.

Server: tomcat6.0
Followed Upgrade+Instructions+from+5.1+to+5.2 and after upgrading from 5.1.1 to 5.2.2 got following issues:

1. (I don't use LDAP) during appsrv boot I got:
com.liferay.portal.ModelListenerException: javax.naming.CommunicationException: example.com:389 [Root exception is java.net.ConnectException: Connection timed out: connect]
at com.liferay.portal.model.ContactListener.onAfterCreate(ContactListener.java:45)
at com.liferay.portal.service.persistence.ContactPersistenceImpl.update(ContactPersistenceImpl.java:188)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy18.update(Unknown Source)
at com.liferay.portal.service.impl.UserLocalServiceImpl.addUser(UserLocalServiceImpl.java:387)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy177.addUser(Unknown Source)
at com.liferay.portal.service.impl.CompanyLocalServiceImpl.checkCompany(CompanyLocalServiceImpl.java:343)
at com.liferay.portal.service.impl.CompanyLocalServiceImpl.checkCompany(CompanyLocalServiceImpl.java:117)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy124.checkCompany(Unknown Source)
at com.liferay.portal.service.CompanyLocalServiceUtil.checkCompany(CompanyLocalServiceUtil.java:115)
at com.liferay.portal.util.PortalInstances._initCompany(PortalInstances.java:293)
at com.liferay.portal.util.PortalInstances.initCompany(PortalInstances.java:87)
at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:491)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4045)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4351)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: javax.naming.CommunicationException: example.com:389 [Root exception is java.net.ConnectException: Connection timed out: connect]
at com.sun.jndi.ldap.LdapReferralContext.<init>(LdapReferralContext.java:74)
at com.sun.jndi.ldap.LdapReferralException.getReferralContext(LdapReferralException.java:132)
at com.sun.jndi.ldap.LdapCtx.c_bind(LdapCtx.java:393)
at com.sun.jndi.ldap.LdapCtx.c_bind(LdapCtx.java:340)
at com.sun.jndi.toolkit.ctx.ComponentContext.p_bind(ComponentContext.java:596)
at com.sun.jndi.toolkit.ctx.PartialCompositeContext.bind(PartialCompositeContext.java:183)
at com.sun.jndi.toolkit.ctx.PartialCompositeContext.bind(PartialCompositeContext.java:173)
at javax.naming.InitialContext.bind(InitialContext.java:400)
at com.liferay.portal.security.ldap.PortalLDAPUtil.exportToLDAP(PortalLDAPUtil.java:136)
at com.liferay.portal.model.ContactListener.onAfterCreate(ContactListener.java:42)
... 74 more
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at java.net.Socket.<init>(Socket.java:366)
at java.net.Socket.<init>(Socket.java:180)
at com.sun.jndi.ldap.Connection.createSocket(Connection.java:349)
at com.sun.jndi.ldap.Connection.<init>(Connection.java:184)
at com.sun.jndi.ldap.LdapClient.<init>(LdapClient.java:118)
at com.sun.jndi.ldap.LdapClientFactory.createPooledConnection(LdapClientFactory.java:46)
at com.sun.jndi.ldap.pool.Connections.<init>(Connections.java:97)
at com.sun.jndi.ldap.pool.Pool.getPooledConnection(Pool.java:114)
at com.sun.jndi.ldap.LdapPoolManager.getLdapClient(LdapPoolManager.java:310)
at com.sun.jndi.ldap.LdapClient.getInstance(LdapClient.java:1572)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2616)
at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:287)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:134)
at com.sun.jndi.url.ldap.ldapURLContextFactory.getObjectInstance(ldapURLContextFactory.java:35)
at javax.naming.spi.NamingManager.getURLObject(NamingManager.java:584)
at javax.naming.spi.NamingManager.processURL(NamingManager.java:364)
at javax.naming.spi.NamingManager.processURLAddrs(NamingManager.java:344)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:316)
at com.sun.jndi.ldap.LdapReferralContext.<init>(LdapReferralContext.java:93)
... 83 more
23:43:57,765 INFO [PluginPackageUtil:1148] Reloading repositories

2. when try to login I'm refused with "You have entered invalid data. Please try again."
There is no any sign in logs what went wrong

3. Can not acces documents with Document Library nor as references in WIKI
I see folders and document counts correctly but there are no any document.

Almost all 5.1.1 content (pages for Organization, Wiki, Polls, Rss) is accessible.
Igor Beslic
RE: Re: [Liferay Forums][1. Installation / Deployment / Setup] Upgrade to 5
March 18, 2009 8:42 AM
Answer

Igor Beslic

Rank: Junior Member

Posts: 39

Join Date: August 3, 2006

Recent Posts

FIXED:
1. portal users were corrupted - don't know why. (new db restore fixed that problem)
2. there were some LDAP properties defined in portletpreferences table (probably admin played with it once). Clearing preferences fix problem.
vikas suresh thakre
RE: Re: [Liferay Forums][1. Installation / Deployment / Setup] Upgrade to 5
January 28, 2010 5:00 AM
Answer

vikas suresh thakre

Rank: Junior Member

Posts: 97

Join Date: May 18, 2009

Recent Posts

Hi All,

i am upgrading liferay5.1 to 5.2.3.
what i have done is downloaded liferay version 5.2.3 tomcat bundle and directly point it to the database of liferay 5.1.
from liferay-portal-tomcat-6.0-5.2.3\liferay-portal-5.2.3\tomcat-6.0.18\webapps
folder i have remove the folowing folders
1) sevencogs-hook
2) sevencogs-theme
3) wol-portlet

then i started the server, after starting i got the follwing exception and also there is nothing displayed on the browser

the exception i got is :-



10:38:54,250 ERROR [MainServlet:169] com.liferay.portal.kernel.events.ActionException: com.liferay.portal.upgrade.UpgradeException: java.lang.NullPointerException
com.liferay.portal.kernel.events.ActionException: com.liferay.portal.upgrade.UpgradeException: java.lang.NullPointerException
at com.liferay.portal.events.StartupAction.run(StartupAction.java:72)
at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:161)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1172)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:992)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4371)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:627)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: com.liferay.portal.upgrade.UpgradeException: java.lang.NullPointerException
at com.liferay.portal.upgrade.v5_2_0.UpgradeTags.upgrade(UpgradeTags.java:68)
at com.liferay.portal.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:99)
at com.liferay.portal.upgrade.UpgradeProcess_5_2_0.upgrade(UpgradeProcess_5_2_0.java:59)
at com.liferay.portal.events.StartupHelper.upgradeProcess(StartupHelper.java:127)
at com.liferay.portal.events.StartupHelperUtil.upgradeProcess(StartupHelperUtil.java:55)
at com.liferay.portal.events.StartupAction.doRun(StartupAction.java:126)
at com.liferay.portal.events.StartupAction.run(StartupAction.java:66)
... 28 more
Caused by: java.lang.NullPointerException
at com.liferay.portal.service.impl.ResourceLocalServiceImpl.addCommunityPermissions_1to5(ResourceLocalServiceImpl.java:423)
at com.liferay.portal.service.impl.ResourceLocalServiceImpl.addCommunityPermissions(ResourceLocalServiceImpl.java:394)
at com.liferay.portal.service.impl.ResourceLocalServiceImpl.addResources(ResourceLocalServiceImpl.java:212)
at com.liferay.portal.service.impl.ResourceLocalServiceImpl.addResources(ResourceLocalServiceImpl.java:160)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy57.addResources(Unknown Source)
at com.liferay.portlet.tags.service.impl.TagsVocabularyLocalServiceImpl.addVocabularyResources(TagsVocabularyLocalServiceImpl.java:105)
at com.liferay.portlet.tags.service.impl.TagsVocabularyLocalServiceImpl.addVocabulary(TagsVocabularyLocalServiceImpl.java:86)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy140.addVocabulary(Unknown Source)
at com.liferay.portlet.tags.service.TagsVocabularyLocalServiceUtil.addVocabulary(TagsVocabularyLocalServiceUtil.java:117)
at com.liferay.portal.upgrade.v5_2_0.UpgradeTags.getVocabularyId(UpgradeTags.java:271)
at com.liferay.portal.upgrade.v5_2_0.UpgradeTags.updateCategories(UpgradeTags.java:341)
at com.liferay.portal.upgrade.v5_2_0.UpgradeTags.upgrade(UpgradeTags.java:64)





any help here is really appreciable.
Abhed Dekavadiya
RE: Re: [Liferay Forums][1. Installation / Deployment / Setup] Upgrade to 5
November 23, 2012 5:33 AM
Answer

Abhed Dekavadiya

Rank: Junior Member

Posts: 67

Join Date: October 5, 2010

Recent Posts

Hi Vikas,

It's quite sometime now, but do you know how did you resolved this problem ?
I am facing the same issue. There's also a bug reported for this: https://issues.liferay.com/browse/LPS-5498
I have analyzed the problem and found that the entry of guest community in Group_ table doesn't have value for classNameId.
This is resulting into null value for role, which it is trying to derive in method
1com.liferay.portal.service.impl.ResourceLocalServiceImpl.addCommunityPermissions_1to5


I am going to give it a try by providing classNameId of Group in Group_ table. Please let me know your fix for this problem.
Abhed Dekavadiya
RE: Re: [Liferay Forums][1. Installation / Deployment / Setup] Upgrade to 5
November 23, 2012 9:52 AM
Answer

Abhed Dekavadiya

Rank: Junior Member

Posts: 67

Join Date: October 5, 2010

Recent Posts

It worked !

After executing below sql statements, it upgraded to 5.2.3 successfully

1
2update Group_ set classNameId = (select classNameId from classname_ where value = 'com.liferay.portal.model.Group') where friendlyURL = '/guest';
3
4update Group_ set classPK = groupId  where friendlyURL = '/guest';


I setup a fresh Liferay-5.1.2 bundle.
I verified that, when we add a community in Liferay-5.1.2 it doesn't set value for 'classNameId' and 'classPK' fields in Group_ table. But it sets these values in Liferay 5.2.3.
I don't know why.