Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Hiran Chaudhuri
Current URL ... generates exception: null
August 24, 2011 7:16 AM
Answer

Hiran Chaudhuri

Rank: Regular Member

Posts: 174

Join Date: September 1, 2010

Recent Posts

From time to time I see such messages in my logfiles:
server.log:2011-08-22 14:10:37,723 32435379 INFO [com.liferay.portal.util.PortalImpl] (ajp-0.0.0.0-8009-20emoticon Current URL /farmdescriptor generates exception: null
The URL itself varies, and it seems like totally independent installations of both Liferay 6.0.5 and 6.0.6 show this behaviour.

Users report it happens in various places, so I cannot make out a pattern.

Now where does this error come from, and how do you get it fixed?
Hitoshi Ozawa
RE: Current URL ... generates exception: null
August 25, 2011 8:25 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

Do you have Apache in front of your Liferay. Which application server are you using?

If it's not always happening and doesn't have any pattern to occurrence, we're more at
a loss than you are because we can't see what's happening.

Have you checked logs on your other servers to find if there is any events when the
errors are occurring?
Hiran Chaudhuri
RE: Current URL ... generates exception: null
August 27, 2011 3:15 PM
Answer

Hiran Chaudhuri

Rank: Regular Member

Posts: 174

Join Date: September 1, 2010

Recent Posts

Hitoshi Ozawa:
Do you have Apache in front of your Liferay. Which application server are you using?

If it's not always happening and doesn't have any pattern to occurrence, we're more at
a loss than you are because we can't see what's happening.

Have you checked logs on your other servers to find if there is any events when the
errors are occurring?

Hello, Hitoshi.

In one installation I have Apache in front of Liferay 6.0.5, in another I have just a firewall with port forwarding in front of a Liferay 6.0.6. Both installations are actually the Liferay JBoss bundles. Both logfiles do not really show what is going on - or at least I do not know what I could relate.

My theory so far is: The code indicating the exception does not show the stack trace, therefore it could be anywhere in Liferay. Maybe I will try to build Liferay from source myself and modify the class that reports the event.
However as the browser shows this null value in its URL, most probably something else went wrong and sent out that malicious redirect, which then has to fail as behind that "null" URL nothing can be found. Now if I could track back from where the user was coming or what was the last action I might probably get closer to the cause.

Meanwhile a user reported to me that it is not just random. He can repeat the procedure and gets the wrong result reliably.
It is whenever he tries to use the "Post new Thread" button within an open message board thread and then wants to publish the new post. Interestingly this operation works fine when I try it with my user account, and it also works if I try it while impersonating that user. Is there a chance it is not only connected to the user but also to the fact he is coming from the official port (not the forwarded one)?
Hitoshi Ozawa
RE: Current URL ... generates exception: null
August 28, 2011 5:54 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

Well, I have Apache + mod_jk + JBoss/Liferay + MySQL setup and not having any problem so it may be your configuration. However, network, Apache,
JBoss configurations are something beyond topics in Liferay forums.

If your user is repeatly getting it, it may be the web browser version/revision. Try testing with the web browser the user who is getting the problem is using.
Juan Gonzalez
RE: Current URL ... generates exception: null
August 28, 2011 7:18 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1852

Join Date: October 28, 2008

Recent Posts

Hiran Chaudhuri:
From time to time I see such messages in my logfiles:
server.log:2011-08-22 14:10:37,723 32435379 INFO [com.liferay.portal.util.PortalImpl] (ajp-0.0.0.0-8009-20emoticon Current URL /farmdescriptor generates exception: null
The URL itself varies, and it seems like totally independent installations of both Liferay 6.0.5 and 6.0.6 show this behaviour.

Users report it happens in various places, so I cannot make out a pattern.

Now where does this error come from, and how do you get it fixed?


I remember this problem is related to Liferay load balancer configuration.

Please search for web.server.* and redirect.url.* properties and configure them properly.
Hiran Chaudhuri
RE: Current URL ... generates exception: null
August 29, 2011 2:16 PM
Answer

Hiran Chaudhuri

Rank: Regular Member

Posts: 174

Join Date: September 1, 2010

Recent Posts

Juan Gonzalez P:
I remember this problem is related to Liferay load balancer configuration.

Please search for web.server.* and redirect.url.* properties and configure them properly.

Thank you for that suggestion, Juan. I checked those properties which were not yet set.

With proper values, the site behaves a bit different. Now I have to check with users if it helped.
Hiran Chaudhuri
RE: Current URL ... generates exception: null
August 30, 2011 2:25 PM
Answer

Hiran Chaudhuri

Rank: Regular Member

Posts: 174

Join Date: September 1, 2010

Recent Posts

Users report the strange behaviour is gone. Thanks again! :-)
Juan Gonzalez
RE: Current URL ... generates exception: null
August 31, 2011 12:05 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1852

Join Date: October 28, 2008

Recent Posts

Hiran Chaudhuri:
Users report the strange behaviour is gone. Thanks again! :-)


