Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Parth Bhagat
ClassCastException in InterPortletCommunication
March 3, 2011 10:24 PM
Answer

Parth Bhagat

Rank: New Member

Posts: 19

Join Date: February 25, 2011

Recent Posts

Hi all,

I am using Liferay 5.2.3 and using Inter Portlet Communication concept of Liferay.

From an event publisher portlet, a HashMap object is broadcast to all portlets. An event receiver portlet will receive this HashMap object. Where the problem encounter is I am passing HashMap<String, Object>, this Object can be a user defined Bean object. All details passed with this Map is received properly at receiver class, but user defined Bean object is giving ClassCastException.

This Bean class is bundled in a Jar file, which is common to both publisher & receiver portlet.

Can anyone suggest me where I am going wrong?

Thanking you,
Parth Bhagat.
Raja Nagendra Kumar
RE: ClassCastException in InterPortletCommunication
March 3, 2011 11:15 PM
Answer

Raja Nagendra Kumar

Rank: Expert

Posts: 484

Join Date: March 1, 2006

Recent Posts

Make sure this common jar file is placed in tomcat global lib directory.. if you are shipping this jar in both the wars then you would see the ClassCastException.
Pranay R Patadiya
RE: ClassCastException in InterPortletCommunication
March 4, 2011 4:01 AM
Answer

Pranay R Patadiya

Rank: Regular Member

Posts: 181

Join Date: February 22, 2010

Recent Posts

Hi,

Can you paste the Exception ?

Thanks,
Pranay Patadiya
Parth Bhagat
RE: ClassCastException in InterPortletCommunication
March 5, 2011 12:21 AM
Answer

Parth Bhagat

Rank: New Member

Posts: 19

Join Date: February 25, 2011

Recent Posts

I tried this. But still it is not working.
Parth Bhagat
RE: ClassCastException in InterPortletCommunication
March 5, 2011 12:23 AM
Answer

Parth Bhagat

Rank: New Member

Posts: 19

Join Date: February 25, 2011

Recent Posts

Exception is like this:

  108:20:36,984 ERROR [PortletServlet:104] javax.portlet.PortletException: java.lang.reflect.InvocationTargetException
  2javax.portlet.PortletException: java.lang.reflect.InvocationTargetException
  3        at javax.portlet.GenericPortlet.processEvent(GenericPortlet.java:634)
  4        at com.sun.portal.portletcontainer.appengine.filter.FilterChainImpl.doFilter(FilterChainImpl.java:152)
  5        at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:63)
  6        at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:100)
  7        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
  8        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
  9        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 10        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)
 11        at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:584)
 12        at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:497)
 13        at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:616)
 14        at com.liferay.portlet.InvokerPortletImpl.invokeEvent(InvokerPortletImpl.java:680)
 15        at com.liferay.portlet.InvokerPortletImpl.processEvent(InvokerPortletImpl.java:383)
 16        at com.liferay.portal.action.LayoutAction.processEvent(LayoutAction.java:345)
 17        at com.liferay.portal.action.LayoutAction.processEvents(LayoutAction.java:396)
 18        at com.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:612)
 19        at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:423)
 20        at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:195)
 21        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
 22        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
 23        at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:159)
 24        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
 25        at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
 26        at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
 27        at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:505)
 28        at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:732)
 29        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
 30        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
 31        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 32        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)
 33        at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461)
 34        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399)
 35        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
 36        at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:143)
 37        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
 38        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
 39        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 40        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
 41        at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:142)
 42        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
 43        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
 44        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 45        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
 46        at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:140)
 47        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
 48        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
 49        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 50        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
 51        at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:282)
 52        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
 53        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
 54        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 55        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
 56        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:94)
 57        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
 58        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 59        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
 60        at com.liferay.portal.servlet.filters.cache.CacheFilter.processFilter(CacheFilter.java:417)
 61        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
 62        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
 63        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 64        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
 65        at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:244)
 66        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
 67        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
 68        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 69        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
 70        at com.liferay.portal.servlet.filters.sso.opensso.OpenSSOFilter.processFilter(OpenSSOFilter.java:73)
 71        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
 72        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
 73        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 74        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
 75        at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:193)
 76        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
 77        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
 78        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 79        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
 80        at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(VirtualHostFilter.java:188)
 81        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
 82        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 83        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
 84        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:94)
 85        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
 86        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 87        at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
 88        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
 89        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 90        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
 91        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
 92        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
 93        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
 94        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
 95        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
 96        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
 97        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
 98        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
 99        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
