Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Many to Many with ServiceBuilder in Liferay 6-1.0 Muhammed Shakir March 11, 2010 11:23 PM
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 Muhammed Shakir March 13, 2010 6:10 PM
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan) Muhammed Shakir March 13, 2010 7:11 PM
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan) Shagul Khajamohideen March 15, 2010 4:47 AM
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan) Muhammed Shakir May 5, 2010 11:42 PM
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan) Asik Umar May 12, 2010 7:07 AM
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan) Muhammed Shakir May 12, 2010 8:39 AM
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan) Muhammed Shakir May 14, 2010 8:36 AM
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan) Samina Farveen July 29, 2010 11:50 PM
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan) Rohit Salecha April 29, 2011 2:24 AM
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan) Corné Aussems September 7, 2010 1:16 PM
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan) Corné Aussems September 7, 2010 2:49 PM
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan) Corné Aussems September 9, 2010 6:52 AM
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan) Jakub Liska October 27, 2010 1:25 PM
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan) Gianluca Pindinelli February 16, 2011 7:07 AM
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan) Corentin R April 27, 2011 2:14 AM
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan) Jan Bub April 28, 2011 12:25 PM
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan) Muhammad Asif May 27, 2011 10:09 AM
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan) Corné Aussems May 27, 2011 12:54 PM
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan) Muhammad Asif May 28, 2011 1:47 AM
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan) Thomas T. September 14, 2011 11:42 AM
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan) Corentin R September 15, 2011 3:48 AM
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan) Muhammed Shakir September 15, 2011 6:05 AM
Muhammed Shakir
Many to Many with ServiceBuilder in Liferay 6-1.0
March 11, 2010 11:23 PM
Answer

Muhammed Shakir

Rank: Junior Member

Posts: 33

Join Date: February 25, 2009

Recent Posts

Hello All,

I started playing with liferay 6 (developing portlet using plugin sdk). Everything worked fine. However, when I tried creating a many to many relationship, the deployment of the portlet simply failed. Following is the content of my simple service.xml file
 1
 2<entity name="Technology" local-service="true" remote-service="true">
 3        <column name="technologyId" type="long" primary="true"></column>
 4        <column name="tname" type="String"></column>
 5        <column name="theProfiles" type="Collection" entity="Profile"
 6            mapping-table="Profile_Technologies"></column>
 7    </entity>
 8
 9    <entity name="Profile" local-service="true" remote-service="true"
10        >
11        <!-- PK fields -->
12        <column name="userId" type="long" primary="true" id-type="identity"></column>
13        <column name="title" type="String"></column>
14        <column name="briefDescription" type="String"></column>
15        <column name="academicQualification" type="String"></column>
16        <column name="yearOfPassing" type="String"></column>
17        <column name="pastWorkExpDetails" type="String"></column>
18        <column name="totalExpSince" type="Date"></column>
19        <column name="trainingExpSince" type="Date"></column>
20        <column name="createDate" type="Date"></column>
21        <column name="modifiedDate" type="Date"></column>
22
23
24        <column name="technologies" type="Collection" entity="Technology"
25            mapping-table="Profile_Technologies"></column>
26
27       
28
29    </entity>


The exception I get is as follows:
  1
  212:20:30,757 ERROR [ContextLoader:219] Context initialization failed
  3org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.itservicesone.trainings.service.TechnologyLocalService' defined in ServletContext resource [/WEB-INF/classes/META-INF/portlet-spring.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.itservicesone.trainings.service.TechnologyService' defined in ServletContext resource [/WEB-INF/classes/META-INF/portlet-spring.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.itservicesone.trainings.service.persistence.TechnologyPersistence' defined in ServletContext resource [/WEB-INF/classes/META-INF/portlet-spring.xml]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError
  4    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
  5    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
  6    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
  7    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
  8    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
  9    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
 10    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:562)
 11    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:871)
 12    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423)
 13    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:272)
 14    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:196)
 15    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
 16    at com.liferay.portal.spring.context.PortletContextLoaderListener.contextInitialized(PortletContextLoaderListener.java:72)
 17    at com.liferay.portal.kernel.servlet.PortalClassLoaderServletContextListener.portalInit(PortalClassLoaderServletContextListener.java:81)
 18    at com.liferay.portal.kernel.util.PortalInitableUtil.init(PortalInitableUtil.java:39)
 19    at com.liferay.portal.kernel.servlet.PortalClassLoaderServletContextListener.contextInitialized(PortalClassLoaderServletContextListener.java:65)
 20    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
 21    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
 22    at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1244)
 23    at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1342)
 24    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:303)
 25    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
 26    at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
 27    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
 28    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
 29    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
 30    at java.lang.Thread.run(Thread.java:637)
 31Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.itservicesone.trainings.service.TechnologyService' defined in ServletContext resource [/WEB-INF/classes/META-INF/portlet-spring.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.itservicesone.trainings.service.persistence.TechnologyPersistence' defined in ServletContext resource [/WEB-INF/classes/META-INF/portlet-spring.xml]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError
 32    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
 33    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
 34    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
 35    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
 36    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
 37    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
 38    at com.liferay.portal.spring.annotation.BeanReferenceAnnotationBeanPostProcessor._autoInject(BeanReferenceAnnotationBeanPostProcessor.java:92)
 39    at com.liferay.portal.spring.annotation.BeanReferenceAnnotationBeanPostProcessor._autoInject(BeanReferenceAnnotationBeanPostProcessor.java:114)
 40    at com.liferay.portal.spring.annotation.BeanReferenceAnnotationBeanPostProcessor.postProcessBeforeInitialization(BeanReferenceAnnotationBeanPostProcessor.java:52)
 41    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
 42    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1396)
 43    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)
 44    ... 26 more
 45Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.itservicesone.trainings.service.persistence.TechnologyPersistence' defined in ServletContext resource [/WEB-INF/classes/META-INF/portlet-spring.xml]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError
 46    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:946)
 47    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:892)
 48    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:479)
 49    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
 50    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
 51    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
 52    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
 53    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
 54    at com.liferay.portal.spring.annotation.BeanReferenceAnnotationBeanPostProcessor._autoInject(BeanReferenceAnnotationBeanPostProcessor.java:92)
 55    at com.liferay.portal.spring.annotation.BeanReferenceAnnotationBeanPostProcessor._autoInject(BeanReferenceAnnotationBeanPostProcessor.java:114)
 56    at com.liferay.portal.spring.annotation.BeanReferenceAnnotationBeanPostProcessor.postProcessBeforeInitialization(BeanReferenceAnnotationBeanPostProcessor.java:52)
 57    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
 58    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1396)
 59    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)
 60    ... 37 more
 61Caused by: java.lang.ExceptionInInitializerError
 62    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 63    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
 64    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
 65    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
 66    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
 67    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:72)
 68    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:939)
 69    ... 50 more
 70Caused by: java.lang.NullPointerException
 71    at com.liferay.portal.kernel.dao.orm.FinderPath._initLocalCacheKeyPrefix(FinderPath.java:104)
 72    at com.liferay.portal.kernel.dao.orm.FinderPath.<init>(FinderPath.java:38)
 73    at com.itservicesone.trainings.service.persistence.TechnologyPersistenceImpl.<clinit>(TechnologyPersistenceImpl.java:477)
 74    ... 57 more
 7512:20:30,758 ERROR [PortalClassLoaderServletContextListener:84] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.itservicesone.trainings.service.TechnologyLocalService' defined in ServletContext resource [/WEB-INF/classes/META-INF/portlet-spring.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.itservicesone.trainings.service.TechnologyService' defined in ServletContext resource [/WEB-INF/classes/META-INF/portlet-spring.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.itservicesone.trainings.service.persistence.TechnologyPersistence' defined in ServletContext resource [/WEB-INF/classes/META-INF/portlet-spring.xml]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError
 76org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.itservicesone.trainings.service.TechnologyLocalService' defined in ServletContext resource [/WEB-INF/classes/META-INF/portlet-spring.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.itservicesone.trainings.service.TechnologyService' defined in ServletContext resource [/WEB-INF/classes/META-INF/portlet-spring.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.itservicesone.trainings.service.persistence.TechnologyPersistence' defined in ServletContext resource [/WEB-INF/classes/META-INF/portlet-spring.xml]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError
 77    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
 78    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
 79    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
 80    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
 81    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
 82    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
 83    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:562)
 84    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:871)
 85    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423)
 86    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:272)
 87    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:196)
 88    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
 89    at com.liferay.portal.spring.context.PortletContextLoaderListener.contextInitialized(PortletContextLoaderListener.java:72)
 90    at com.liferay.portal.kernel.servlet.PortalClassLoaderServletContextListener.portalInit(PortalClassLoaderServletContextListener.java:81)
 91    at com.liferay.portal.kernel.util.PortalInitableUtil.init(PortalInitableUtil.java:39)
 92    at com.liferay.portal.kernel.servlet.PortalClassLoaderServletContextListener.contextInitialized(PortalClassLoaderServletContextListener.java:65)
 93    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
 94    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
 95    at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1244)
 96    at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1342)
 97    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:303)
 98    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
 99    at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
