Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Unable to receive message through TCP channel CM Siau November 29, 2011 4:55 PM
RE: Unable to receive message through TCP channel Nagendra Kumar Busam November 29, 2011 10:49 PM
RE: Unable to receive message through TCP channel CM Siau November 30, 2011 12:14 AM
RE: Unable to receive message through TCP channel MANOVINAYAK AYYAPPAN November 30, 2011 1:07 AM
RE: Unable to receive message through TCP channel Nagendra Kumar Busam November 30, 2011 6:37 AM
RE: Unable to receive message through TCP channel CM Siau November 30, 2011 4:46 PM
RE: Unable to receive message through TCP channel Nagendra Kumar Busam November 30, 2011 11:37 PM
RE: Unable to receive message through TCP channel MANOVINAYAK AYYAPPAN November 30, 2011 11:40 PM
RE: Unable to receive message through TCP channel Nagendra Kumar Busam November 30, 2011 11:44 PM
RE: Unable to receive message through TCP channel MANOVINAYAK AYYAPPAN November 30, 2011 11:59 PM
RE: Unable to receive message through TCP channel Nagendra Kumar Busam December 1, 2011 12:11 AM
RE: Unable to receive message through TCP channel MANOVINAYAK AYYAPPAN December 1, 2011 12:22 AM
RE: Unable to receive message through TCP channel Nagendra Kumar Busam December 1, 2011 12:29 AM
RE: Unable to receive message through TCP channel MANOVINAYAK AYYAPPAN December 1, 2011 12:33 AM
RE: Unable to receive message through TCP channel Nagendra Kumar Busam December 1, 2011 4:00 AM
RE: Unable to receive message through TCP channel MANOVINAYAK AYYAPPAN December 1, 2011 6:27 PM
RE: Unable to receive message through TCP channel Nagendra Kumar Busam December 2, 2011 2:47 AM
RE: Unable to receive message through TCP channel MANOVINAYAK AYYAPPAN December 6, 2011 6:40 AM
RE: Unable to receive message through TCP channel Nagendra Kumar Busam December 10, 2011 3:58 AM
RE: Unable to receive message through TCP channel MANOVINAYAK AYYAPPAN December 11, 2011 6:02 AM
RE: Unable to receive message through TCP channel Nagendra Kumar Busam December 11, 2011 10:03 AM
RE: Unable to receive message through TCP channel Vassilis Petropoulos June 21, 2012 3:42 AM
RE: Unable to receive message through TCP channel maneshi tuli April 11, 2013 8:24 AM
CM Siau
Unable to receive message through TCP channel
November 29, 2011 4:55 PM
Answer

CM Siau

Rank: New Member

Posts: 12

Join Date: November 16, 2011

Recent Posts

This error has always appear in tomcat catalina.out, not sure what is the cause. Anyone care to help ? Thank you.

Nov 29, 2011 8:47:00 AM org.apache.catalina.ha.session.DeltaManager messageReceived
SEVERE: Manager [localhost#]: Unable to receive message through TCP channel
java.lang.ClassNotFoundException: com.model.impl.UserStatsImpl
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:603)
at org.apache.catalina.tribes.io.ReplicationStream.resolveClass(ReplicationStream.java:78)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
at org.apache.catalina.ha.session.DeltaRequest$AttributeInfo.readExternal(DeltaRequest.java:361)
at org.apache.catalina.ha.session.DeltaRequest.readExternal(DeltaRequest.java:255)
at org.apache.catalina.ha.session.DeltaManager.deserializeDeltaRequest(DeltaManager.java:697)
at org.apache.catalina.ha.session.DeltaManager.handleSESSION_DELTA(DeltaManager.java:1509)
at org.apache.catalina.ha.session.DeltaManager.messageReceived(DeltaManager.java:1460)
at org.apache.catalina.ha.session.DeltaManager.messageDataReceived(DeltaManager.java:1173)
at org.apache.catalina.ha.session.ClusterSessionListener.messageReceived(ClusterSessionListener.java:92)
at org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpCluster.java:901)
at org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpCluster.java:882)
at org.apache.catalina.tribes.group.GroupChannel.messageReceived(GroupChannel.java:269)
at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:79)
at org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.messageReceived(TcpFailureDetector.java:110)
at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:79)
at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:79)
at org.apache.catalina.tribes.group.interceptors.ThroughputInterceptor.messageReceived(ThroughputInterceptor.java:86)
Nagendra Kumar Busam
RE: Unable to receive message through TCP channel
November 29, 2011 10:49 PM
Answer

Nagendra Kumar Busam

Rank: Liferay Master

Posts: 638