100        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
101        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
102        at java.lang.Thread.run(Thread.java:595)
103Caused by: java.lang.reflect.InvocationTargetException
104        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
105        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
106        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
107        at java.lang.reflect.Method.invoke(Method.java:585)
108        at javax.portlet.GenericPortlet.processEvent(GenericPortlet.java:614)
109        ... 99 more
110Caused by: java.lang.NullPointerException
111        at com.softweb.sirius.siriusincidents.processSearchCriteria(siriusincidents.java:220)
112        ... 104 more
11308:20:37,468 ERROR [[siriusincidents]:711] Servlet.service() for servlet siriusincidents threw exception
114java.lang.NullPointerException
115        at com.softweb.sirius.siriusincidents.processSearchCriteria(siriusincidents.java:220)
116        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
117        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
118        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
119        at java.lang.reflect.Method.invoke(Method.java:585)
120        at javax.portlet.GenericPortlet.processEvent(GenericPortlet.java:614)
121        at com.sun.portal.portletcontainer.appengine.filter.FilterChainImpl.doFilter(FilterChainImpl.java:152)
122        at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:63)
123        at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:100)
124        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
125        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
126        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
127        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)
128        at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:584)
129        at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:497)
130        at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:616)
131        at com.liferay.portlet.InvokerPortletImpl.invokeEvent(InvokerPortletImpl.java:680)
132        at com.liferay.portlet.InvokerPortletImpl.processEvent(InvokerPortletImpl.java:383)
133        at com.liferay.portal.action.LayoutAction.processEvent(LayoutAction.java:345)
134        at com.liferay.portal.action.LayoutAction.processEvents(LayoutAction.java:396)
135        at com.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:612)
136        at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:423)
137        at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:195)
138        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
139        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
140        at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:159)
141        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
142        at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
143        at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
144        at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:505)
145        at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:732)
146        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
147        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
148        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
149        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)
150        at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461)
151        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399)
152        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
153        at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:143)
154        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
155        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
156        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
157        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
158        at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:142)
159        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
160        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
161        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
162        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
163        at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:140)
164        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
165        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
166        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
167        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
168        at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:282)
169        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
170        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
171        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
172        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
173        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:94)
174        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
175        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
176        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
177        at com.liferay.portal.servlet.filters.cache.CacheFilter.processFilter(CacheFilter.java:417)
178        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
179        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
180        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
181        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
182        at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:244)
183        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
184        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
185        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
186        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
187        at com.liferay.portal.servlet.filters.sso.opensso.OpenSSOFilter.processFilter(OpenSSOFilter.java:73)
188        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
189        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
190        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
191        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
192        at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:193)
193        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
194        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
195        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
196        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
197        at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(VirtualHostFilter.java:188)
198        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
199        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
200        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
201        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:94)
202        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
203        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
204        at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
205        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
206        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
207        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
208        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
209        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
210        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
211        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
212        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
213        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
214        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
215        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
216        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
217        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
218        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
219        at java.lang.Thread.run(Thread.java:595)
Raja Nagendra Kumar
RE: ClassCastException in InterPortletCommunication
March 5, 2011 8:10 AM
Answer

Raja Nagendra Kumar

Rank: Expert

Posts: 484

Join Date: March 1, 2006

Recent Posts

Where is the ClassCastException here..

I see the cause as

java.lang.NullPointerException
115 at com.softweb.sirius.siriusincidents.processSearchCriteria(siriusincidents.java:220)

Check what is causing the Null access in line 220 of the class siriusincidents