100    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
101    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
102    at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
103    at java.lang.Thread.run(Thread.java:637)
104Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.itservicesone.trainings.service.TechnologyService' defined in ServletContext resource [/WEB-INF/classes/META-INF/portlet-spring.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.itservicesone.trainings.service.persistence.TechnologyPersistence' defined in ServletContext resource [/WEB-INF/classes/META-INF/portlet-spring.xml]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError
105    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
106    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
107    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
108    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
109    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
110    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
111    at com.liferay.portal.spring.annotation.BeanReferenceAnnotationBeanPostProcessor._autoInject(BeanReferenceAnnotationBeanPostProcessor.java:92)
112    at com.liferay.portal.spring.annotation.BeanReferenceAnnotationBeanPostProcessor._autoInject(BeanReferenceAnnotationBeanPostProcessor.java:114)
113    at com.liferay.portal.spring.annotation.BeanReferenceAnnotationBeanPostProcessor.postProcessBeforeInitialization(BeanReferenceAnnotationBeanPostProcessor.java:52)
114    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
115    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1396)
116    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)
117    ... 26 more
118Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.itservicesone.trainings.service.persistence.TechnologyPersistence' defined in ServletContext resource [/WEB-INF/classes/META-INF/portlet-spring.xml]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError
119    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:946)
120    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:892)
121    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:479)
122    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
123    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
124    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
125    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
126    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
127    at com.liferay.portal.spring.annotation.BeanReferenceAnnotationBeanPostProcessor._autoInject(BeanReferenceAnnotationBeanPostProcessor.java:92)
128    at com.liferay.portal.spring.annotation.BeanReferenceAnnotationBeanPostProcessor._autoInject(BeanReferenceAnnotationBeanPostProcessor.java:114)
129    at com.liferay.portal.spring.annotation.BeanReferenceAnnotationBeanPostProcessor.postProcessBeforeInitialization(BeanReferenceAnnotationBeanPostProcessor.java:52)
130    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
131    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1396)
132    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)
133    ... 37 more
134Caused by: java.lang.ExceptionInInitializerError
135    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
136    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
137    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
138    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
139    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
140    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:72)
141    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:939)
142    ... 50 more
143Caused by: java.lang.NullPointerException
144    at com.liferay.portal.kernel.dao.orm.FinderPath._initLocalCacheKeyPrefix(FinderPath.java:104)
145    at com.liferay.portal.kernel.dao.orm.FinderPath.<init>(FinderPath.java:38)
146    at com.itservicesone.trainings.service.persistence.TechnologyPersistenceImpl.<clinit>(TechnologyPersistenceImpl.java:477)
147    ... 57 more


I will highly appreciate any help / hint
Muhammed Shakir
RE: Many to Many with ServiceBuilder in Liferay 6-1.0
March 13, 2010 6:10 PM
Answer

Muhammed Shakir

Rank: Junior Member

Posts: 33

Join Date: February 25, 2009

Recent Posts

Please help me on my above mentioned problem. I will be very grateful.
Muhammed Shakir
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan)
March 13, 2010 7:11 PM
Answer

Muhammed Shakir

Rank: Junior Member

Posts: 33

Join Date: February 25, 2009

Recent Posts

Got some hint - When service builder generates the code (in 5.2.3) , it picks up the mapping-table and uses it as follows in PersistenceImpl class:
 1
 2public static final FinderPath FINDER_PATH_GET_TECHNOLOGIES = new FinderPath(com.myitservicesone.trainings.model.impl.TechnologyModelImpl.ENTITY_CACHE_ENABLED,
 3            MyProfileModelImpl.FINDER_CACHE_ENABLED_MYITSERVICESONE_PROFILE_TECHNOLOGIES,
 4            [b]"profile_technologies",[/b]
 5            "getTechnologies",
 6            new String[] {
 7                Long.class.getName(), "java.lang.Integer", "java.lang.Integer",
 8                "com.liferay.portal.kernel.util.OrderByComparator"
 9            });


