Fóruns

Início » Liferay Portal » English » 3. Development

Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
[Resolved]AutoLoginFilter:Current URL /web/guest/ generates exception: null Ram A 4 de Fevereiro de 2013 05:36
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null Mika Koivisto 21 de Janeiro de 2013 11:53
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null Ram A 22 de Janeiro de 2013 01:10
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null Ram A 22 de Janeiro de 2013 06:12
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null Mika Koivisto 22 de Janeiro de 2013 15:33
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null Ram A 22 de Janeiro de 2013 23:58
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null Ajeet Singh 23 de Janeiro de 2013 00:12
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null Ram A 23 de Janeiro de 2013 07:56
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null Mika Koivisto 23 de Janeiro de 2013 11:52
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null Ram A 29 de Janeiro de 2013 23:55
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null Ram A 29 de Janeiro de 2013 23:01
AutoLoginFilter:231 Current URL /web/guest/ generates exception: null Ram A 30 de Janeiro de 2013 01:46
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null Siby Mathew 30 de Janeiro de 2013 04:43
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null Ram A 30 de Janeiro de 2013 05:18
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null Siby Mathew 30 de Janeiro de 2013 05:34
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null Ram A 30 de Janeiro de 2013 05:47
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null Siby Mathew 30 de Janeiro de 2013 06:18
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null Ram A 4 de Fevereiro de 2013 04:37
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null Siby Mathew 4 de Fevereiro de 2013 04:52
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null Ram A 4 de Fevereiro de 2013 05:11
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null Siby Mathew 4 de Fevereiro de 2013 05:20
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null Archi Madhu 27 de Agosto de 2013 22:55
Ram A
[Resolved]AutoLoginFilter:Current URL /web/guest/ generates exception: null
4 de Fevereiro de 2013 05:36
Resposta

Ram A

Ranking: Junior Member

Mensagens: 76

Data de entrada: 16 de Janeiro de 2013

Mensagens recentes

Hi,
I am getting the following error frequentlry in my liferay application.

09:21:07,365 ERROR [AutoLoginFilter:231] Current URL /web/guest/status-details generates exception: null
09:21:07,365 ERROR [AutoLoginFilter:231] Current URL /web/guest/status-details generates exception: null
09:21:07,367 ERROR [AutoLoginFilter:231] Current URL /web/guest/ generates exception: null
09:21:07,369 ERROR [AutoLoginFilter:231] Current URL /web/guest/ generates exception: null.



Please help me to come out of this issue.


Thanks in advance
Ram
Mika Koivisto
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null
21 de Janeiro de 2013 11:53
Resposta

Mika Koivisto

LIFERAY STAFF

Ranking: Liferay Legend

Mensagens: 1498

Data de entrada: 7 de Agosto de 2006

Mensagens recentes

You probably have a AutoLogin hook that produces NullPointerException.
Ram A
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null
22 de Janeiro de 2013 01:10
Resposta

Ram A

Ranking: Junior Member

Mensagens: 76

Data de entrada: 16 de Janeiro de 2013

Mensagens recentes

Thanks Mika for the reply.

Yes i have a autologin hook in my application which was implemented using SSOFilter.

Please help me in which senario it is giving that error.


Thanks in advance
Ram
Ram A
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null
22 de Janeiro de 2013 06:12
Resposta

Ram A

Ranking: Junior Member

Mensagens: 76

Data de entrada: 16 de Janeiro de 2013

Mensagens recentes

Mika Koivisto:
You probably have a AutoLogin hook that produces NullPointerException.



Yes i have an autologin hook developed with SSOFilter.

when ever i am accessing home page in my application it is giving the following error.
AutoLoginFilter:231 Current URL /web/guest/ generates exception: null.

for example if i access any page say "sample page" then it is giving the following error in console.log.
15:03:35,856 ERROR [AutoLoginFilter:231] Current URL /sample-page generates exception: null
15:03:35,858 ERROR [AutoLoginFilter:231] Current URL /sample-page generates exception: null

Can anyone help me regarding this issue.


Thanks and Regards
Ram
Mika Koivisto
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null
22 de Janeiro de 2013 15:33
Resposta

Mika Koivisto

LIFERAY STAFF

Ranking: Liferay Legend

Mensagens: 1498

Data de entrada: 7 de Agosto de 2006

Mensagens recentes

You should run it in debugger to see where it throws the NullPointerException.
Ram A
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null
22 de Janeiro de 2013 23:58
Resposta

Ram A

Ranking: Junior Member

Mensagens: 76

Data de entrada: 16 de Janeiro de 2013

Mensagens recentes

Thanks Mika for the reply.

I am new to Liferay.Can you please let me know how to run the liferay application in debugger and
how to configure debugger in eclipse to debug my application using Liferay tomcat 6.0.6.