B.T.W by Convention, the Class Name should have been SirusIncidents

Regards,
Raja Nagendra Kumar,
C.T.O
www.tejasoft.com
-Java Product Code Audit Experts
Parth Bhagat
RE: ClassCastException in InterPortletCommunication
March 8, 2011 11:42 PM
Answer

Parth Bhagat

Rank: New Member

Posts: 19

Join Date: February 25, 2011

Recent Posts

I am sorry.

Actually I posted wrong Exception message.

Proper message is:

  107:40:58,250 ERROR [PortletServlet:104] javax.portlet.PortletException: java.lang.reflect.InvocationTargetException
  2javax.portlet.PortletException: java.lang.reflect.InvocationTargetException
  3        at javax.portlet.GenericPortlet.processEvent(GenericPortlet.java:634)
  4        at com.sun.portal.portletcontainer.appengine.filter.FilterChainImpl.doFilter(FilterChainImpl.java:152)
  5        at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:63)
  6        at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:100)
  7        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
  8        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
  9        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 10        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)
 11        at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:584)
 12        at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:497)
 13        at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:616)
 14        at com.liferay.portlet.InvokerPortletImpl.invokeEvent(InvokerPortletImpl.java:680)
 15        at com.liferay.portlet.InvokerPortletImpl.processEvent(InvokerPortletImpl.java:383)
 16        at com.liferay.portal.action.LayoutAction.processEvent(LayoutAction.java:345)
 17        at com.liferay.portal.action.LayoutAction.processEvents(LayoutAction.java:396)
 18        at com.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:612)
 19        at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:423)
 20        at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:195)
 21        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
 22        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
 23        at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:159)
 24        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
 25        at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
 26        at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
 27        at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:505)
 28        at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:732)
 29        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
 30        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
 31        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 32        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)
 33        at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461)
 34        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399)
 35        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
 36        at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:143)
 37        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
 38        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
 39        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 40        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
 41        at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:142)
 42        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
 43        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
 44        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 45        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
 46        at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:140)
 47        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
 48        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
 49        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 50        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
 51        at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:282)
 52        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
 53        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
 54        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 55        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
 56        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:94)
 57        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
 58        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 59        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
 60        at com.liferay.portal.servlet.filters.cache.CacheFilter.processFilter(CacheFilter.java:417)
 61        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
 62        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
 63        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 64        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
 65        at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:244)
 66        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
 67        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
 68        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 69        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
 70        at com.liferay.portal.servlet.filters.sso.opensso.OpenSSOFilter.processFilter(OpenSSOFilter.java:73)
 71        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
 72        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
 73        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 74        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
 75        at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:193)
 76        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
 77        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
 78        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 79        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
 80        at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(VirtualHostFilter.java:188)
 81        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
 82        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 83        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
 84        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:94)
 85        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
 86        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 87        at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
 88        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
 89        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 90        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
 91        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
 92        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
 93        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
 94        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
 95        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
 96        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
 97        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
 98        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
 99        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