However, in liferay 6.0, the service builder generates the code as follows
 1
 2public static final FinderPath FINDER_PATH_GET_TECHNOLOGIES = new FinderPath(com.myitservicesone.trainings.model.impl.TechnologyModelImpl.ENTITY_CACHE_ENABLED,
 3            MyProfileModelImpl.FINDER_CACHE_ENABLED_MYITSERVICESONE_PROFILE_TECHNOLOGIES,
 4            [b]MyProfileModelImpl.MAPPING_TABLE_MYITSERVICESONE_PROFILE_TECHNOLOGIES_NAME[/b] ,
 5            "getTechnologies",
 6            new String[] {
 7                Long.class.getName(), "java.lang.Integer", "java.lang.Integer",
 8                "com.liferay.portal.kernel.util.OrderByComparator"
 9            });


The MyProfileModelImpl.MAPPING_TABLE_MYITSERVICESONE_PROFILE_TECHNOLOGIES_NAME is evaluated as null and it throws a NullPointerException in FinderPath class on line number 104

I hope Brain provides a solution for this or is it that I am missing a point.

Any help from liferay will be of great value to us.
Shagul Khajamohideen
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan)
March 15, 2010 4:47 AM
Answer

Shagul Khajamohideen

Rank: Liferay Master

Posts: 759

Join Date: September 27, 2007

Recent Posts

Hi,

If it is easy, can you open a JIRA ticket with steps to reproduce this error with the environment etc?

Thanks
Muhammed Shakir
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan)
May 5, 2010 11:42 PM
Answer

Muhammed Shakir

Rank: Junior Member

Posts: 33

Join Date: February 25, 2009

Recent Posts

The problem still exists with liferay RC 6.0.1
Asik Umar
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan)
May 12, 2010 7:07 AM
Answer

Asik Umar

Rank: New Member

Posts: 3

Join Date: March 1, 2010

Recent Posts

Hi Brother,
I am working in liferay 5.2.3. Please help me how to create one to many mapping. Following is service.xml but not working & no error.

<entity name="MbCountry" local-service="true" remote-service="true" table="MB_COUNTRY">

<!-- Primary Key -->

<column name="countryId" type="Long" db-name="COUNTRY_ID" primary="true"/>

<!-- UI Fields -->

<column name="countryName" type="String" db-name="COUNTRY_NAME"/>

</entity>

<entity name="MbCity" local-service="true" remote-service="true" table="MB_CITY">

<!-- Primary Key -->

<column name="cityId" type="Long" db-name="CITY_ID" primary="true"/>

<!-- UI Fields -->

<column name="cityName" type="String" db-name="CITY_NAME"/>
<column name="countryId" type="Long" db-name="COUNTRY_ID"/>

<column name="country" type="Collection" entity="MbCountry" mapping-key="COUNTRY_ID"></column>

</entity>
Muhammed Shakir
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan)
May 12, 2010 8:39 AM
Answer

Muhammed Shakir

Rank: Junior Member

Posts: 33

Join Date: February 25, 2009

Recent Posts

Salam Brother Asik,

You are putting collection type on the wrong side. One MbCountry (Country) will have many MbCity (City) and hence you will have something like this in your MbCountry bean
1
2  <column type="Collection" name="cities" entity="MbCity" mapping-key="countryId" />


I hope this helps. I have been using this in 5.2.x and now in 6.0.1 RC - and it works like a charm
Muhammed Shakir
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan)
May 14, 2010 8:36 AM
Answer

Muhammed Shakir

Rank: Junior Member

Posts: 33

Join Date: February 25, 2009

Recent Posts

Good News. Brain has resolved this issue which will be available in : 6.0.2 GA
Samina Farveen
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan)
July 29, 2010 11:50 PM
Answer

Samina Farveen

Rank: New Member

Posts: 1

Join Date: July 29, 2010

Recent Posts

Hi Shakir,


I tried to create the Service Builder in "liferay-plugins-sdk-6-2" .

It Shows the following exception and table is not created in Database .Please help me out for this problem.

