Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Nicolas Tamayo
[RESOLVED]Custom Login Portlet NullPointerException
January 29, 2013 11:37 AM
Answer

Nicolas Tamayo

Rank: Junior Member

Posts: 29

Join Date: October 3, 2012

Recent Posts

Hi All

i have issue with a Custom Portlet that i developed. i call the method login that belongs to class, com.liferay.portlet.login.util.LoginUtil, and in the debug process, my code implemented is OK, but, when pass to execute other clases, that no belongs to my authorship, occurs, this Exception

  1
  214:21:02,650 INFO  [stdout] (http--0.0.0.0-8080-5) 14:21:02,647 ERROR [http--0.0.0.0-8080-5][status_jsp:635] java.lang.NullPointerException
  3
  414:21:02,650 INFO  [stdout] (http--0.0.0.0-8080-5) java.lang.NullPointerException
  5
  614:21:02,651 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.SessionMessages.add(SessionMessages.java:135)
  7
  814:21:02,651 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.SessionMessages.add(SessionMessages.java:111)
  9
 1014:21:02,651 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.portlet.LiferayPortlet.addSuccessMessage(LiferayPortlet.java:131)
 11
 1214:21:02,656 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.portlet.LiferayPortlet.processAction(LiferayPortlet.java:92)
 13
 1414:21:02,657 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.util.bridges.mvc.MVCPortlet.processAction(MVCPortlet.java:220)
 15
 1614:21:02,657 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:70)
 17
 1814:21:02,657 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48)
 19
 2014:21:02,658 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:111)
 21
 2214:21:02,658 INFO  [stdout] (http--0.0.0.0-8080-5)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
 23
 2414:21:02,659 INFO  [stdout] (http--0.0.0.0-8080-5)     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
 25
 2614:21:02,659 INFO  [stdout] (http--0.0.0.0-8080-5)     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
 27
 2814:21:02,660 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 29
 3014:21:02,660 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
 31
 3214:21:02,661 INFO  [stdout] (http--0.0.0.0-8080-5)     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
 33
 3414:21:02,662 INFO  [stdout] (http--0.0.0.0-8080-5)     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
 35
 3614:21:02,662 INFO  [stdout] (http--0.0.0.0-8080-5)     at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:840)
 37
 3814:21:02,663 INFO  [stdout] (http--0.0.0.0-8080-5)     at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:720)
 39
 4014:21:02,663 INFO  [stdout] (http--0.0.0.0-8080-5)     at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:657)
 41
 4214:21:02,664 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:534)
 43
 4414:21:02,664 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portlet.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:579)
 45
 4614:21:02,665 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portlet.InvokerPortletImpl.processAction(InvokerPortletImpl.java:294)
 47
 4814:21:02,665 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:944)
 49
 5014:21:02,666 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:688)
 51
 5214:21:02,666 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:249)
 53
 5414:21:02,666 INFO  [stdout] (http--0.0.0.0-8080-5)     at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
 55
 5614:21:02,667 INFO  [stdout] (http--0.0.0.0-8080-5)     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
 57
 5814:21:02,667 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:176)
 59
 6014:21:02,668 INFO  [stdout] (http--0.0.0.0-8080-5)     at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
 61
 6214:21:02,668 INFO  [stdout] (http--0.0.0.0-8080-5)     at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
 63
 6414:21:02,669 INFO  [stdout] (http--0.0.0.0-8080-5)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
 65
 6614:21:02,669 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:560)
 67
 6814:21:02,670 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:537)
 69
 7014:21:02,671 INFO  [stdout] (http--0.0.0.0-8080-5)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
 71
 7214:21:02,671 INFO  [stdout] (http--0.0.0.0-8080-5)     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
 73
 7414:21:02,672 INFO  [stdout] (http--0.0.0.0-8080-5)     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
 75
 7614:21:02,672 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 77
 7814:21:02,673 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 79
 8014:21:02,673 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 81
 8214:21:02,674 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 83
 8414:21:02,675 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 85
 8614:21:02,675 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 87
 8814:21:02,676 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 89
 9014:21:02,676 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:294)
 91
 9214:21:02,677 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 93
 9414:21:02,677 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 95
 9614:21:02,678 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 97
 9814:21:02,678 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
 99
