Load Balacing two OFBiz servers using Apache Http server

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Load Balacing two OFBiz servers using Apache Http server

Neha Mehta
Hi,

When i shut down first server and browser session is continued by the
second server, an exception comes on the second server which is as below :
 

2009-10-29 12:06:49,971 (pool-2-thread-6) [ DeltaManager.java:1329:ERROR]
Manager [/ordermgr]: Unable to receive message through TCP channel
java.io.InvalidClassException: org.ofbiz.order.shoppingcart.ShoppingCart;
local class incompatible: stream classdesc serialVersionUID =
326289553356146708, local class serialVersionUID = -202274068516513625
        at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
        at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
        at java.io.ObjectInputStream.readClassDesc(Unknown Source)
        at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
        at java.io.ObjectInputStream.readClassDesc(Unknown Source)
        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
        at java.io.ObjectInputStream.readObject0(Unknown Source)
        at java.io.ObjectInputStream.readObject(Unknown Source)
        at javolution.util.FastMap.readObject(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
        at java.io.ObjectInputStream.readSerialData(Unknown Source)
        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
        at java.io.ObjectInputStream.readObject0(Unknown Source)
        at java.io.ObjectInputStream.readObject(Unknown Source)
        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:619)
        at
org.apache.catalina.ha.session.DeltaManager.handleSESSION_DELTA(DeltaManager.java:1363)
        at
org.apache.catalina.ha.session.DeltaManager.messageReceived(DeltaManager.java:1320)
        at
org.apache.catalina.ha.session.DeltaManager.messageDataReceived(DeltaManager.java:1083)
        at
org.apache.catalina.ha.session.ClusterSessionListener.messageReceived(ClusterSessionListener.java:87)
        at
org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpCluster.java:899)
        at
org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpCluster.java:880)
        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.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.ChannelCoordinator.messageReceived(ChannelCoordinator.java:241)
        at
org.apache.catalina.tribes.transport.ReceiverBase.messageDataReceived(ReceiverBase.java:225)
        at
org.apache.catalina.tribes.transport.nio.NioReplicationTask.drainChannel(NioReplicationTask.java:188)
        at
org.apache.catalina.tribes.transport.nio.NioReplicationTask.run(NioReplicationTask.java:91)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
Source)
        at java.lang.Thread.run(Unknown Source)

I am not able to get the reason for the exception. Kindly help me to get
the solution.


Thanks & Regards,
Neha Mehta


______________________________________________________________________
Reply | Threaded
Open this post in threaded view
|

Re: Load Balacing two OFBiz servers using Apache Http server

Jacques Le Roux
Administrator
But did you look into FAQ ?

Jacques

From: <[hidden email]>

> Hi,
>
> When i shut down first server and browser session is continued by the
> second server, an exception comes on the second server which is as below :
>
>
> 2009-10-29 12:06:49,971 (pool-2-thread-6) [ DeltaManager.java:1329:ERROR]
> Manager [/ordermgr]: Unable to receive message through TCP channel
> java.io.InvalidClassException: org.ofbiz.order.shoppingcart.ShoppingCart;
> local class incompatible: stream classdesc serialVersionUID =
> 326289553356146708, local class serialVersionUID = -202274068516513625
>        at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
>        at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
>        at java.io.ObjectInputStream.readClassDesc(Unknown Source)
>        at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
>        at java.io.ObjectInputStream.readClassDesc(Unknown Source)
>        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
>        at java.io.ObjectInputStream.readObject0(Unknown Source)
>        at java.io.ObjectInputStream.readObject(Unknown Source)
>        at javolution.util.FastMap.readObject(Unknown Source)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>        at java.lang.reflect.Method.invoke(Unknown Source)
>        at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
>        at java.io.ObjectInputStream.readSerialData(Unknown Source)
>        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
>        at java.io.ObjectInputStream.readObject0(Unknown Source)
>        at java.io.ObjectInputStream.readObject(Unknown Source)
>        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:619)
>        at
> org.apache.catalina.ha.session.DeltaManager.handleSESSION_DELTA(DeltaManager.java:1363)
>        at
> org.apache.catalina.ha.session.DeltaManager.messageReceived(DeltaManager.java:1320)
>        at
> org.apache.catalina.ha.session.DeltaManager.messageDataReceived(DeltaManager.java:1083)
>        at
> org.apache.catalina.ha.session.ClusterSessionListener.messageReceived(ClusterSessionListener.java:87)
>        at
> org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpCluster.java:899)
>        at
> org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpCluster.java:880)
>        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.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.ChannelCoordinator.messageReceived(ChannelCoordinator.java:241)
>        at
> org.apache.catalina.tribes.transport.ReceiverBase.messageDataReceived(ReceiverBase.java:225)
>        at
> org.apache.catalina.tribes.transport.nio.NioReplicationTask.drainChannel(NioReplicationTask.java:188)
>        at
> org.apache.catalina.tribes.transport.nio.NioReplicationTask.run(NioReplicationTask.java:91)
>        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
> Source)
>        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
> Source)
>        at java.lang.Thread.run(Unknown Source)
>
> I am not able to get the reason for the exception. Kindly help me to get
> the solution.
>
>
> Thanks & Regards,
> Neha Mehta
>
>
> ______________________________________________________________________