5:29:10,798 ERROR [RuntimeTag:143] org.apache.jasper.JasperException: javax.servlet.ServletException: com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.LockAcquisitionException: Could not execute JDBC batch update
org.apache.jasper.JasperException: javax.servlet.ServletException: com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.LockAcquisitionException: Could not execute JDBC batch update
at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:491)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:401)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:3616)
at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1110)
at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processPortlet(RuntimePortletUtil.java:162)
at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processPortlet(RuntimePortletUtil.java:83)
at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processPortlet(RuntimePortletUtil.java:70)
at com.liferay.taglib.portletext.RuntimeTag.doTag(RuntimeTag.java:110)
at com.liferay.taglib.portletext.RuntimeTag.doEndTag(RuntimeTag.java:136)
at org.apache.jsp.html.portal.layout.view.portlet_jsp._jspService(Unknown Source)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
at com.liferay.portal.action.LayoutAction.includeLayoutContent(LayoutAction.java:342)
at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:599)
at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:219)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:154)
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:617)
at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:504)
at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:481)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:303)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:139)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:254)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:135)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:248)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:139)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:223)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.cache.CacheFilter.processFilter(CacheFilter.java:387)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:47)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:254)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:314)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.threadlocal.ThreadLocalFilter.processFilter(ThreadLocalFilter.java:37)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
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:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:465)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.servlet.ServletException: com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.LockAcquisitionException: Could not execute JDBC batch update
at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
at com.liferay.portal.kernel.servlet.PageContextWrapper.handlePageException(PageContextWrapper.java:143)
at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(Unknown Source)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
... 167 more
Caused by: com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.LockAcquisitionException: Could not execute JDBC batch update
at com.liferay.portal.service.persistence.impl.BasePersistenceImpl.processException(BasePersistenceImpl.java:176)
at com.liferay.portal.service.persistence.ResourcePermissionPersistenceImpl.updateImpl(ResourcePermissionPersistenceImpl.java:334)
at com.liferay.portal.service.persistence.ResourcePermissionPersistenceImpl.updateImpl(ResourcePermissionPersistenceImpl.java:1)
at com.liferay.portal.service.persistence.impl.BasePersistenceImpl.update(BasePersistenceImpl.java:242)
at com.liferay.portal.service.impl.ResourcePermissionLocalServiceImpl.doUpdateResourcePermission(ResourcePermissionLocalServiceImpl.java:351)
at com.liferay.portal.service.impl.ResourcePermissionLocalServiceImpl.updateResourcePermission(ResourcePermissionLocalServiceImpl.java:366)
at com.liferay.portal.service.impl.ResourcePermissionLocalServiceImpl.setResourcePermissions(ResourcePermissionLocalServiceImpl.java:296)
at sun.reflect.GeneratedMethodAccessor423.invoke(Unknown Source)
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:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:67)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy76.setResourcePermissions(Unknown Source)
at com.liferay.portal.service.impl.ResourceLocalServiceImpl.addResources_6(ResourceLocalServiceImpl.java:765)
at com.liferay.portal.service.impl.ResourceLocalServiceImpl.addResources(ResourceLocalServiceImpl.java:193)
at sun.reflect.GeneratedMethodAccessor774.invoke(Unknown Source)
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:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:67)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy72.addResources(Unknown Source)
at com.liferay.portal.service.ResourceLocalServiceUtil.addResources(ResourceLocalServiceUtil.java:175)
at com.liferay.portal.util.PortalImpl.addPortletDefaultResource(PortalImpl.java:577)
at com.liferay.portal.util.PortalUtil.addPortletDefaultResource(PortalUtil.java:122)
... 171 more
Caused by: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.LockAcquisitionException: Could not execute JDBC batch update
at com.liferay.portal.dao.orm.hibernate.ExceptionTranslator.translate(ExceptionTranslator.java:32)
at com.liferay.portal.dao.orm.hibernate.SessionImpl.flush(SessionImpl.java:113)
at sun.reflect.GeneratedMethodAccessor76.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:56)
at $Proxy238.flush(Unknown Source)
at com.liferay.portal.service.persistence.BatchSessionImpl.update(BatchSessionImpl.java:66)
at com.liferay.portal.service.persistence.BatchSessionUtil.update(BatchSessionUtil.java:44)
at com.liferay.portal.service.persistence.ResourcePermissionPersistenceImpl.updateImpl(ResourcePermissionPersistenceImpl.java:329)
... 209 more
Caused by: org.hibernate.exception.LockAcquisitionException: Could not execute JDBC batch update
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:107)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:275)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:179)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:51)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1206)
at com.liferay.portal.dao.orm.hibernate.SessionImpl.flush(SessionImpl.java:110)
... 217 more
Caused by: java.sql.BatchUpdateException: Deadlock found when trying to get lock; try restarting transaction
at com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:1257)
at com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:943)
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeBatch(NewProxyPreparedStatement.java:1723)
at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:70)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:268)
... 223 more
Jul 30, 2010 5:29:10 AM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.sql.BatchUpdateException: Deadlock found when trying to get lock; try restarting transaction
at com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:1257)
at com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:943)
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeBatch(NewProxyPreparedStatement.java:1723)
at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:70)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:268)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:179)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:51)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1206)
at com.liferay.portal.dao.orm.hibernate.SessionImpl.flush(SessionImpl.java:110)
at sun.reflect.GeneratedMethodAccessor76.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:56)
at $Proxy238.flush(Unknown Source)
at com.liferay.portal.service.persistence.BatchSessionImpl.update(BatchSessionImpl.java:66)
at com.liferay.portal.service.persistence.BatchSessionUtil.update(BatchSessionUtil.java:44)
at com.liferay.portal.service.persistence.ResourcePermissionPersistenceImpl.updateImpl(ResourcePermissionPersistenceImpl.java:329)
at com.liferay.portal.service.persistence.ResourcePermissionPersistenceImpl.updateImpl(ResourcePermissionPersistenceImpl.java:1)
at com.liferay.portal.service.persistence.impl.BasePersistenceImpl.update(BasePersistenceImpl.java:242)
at com.liferay.portal.service.impl.ResourcePermissionLocalServiceImpl.doUpdateResourcePermission(ResourcePermissionLocalServiceImpl.java:351)
at com.liferay.portal.service.impl.ResourcePermissionLocalServiceImpl.updateResourcePermission(ResourcePermissionLocalServiceImpl.java:366)
at com.liferay.portal.service.impl.ResourcePermissionLocalServiceImpl.setResourcePermissions(ResourcePermissionLocalServiceImpl.java:296)
at sun.reflect.GeneratedMethodAccessor423.invoke(Unknown Source)
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:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:67)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy76.setResourcePermissions(Unknown Source)
at com.liferay.portal.service.impl.ResourceLocalServiceImpl.addResources_6(ResourceLocalServiceImpl.java:765)
at com.liferay.portal.service.impl.ResourceLocalServiceImpl.addResources(ResourceLocalServiceImpl.java:193)
at sun.reflect.GeneratedMethodAccessor774.invoke(Unknown Source)
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:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:67)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy72.addResources(Unknown Source)
at com.liferay.portal.service.ResourceLocalServiceUtil.addResources(ResourceLocalServiceUtil.java:175)
at com.liferay.portal.util.PortalImpl.addPortletDefaultResource(PortalImpl.java:577)
at com.liferay.portal.util.PortalUtil.addPortletDefaultResource(PortalUtil.java:122)
at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(Unknown Source)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:3616)
at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1110)
at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processPortlet(RuntimePortletUtil.java:162)
at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processPortlet(RuntimePortletUtil.java:83)
at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processPortlet(RuntimePortletUtil.java:70)
at com.liferay.taglib.portletext.RuntimeTag.doTag(RuntimeTag.java:110)
at com.liferay.taglib.portletext.RuntimeTag.doEndTag(RuntimeTag.java:136)
at org.apache.jsp.html.portal.layout.view.portlet_jsp._jspService(Unknown Source)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
at com.liferay.portal.action.LayoutAction.includeLayoutContent(LayoutAction.java:342)
at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:599)
at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:219)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:154)
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:617)
at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:504)
at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:481)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:303)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:139)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:254)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:135)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:248)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:139)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:223)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.cache.CacheFilter.processFilter(CacheFilter.java:387)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:47)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:254)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:314)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.threadlocal.ThreadLocalFilter.processFilter(ThreadLocalFilter.java:37)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
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:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:465)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:595)
05:29:10,813 INFO [PortalImpl:3705] Current URL / generates exception: javax.servlet.ServletException: javax.servlet.jsp.JspException: org.apache.jasper.JasperException: javax.servlet.ServletException: com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.LockAcquisitionException: Could not execute JDBC batch update
05:29:10,844 ERROR [jsp:?] org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: org.apache.jasper.JasperException: javax.servlet.ServletException: com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.LockAcquisitionException: Could not execute JDBC batch update
org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: org.apache.jasper.JasperException: javax.servlet.ServletException: com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.LockAcquisitionException: Could not execute JDBC batch update
at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:491)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:401)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
at com.liferay.portal.action.LayoutAction.includeLayoutContent(LayoutAction.java:342)
at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:599)
at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:219)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:154)
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:617)
at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:504)
at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:481)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:303)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:139)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:254)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:135)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:248)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:139)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:223)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.cache.CacheFilter.processFilter(CacheFilter.java:387)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:47)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:254)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:314)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:109)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:179)
at com.liferay.portal.servlet.filters.threadlocal.ThreadLocalFilter.processFilter(ThreadLocalFilter.java:37)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:106)
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:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:465)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.servlet.ServletException: javax.servlet.jsp.JspException: org.apache.jasper.JasperException: javax.servlet.ServletException: com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.LockAcquisitionException: Could not execute JDBC batch update
at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858)
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
at com.liferay.portal.kernel.servlet.PageContextWrapper.handlePageException(PageContextWrapper.java:143)
at org.apache.jsp.html.portal.layout.view.portlet_jsp._jspService(Unknown Source)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
... 148 more
Caused by: org.apache.jasper.JasperException: javax.servlet.ServletException: com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.LockAcquisitionException: Could not execute JDBC batch update
at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:491)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:401)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:3616)
at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1110)
at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processPortlet(RuntimePortletUtil.java:162)
at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processPortlet(RuntimePortletUtil.java:83)
at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processPortlet(RuntimePortletUtil.java:70)
at com.liferay.taglib.portletext.RuntimeTag.doTag(RuntimeTag.java:110)
at com.liferay.taglib.portletext.RuntimeTag.doEndTag(RuntimeTag.java:136)
... 152 more
Caused by: javax.servlet.ServletException: com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.LockAcquisitionException: Could not execute JDBC batch update
at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
at com.liferay.portal.kernel.servlet.PageContextWrapper.handlePageException(PageContextWrapper.java:143)
at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(Unknown Source)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
... 167 more
Caused by: com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.LockAcquisitionException: Could not execute JDBC batch update
at com.liferay.portal.service.persistence.impl.BasePersistenceImpl.processException(BasePersistenceImpl.java:176)
at com.liferay.portal.service.persistence.ResourcePermissionPersistenceImpl.updateImpl(ResourcePermissionPersistenceImpl.java:334)
at com.liferay.portal.service.persistence.ResourcePermissionPersistenceImpl.updateImpl(ResourcePermissionPersistenceImpl.java:1)
at com.liferay.portal.service.persistence.impl.BasePersistenceImpl.update(BasePersistenceImpl.java:242)
at com.liferay.portal.service.impl.ResourcePermissionLocalServiceImpl.doUpdateResourcePermission(ResourcePermissionLocalServiceImpl.java:351)
at com.liferay.portal.service.impl.ResourcePermissionLocalServiceImpl.updateResourcePermission(ResourcePermissionLocalServiceImpl.java:366)
at com.liferay.portal.service.impl.ResourcePermissionLocalServiceImpl.setResourcePermissions(ResourcePermissionLocalServiceImpl.java:296)
at sun.reflect.GeneratedMethodAccessor423.invoke(Unknown Source)
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:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:67)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy76.setResourcePermissions(Unknown Source)
at com.liferay.portal.service.impl.ResourceLocalServiceImpl.addResources_6(ResourceLocalServiceImpl.java:765)
at com.liferay.portal.service.impl.ResourceLocalServiceImpl.addResources(ResourceLocalServiceImpl.java:193)
at sun.reflect.GeneratedMethodAccessor774.invoke(Unknown Source)
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:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:67)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy72.addResources(Unknown Source)
at com.liferay.portal.service.ResourceLocalServiceUtil.addResources(ResourceLocalServiceUtil.java:175)
at com.liferay.portal.util.PortalImpl.addPortletDefaultResource(PortalImpl.java:577)
at com.liferay.portal.util.PortalUtil.addPortletDefaultResource(PortalUtil.java:122)
... 171 more
Caused by: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.LockAcquisitionException: Could not execute JDBC batch update
at com.liferay.portal.dao.orm.hibernate.ExceptionTranslator.translate(ExceptionTranslator.java:32)
at com.liferay.portal.dao.orm.hibernate.SessionImpl.flush(SessionImpl.java:113)
at sun.reflect.GeneratedMethodAccessor76.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:56)
at $Proxy238.flush(Unknown Source)
at com.liferay.portal.service.persistence.BatchSessionImpl.update(BatchSessionImpl.java:66)
at com.liferay.portal.service.persistence.BatchSessionUtil.update(BatchSessionUtil.java:44)
at com.liferay.portal.service.persistence.ResourcePermissionPersistenceImpl.updateImpl(ResourcePermissionPersistenceImpl.java:329)
... 209 more
Caused by: org.hibernate.exception.LockAcquisitionException: Could not execute JDBC batch update
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:107)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:275)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:179)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:321)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:51)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1206)
at com.liferay.portal.dao.orm.hibernate.SessionImpl.flush(SessionImpl.java:110)
... 217 more
Caused by: java.sql.BatchUpdateException: Deadlock found when trying to get lock; try restarting transaction
at com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:1257)
at com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:943)
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeBatch(NewProxyPreparedStatement.java:1723)
at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:70)
at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:268)
... 223 more
06:15:07,923 INFO [AutoDeployDir:169] Processing Test Portlet-portlet-6.0.2.1.war
06:15:07,923 INFO [PortletAutoDeployListener:73] Copying portlets for C:\Liferay\Liferay6\workspace\liferay-portal-6.0.2\deploy\Test Portlet-portlet-6.0.2.1.war
Expanding: C:\Liferay\Liferay6\workspace\liferay-portal-6.0.2\deploy\Test Portlet-portlet-6.0.2.1.war into C:\Liferay\Liferay6\workspace\liferay-portal-6.0.2\tomcat-6.0.26\temp\20100730061508891
Copying 1 file to C:\Liferay\Liferay6\workspace\liferay-portal-6.0.2\tomcat-6.0.26\temp\20100730061508891\WEB-INF
Copying 1 file to C:\Liferay\Liferay6\workspace\liferay-portal-6.0.2\tomcat-6.0.26\temp\20100730061508891\WEB-INF\classes
Copying 1 file to C:\Liferay\Liferay6\workspace\liferay-portal-6.0.2\tomcat-6.0.26\temp\20100730061508891\WEB-INF\classes
Copying 1 file to C:\Liferay\Liferay6\workspace\liferay-portal-6.0.2\tomcat-6.0.26\temp\20100730061508891\META-INF
Warning: Thumbs.db modified in the future.
Warning: WEB-INF\classes\META-INF\base-spring.xml modified in the future.
Warning: WEB-INF\classes\META-INF\dynamic-data-source-spring.xml modified in the future.
Warning: WEB-INF\classes\META-INF\hibernate-spring.xml modified in the future.
Warning: WEB-INF\classes\META-INF\infrastructure-spring.xml modified in the future.
Warning: WEB-INF\classes\META-INF\portlet-hbm.xml modified in the future.
Warning: WEB-INF\classes\META-INF\portlet-model-hints.xml modified in the future.
Warning: WEB-INF\classes\META-INF\portlet-orm.xml modified in the future.
Warning: WEB-INF\classes\META-INF\portlet-spring.xml modified in the future.
Warning: WEB-INF\classes\META-INF\shard-data-source-spring.xml modified in the future.
Warning: WEB-INF\classes\com\cspl\tr\model\impl\ParticipantImpl.class modified in the future.
Warning: WEB-INF\classes\com\cspl\tr\model\impl\ParticipantModelImpl.class modified in the future.
Warning: WEB-INF\classes\com\cspl\tr\service\base\ParticipantLocalServiceBaseImpl.class modified in the future.
Warning: WEB-INF\classes\com\cspl\tr\service\impl\ParticipantLocalServiceImpl.class modified in the future.
Warning: WEB-INF\classes\com\cspl\tr\service\persistence\ParticipantPersistenceImpl.class modified in the future.
Warning: WEB-INF\classes\service.properties modified in the future.
Warning: WEB-INF\lib\Test Portlet-portlet-service.jar modified in the future.
Warning: WEB-INF\service\com\cspl\tr\NoSuchParticipantException.java modified in the future.
Warning: WEB-INF\service\com\cspl\tr\model\Participant.java modified in the future.
Warning: WEB-INF\service\com\cspl\tr\model\ParticipantClp.java modified in the future.
Warning: WEB-INF\service\com\cspl\tr\model\ParticipantModel.java modified in the future.
Warning: WEB-INF\service\com\cspl\tr\model\ParticipantSoap.java modified in the future.
Warning: WEB-INF\service\com\cspl\tr\model\ParticipantWrapper.java modified in the future.
Warning: WEB-INF\service\com\cspl\tr\service\ClpSerializer.java modified in the future.
Warning: WEB-INF\service\com\cspl\tr\service\ParticipantLocalService.java modified in the future.
Warning: WEB-INF\service\com\cspl\tr\service\ParticipantLocalServiceClp.java modified in the future.
Warning: WEB-INF\service\com\cspl\tr\service\ParticipantLocalServiceUtil.java modified in the future.
Warning: WEB-INF\service\com\cspl\tr\service\ParticipantLocalServiceWrapper.java modified in the future.
Warning: WEB-INF\service\com\cspl\tr\service\messaging\ClpMessageListener.java modified in the future.
Warning: WEB-INF\service\com\cspl\tr\service\persistence\ParticipantPersistence.java modified in the future.
Warning: WEB-INF\service\com\cspl\tr\service\persistence\ParticipantUtil.java modified in the future.
Warning: WEB-INF\sql\indexes.properties modified in the future.
Warning: WEB-INF\sql\indexes.sql modified in the future.
Warning: WEB-INF\sql\sequences.sql modified in the future.
Warning: WEB-INF\sql\tables.sql modified in the future.
Warning: WEB-INF\src\META-INF\base-spring.xml modified in the future.
Warning: WEB-INF\src\META-INF\dynamic-data-source-spring.xml modified in the future.
Warning: WEB-INF\src\META-INF\hibernate-spring.xml modified in the future.
Warning: WEB-INF\src\META-INF\infrastructure-spring.xml modified in the future.
Warning: WEB-INF\src\META-INF\portlet-hbm.xml modified in the future.
Warning: WEB-INF\src\META-INF\portlet-model-hints.xml modified in the future.
Warning: WEB-INF\src\META-INF\portlet-orm.xml modified in the future.
Warning: WEB-INF\src\META-INF\portlet-spring.xml modified in the future.
Warning: WEB-INF\src\META-INF\shard-data-source-spring.xml modified in the future.
Warning: WEB-INF\src\com\cspl\tr\model\impl\ParticipantImpl.java modified in the future.
Warning: WEB-INF\src\com\cspl\tr\model\impl\ParticipantModelImpl.java modified in the future.
Warning: WEB-INF\src\com\cspl\tr\service\base\ParticipantLocalServiceBaseImpl.java modified in the future.
Warning: WEB-INF\src\com\cspl\tr\service\impl\ParticipantLocalServiceImpl.java modified in the future.
Warning: WEB-INF\src\com\cspl\tr\service\persistence\ParticipantPersistenceImpl.java modified in the future.
Warning: WEB-INF\src\service.properties modified in the future.
Warning: WEB-INF\classes\com modified in the future.
Warning: WEB-INF\classes\com\cspl modified in the future.
Warning: WEB-INF\classes\com\cspl\tr\model modified in the future.
Warning: WEB-INF\classes\com\cspl\tr\service modified in the future.
Warning: WEB-INF\classes\com\cspl\tr\service\base modified in the future.
Warning: WEB-INF\classes\com\cspl\tr\service\impl modified in the future.
Warning: WEB-INF\service modified in the future.
Warning: WEB-INF\service\com modified in the future.
Warning: WEB-INF\service\com\cspl modified in the future.
Warning: WEB-INF\service\com\cspl\tr modified in the future.
Warning: WEB-INF\service\com\cspl\tr\service\messaging modified in the future.
Warning: WEB-INF\src modified in the future.
Warning: WEB-INF\src\com modified in the future.
Warning: WEB-INF\src\com\cspl modified in the future.
Warning: WEB-INF\src\com\cspl\tr modified in the future.
Warning: WEB-INF\src\com\cspl\tr\model modified in the future.
Warning: WEB-INF\src\com\cspl\tr\model\impl modified in the future.
Warning: WEB-INF\src\com\cspl\tr\service modified in the future.
Warning: WEB-INF\src\com\cspl\tr\service\base modified in the future.
Warning: WEB-INF\src\com\cspl\tr\service\impl modified in the future.
Warning: WEB-INF\src\com\cspl\tr\service\persistence modified in the future.
Copying 67 files to C:\Liferay\Liferay6\workspace\liferay-portal-6.0.2\tomcat-6.0.26\webapps\Test Portlet-portlet
Copying 1 file to C:\Liferay\Liferay6\workspace\liferay-portal-6.0.2\tomcat-6.0.26\webapps\Test Portlet-portlet
Deleting directory C:\Liferay\Liferay6\workspace\liferay-portal-6.0.2\tomcat-6.0.26\temp\20100730061508891
06:15:18,376 INFO [PortletAutoDeployListener:83] Portlets for C:\Liferay\Liferay6\workspace\liferay-portal-6.0.2\deploy\Test Portlet-portlet-6.0.2.1.war copied successfully. Deployment will start in a few seconds.
Jul 30, 2010 6:15:24 AM org.apache.catalina.startup.HostConfig checkResources
INFO: Reloading context [/Test Portlet-portlet]
06:15:24,110 INFO [ExtHotDeployListener:207] Extension environment for Test Portlet-portlet will not be undeployed
06:15:24,110 INFO [PortletHotDeployListener:403] Unregistering portlets for Test Portlet-portlet
06:15:24,141 INFO [PortletHotDeployListener:434] 1 portlet for Test Portlet-portlet was unregistered
Loading file:/C:/Liferay/Liferay6/workspace/liferay-portal-6.0.2/tomcat-6.0.26/temp/15-Test%20Portlet-portlet/WEB-INF/classes/service.properties
06:15:26,048 INFO [DialectDetector:71] Determining dialect for MySQL 5
06:15:26,048 INFO [DialectDetector:51] Using dialect org.hibernate.dialect.MySQLDialect
Loading file:/C:/Liferay/Liferay6/workspace/liferay-portal-6.0.2/tomcat-6.0.26/temp/15-Test%20Portlet-portlet/WEB-INF/classes/service.properties
Loading file:/C:/Liferay/Liferay6/workspace/liferay-portal-6.0.2/tomcat-6.0.26/temp/15-Test%20Portlet-portlet/WEB-INF/classes/service.properties
06:15:26,251 INFO [ServiceComponentLocalServiceImpl:190] Running tr SQL scripts
06:15:26,391 INFO [PortletHotDeployListener:223] Registering portlets for Test Portlet-portlet
06:15:26,454 INFO [PortletHotDeployListener:368] 1 portlet for Test Portlet-portlet is available for use
Corné Aussems
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan)
September 7, 2010 1:16 PM
Answer

