[JBossCache] - Re: Error starting cache with TCP and TCPPING
by urisherman
anonymous wrote : If you have the full stack trace, JGroups should spit out the reason why you cannot create the stack.
That's what you'd think, but no..... all I got was that error message I posted.
Anyway, I realized the distro's version I downloaded might be incompatible with the one jbosscache uses, so I downloaded an earlier JGroups distro and now it's starting up properly.
This is my configuration now -
anonymous wrote :
| <TCP start_port="7050" loopback="true"
| send_buf_size="100000" recv_buf_size="200000" />
| <TCPPING timeout="3000" initial_hosts="10.106.124.240[7050],10.106.124.239[7050]"
| port_range="3" num_initial_members="2" />
| <FD timeout="2000" max_tries="4" />
| <VERIFY_SUSPECT timeout="1500" down_thread="false"
| up_thread="false" />
| <pbcast.NAKACK gc_lag="100"
| retransmit_timeout="600,1200,2400,4800" />
| <pbcast.STABLE stability_delay="1000"
| desired_avg_gossip="20000" down_thread="false" max_bytes="0"
| up_thread="false" />
| <VIEW_SYNC avg_send_interval="60000" down_thread="false"
| up_thread="false" />
| <pbcast.GMS print_local_addr="true" join_timeout="5000"
| join_retry_timeout="2000" shun="true" />
| <pbcast.STATE_TRANSFER down_thread="true"
| up_thread="true"/>
|
But I got a new problem -
The first machine starts up just fine, I then add a node to the tree and start the second machine, which fails to retrieve the initial state -
org.jboss.cache.CacheException: Initial state transfer failed: Channel.getState() returned false
at org.jboss.cache.TreeCache.fetchStateOnStartup()V(TreeCache.java:3191)
at org.jboss.cache.TreeCache.startService()V(TreeCache.java:1429)
at org.jboss.cache.example.j2eeservices.JBossCacheManager.main([Ljava.lang.String;)V(JBossCacheManager.java:75)
at jrockit.reflect.NativeMethodInvoker.invoke0(Ljava.lang.Object;ILjava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
at weblogic.t3.srvr.StartupClassService.invokeMain(Ljava.lang.String;Ljava.lang.Class;Ljava.lang.String;)V(StartupClassService.java:229)
at weblogic.t3.srvr.StartupClassService.invokeClass(Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)V(StartupClassService.java:160)
at weblogic.t3.srvr.StartupClassService.access$000(Lweblogic.t3.srvr.StartupClassService;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)V(StartupClassService.java:36)
at weblogic.t3.srvr.StartupClassService$1.run()Ljava.lang.Object;(StartupClassService.java:121)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(SecurityManager.java:118)
at weblogic.t3.srvr.StartupClassService.invokeStartupClass(Lweblogic.management.configuration.StartupClassMBean;)V(StartupClassService.java:116)
at weblogic.t3.srvr.StartupClassService.initialize()V(StartupClassService.java:60)
at weblogic.t3.srvr.SubsystemManager.initialize()V(SubsystemManager.java:118)
at weblogic.t3.srvr.T3Srvr.initializeHere()V(T3Srvr.java:895)
at weblogic.t3.srvr.T3Srvr.initialize()V(T3Srvr.java:670)
at weblogic.t3.srvr.T3Srvr.run([Ljava.lang.String;)I(T3Srvr.java:344)
at weblogic.Server.main([Ljava.lang.String;)V(Server.java:32)
I tried the solution suggested at the troubleshooting section, that the state might be taking longer to retrieve than configured as "InitialStateRetrievalTimeout", but that wasn't it, I gave it 50000 millis and it fails after less than 3 seconds, so it obviously has nothing to do with the timeout.....
Any ideas?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3988611#3988611
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3988611
19Â years, 5Â months
[JBossCache] - Re: Error starting cache with TCP and TCPPING
by urisherman
Hi,
I got tcp.xml from JGroups distros, this is my configuration now -
<TCP start_port="7050"
loopback="true"
recv_buf_size="20000000"
send_buf_size="640000"
discard_incompatible_packets="true"
max_bundle_size="64000"
max_bundle_timeout="30"
use_incoming_packet_handler="true"
use_outgoing_packet_handler="false"
down_thread="false" up_thread="false"
enable_bundling="true"
use_send_queues="false"
sock_conn_timeout="300"
skip_suspected_members="true"/>
<TCPPING timeout="3000"
down_thread="false" up_thread="false"
initial_hosts="10.106.124.239[7050],10.106.124.240[7050]"
port_range="1"
num_initial_members="3"/>
<MERGE2 max_interval="100000"
down_thread="false" up_thread="false" min_interval="20000"/>
<FD_SOCK down_thread="false" up_thread="false"/>
<FD timeout="10000" max_tries="5" down_thread="false" up_thread="false" shun="true"/>
<VERIFY_SUSPECT timeout="1500" down_thread="false" up_thread="false"/>
<pbcast.NAKACK max_xmit_size="60000"
use_mcast_xmit="false" gc_lag="0"
retransmit_timeout="300,600,1200,2400,4800"
down_thread="false" up_thread="false"
discard_delivered_msgs="true"/>
<pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
down_thread="false" up_thread="false"
max_bytes="400000"/>
<pbcast.GMS print_local_addr="true" join_timeout="3000"
down_thread="false" up_thread="false"
join_retry_timeout="2000" shun="true"
view_bundling="true"/>
<FC max_credits="2000000" down_thread="false" up_thread="false"
min_threshold="0.10"/>
<FRAG2 frag_size="60000" down_thread="false" up_thread="false"/>
<pbcast.STREAMING_STATE_TRANSFER down_thread="false" up_thread="false"
use_flush="true" use_reading_thread="true"/>
<!-- pbcast.STATE_TRANSFER down_thread="false" up_thread="false" use_flush="false"/ -->
<pbcast.FLUSH down_thread="false" up_thread="false"/>
But it still doesn't work. I'm kind of lost here......
I got this error......
org.jgroups.ChannelException: unable to setup the protocol stack
at org.jgroups.JChannel.(Lorg.jgroups.conf.ProtocolStackConfigurator;)V(JChannel.java:261)
at org.jgroups.JChannel.(Ljava.lang.String;)V(JChannel.java:234)
at org.jboss.cache.TreeCache._createService()V(TreeCache.java:1373)
at org.jboss.cache.TreeCache.createService()V(TreeCache.java:1300)
at org.jboss.cache.example.j2eeservices.JBossCacheManager.main([Ljava.lang.String;)V(JBossCacheManager.java:74)
at jrockit.reflect.NativeMethodInvoker.invoke0(Ljava.lang.Object;ILjava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
at weblogic.t3.srvr.StartupClassService.invokeMain(Ljava.lang.String;Ljava.lang.Class;Ljava.lang.String;)V(StartupClassService.java:229)
at weblogic.t3.srvr.StartupClassService.invokeClass(Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)V(StartupClassService.java:160)
at weblogic.t3.srvr.StartupClassService.access$000(Lweblogic.t3.srvr.StartupClassService;Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)V(StartupClassService.java:36)
at weblogic.t3.srvr.StartupClassService$1.run()Ljava.lang.Object;(StartupClassService.java:121)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Lweblogic.security.subject.AbstractSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction;)Ljava.lang.Object;(SecurityManager.java:118)
at weblogic.t3.srvr.StartupClassService.invokeStartupClass(Lweblogic.management.configuration.StartupClassMBean;)V(StartupClassService.java:116)
at weblogic.t3.srvr.StartupClassService.initialize()V(StartupClassService.java:60)
at weblogic.t3.srvr.SubsystemManager.initialize()V(SubsystemManager.java:118)
at weblogic.t3.srvr.T3Srvr.initializeHere()V(T3Srvr.java:895)
at weblogic.t3.srvr.T3Srvr.initialize()V(T3Srvr.java:670)
at weblogic.t3.srvr.T3Srvr.run([Ljava.lang.String;)I(T3Srvr.java:344)
at weblogic.Server.main([Ljava.lang.String;)V(Server.java:32)
Caused by: java.lang.Exception: ProtocolStack.setup(): couldn't create protocol stack
at org.jgroups.stack.ProtocolStack.setup()V(ProtocolStack.java:179)
at org.jgroups.JChannel.(Lorg.jgroups.conf.ProtocolStackConfigurator;)V(JChannel.java:258)
... 20 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3988607#3988607
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3988607
19Â years, 5Â months
[JBoss Seam] - Re: Seam exception handling failing
by zzzz8
Hi Gavin,
Thanks for the info. I was under the belief that the factory method would be called in the invoke application phase... Are you saying that instantiations take place in the render phase instead? I probably need to understand the JSF lifecyle some more and JSF/Seam in general (I'm still a beginner). But I'll definitely look into page actions.
The overall goal of this status component was that the retrieveStatus method called a Web service (via JAX-RPC) to retrieve the status of something - whose value (status) could be later retrieved. If there was an error in retrieving the status, the exception would be thrown and I thought it would be caught by (and dealt with) the Seam exception filter. I never thought it would take place in the render phase (but then again, I probably don't understand the lifecycle).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3988605#3988605
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3988605
19Â years, 5Â months
[JBoss Portal] - How do I position a Portlet in a window?
by alittledog
I attempting to build a new portal for DOI. I have everything working (portlets and pages in place), but I don't know how to position the porlet itself in the container(window). I am using JFreeCharts to show charts and for drilldowns. However, they always appear in the middle of the container. I need to build my portal for much smaller screens (maybe the government doesn't always overspend) and I want put the porlet on the left side of the container. I don't see how to do this within the portlet.xml, *-object.xml or as part of the chart specification, so I am assuming that this in a theme. However, I don't see where to do this right now. Thanks.
I am basing this portal off of the Pentaho RC3 demo.
Now
---------------------------------------------------
|...............................................................|
|....................-----------------------..............|
|....................|..........................|..............|
|....................|....CHART............|..............|
|....................|..........................|..............|
|....................----------------------................|
|...............................................................|
----------------------------------------------------
What I need
---------------------------------------------------
|...............................................................|
|.....-----------------------..............................|
|.....|..........................|..............................|
|.....|....CHART............|..............................|
|.....|..........................|..............................|
|.....----------------------...............................|
|...............................................................|
----------------------------------------------------
Thanks,
Matt
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3988602#3988602
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3988602
19Â years, 5Â months