Fórum
NullPointerException ExpandoColumnPermission Custom Attributes Layouts
Sanya Presich, modificado 14 Anos atrás.
NullPointerException ExpandoColumnPermission Custom Attributes Layouts
Junior Member Postagens: 95 Data de Entrada: 05/03/09 Postagens Recentes
Hello guys.
I faced with some problem that can't understand in any way.
I developed a portlet on GWT and deployed it on my LR 5.2.2
From it I call a Liferay API to set Custom attributes of organization and update layouts for this organization.
For User I created a Custom ROLE and gave it portal permissions: view and configure, then all permissions on user, role, organization etc.
THEN, when this user with Custom Role try to call LifeRay API from my portlet, first two times all is OK, but on the third I have such a problem in logs:
Any thoughts?
I faced with some problem that can't understand in any way.
I developed a portlet on GWT and deployed it on my LR 5.2.2
From it I call a Liferay API to set Custom attributes of organization and update layouts for this organization.
For User I created a Custom ROLE and gave it portal permissions: view and configure, then all permissions on user, role, organization etc.
THEN, when this user with Custom Role try to call LifeRay API from my portlet, first two times all is OK, but on the third I have such a problem in logs:
Any thoughts?
[#|2009-06-04T14:52:26.168+0000|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=24;_ThreadName=httpSSLWorkerThread-28080-2;|
2009-06-04 14:52:26,167 ERROR[ExpandoBridgeImpl.setAttribute httpSSLWorkerThread-28080-2:255][DFDRIVER]java.lang.NullPointerException
java.lang.NullPointerException
at com.liferay.portlet.expando.service.permission.ExpandoColumnPermission.contains(ExpandoColumnPermission.java:97)
at com.liferay.portlet.expando.service.permission.ExpandoColumnPermission.check(ExpandoColumnPermission.java:67)
at com.liferay.portlet.expando.service.impl.ExpandoValueServiceImpl.addValue(ExpandoValueServiceImpl.java:51)
at sun.reflect.GeneratedMethodAccessor821.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy281.addValue(Unknown Source)
at com.liferay.portlet.expando.service.ExpandoValueServiceUtil.addValue(ExpandoValueServiceUtil.java:53)
at com.liferay.portlet.expando.model.impl.ExpandoBridgeImpl.setAttribute(ExpandoBridgeImpl.java:248)
at com.liferay.portlet.expando.model.impl.ExpandoBridgeImpl.setAttributes(ExpandoBridgeImpl.java:300)
at com.iforma.ifsaclient.ifsa.client.AdminImpl.setLFOrganizationAttributtesUseLFApi(AdminImpl.java:1179)
at com.iforma.ifsaclient.ifsa.client.AdminImpl.setCMOrganizationActive(AdminImpl.java:1262)
at ifsa.contract.ui.server.contractmanagment.ManagementContactServiceImpl.setCMOrganizationStatusActive(ManagementContactServiceImpl.java:282)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:527)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:315)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:288)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:647)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:579)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:831)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
Sanya Presich, modificado 14 Anos atrás.
RE: NullPointerException ExpandoColumnPermission Custom Attributes Layouts
Junior Member Postagens: 95 Data de Entrada: 05/03/09 Postagens Recentes
This problem is same to this: http://www.liferay.com/web/guest/community/forums/-/message_boards/message/3373535