Corné Aussems

Rank: Liferay Legend

Posts: 1270

Join Date: October 3, 2006

Recent Posts

I'm experiencing the same problem but with LR 6.0.4 & 6.0.5 ?


1
2org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nl.pfm.webshop.services.service.WebshopProductGroupLocalService' defined in ServletContext resource [/WEB-INF/classes/META-INF/portlet-spring.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nl.pfm.webshop.services.service.persistence.WebshopProductGroupPersistence' defined in ServletContext resource [/WEB-INF/classes/META-INF/portlet-spring.xml]: Instantiation of bean failed; nested exception is java.lang.ExceptionInInitializerError
3    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
4    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)


Does your code works well on 605?
Corné Aussems
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan)
September 7, 2010 2:49 PM
Answer

Corné Aussems

Rank: Liferay Legend

Posts: 1270

Join Date: October 3, 2006

Recent Posts

Mmmmmmm strange i started a new project and have no problems anymore.
Corné Aussems
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan)
September 9, 2010 6:52 AM
Answer

Corné Aussems

Rank: Liferay Legend

Posts: 1270

Join Date: October 3, 2006

Recent Posts

Update

make sure the mapping-table is named after exactly the same names as both referenced entities
Jakub Liska
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan)
October 27, 2010 1:25 PM
Answer