100        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
101        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
102        at java.lang.Thread.run(Thread.java:595)
103Caused by: java.lang.reflect.InvocationTargetException
104        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
105        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
106        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
107        at java.lang.reflect.Method.invoke(Method.java:585)
108        at javax.portlet.GenericPortlet.processEvent(GenericPortlet.java:614)
109        ... 99 more
110Caused by: java.lang.ClassCastException: com.softweb.xmlapi.IncidentKPIBean
111        at com.softweb.sirius.siriusincidents.processSearchCriteria(siriusincidents.java:186)
112        ... 104 more
11307:40:58,750 ERROR [[siriusincidents]:711] Servlet.service() for servlet siriusincidents threw exception
114java.lang.ClassCastException: com.softweb.xmlapi.IncidentKPIBean
115        at com.softweb.sirius.siriusincidents.processSearchCriteria(siriusincidents.java:186)
116        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
117        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
118        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
119        at java.lang.reflect.Method.invoke(Method.java:585)
120        at javax.portlet.GenericPortlet.processEvent(GenericPortlet.java:614)
121        at com.sun.portal.portletcontainer.appengine.filter.FilterChainImpl.doFilter(FilterChainImpl.java:152)
122        at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:63)
123        at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:100)
124        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
125        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
126        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
127        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)
128        at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:584)
129        at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:497)
130        at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:616)
131        at com.liferay.portlet.InvokerPortletImpl.invokeEvent(InvokerPortletImpl.java:680)
132        at com.liferay.portlet.InvokerPortletImpl.processEvent(InvokerPortletImpl.java:383)
133        at com.liferay.portal.action.LayoutAction.processEvent(LayoutAction.java:345)
134        at com.liferay.portal.action.LayoutAction.processEvents(LayoutAction.java:396)
135        at com.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:612)
136        at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:423)
137        at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:195)
138        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
139        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
140        at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:159)
141        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
142        at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
143        at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
144        at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:505)
145        at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:732)
146        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
147        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
148        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
149        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)
150        at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461)
151        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399)
152        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
153        at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:143)
154        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
155        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
156        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
157        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
158        at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:142)
159        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
160        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
161        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
162        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
163        at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:140)
164        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
165        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
166        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
167        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
168        at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:282)
169        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
170        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
171        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
172        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
173        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:94)
174        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
175        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
176        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
177        at com.liferay.portal.servlet.filters.cache.CacheFilter.processFilter(CacheFilter.java:417)
178        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
179        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
180        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
181        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
182        at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:244)
183        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
184        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
185        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
186        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
187        at com.liferay.portal.servlet.filters.sso.opensso.OpenSSOFilter.processFilter(OpenSSOFilter.java:73)
188        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
189        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
190        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
191        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
192        at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:193)
193        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
194        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
195        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
196        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
197        at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(VirtualHostFilter.java:188)
198        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
199        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
200        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
201        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:94)
202        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
203        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
204        at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
205        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
206        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
207        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
208        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
209        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
210        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
211        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
212        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
213        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
214        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
215        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
216        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
217        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
218        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
219        at java.lang.Thread.run(Thread.java:595)
Parth Bhagat
RE: ClassCastException in InterPortletCommunication
April 1, 2011 1:50 AM
Answer

Parth Bhagat

Rank: New Member

Posts: 19

Join Date: February 25, 2011

Recent Posts

Do anyone have idea to solve this?
Manish Kumar Gupta
RE: ClassCastException in InterPortletCommunication
April 1, 2011 3:31 AM
Answer

Manish Kumar Gupta

LIFERAY STAFF

Rank: Liferay Master

Posts: 535

Join Date: May 15, 2008

Recent Posts

Make sure that your bean class is not bundled in publisher and processor portlets and it is available only in the server classpath. Your problem will be solved.
Parth Bhagat
RE: ClassCastException in InterPortletCommunication
April 1, 2011 9:08 PM
Answer

Parth Bhagat

Rank: New Member

Posts: 19

Join Date: February 25, 2011

Recent Posts

Manish, you mean the bean class should not be on the class path of portlet instead it should be located on lib directory of Liferay server, right?
Parth Bhagat
RE: ClassCastException in InterPortletCommunication
April 4, 2011 1:12 AM
Answer

Parth Bhagat

Rank: New Member

Posts: 19

Join Date: February 25, 2011

Recent Posts

Manish, I tried that. I have Liferay Tomcat server 5.2.2. I've put the jar file of Bean class to TOMCAT_HOME/lib/ext. Also removed jar files from both publisher as well as processor portlet. But it still gives the same error.

Here is the snippet, how I had used data from event.

1BeanClass bean = (BeanClass) eventValue.get("BeanClass");


I am getting exception on this line of code.
Parth Bhagat
RE: ClassCastException in InterPortletCommunication
April 8, 2011 8:34 PM
Answer

Parth Bhagat

Rank: New Member

Posts: 19

Join Date: February 25, 2011

Recent Posts

Please share your thoughts on this problem.