Reply | Threaded
Open this post in threaded view
|

Re: Load Balacing two OFBiz servers using Apache Http server

Jacques Le Roux
Administrator
Oops, sorry : forget this message, wrong thread :(

Jacques

From: "Jacques Le Roux" <[hidden email]>

> But did you look into FAQ ?
>
> Jacques
>
> From: <[hidden email]>
>> Hi,
>>
>> When i shut down first server and browser session is continued by the
>> second server, an exception comes on the second server which is as below :
>>
>>
>> 2009-10-29 12:06:49,971 (pool-2-thread-6) [ DeltaManager.java:1329:ERROR]
>> Manager [/ordermgr]: Unable to receive message through TCP channel
>> java.io.InvalidClassException: org.ofbiz.order.shoppingcart.ShoppingCart;
>> local class incompatible: stream classdesc serialVersionUID =
>> 326289553356146708, local class serialVersionUID = -202274068516513625
>>        at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
>>        at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
>>        at java.io.ObjectInputStream.readClassDesc(Unknown Source)
>>        at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
>>        at java.io.ObjectInputStream.readClassDesc(Unknown Source)
>>        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
>>        at java.io.ObjectInputStream.readObject0(Unknown Source)
>>        at java.io.ObjectInputStream.readObject(Unknown Source)
>>        at javolution.util.FastMap.readObject(Unknown Source)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>        at java.lang.reflect.Method.invoke(Unknown Source)
>>        at java.io.ObjectStreamClass.invokeReadObject(Unknown Source)
>>        at java.io.ObjectInputStream.readSerialData(Unknown Source)
>>        at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
>>        at java.io.ObjectInputStream.readObject0(Unknown Source)
>>        at java.io.ObjectInputStream.readObject(Unknown Source)
>>        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:619)
>>        at
>> org.apache.catalina.ha.session.DeltaManager.handleSESSION_DELTA(DeltaManager.java:1363)
>>        at
>> org.apache.catalina.ha.session.DeltaManager.messageReceived(DeltaManager.java:1320)
>>        at
>> org.apache.catalina.ha.session.DeltaManager.messageDataReceived(DeltaManager.java:1083)
>>        at
>> org.apache.catalina.ha.session.ClusterSessionListener.messageReceived(ClusterSessionListener.java:87)
>>        at
>> org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpCluster.java:899)
>>        at
>> org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpCluster.java:880)
>>        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.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.ChannelCoordinator.messageReceived(ChannelCoordinator.java:241)
>>        at
>> org.apache.catalina.tribes.transport.ReceiverBase.messageDataReceived(ReceiverBase.java:225)
>>        at
>> org.apache.catalina.tribes.transport.nio.NioReplicationTask.drainChannel(NioReplicationTask.java:188)
>>        at
>> org.apache.catalina.tribes.transport.nio.NioReplicationTask.run(NioReplicationTask.java:91)
>>        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
>> Source)
>>        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown
>> Source)
>>        at java.lang.Thread.run(Unknown Source)
>>
>> I am not able to get the reason for the exception. Kindly help me to get
>> the solution.
>>
>>
>> Thanks & Regards,
>> Neha Mehta
>>
>>
>> ______________________________________________________________________
>