Jakub Liska

Rank: Regular Member

Posts: 187

Join Date: March 25, 2010

Recent Posts

Thank you Corné for mentioning... If it is named like "entity1name_entity2name", then one of the entityModelImpl classes contains a field populated with the name, otherwise both entityModelImpl classes have field that points to the opposite field, but none of them is populated with the actual value... at least in 6.0.5 and current release
Gianluca Pindinelli
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan)
February 16, 2011 7:07 AM
Answer

Gianluca Pindinelli

Rank: Junior Member

Posts: 30

Join Date: March 17, 2010

Recent Posts

Hi guys,
I have the same problem with my portlet (LF 6.05 CE/Jboss Bundled):
the portlet work fine with relation 1:1 and 1:n but when I added the m:n relationship --> exception during deploy:

 1
 215:51:10,515 ERROR [ContextLoader] Context initialization failed
 3org.springframework.beans.factory.BeanCreationException: Error creating bean with name
 4...
 5...
 6...
 7...
 8...
 9(some stacktrace)
10...
11...
12        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
13        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
14        at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:71)
15        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:948)
16        ... 163 more
17Caused by: java.lang.NullPointerException
18        at com.liferay.portal.kernel.dao.orm.FinderPath._initLocalCacheKeyPrefix(FinderPath.java:112)
19        at com.liferay.portal.kernel.dao.orm.FinderPath.<init>(FinderPath.java:38)
20        at it.linksmt.cdb.pagamenti.service.persistence.ServizioPersistenceImpl.<clinit>(ServizioPersistenceImpl.java:1420)
21        ... 170 more