Join Date: July 7, 2009

Recent Posts

Does the server is in clustered environment?

java.lang.ClassNotFoundException: com.model.impl.UserStatsImpl


I hope this is your custom class, some how it is missing in class path it seems
CM Siau
RE: Unable to receive message through TCP channel
November 30, 2011 12:14 AM
Answer

CM Siau

Rank: New Member

Posts: 12

Join Date: November 16, 2011

Recent Posts

Nagendra Kumar Busam:
Does the server is in clustered environment?

java.lang.ClassNotFoundException: com.model.impl.UserStatsImpl


I hope this is your custom class, some how it is missing in class path it seems


Yes, server in cluster environment and is custom class.
MANOVINAYAK AYYAPPAN
RE: Unable to receive message through TCP channel
November 30, 2011 1:07 AM
Answer

MANOVINAYAK AYYAPPAN

Rank: Regular Member

Posts: 132

Join Date: June 13, 2011

Recent Posts

Hi Nagendra,

Thanks a lot for helping out, I am also involved in this issue, as I work with Siau emoticon. So let me join this postemoticon.

I would like to explain to you about the situation.

The situation:

I had to record the User Login and Logout time. And I use this custom class called "UserStats" capture the User Login and Logout Time.

So when the User Logs in I store the User's Login time in UserStats Object (persisted to DB- A record will be created for the Login) and then store it in the HTTP Session. Then Later when the user logs out or if the session expires, the time of logout or session expiry will be noted and the UserStats Object will be retrieved from the session and then will be used to Update the corresponding record in the UserStats table in DB. The UserStats Object will be cleared or nullified.

The Problem
Whenever there is a TCP channel Error we get this ClassNOTFoundException. We have a similar portlet that uses Portlet Session to store an Object and even for that portlet we get the error ClassNotFoundException.

We have two servers in cluster.

Hope I have made the situation clear.

Please give us some insights on this.


Thanks and Regards,
Mano
Nagendra Kumar Busam
RE: Unable to receive message through TCP channel
November 30, 2011 6:37 AM
Answer

Nagendra Kumar Busam

Rank: Liferay Master

Posts: 638

Join Date: July 7, 2009

Recent Posts

What was the Liferay version you are using?
CM Siau
RE: Unable to receive message through TCP channel
November 30, 2011 4:46 PM
Answer

CM Siau

Rank: New Member

Posts: 12

Join Date: November 16, 2011

Recent Posts

liferay 6
Nagendra Kumar Busam
RE: Unable to receive message through TCP channel
November 30, 2011 11:37 PM
Answer

Nagendra Kumar Busam

Rank: Liferay Master

Posts: 638

Join Date: July 7, 2009

Recent Posts

For TCP channel Error you have to investigate more from the lines of clustering i hope.

For each user at most you will be a having one record in UserStats table right?
MANOVINAYAK AYYAPPAN
RE: Unable to receive message through TCP channel
November 30, 2011 11:40 PM
Answer

MANOVINAYAK AYYAPPAN

Rank: Regular Member

Posts: 132

Join Date: June 13, 2011

Recent Posts

Hi Nagendra,

Yes you are right, we will have a record in userStats table whenever a user logs into the application.


Regards,
Mano
Nagendra Kumar Busam
RE: Unable to receive message through TCP channel
November 30, 2011 11:44 PM
Answer

Nagendra Kumar Busam

Rank: Liferay Master

Posts: 638

Join Date: July 7, 2009

Recent Posts

Does one user is going to have multiple records?
MANOVINAYAK AYYAPPAN
RE: Unable to receive message through TCP channel
November 30, 2011 11:59 PM
Answer

MANOVINAYAK AYYAPPAN

Rank: Regular Member

Posts: 132

Join Date: June 13, 2011

Recent Posts

Yes, the UserStats table is an Audit table. So every time when the user logs in, there will be a record inserted into the UserStats table.

Regards,
Mano
Nagendra Kumar Busam
RE: Unable to receive message through TCP channel
December 1, 2011 12:11 AM
Answer

Nagendra Kumar Busam

Rank: Liferay Master

Posts: 638

Join Date: July 7, 2009

Recent Posts

Are you able to do auditing what you are expecting properly?
MANOVINAYAK AYYAPPAN
RE: Unable to receive message through TCP channel
December 1, 2011 12:22 AM
Answer

MANOVINAYAK AYYAPPAN

Rank: Regular Member

Posts: 132

Join Date: June 13, 2011

Recent Posts

Yes we are able to pull audit data without any issue.

But just that whenever this TCP channel error comes there is a classNotFound exception thrown for the UserStats class.