Glad it worked! emoticon
Sanket Gosavi
RE: Current URL ... generates exception: null
March 7, 2012 5:14 AM
Answer

Sanket Gosavi

Rank: Junior Member

Posts: 35

Join Date: December 24, 2011

Recent Posts

will u plzzz elaborate m having same problem...........
Mudasar Kalwar
RE: Current URL ... generates exception: null
September 14, 2012 6:23 AM
Answer

Mudasar Kalwar

Rank: New Member

Posts: 23

Join Date: September 13, 2012

Recent Posts

Hi , every one I just successfully migrated from liferay 5.2.3 to liferay 6.0.6 , but there is a one issue I can't login with any user like I had created admin in liferay 5 and it exists but it can't login. any suggestions ?
here is the error trace:
12:44:57,803 INFO [PortalImpl:3829] Current URL /image/image_gallery?uuid=f718eebc-a933-429a-bfb5-44c89af3a037&groupid=14&t=1325834593850 generates exception: No default image exists for 0
12:45:13,022 INFO [PortalImpl:3829] Current URL /image/image_gallery?uuid=f718eebc-a933-429a-bfb5-44c89af3a037&groupid=14&t=1325834593850 generates exception: No default image exists for 0
12:46:07,336 INFO [PortalImpl:3829] Current URL /image/image_gallery?uuid=f718eebc-a933-429a-bfb5-44c89af3a037&groupid=14&t=1325834593850 generates exception: No default image exists for 0
12:46:42,048 INFO [PortalImpl:3829] Current URL /web/control_panel?doAsGroupId=14&refererPlid=24304 generates exception: {groupId=10116,privateLayout=false} does not have any layouts
12:46:42,048 INFO [PortalImpl:3841] {groupId=10116,privateLayout=false} does not have any layouts
12:46:56,726 INFO [PortalImpl:3829] Current URL /web/guest/control_panel?doAsGroupId=14&refererPlid=24304 generates exception: null
12:46:56,727 INFO [PortalImpl:3841]
12:47:05,687 INFO [PortalImpl:3829] Current URL /group/17/control_panel?doAsGroupId=14&refererPlid=24304 generates exception: null
12:47:05,688 INFO [PortalImpl:3841]
12:48:50,585 INFO [PortalImpl:3829] Current URL /image/image_gallery?uuid=f718eebc-a933-429a-bfb5-44c89af3a037&groupid=14&t=1325834593850 generates exception: No default image exists for 0


when I add the password it shows error like "You have entered invalid data. Please try again ." and "Authentication failed. Please try again. "

Thanks
Juan Gonzalez
RE: Current URL ... generates exception: null
September 14, 2012 11:17 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1852

Join Date: October 28, 2008

Recent Posts

Perhaps a problem with your indexes, database, or Liferay Files. Double check that you set up properly your portal-ext.properties pointing to the right paths.
Mudasar Kalwar
RE: Current URL ... generates exception: null
September 14, 2012 11:38 PM
Answer

Mudasar Kalwar

Rank: New Member

Posts: 23

Join Date: September 13, 2012

Recent Posts

Juan Gonzalez P:
Perhaps a problem with your indexes, database, or Liferay Files. Double check that you set up properly your portal-ext.properties pointing to the right paths.


Thanks for the reply Juan , I have checked my portal-ext.properties file it has nothing just the info to the database and database is connecting. and I used the default database come with the liferay 6.0.6 but that doesn't work too. emoticon and unable to login.

Thanks
Juan Gonzalez
RE: Current URL ... generates exception: null
September 15, 2012 1:36 AM
Answer

Juan Gonzalez

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1852

Join Date: October 28, 2008

Recent Posts

Can you see what users are in Liferay tables? Seems something went wrong with your upgrade and/or your data didn't upgraded propery. Perhaps you should repeat the process and see in logs if anything was wrong...
Mudasar Kalwar
RE: Current URL ... generates exception: null
September 17, 2012 1:49 AM
Answer

Mudasar Kalwar

Rank: New Member

Posts: 23

Join Date: September 13, 2012

Recent Posts

Juan Gonzalez P:
Can you see what users are in Liferay tables? Seems something went wrong with your upgrade and/or your data didn't upgraded propery. Perhaps you should repeat the process and see in logs if anything was wrong...



Thanks for the reply Juan, I have checked the users in the database, but there is something else that causing error, let me debug it, and find out the root cause.

Thanks
Mudasar Kalwar
RE: Current URL ... generates exception: null
November 11, 2012 9:33 PM
Answer

Mudasar Kalwar

Rank: New Member

Posts: 23

Join Date: September 13, 2012

Recent Posts

There were encryption problem.