Thanks in advance
Ram
Ajeet Singh
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null
23 de Janeiro de 2013 00:12
Resposta

Ajeet Singh

Ranking: New Member

Mensagens: 13

Data de entrada: 27 de Março de 2012

Mensagens recentes

You need to see that, are you passing the userName and password properly or not in the auto login hook. If you can post the sample code then it may be easy to figure out.

Debugging is same like web application debugging. You have to set the debug points, deploy it and start the tomcat in debug mode.

Regards,
Ajeet Singh
Ram A
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null
23 de Janeiro de 2013 07:56
Resposta

Ram A

Ranking: Junior Member

Mensagens: 76

Data de entrada: 16 de Janeiro de 2013

Mensagens recentes

Thanks Ajeet for the reply.
I am returning the user credentials in Autologin hook as String array.
It was declared as String[] userdetails=null;

When we got the user details we are setting the user details as follows.
userdetails=new String[2];
userdetails[0] = username;
userdetails[1] = password;
When i tried print those before passing userdetails,It is printing the user details(user name and password) properly.
But it is throwing null pointer exception also.

So i changed String[] userdetails=null; to String[] userdetails=new String[2];.
Then it is not throwing null pointer exception.

Please help me whether this is correct or not.



Thanks in advance
Ram A
Mika Koivisto
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null
23 de Janeiro de 2013 11:52
Resposta

Mika Koivisto

LIFERAY STAFF

Ranking: Liferay Legend

Mensagens: 1498

Data de entrada: 7 de Agosto de 2006

Mensagens recentes

It's expecting 3 element String array where the last element is boolean whether the password is encrypted or not.
Ram A
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null
29 de Janeiro de 2013 23:55
Resposta

Ram A

Ranking: Junior Member

Mensagens: 76

Data de entrada: 16 de Janeiro de 2013

Mensagens recentes

Thanks Mika for reply.

Yes it is a 3 elements String array .i forgot to mention in the previous update.
3rd element in the String array is userdetails[2]= Boolean.TRUE.toString();.

so instead of String[] userdetails=null, we can initialize it as String[] userdetails=new String[3].

And Autologin hook (SSOFilter) is called3 times while authenticating the uses.Not sure why.

Please help me to solve this.


Thanks in advance
Ram
Ram A
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null
29 de Janeiro de 2013 23:01
Resposta

Ram A

Ranking: Junior Member

Mensagens: 76

Data de entrada: 16 de Janeiro de 2013

Mensagens recentes

Hi ,

when i tried to login to my application it is giving the below stacktrace.

07:58:14,067 ERROR [AutoLoginFilter:231] Current URL / generates exception: null
07:58:14,067 DEBUG [AutoLoginFilter:191] [http-80-2]=> com.liferay.portal.servlet.filters.autologin.AutoLoginFilter /c/portal/layout
07:58:14,145 DEBUG [AutoLoginFilter:207] [http-80-2]=< com.liferay.portal.servlet.filters.autologin.AutoLoginFilter /c/portal/layout 78 ms
07:58:14,161 DEBUG [AutoLoginFilter:207] [http-80-2]< com.liferay.portal.servlet.filters.autologin.AutoLoginFilter /web/guest/ 94 ms
07:58:17,661 DEBUG [AutoLoginFilter:78] class com.liferay.portal.servlet.filters.autologin.AutoLoginFilter is enabled
07:58:17,661 WARN [AutoLoginFilter:218] java.lang.NullPointerException
java.lang.NullPointerException
at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:184)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
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:196)
at com.liferay.portal.servlet.filters.sso.ntlm.NtlmFilter.processFilter(NtlmFilter.java:272)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
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:280)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
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:196)
at com.liferay.portal.servlet.filters.sso.ntlm.NtlmFilter.processFilter(NtlmFilter.java:272)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
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:196)
at com.liferay.portal.servlet.filters.absoluteredirects.AbsoluteRedirectsFilter.processFilter(AbsoluteRedirectsFilter.java:85)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
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:196)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
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:196)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)


Please help me to solve this..

Thanks in advance
Ram A
Ram A
AutoLoginFilter:231 Current URL /web/guest/ generates exception: null
30 de Janeiro de 2013 01:46
Resposta

Ram A

Ranking: Junior Member

Mensagens: 76

Data de entrada: 16 de Janeiro de 2013

Mensagens recentes

Hi ,

i have autologin hook and its 'portal-hook.properies' contains the property auto.login.hooks=com.sample.SSOFilter.

and my portal-ext.properties also contains the same property auto.login.hooks=com.sample.SSOFilter.

is the mentioned error is because of this configuration?

is this property needed in two places?

Please help me to solve this.