10014:21:02,679 INFO  [stdout] (http--0.0.0.0-8080-5)     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
101
10214:21:02,679 INFO  [stdout] (http--0.0.0.0-8080-5)     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
103
10414:21:02,679 INFO  [stdout] (http--0.0.0.0-8080-5)     at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:840)
105
10614:21:02,680 INFO  [stdout] (http--0.0.0.0-8080-5)     at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:622)
107
10814:21:02,680 INFO  [stdout] (http--0.0.0.0-8080-5)     at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:560)
109
11014:21:02,681 INFO  [stdout] (http--0.0.0.0-8080-5)     at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:488)
111
11214:21:02,681 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:138)
113
11414:21:02,682 INFO  [stdout] (http--0.0.0.0-8080-5)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
115
11614:21:02,682 INFO  [stdout] (http--0.0.0.0-8080-5)     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
117
11814:21:02,683 INFO  [stdout] (http--0.0.0.0-8080-5)     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
119
12014:21:02,683 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
121
12214:21:02,683 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
123
12414:21:02,684 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
125
12614:21:02,684 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
127
12814:21:02,685 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:335)
129
13014:21:02,686 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
131
13214:21:02,686 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
133
13414:21:02,687 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
135
13614:21:02,687 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
137
13814:21:02,688 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
139
14014:21:02,689 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:123)
141
14214:21:02,690 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
143
14414:21:02,690 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
145
14614:21:02,691 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
147
14814:21:02,691 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
149
15014:21:02,692 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:294)
151
15214:21:02,692 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
153
15414:21:02,692 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
155
15614:21:02,693 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
157
15814:21:02,694 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
159
16014:21:02,694 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:241)
161
16214:21:02,694 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
163
16414:21:02,695 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
165
16614:21:02,695 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
167
16814:21:02,696 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
169
17014:21:02,696 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
171
17214:21:02,697 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
173
17414:21:02,697 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:56)
175
17614:21:02,698 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
177
17814:21:02,698 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
179
18014:21:02,699 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
181
18214:21:02,699 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
183
18414:21:02,700 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:246)
185
18614:21:02,700 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
187
18814:21:02,701 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
189
19014:21:02,701 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
191
19214:21:02,702 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
193
19414:21:02,702 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:83)
195
19614:21:02,702 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
197
19814:21:02,703 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
199
20014:21:02,703 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
201
20214:21:02,704 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
203
20414:21:02,704 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:80)
205
20614:21:02,705 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
207
20814:21:02,705 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
209
21014:21:02,706 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
211
21214:21:02,706 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
213
21414:21:02,707 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:216)
215
21614:21:02,707 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
217
21814:21:02,707 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
219
22014:21:02,708 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
221
22214:21:02,708 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:187)
223
22414:21:02,709 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
225
22614:21:02,709 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
227
22814:21:02,710 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
229
23014:21:02,711 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
231
23214:21:02,711 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
233
23414:21:02,712 INFO  [stdout] (http--0.0.0.0-8080-5)     at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
235
23614:21:02,712 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
237
23814:21:02,713 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
239
24014:21:02,713 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167)
241
24214:21:02,714 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
243
24414:21:02,714 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
245
24614:21:02,715 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167)
247
24814:21:02,715 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
249
25014:21:02,716 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
251
25214:21:02,716 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:187)
253
25414:21:02,717 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
255
25614:21:02,717 INFO  [stdout] (http--0.0.0.0-8080-5)     at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
257
25814:21:02,718 INFO  [stdout] (http--0.0.0.0-8080-5)     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
259
26014:21:02,718 INFO  [stdout] (http--0.0.0.0-8080-5)     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
261
26214:21:02,719 INFO  [stdout] (http--0.0.0.0-8080-5)     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
263
26414:21:02,719 INFO  [stdout] (http--0.0.0.0-8080-5)     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
265
26614:21:02,720 INFO  [stdout] (http--0.0.0.0-8080-5)     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:397)
267
26814:21:02,720 INFO  [stdout] (http--0.0.0.0-8080-5)     at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)
269
27014:21:02,720 INFO  [stdout] (http--0.0.0.0-8080-5)     at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
271
27214:21:02,721 INFO  [stdout] (http--0.0.0.0-8080-5)     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
273
27414:21:02,721 INFO  [stdout] (http--0.0.0.0-8080-5)     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
275
27614:21:02,722 INFO  [stdout] (http--0.0.0.0-8080-5)     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
277
27814:21:02,722 INFO  [stdout] (http--0.0.0.0-8080-5)     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
279
28014:21:02,723 INFO  [stdout] (http--0.0.0.0-8080-5)     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
281
28214:21:02,723 INFO  [stdout] (http--0.0.0.0-8080-5)     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
283
28414:21:02,724 INFO  [stdout] (http--0.0.0.0-8080-5)     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
285
28614:21:02,724 INFO  [stdout] (http--0.0.0.0-8080-5)     at java.lang.Thread.run(Thread.java:722)


and i dont known which is the reason whereby this Exception occurs.