The UserStats Class is in set in HttpSession and there is one more class GroupImpl which was set in portlet Session in one of our portlets. We get the ClassNotFoundExpception for GroupImpl.

Our Catalina logs are filled with such exceptions.

Regards,
Mano
Nagendra Kumar Busam
RE: Unable to receive message through TCP channel
December 1, 2011 12:29 AM
Answer

Nagendra Kumar Busam

Rank: Liferay Master

Posts: 638

Join Date: July 7, 2009

Recent Posts

Are you storing those objects @ application scope
MANOVINAYAK AYYAPPAN
RE: Unable to receive message through TCP channel
December 1, 2011 12:33 AM
Answer

MANOVINAYAK AYYAPPAN

Rank: Regular Member

Posts: 132

Join Date: June 13, 2011

Recent Posts

Yes UserStats Object is in Application Scope and the GroupImpl is in Portlet Scope.
Nagendra Kumar Busam
RE: Unable to receive message through TCP channel
December 1, 2011 4:00 AM
Answer

Nagendra Kumar Busam

Rank: Liferay Master

Posts: 638

Join Date: July 7, 2009

Recent Posts

Do you have problem with those objects in you local (non-clustered env)
MANOVINAYAK AYYAPPAN
RE: Unable to receive message through TCP channel
December 1, 2011 6:27 PM
Answer

MANOVINAYAK AYYAPPAN

Rank: Regular Member

Posts: 132

Join Date: June 13, 2011

Recent Posts

We did not have any such problem in our Local Standalone Server.
Nagendra Kumar Busam
RE: Unable to receive message through TCP channel
December 2, 2011 2:47 AM
Answer

Nagendra Kumar Busam

Rank: Liferay Master

Posts: 638

Join Date: July 7, 2009

Recent Posts

Can you check this, HTH

http://www.mail-archive.com/users@tomcat.apache.org/msg33016.html
MANOVINAYAK AYYAPPAN
RE: Unable to receive message through TCP channel
December 6, 2011 6:40 AM
Answer

MANOVINAYAK AYYAPPAN

Rank: Regular Member

Posts: 132

Join Date: June 13, 2011

Recent Posts

Hi Nagendra,

Sorry for the delay in replying.
Thanks a lot emoticon.
We have started looking itemoticon now. We will update our analysis soon emoticon .

Regards,
Mano
Nagendra Kumar Busam
RE: Unable to receive message through TCP channel
December 10, 2011 3:58 AM
Answer

Nagendra Kumar Busam

Rank: Liferay Master

Posts: 638

Join Date: July 7, 2009

Recent Posts

Please do share if you got any solution for the issue
MANOVINAYAK AYYAPPAN
RE: Unable to receive message through TCP channel
December 11, 2011 6:02 AM
Answer

MANOVINAYAK AYYAPPAN

Rank: Regular Member

Posts: 132

Join Date: June 13, 2011

Recent Posts

Hi Nagendra,

We are currently facing some challenge in terms of trying out changes to App Server in Clustered environment.
We have'nt done clustering in our Test Environmentemoticon, we only have it in productionemoticon

We will update you soon as soon as we find the solutionemoticon.

One again thanks a lot for taking interest and helping outemoticon.


Thanks and Regards,
Mano
Nagendra Kumar Busam
RE: Unable to receive message through TCP channel
December 11, 2011 10:03 AM
Answer

Nagendra Kumar Busam

Rank: Liferay Master

Posts: 638

Join Date: July 7, 2009

Recent Posts

Hi Mano,

It is not always good idea to go with production directly. You should have atleast UAT/Staging enviroment before prod environment(even though it depends on size of the portal). It's just a suggestion, every thing is related to money in one or other way when it comes to UAT/Staging systems (If you are using EE edition)\
\
Thaanks,
- Nagendra Kumar
Vassilis Petropoulos
RE: Unable to receive message through TCP channel
June 21, 2012 3:42 AM
Answer

Vassilis Petropoulos

Rank: Junior Member

Posts: 26

Join Date: April 10, 2012

Recent Posts

Hi,

i am facing the same problems. Trying to put any class into session, leads to:
org.apache.catalina.ha.session.DeltaManager messageReceived
SEVERE: Manager [localhost#]: Unable to receive message through TCP channel
java.lang.ClassNotFoundException: a.b.c.MyClass

Regards,
Vassilis
maneshi tuli
RE: Unable to receive message through TCP channel
April 11, 2013 8:24 AM
Answer

maneshi tuli

Rank: New Member

Posts: 1

Join Date: July 22, 2012

Recent Posts

We are also facing the same problem. Does anyone able to resolve this?