Hi Sivaram,

I had something similar but it nolonger works in 5.0.30-beta ... it seems to need to be in a format like below. This at least tries to start even if it NPEs.

<Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
                useDirtyFlag="true"
                debug="10"
serviceclass="org.apache.catalina.cluster.mcast.McastService"
                mcastAddr="239.192.42.4"
                mcastPort="45564"
                mcastFrequency="500"
                mcastDropTime="3000"
                tcpThreadCount="6"
                tcpListenAddress="auto"
                tcpListenPort="4001"
                tcpSelectorTimeout="100"
                printToScreen="false"
                expireSessionsOnShutdown="false"/>

       <Valve className="org.apache.catalina.cluster.tcp.ReplicationValve"
              filter=".*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;"/>

PJ

Sivaram Kumar wrote:

Hi peter,
 for you information this is my cluster code.it working fine for me.

<Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"

managerClassName="org.apache.catalina.cluster.session.DeltaManager"
                expireSessionsOnShutdown="false"
                useDirtyFlag="true">

           <Membership
               className="org.apache.catalina.cluster.mcast.McastService"
               mcastAddr="228.0.0.4"
               mcastPort="45564"
               mcastFrequency="500"
               mcastDropTime="3000"/>

           <Receiver

className="org.apache.catalina.cluster.tcp.ReplicationListener"
               tcpListenAddress="auto"
               tcpListenPort="4001"
               tcpSelectorTimeout="100"
               tcpThreadCount="6"/>

           <Sender

className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
               replicationMode="pooled"/>

           <Valve
className="org.apache.catalina.cluster.tcp.ReplicationValve"

filter=".*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;"/>
</Cluster>



----- Original Message -----
From: "Peter Johnson" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Monday, July 11, 2005 3:02 PM
Subject: NPE on cluster start


Hi All,

I am getting an NPE on cluster start with 5.0.30-beta .... any ideas?

ERROR main org.apache.catalina.cluster.tcp.SimpleTcpCluster - Unable to
start cluster.
java.lang.NullPointerException
       at

org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:160)
       at

org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:114)
       at

org.apache.catalina.cluster.tcp.SimpleTcpCluster.start(SimpleTcpCluster.java
:406)
       at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1073)
       at
org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
       at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
       at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
       at
org.apache.catalina.core.StandardService.start(StandardService.java:480)
       at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
       at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
       at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
       at java.lang.reflect.Method.invoke(Method.java:324)
       at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
ERROR main org.apache.catalina.startup.Catalina - Catalina.start:
LifecycleException:  java.lang.NullPointerException
       at

org.apache.catalina.cluster.tcp.SimpleTcpCluster.start(SimpleTcpCluster.java
:433)
       at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1073)
       at
org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
       at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
       at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
       at
org.apache.catalina.core.StandardService.start(StandardService.java:480)
       at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
       at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
       at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
       at java.lang.reflect.Method.invoke(Method.java:324)
       at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)


Thanks in advance,
PJ

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to