this is my code for action

 1public void burnLogin(
 2            ActionRequest actionRequest, ActionResponse actionResponse)
 3        throws PortletException, Exception{
 4       
 5        ThemeDisplay themeDisplay = (ThemeDisplay)
 6                actionRequest.getAttribute(WebKeys.THEME_DISPLAY);
 7       
 8        if(GetterUtil.getBoolean(PropsUtil.get(
 9                PropsKeys.AUTH_LOGIN_DISABLED))){
10            actionResponse.sendRedirect(
11                    themeDisplay.getPathMain()+
12                    PropsKeys.AUTH_LOGIN_DISABLED_PATH);
13            
14            return;
15        }
16       
17        try{
18            
19            PortletPreferences preferences =
20                    PortletPreferencesFactoryUtil.getPortletSetup(
21                            actionRequest);
22            
23            login(
24                    themeDisplay,
25                    actionRequest,
26                    actionResponse,
27                    preferences);
28            
29            
30            
31        }catch(Exception e){
32            
33            if(e instanceof AuthException){
34                Throwable cause = e.getCause();
35               
36                if(cause instanceof  PasswordExpiredException ||
37                        cause instanceof UserLockoutException){
38                    SessionErrors.add(actionRequest, cause.getClass());
39                }else{
40                    if(_log.isInfoEnabled()){
41                        _log.info("Authentication failed");
42                    }
43                    SessionErrors.add(actionRequest, e.getClass());
44                }
45            }else if(e instanceof CompanyMaxUsersException ||
46                    e instanceof CookieNotSupportedException ||
47                    e instanceof NoSuchUserException ||
48                    e instanceof PasswordExpiredException ||
49                    e instanceof UserEmailAddressException ||
50                    e instanceof UserIdException ||
51                    e instanceof UserLockoutException ||
52                    e instanceof UserPasswordException ||
53                    e instanceof UserScreenNameException){
54               
55                SessionErrors.add(actionRequest, e.getClass());
56               
57            }else{
58                _log.error(e, e);
59               
60                PortalUtil.sendError(e, actionRequest, actionResponse);
61            }
62            
63        }
64       
65    }


and this is my Code which calls the function login from class com.liferay.portlet.login.util.LoginUtil

 1
 2protected void login(
 3            ThemeDisplay themeDisplay, ActionRequest actionRequest,
 4            ActionResponse actionResponse, PortletPreferences preferences)
 5        throws Exception{
 6       
 7        HttpServletRequest request = PortalUtil.getHttpServletRequest(
 8                actionRequest);
 9       
10        HttpServletResponse response = PortalUtil.getHttpServletResponse(
11                actionResponse);
12       
13        String user = "user";
14        String pasw = "pasw";
15        boolean rememberMe = false;
16       
17        String authType = CompanyConstants.AUTH_TYPE_EA;
18       
19        MethodKey methodKey = new MethodKey(
20                "com.liferay.portlet.login.util.LoginUtil",
21                "login",
22                HttpServletRequest.class,
23                HttpServletResponse.class,
24                String.class,
25                String.class,
26                boolean.class,
27                String.class);
28       
29        try{
30            
31            PortalClassInvoker.invoke(
32                    false,
33                    methodKey,
34                    new Object[]{
35                            request,
36                            response,
37                            user,
38                            pasw,
39                            rememberMe,
40                            authType
41                    });
42            
43        }catch(Exception ex){
44            ex.printStackTrace();
45        }
46       
47        if(GetterUtil.getBoolean(PropsUtil.get(
48                PropsKeys.PORTAL_JAAS_ENABLE))){
49            
50            actionResponse.sendRedirect(
51                    themeDisplay.getPathMain() +"/portal/protected");
52            
53        }else{
54            
55            if(Validator.isNotNull(redirect)){
56               
57               
58                actionResponse.sendRedirect(themeDisplay.getPathMain());
59               
60            }else{
61                //doActionAfterLogin
62            }
63        }
64       
65    }


thanks for your collaboration
Bart Simpson
RE: Custom Login Portlet NullPointerException
January 3, 2013 12:10 PM
Answer

Bart Simpson

Rank: Liferay Master

Posts: 524

Join Date: August 29, 2011

Recent Posts

I assume you are using 6.1, there is a new property
 1    # Set this to true to invalidate the session when a user logs into the
 2    # portal. This helps prevent phishing. Set this to false if you need the
 3    # guest user and the authenticated user to have the same session.
 4    #
 5    # Set this to false if the property "company.security.auth.requires.https"
 6    # is set to true and you want to maintain the same credentials across HTTP
 7    # and HTTPS sessions.
 8    #
 9    session.enable.phishing.protection=true


Therefore programmatic logic has this issue. Try with this porperty set to false and it should work.

Hope it helps
Nicolas Tamayo
RE: Custom Login Portlet NullPointerException
January 3, 2013 1:16 PM
Answer

Nicolas Tamayo

Rank: Junior Member

Posts: 29

Join Date: October 3, 2012

Recent Posts

yes, i use 6.1.

helped perfectly, this property was all that i required to that this custom portlet execute the action expected.

thanks, thanks a lot
Bart Simpson
RE: Custom Login Portlet NullPointerException
January 4, 2013 6:20 AM
Answer

Bart Simpson

Rank: Liferay Master

Posts: 524

Join Date: August 29, 2011

Recent Posts

Your welcome, I struggled hard for this to find, then had to debug . Good that it saved you time. Could you also mark my reply as answer.
Nicolas Tamayo
RE: Custom Login Portlet NullPointerException
January 17, 2013 5:53 AM
Answer

Nicolas Tamayo

Rank: Junior Member

Posts: 29

Join Date: October 3, 2012

Recent Posts

Sure.

I Clicked in "Rate this at Good", it's Okay?