Here the new code into my service.xml:
 1<entity name="Servizio" local-service="true" remote-service="false" table="pgm_servizio">
 2        <column name="idServizio" type="long" primary="true" />
 3       
 4        <column name="nome" type="String" />
 5        <column name="descrizione" type="String" />
 6        <column name="url" type="String" />
 7        <column name="attivo" type="boolean" />
 8       
 9        <!-- relazioni m:n  -->
10        <column name="GatewayList" type="Collection" entity="Gateway"  mapping-table="pgm_servizio_gateway" />
11       
12        <finder name="Nome" return-type="Collection">
13            <finder-column name="nome" />
14        </finder>
15       
16        <finder name="Attivo" return-type="Collection">
17            <finder-column name="attivo" />
18        </finder>
19    </entity>
20   
21    <entity name="Gateway" local-service="true" remote-service="false" table="pgm_gateway">
22        <column name="idGateway" type="long" primary="true" />
23       
24        <column name="nome" type="String" />
25        <column name="descrizione" type="String" />
26        <column name="url" type="String" />
27        <column name="attivo" type="boolean" />
28       
29        <!-- relazioni m:n  -->
30        <column name="ServiziList" type="Collection" entity="Servizio"  mapping-table="pgm_servizio_gateway" />
31       
32        <finder name="Nome" return-type="Collection">
33            <finder-column name="nome" />
34        </finder>
35       
36        <finder name="Attivo" return-type="Collection">
37            <finder-column name="attivo" />
38        </finder>
39    </entity>
40   
41    <entity name="ServizioGateway" local-service="true" remote-service="false" table="pgm_servizio_gateway">
42        <column name="idServizio" type="long" primary="true" />
43        <column name="idGateway" type="long" primary="true" />
44    </entity>