Thanks and Regards
Ram A
Siby Mathew
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null
30 de Janeiro de 2013 04:43
Resposta

Siby Mathew

Ranking: Expert

Mensagens: 259

Data de entrada: 4 de Março de 2011

Mensagens recentes

Hi Ram,
The NPE is caused because the auto.login.hooks property could not be read.

Solution :
Place the property only in one file inside the portlet/src folder and give the properties file name in the <portal-properties> tag inside liferay-hook.xml

Thanks,
Siby
Ram A
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null
30 de Janeiro de 2013 05:18
Resposta

Ram A

Ranking: Junior Member

Mensagens: 76

Data de entrada: 16 de Janeiro de 2013

Mensagens recentes

Siby Mathew:
Hi Ram,
The NPE is caused because the auto.login.hooks property could not be read.

Solution :
Place the property only in one file inside the portlet/src folder and give the properties file name in the <portal-properties> tag inside liferay-hook.xml

Thanks,
Siby



Thanks Siby for the reply.
This is my liferay-hook.xml
<hook>
<portal-properties>portal-hook.properties</portal-properties>
</hook>
Below is my portal-hook.properties
auto.login.hooks=com.sample.SSOFilter

And portal-ext.properties file contains the below property.
auto.login.hooks=com.sample.SSOFilter

so you mean deleting the above line from portal-ext.properties solves the problem.
Am i correct?

Thanks and Regards
Ram A
Siby Mathew
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null
30 de Janeiro de 2013 05:34
Resposta

Siby Mathew

Ranking: Expert

Mensagens: 259

Data de entrada: 4 de Março de 2011

Mensagens recentes

Yes..Please delete it from portal-ext.properties. You might need to restart the server.
Ram A
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null
30 de Janeiro de 2013 05:47
Resposta

Ram A

Ranking: Junior Member

Mensagens: 76

Data de entrada: 16 de Janeiro de 2013

Mensagens recentes

Thanks Siby for the help .

i will try this by deleting from portal-ext.properties.

so what i understood from this is portal-hook.properties file overrides that property from portal-ext.properties.
So when we tried to login to the application it is looking for the autologin class which is mentioned in portal-hook.properties.

But one small doubt.
when will the property from portal-ext.properties will be read?i mean on server startup or when user tries to login to the application.


can you please explain.


Thanks and Regards
Ram A
Siby Mathew
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null
30 de Janeiro de 2013 06:18
Resposta

Siby Mathew

Ranking: Expert

Mensagens: 259

Data de entrada: 4 de Março de 2011

Mensagens recentes

Hi Ram,
Actually all these properties are present inside portal.properties inside the liferay core.
You can add portal-ext.properties to the server folder for overriding these properties.

Some of these properties are hook-able. i.e It can be overridden using a hook.
So in your case, you are using a hook to override the property. Hence the property needs to be present only inside your hook.

Liferay reads the portal.properties and portal-ext.properties during server startup. (The latter overrides the former)
However, the hookable properties are overridden when you deploy your hook.

Thanks,
Siby
Ram A
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null
4 de Fevereiro de 2013 04:37
Resposta

Ram A

Ranking: Junior Member

Mensagens: 76

Data de entrada: 16 de Janeiro de 2013

Mensagens recentes

Thanks Siby for the help.

By commenting auto.login.hooks proeprty in portal_ext.properties file,teh error was gone.

now i am not getting the error regarding null.

Thanks and regards
Ram A
Siby Mathew
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null
4 de Fevereiro de 2013 04:52
Resposta

Siby Mathew

Ranking: Expert

Mensagens: 259

Data de entrada: 4 de Março de 2011

Mensagens recentes

Great !.. Please mark as answer and change title to RESOLVED
Ram A
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null
4 de Fevereiro de 2013 05:11
Resposta

Ram A

Ranking: Junior Member

Mensagens: 76

Data de entrada: 16 de Janeiro de 2013

Mensagens recentes

Siby Mathew:
Great !.. Please mark as answer and change title to RESOLVED



Hi Siby,
may i know how to mark as answer and change the title to RESOLVED.



regards
Ram A
Siby Mathew
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null
4 de Fevereiro de 2013 05:20
Resposta

Siby Mathew

Ranking: Expert

Mensagens: 259

Data de entrada: 4 de Março de 2011

Mensagens recentes

You can edit the title of your original post add "RESOLVED"
I think "Mark as an answer" option is present only if the post is marked as a question.

Thanks,
Siby
Archi Madhu
RE: AutoLoginFilter:231 Current URL /web/guest/ generates exception: null
27 de Agosto de 2013 22:55
Resposta

Archi Madhu

Ranking: Regular Member

Mensagens: 240

Data de entrada: 24 de Março de 2008

Mensagens recentes

Thanks everyone, it was helpful!