I have done something wrong?

Thanks in advance.
Corentin R
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan)
April 27, 2011 2:14 AM
Answer

Corentin R

Rank: Junior Member

Posts: 92

Join Date: June 18, 2010

Recent Posts

Hi,
It seems that the error still occured when building many-to-many relationship with servicebuilder on 6.0.6

As Corné Aussems said to avoid it you need to name the mapping-table exactly as your 2 entities.

Moreover if your namespace is pgm you don't need to specify your table name in the table attribute from your entities.

You don't need neither to specify an entity for the mapping table. ServiceBuilder will create it for you emoticon

So applied in your example it will give us :
In your example it will give us :
 1    <entity name="Servizio" local-service="true" remote-service="false" >
 2         <column name="idServizio" type="long" primary="true" />
 3       
 4         <column name="nome" type="String" />
 5         <column name="descrizione" type="String" />
 6         <column name="url" type="String" />
 7         <column name="attivo" type="boolean" />
 8      
 9         <!-- relazioni m:n  -->
10        <column name="GatewayList" type="Collection" entity="Gateway"  mapping-table="servizio_gateway" />
11      
12       <finder name="Nome" return-type="Collection">
13            <finder-column name="nome" />
14        </finder>
15      
16        <finder name="Attivo" return-type="Collection">
17            <finder-column name="attivo" />
18        </finder>
19    </entity>
20   
21    <entity name="Gateway" local-service="true" remote-service="false">
22        <column name="idGateway" type="long" primary="true" />
23      
24        <column name="nome" type="String" />
25        <column name="descrizione" type="String" />
26        <column name="url" type="String" />
27       <column name="attivo" type="boolean" />
28      
29        <!-- relazioni m:n  -->
30        <column name="ServiziList" type="Collection" entity="Servizio"  mapping-table="servizio_gateway" />
31      
32        <finder name="Nome" return-type="Collection">
33            <finder-column name="nome" />
34        </finder>
35      
36        <finder name="Attivo" return-type="Collection">
37            <finder-column name="attivo" />
38        </finder>
39    </entity>


That should work ;)
Jan Bub
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan)
April 28, 2011 12:25 PM
Answer

Jan Bub

Rank: Junior Member

Posts: 78

Join Date: March 2, 2011

Recent Posts

I tried it with 6.06. It works. emoticon
Rohit Salecha
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan)
April 29, 2011 2:24 AM
Answer

Rohit Salecha

Rank: Junior Member

Posts: 50

Join Date: February 20, 2011

Recent Posts

For Help on service Builder checkout this website

http://liferaydemystified.blogspot.com/2011/04/mvc-portlet-development-service-builder.html
Muhammad Asif
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan)
May 27, 2011 10:09 AM
Answer

Muhammad Asif

Rank: New Member

Posts: 24

Join Date: April 11, 2011

Recent Posts

I am trying to make a many to many relationship with User entity of liferay portal. But I fail. I have used this

<column name="users" type="Collection" entity="com.liferay.portal.User" mapping-table="Agencies_Users" />
Corné Aussems
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan)
May 27, 2011 12:54 PM
Answer

Corné Aussems

Rank: Liferay Legend

Posts: 1270

Join Date: October 3, 2006

Recent Posts

As i said use exactlyt the name of the Entities i presume your table is Agency and the User table not Users
1
2<column name="users" type="Collection" entity="com.liferay.portal.User" mapping-table="[b]Agency_User[/b]" />


I don't know why core Liferay can do this well though.
1<column name="users" type="Collection" entity="User" mapping-table="[b]Users_UserGroups[/b]" />
Muhammad Asif
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan)
May 28, 2011 1:47 AM
Answer

Muhammad Asif

Rank: New Member

Posts: 24

Join Date: April 11, 2011

Recent Posts

When I tried Agency_User it gave me error in generation. Then i put it User_Agency it generated successfully. But when compiling it again gave me errors like Context Initialization failed. Failed to create bean etc.
Thomas T.
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan)
September 14, 2011 11:42 AM
Answer

Thomas T.

Rank: New Member

Posts: 9

Join Date: February 11, 2011

Recent Posts

Oh !! That's perfect it works !! Thanks ! But now, i'm still wondering how it works in java side. I mean how to retrieve objects link to other.

If i take your example Corentin, how do you retrieve all Servizio linked to a gateway (and vice versa). In Gateway class there is no getServizioList()
Corentin R
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan)
September 15, 2011 3:48 AM
Answer

Corentin R

Rank: Junior Member

Posts: 92

Join Date: June 18, 2010

Recent Posts

Thomas T.:
Oh !! That's perfect it works !! Thanks ! But now, i'm still wondering how it works in java side. I mean how to retrieve objects link to other.
If i take your example Corentin, how do you retrieve all Servizio linked to a gateway (and vice versa). In Gateway class there is no getServizioList()


Normally you should have a getServiziList() method that will return a List<Servizio> in the persistance class of your entity (GatewayPersistenceImpl in your case).
Then to access it from your portlet you should create a new method in your serviceLocal code.

Hope it will helps !emoticon
Muhammed Shakir
RE: Many to Many with ServiceBuilder in Liferay 6-1.0 (Pinging Brain Chan)
September 15, 2011 6:05 AM
Answer

Muhammed Shakir

Rank: Junior Member

Posts: 33

Join Date: February 25, 2009

Recent Posts

Normally you should have a getServiziList() method that will return a List<Servizio> in the persistance class of your entity (GatewayPersistenceImpl in your case).
Then to access it from your portlet you should create a new method in your serviceLocal code.

Hope it will helps !emoticon


Thats perfect. You will get a reference to Persistence class in your GatewayLocalServiceImpl called gatewayPersistence with a getter which returns related entities.