[JBoss-user] [EJB 3.0] - EJB3 clustering static members

2006-04-25 Thread abitha
Hi all,

I have this application in which there are some plain java objects that are 
static in nature - like vectors, hashmaps etc, that in turn contain other 
collections. I am trying to make this application clustered. Since my 
replication does not reference the session, I find that I can just add 
@stateless and @clustered annotations, and the static variables are replicated 
across the clustered.

My question is what is the underlying replication mechanism across cluster for 
stateless session beans? Is there any way that I can use fine grained 
replication - ie, I dont want this big object to be replicated everytime - 
instead I only want the changes to get replicated.

Currently, we use JBoss Cache AOP for our replication. We want to move to a 
design where we dont directly call the cache, but use more standard components 
to internally use some cache.

Any ideas?

Thanks a lot, Abitha.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3939336#3939336

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3939336


---
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - java defunct processes caused by JGroups - URGENT

2005-09-16 Thread abitha
Bela,

Please see thread 
http://www.jboss.com/index.html?module=bbop=viewtopict=67846 in which I 
corresponded with you earlier. Background of our system: We use JBoss 3.2.6, 
read uncommitted and repl_async, with two appservers in the cluster. We have 
mostly plain old java objects and extensively use JBossCache for clustering 
replication. 

Earlier, we had a lot of problems in production that were not attributable to 
anything specific:
1. JVM suddenly died with java defunct processes within 1 hour of application 
starting.
2. NACKACK messages that got displayed.

You had initially suggested that I post in apache groups for the defunct 
processes problem (since we use apache load balancer). For the NACKACK problem 
you had suggested we use JBoss 2.2.9 (alpha). Replacing 2.2.8 JBossCache with 
2.2.9 alpha actually fixed the java defunct processes to a great extent. 
Instead of dying after 1 hour of starting JBoss, now the processes died after a 
week or so.

Then we had another production release, and this time both appservers in the 
cluster died within a few minutes (1-2 minutes) of starting the app servers. In 
order to find the problem, we started rolling back each JBossCache change that 
was introduced. The one rollback that made a difference was - we were creating 
a new cache that got populated on demand through a database lookup. Earlier we 
used local hashmaps. The difference between this cache and all the other caches 
we already had was: (a) the object it holds is a synchronized map (b) some 
methods are synchronized and  (c) the volume is high. There are appromixately 
6000 database calls (and therefore 6000 object replications) in a span of 1-2 
minutes. The same object is being used, and replicated (i.e, the 6000 database 
entries are all held in the same synchronized map and the entire object is 
replicated each time). We rolled back this change and use the version with 
local hashmaps and the crash did not happen anymore.

Rolling back this change has helped some, but now the jboss crash occurs 
approximately once a day - sometimes with defunct processes and sometimes 
without. There is absolutely no information in the log. But we know that this 
is somehow related to JGroups as changing from 2.2.8 to 2.2.9 has greatly 
changed the behavior.

The only other change that has not been rolled back is the introduction of a 
stateless session bean. Earlier all our code was just plain old java objects 
(not distributed), but now we have a stateless session bean that we use to 
lookup information from the other app server.

This is a production problem, so it is very urgent. We also have support 
purchased, so I am going to post there too. I would appreciate it if you could 
look at that.

Please let me know if you need any other info.

Thanks, Abitha.



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=3895247#3895247

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3895247


---
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42 plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Building JGroups 2.2.9 off CVS

2005-08-24 Thread abitha
How do I get the src of a JGroups version that is not the CVS head? I would 
like to download JGroups 2.2.8 source...Should the module name be different?

Thanks!

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3891458#3891458

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3891458


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: Building JGroups 2.2.9 off CVS

2005-08-22 Thread abitha
Bela,

Looks like that problem is gone now. We have scheduled a test for tomorrow 
(Tuesday). I will test with the new jar , and let you know the message.

Thanks, Abitha.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3891122#3891122

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3891122


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Building JGroups 2.2.9 off CVS

2005-08-19 Thread abitha
Hi all,

Bela asked me to try something with the new JGroups 2.2.9 from CVS head. This 
is my first time working with CVS and building, and I am facing some problems 
with that. I am hoping someone can help me.

This is my first time getting code off cvs and building. This is what I did..

cygwin:

cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/javagroups login

cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/javagroups co JGroups

I got the source, and I did - ./build.sh
- ant all

I found two jar files in dist folder: jgroups-all.jar and jgroups-core.jar. I 
renamed jgroups-all.jar to jgroups.jar and copied into my lib folder.

I am not sure if my steps are correct. I did find releasenotes-2.2.8.txt in the 
/doc folder. Did I get 2.2.9?

Anyways, I copied the new jgroups.jar into my lib folder and started the 
server. I constantly get the following error message in my logs without even 
doing anything.

2005-08-18 14:38:29,593 ERROR [org.jgroups.blocks.RpcDispatcher] 
exception=java.lang.IllegalArgumentException: java.lang.ClassNotFoundException: 
boolean

I used java 1.4.2_07

The app does not work well with the above errors in the log. Should I be doing 
something differently. Has someone else done this ? 

Thanks, Abitha.


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3890843#3890843

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3890843


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: message or message buffer is null followed by other exce

2005-08-19 Thread abitha
Bela,

I cant seem to get past the following error message when I use the new jar 
files. Please see my previous two posts...I get this exception only with the 
new jgroups jar and only when 2 app servers are up.

2005-08-18 14:38:29,593 ERROR [org.jgroups.blocks.RpcDispatcher] 
exception=java.lang.IllegalArgumentException: java.lang.ClassNotFoundException: 
boolean 

It seems like a java bug from long long ago, but I am not sure. We use JDK 
1.4.2_07 with Linux.
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4171142

If we are able to get this working, I can schedule some time next week to try 
this in production, and see what kind of messages/results we get.

Thanks, Abitha.



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3890852#3890852

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3890852


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: message or message buffer is null followed by other exce

2005-08-18 Thread abitha
We are using those props in cluster-service.xml. The jboss config  uses frag 
size of 6. It also uses the max_xmit_size of 6. Should this be changed? 

Abitha.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3890495#3890495

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3890495


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: message or message buffer is null followed by other exce

2005-08-18 Thread abitha
Here's our jboss config props (replSync-service.xml):


!-- JGroups protocol stack properties. Can also be a URL,
 e.g. file:/home/bela/default.xml
   
--



!-- UDP: if you have a multihomed machine,
set the bind_addr attribute to the appropriate NIC IP address, 
e.g bind_addr=192.168.0.2
--
!-- UDP: On Windows machines, because of the media sense 
feature
 being broken with multicast (even after disabling media sense)
 set the loopback attribute to true --
!--UDP mcast_addr=228.1.2.3 mcast_port=48866--
UDP mcast_addr=229.1.2.3 mcast_port=45566
ip_ttl=32 ip_mcast=true
mcast_send_buf_size=1000 
mcast_recv_buf_size=1000
ucast_send_buf_size=1000 
ucast_recv_buf_size=1000
max_bundle_size=64000
max_bundle_timeout=30
   use_incoming_packet_handler=false
   use_outgoing_packet_handler=true
loopback=false
   /
PING timeout=2000 down_thread=false 
num_initial_members=3/
   MERGE2 max_interval=1 down_thread=false 
min_interval=5000/
   FD_SOCK down_thread=false/
   VERIFY_SUSPECT timeout=1500 down_thread=false/
   pbcast.NAKACK max_xmit_size=6 down_thread=false 
use_mcast_xmit=true gc_lag=50 retransmit_timeout=300,600,1200,2400,4800/
   UNICAST timeout=300,600,1200,2400,3600 down_thread=false/
   pbcast.STABLE stability_delay=1000 desired_avg_gossip=5000 
down_thread=false max_bytes=25/
   pbcast.GMS print_local_addr=true join_timeout=3000 
down_thread=false join_retry_timeout=2000 shun=true/
   FC max_credits=100 down_thread=false min_threshold=0.10/
   FRAG frag_size=6 down_thread=false up_thread=true/
   pbcast.STATE_TRANSFER down_thread=false up_thread=false/




View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3890496#3890496

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3890496


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: message or message buffer is null followed by other exce

2005-08-18 Thread abitha
Bela, Thanks for your response.

Our problem happens only in production, so unfortunately I cannot put a 
breakpoint and test.

This is my first time getting code off cvs and building. This is what I did..

cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/javagroups login

cvs -d:pserver:[EMAIL PROTECTED]:/cvsroot/javagroups co JGroups

I got the source, and I did - ./build.sh 
  - ant all

I found two jar files in dist folder: jgroups-all.jar and jgroups-core.jar. I 
renamed jgroups-all.jar to jgroups.jar and copied into my lib folder.

I am not sure if my steps are correct. I did find releasenotes-2.2.8.txt in the 
/doc folder. Did I get 2.2.9?

Anyways, I copied the new jgroups.jar into my lib folder and started the 
server. I constantly get the following error message in my logs without even 
doing anything. 

2005-08-18 14:38:29,593 ERROR [org.jgroups.blocks.RpcDispatcher] 
exception=java.lang.IllegalArgumentException: java.lang.ClassNotFoundException: 
boolean

I used java 1.4.2_07

Thanks, Abitha.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3890682#3890682

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3890682


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: message or message buffer is null followed by other exce

2005-08-18 Thread abitha
Bela, I' m sorry if my questions are a bit lame, but I'm trying to understand, 
so here goes - 

(a) so are you saying that even with JGroups 2.2.9, I will still get an error 
and that the error will be different? If we resolve the current JGroups 2.2.9 
issues that I have and we get the error that you specify, do we have a solution 
for that?

(b) Is this a bug in JGroups? Shouldnt the packets be fragmented to the right 
size automatically based on the the bundle size? Why would we ever get Message 
Too Long error?

Abitha.


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3890694#3890694

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3890694


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: message or message buffer is null followed by other exce

2005-08-17 Thread abitha
Thank you Bela. I have posted in the other forums. One thing we noted yesterday 
was when we have the jboss die with defunct java process, the logs have a lot 
of the following error messages. Why and when do we get these messages? The jk 
log just says that app02 is in error state where app02 is one of the jboss 
servers. Can you help with this?

Thanks!

2005-08-16 20:43:28,255 ERROR [org.jgroups.protocols.pbcast.NAKACK] 
(requester=10.100.1.50:39841, local_addr=10.100.1.52:40517) message with 
seqno=70
52 not found in sent_msgs ! sent_msgs=[71274 - 71506]
2005-08-16 20:43:28,255 ERROR [org.jgroups.protocols.pbcast.NAKACK] 
(requester=10.100.1.50:39841, local_addr=10.100.1.52:40517) message with 
seqno=70
53 not found in sent_msgs ! sent_msgs=[71274 - 71506]
2005-08-16 20:43:28,255 ERROR [org.jgroups.protocols.pbcast.NAKACK] 
(requester=10.100.1.50:39841, local_addr=10.100.1.52:40517) message with 
seqno=70
54 not found in sent_msgs ! sent_msgs=[71274 - 71506]
2005-08-16 20:43:28,255 ERROR [org.jgroups.protocols.pbcast.NAKACK] 
(requester=10.100.1.50:39841, local_addr=10.100.1.52:40517) message with 
seqno=70
55 not found in sent_msgs ! sent_msgs=[71274 - 71506]
2005-08-16 20:43:28,255 ERROR [org.jgroups.protocols.pbcast.NAKACK] 
(requester=10.100.1.50:39841, local_addr=10.100.1.52:40517) message with 
seqno=70
56 not found in sent_msgs ! sent_msgs=[71274 - 71506]
2005-08-16 20:43:28,255 ERROR [org.jgroups.protocols.pbcast.NAKACK] 
(requester=10.100.1.50:39841, local_addr=10.100.1.52:40517) message with 
seqno=70
57 not found in sent_msgs ! sent_msgs=[71274 - 71506]
2005-08-16 20:43:28,255 ERROR [org.jgroups.protocols.pbcast.NAKACK] 
(requester=10.100.1.50:39841, local_addr=10.100.1.52:40517) message with 
seqno=70
58 not found in sent_msgs ! sent_msgs=[71274 - 71506]

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3890441#3890441

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3890441


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: message or message buffer is null followed by other exce

2005-08-17 Thread abitha
Also, interspersed with those NAKACK messages, I see the following (not 
necessarily at the start of the NAKACK MESSAGES).

java.io.IOException: Message too long
at java.net.PlainDatagramSocketImpl.send(Native Method)
at java.net.DatagramSocket.send(DatagramSocket.java:611)
at org.jgroups.protocols.UDP.doSend(UDP.java:858)
at org.jgroups.protocols.UDP.send(UDP.java:846)
at 
org.jgroups.protocols.UDP$OutgoingPacketHandler.handleMessage(UDP.java:1663)
at org.jgroups.protocols.UDP$OutgoingPacketHandler.run(UDP.java:1649)
at java.lang.Thread.run(Thread.java:534)

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3890450#3890450

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3890450


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: message or message buffer is null followed by other exce

2005-08-16 Thread abitha
Alright - you were right. I had COMPRESS in my jboss cache config file, and I 
removed it. It worked. Thank you very much.

I still get this exception, every few minutes in the log, although they dont 
seem to be doing anything (please see below).

 Another problem we have in production, which is very bothersome is that: we 
have mod jk with jboss. When the load is high, after an hour or so (sometimes 
the time interval varies), mod jk gets locked up (ie, does not take in any more 
connections), and one or more of the appserver instances die with java defunct 
processes. I have to forcekill the app server instance to make the setup work 
again. This never happens in development, and always in production. Any insight 
on this will be very greatly appreciated.

Thanks! 

-

2005-08-16 10:47:52,415 WARN  [org.apache.jk.common.ChannelSocket] Error 
registering request
2005-08-16 10:49:44,986 ERROR [org.apache.commons.modeler.Registry] Error 
registering jboss.web:type=RequestProcessor,worker=jk-8009,name=JkRequest111

javax.management.InstanceAlreadyExistsException: 
jboss.web:type=RequestProcessor,worker=jk-8009,name=JkRequest111 already 
registered.
at 
org.jboss.mx.server.registry.BasicMBeanRegistry.add(BasicMBeanRegistry.java:704)
at 
org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:212)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at 
org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1018)
at 
org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:326)
at 
org.apache.commons.modeler.Registry.registerComponent(Registry.java:871)
at 
org.apache.jk.common.ChannelSocket.registerRequest(ChannelSocket.java:436)
at 
org.apache.jk.common.HandlerRequest.decodeRequest(HandlerRequest.java:443)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:352)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
2005-08-16 10:49:44,987 WARN  [org.apache.jk.common.ChannelSocket] Error 
registering request

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3890225#3890225

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3890225


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: message or message buffer is null followed by other exce

2005-08-16 Thread abitha
May I also ask why COMPRESS made a difference, and what it was supposed to do?

Thanks.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3890226#3890226

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3890226


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Tomcat, HTTPD, Servlets JSP] - mod-jk/Tomcat exception

2005-08-16 Thread abitha
Im not sure if this the right forum for this,but here goes - We use Jboss 3.2.6 
with JBOssCache for replication, and mod-jk for load balancing. We are running 
in a cluster, but sometimes we have this problem even without the cluster.

I get this exception, every few minutes in the log, although they dont seem to 
be doing anything (please see below).

Another problem we have in production, which is very bothersome is that: we 
have mod jk with jboss. When the load is high, after an hour or so (sometimes 
the time interval varies), mod jk gets locked up (ie, does not take in any more 
connections), and one or more of the appserver instances die with java defunct 
processes. I have to forcekill the app server instance to make the setup work 
again. This never happens in development, and always in production. Any insight 
on this will be very greatly appreciated.

Thanks!

-

2005-08-16 10:47:52,415 WARN [org.apache.jk.common.ChannelSocket] Error 
registering request
2005-08-16 10:49:44,986 ERROR [org.apache.commons.modeler.Registry] Error 
registering jboss.web:type=RequestProcessor,worker=jk-8009,name=JkRequest111

javax.management.InstanceAlreadyExistsException: 
jboss.web:type=RequestProcessor,worker=jk-8009,name=JkRequest111 already 
registered.
at 
org.jboss.mx.server.registry.BasicMBeanRegistry.add(BasicMBeanRegistry.java:704)
at 
org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:212)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1018)
at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:326)
at org.apache.commons.modeler.Registry.registerComponent(Registry.java:871)
at org.apache.jk.common.ChannelSocket.registerRequest(ChannelSocket.java:436)
at org.apache.jk.common.HandlerRequest.decodeRequest(HandlerRequest.java:443)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:352)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
2005-08-16 10:49:44,987 WARN [org.apache.jk.common.ChannelSocket] Error 
registering request

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3890234#3890234

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3890234


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: message or message buffer is null followed by other exce

2005-08-15 Thread abitha
Thanks for the response.

I cant set cache mode to LOCAL as I need the cache to replicate. I dont get 
this problem with single server, I get in only in the cluster. So, I need to 
replicate my cache.

I use JBossCache 1.2.3 and whatever JGroups that comes with that. That was what 
was recommended (the jboss-cache.jar and jgroups.jar should be the same). Are 
you suggesting I individually just change the JGroups?

I am looking at my cluster-service.xml and I dont have COMPRESS. This is what I 
have:

 !-- The JGroups protocol configuration --

  
!-- UDP: if you have a multihomed machine,
 set the bind_addr attribute to the appropriate NIC IP address --
!-- UDP: On Windows machines, because of the media sense feature
 being broken with multicast (even after disabling media sense)
 set the loopback attribute to true --
!--UDP mcast_addr=228.1.2.3 mcast_port=45566--
UDP mcast_addr=229.1.2.3 mcast_port=45566
 ip_ttl=32 ip_mcast=true
 mcast_send_buf_size=80 mcast_recv_buf_size=15
 ucast_send_buf_size=80 ucast_recv_buf_size=15
 loopback=false /
PING timeout=2000 num_initial_members=3
  up_thread=true down_thread=true /
MERGE2 min_interval=1 max_interval=2 /
FD shun=true up_thread=true down_thread=true
timeout=2500 max_tries=5 /
VERIFY_SUSPECT timeout=3000 num_msgs=3
up_thread=true down_thread=true /
pbcast.NAKACK gc_lag=50 retransmit_timeout=300,600,1200,2400,4800
   max_xmit_size=8192
   up_thread=true down_thread=true /
UNICAST timeout=300,600,1200,2400,4800 window_size=100 
min_threshold=10
 down_thread=true /
pbcast.STABLE desired_avg_gossip=2
   up_thread=true down_thread=true /
FRAG frag_size=8192
  down_thread=true up_thread=true /
pbcast.GMS join_timeout=5000 join_retry_timeout=2000
shun=true print_local_addr=true /
pbcast.STATE_TRANSFER up_thread=true down_thread=true /
  


Thanks, Abitha.



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3890053#3890053

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3890053


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - message or message buffer is null followed by other exceptio

2005-08-12 Thread abitha
Hi all -

I have a cluster with JBoss Cache. Currently I am only running in the single 
server mode. Everytime my load gets higher I get the following messages 
continuouly in my logs. It always starts with the message or message buffer is 
null message for a few seconds, and then goes on to throw the other 
ones..which I think may be related.

Apart from these messages, there are no other useful messages anywhere in the 
logs. There are no application related exceptions. What could be causing this 
problem? We are in production, and I need to fix this ASAP. We use TreeCache 
1.2.3 (no AOP) and Jboss 3.2.6.

2005-08-12 10:13:33,415 465540 ERROR [org.jgroups.blocks.RpcDispatcher] 
(Thread-44:) message or message buffer is null
2005-08-12 10:13:33,418 465543 ERROR [org.jgroups.blocks.RpcDispatcher] 
(Thread-44:) message or message buffer is null
2005-08-12 10:13:33,419 465544 ERROR [org.jgroups.blocks.RpcDispatcher] 
(Thread-44:) message or message buffer is null
2005-08-12 10:13:33,419 465544 ERROR [org.jgroups.blocks.RpcDispatcher] 
(Thread-44:) message or message buffer is null
2005-08-12 10:13:33,420 465545 ERROR [org.jgroups.blocks.RpcDispatcher] 
(Thread-44:) message or message buffer is null
2005-08-12 10:13:33,423 465548 ERROR [org.jgroups.protocols.COMPRESS] 
(UpHandler (COMPRESS):) exception on uncompression: java.util.zip.DataForma
ption: unknown compression method
at java.util.zip.Inflater.inflateBytes(Native Method)
at java.util.zip.Inflater.inflate(Inflater.java:219)
at java.util.zip.Inflater.inflate(Inflater.java:236)
at org.jgroups.protocols.COMPRESS.up(COMPRESS.java:95)
at org.jgroups.stack.UpHandler.run(Protocol.java:59)

2005-08-12 10:13:33,424 465549 ERROR [org.jgroups.blocks.RpcDispatcher] 
(Thread-44:) exception=java.lang.IllegalArgumentException: java.io.Stream
ptedException: invalid stream header
2005-08-12 10:13:33,424 465549 ERROR [org.jgroups.protocols.COMPRESS] 
(UpHandler (COMPRESS):) exception on uncompression: java.util.zip.DataForma
ption: unknown compression method
at java.util.zip.Inflater.inflateBytes(Native Method)
at java.util.zip.Inflater.inflate(Inflater.java:219)
at java.util.zip.Inflater.inflate(Inflater.java:236)
at org.jgroups.protocols.COMPRESS.up(COMPRESS.java:95)
at org.jgroups.stack.UpHandler.run(Protocol.java:59)

Thanks!

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3889807#3889807

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3889807


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: message or message buffer is null followed by other exce

2005-08-12 Thread abitha
I'm sorry - I misspoke. I get the above exception when there are more than 1 
jboss servers running in the cluster. When I shutdown all but one server. I no 
longer get the other exceptions. The only exception I get occasionally is:

2005-08-12 10:47:05,891 ERROR [org.apache.commons.modeler.Registry] Error 
registering jboss.web:type=RequestProcessor,worker=jk-8009,name=JkRequest95
javax.management.InstanceAlreadyExistsException: 
jboss.web:type=RequestProcessor,worker=jk-8009,name=JkRequest95 already 
registered.
at 
org.jboss.mx.server.registry.BasicMBeanRegistry.add(BasicMBeanRegistry.java:704)
at 
org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:212)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:197)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at 
org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1018)
at 
org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:326)
at 
org.apache.commons.modeler.Registry.registerComponent(Registry.java:871)
at 
org.apache.jk.common.ChannelSocket.registerRequest(ChannelSocket.java:436)
at 
org.apache.jk.common.HandlerRequest.decodeRequest(HandlerRequest.java:443)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:352)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743)
at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
2005-08-12 10:47:05,894 WARN  [org.apache.jk.common.ChannelSocket] Error 
registering request
2005-08-12 10:48:04,392 ERROR [org.apache.commons.modeler.Registry] Error 
registering jboss.web:type=RequestProcessor,worker=jk-8009,name=JkRequest179

Thanks.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3889816#3889816

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3889816


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Re: message or message buffer is null followed by other exce

2005-08-12 Thread abitha
But I still need info on how to stop the jgroups related expceptions as we need 
to run the cluster with multiple servers.

Please help!

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3889817#3889817

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3889817


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JNDI/Naming/Network] - Re: communication Exception

2005-08-01 Thread abitha
Thanks for the reply. When I try with localhost it works perfectly. I 
intentionally put in bocalhost, because I want to capture the exception. There 
is no machine called bocal host and my debug log shows the naming exception 
being thrown - but not from my code even though I am catching it. Thats the 
problem. I need to handle the case of getting a naming exception.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3887740#3887740

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3887740


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Re: Unable to catch the naming exception - please help!

2005-07-28 Thread abitha
Actually I am catching a general Exception in my code - but it never reaches 
that part of it. So I am thinking that there is a bug somewhere - even though 
lookup is supposed to throw NamingException, someone else is catching it and 
not throwing it up to the next level - probably 
org.jnp.interfaces.NamingContext.lookup.

Anyone aware of issues like this?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3887114#3887114

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3887114


---
SF.Net email is Sponsored by the Better Software Conference  EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Unable to catch the naming exception - please help!

2005-07-27 Thread abitha
I have the following code segment in my code. We need to access this bean for 
several things, and for multiple app servers - the ip addresses and names of 
which are configurable. So based on the requirement, we pass the name or ip 
address to the code, and it first sets the context via the following piece of 
code and then accesses the services of the bean. This works fine when the ip 
address or name is correct. However if the ip address or name is incorrect (a) 
The machine is up, but app server is not or (b) no such machine exists or (c) 
we dont have access to the machine, it throws a 
javax.naming.communicationException. However, I am not able to catch this 
exception - i.e., it never goes to my catch block. It just appears on the log, 
and my code continues. This causes a lot of problems..I need to be able to get 
the exception and handle it. Am I missing something? Please help!! Very urgent! 
I am attaching a more detailed exception below. The exception varies slightly 
based on exactly what went wrong - but in all cases I never get to catch the 
exception.

public void setMonitorContext(String appserverName) {
Hashtable env = new Hashtable();  


env.put(Context.INITIAL_CONTEXT_FACTORY,org.jnp.interfaces.NamingContextFactory);
env.put(Context.URL_PKG_PREFIXES, 
org.jboss.naming:org.jnp.interfaces);
env.put(Context.PROVIDER_URL, jnp:// + appserverName + :1099/);
try {   
monitorEJB = null;
ejbHome = null;
ref = null;
Context initialContext = new InitialContext(env);   
ref = initialContext.lookup(webservice/beans/MonitorHome);
   
ejbHome = (MonitorHome) 
PortableRemoteObject.narrow(ref,MonitorHome.class);
monitorEJB = ejbHome.create();  
} catch (NamingException e) {   
logger.info(Naming context for  + appserverName +  not 
found.); 
} catch (RemoteException re){
logger.info(Create Exception in initial context: + re);
} catch (CreateException ce) {  
logger.info(Create Exception in initial context: + ce);
} catch (Exception justE) {
logger.info(Caught exception in setMonitorContext + 
justE);
justE.printStackTrace();
}
}

Exception trace:

2005-07-27 14:35:15,908 64994 DEBUG [org.jnp.interfaces.NamingContext] 
(TP-Processor2:) Failed to connect to bocalhost:1099
javax.naming.CommunicationException: Failed to connect to server bocalhost:1099 
[Root exception is javax.naming.ServiceUnavailableException: Failed to
 connect to server bocalhost:1099 [Root exception is 
java.net.UnknownHostException: bocalhost: bocalhost]]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:213)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1187)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:516)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:509)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at 
com.mirra.webservice.beans.ManageMonitor.setMonitorContext(ManageMonitor.java:121)
at 
com.mirra.webservice.beans.ManageMonitor.getCurrentTimeInMilliSeconds(ManageMonitor.java:246)
at 
com.mirra.webservice.beans.ManageMonitor.getTimeInMillis(ManageMonitor.java:260)
at com.mirra.webservice.account.Login.addFailedLogin(Login.java:253)
at com.mirra.webservice.account.Login.checkUser(Login.java:413)
at com.mirra.webservice.account.Login.checkUser(Login.java:353)
at com.mirra.webservice.account.Login.setCommonSignIn(Login.java:1818)
at 
com.mirra.webservice.account.Login.getRegularSignInRedirectLink(Login.java:1823)
at 
org.apache.jsp.falcon.handleSignin_jsp._jspService(handleSignin_jsp.java:117)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at 
org.jboss.web.tomcat.tc5.JvmRouteFilter.doFilter(JvmRouteFilter.java:111)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
at 

[JBoss-user] [EJB/JBoss] - Catching naming exception

2005-07-27 Thread abitha
We are running Jboss 3.2.6 in a clustered environment.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3886938#3886938

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3886938


---
SF.Net email is Sponsored by the Better Software Conference  EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JNDI/Naming/Network] - communication Exception

2005-07-27 Thread abitha
I have the following code segment in my code. We need to access this bean for 
several things, and for multiple app servers - the ip addresses and names of 
which are configurable. So based on the requirement, we pass the name or ip 
address to the code, and it first sets the context via the following piece of 
code and then accesses the services of the bean. This works fine when the ip 
address or name is correct. However if the ip address or name is incorrect (a) 
The machine is up, but app server is not or (b) no such machine exists or (c) 
we dont have access to the machine, it throws a 
javax.naming.communicationException. However, I am not able to catch this 
exception - i.e., it never goes to my catch block. It just appears on the log, 
and my code continues. This causes a lot of problems..I need to be able to get 
the exception and handle it. Am I missing something? Please help!! Very urgent! 
I am attaching a more detailed exception below. The exception varies slightly 
based on exactly what went wrong - but in all cases I never get to catch the 
exception.

public void setMonitorContext(String appserverName) {
Hashtable env = new Hashtable();

env.put(Context.INITIAL_CONTEXT_FACTORY,org.jnp.interfaces.NamingContextFactory);
env.put(Context.URL_PKG_PREFIXES, org.jboss.naming:org.jnp.interfaces);
env.put(Context.PROVIDER_URL, jnp:// + appserverName + :1099/);
try {
monitorEJB = null;
ejbHome = null;
ref = null;
Context initialContext = new InitialContext(env);
ref = initialContext.lookup(webservice/beans/MonitorHome);
ejbHome = (MonitorHome) PortableRemoteObject.narrow(ref,MonitorHome.class);
monitorEJB = ejbHome.create();
} catch (NamingException e) {
logger.info(Naming context for  + appserverName +  not found.);
} catch (RemoteException re){
logger.info(Create Exception in initial context: + re);
} catch (CreateException ce) {
logger.info(Create Exception in initial context: + ce);
} catch (Exception justE) {
logger.info(Caught exception in setMonitorContext + justE);
justE.printStackTrace();
}
}

Exception trace:

2005-07-27 14:35:15,908 64994 DEBUG [org.jnp.interfaces.NamingContext] 
(TP-Processor2:) Failed to connect to bocalhost:1099
javax.naming.CommunicationException: Failed to connect to server bocalhost:1099 
[Root exception is javax.naming.ServiceUnavailableException: Failed to
connect to server bocalhost:1099 [Root exception is 
java.net.UnknownHostException: bocalhost: bocalhost]]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:213)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1187)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:516)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:509)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at 
com.mirra.webservice.beans.ManageMonitor.setMonitorContext(ManageMonitor.java:121)
at 
com.mirra.webservice.beans.ManageMonitor.getCurrentTimeInMilliSeconds(ManageMonitor.java:246)
at 
com.mirra.webservice.beans.ManageMonitor.getTimeInMillis(ManageMonitor.java:260)
at com.mirra.webservice.account.Login.addFailedLogin(Login.java:253)
at com.mirra.webservice.account.Login.checkUser(Login.java:413)
at com.mirra.webservice.account.Login.checkUser(Login.java:353)
at com.mirra.webservice.account.Login.setCommonSignIn(Login.java:1818)
at 
com.mirra.webservice.account.Login.getRegularSignInRedirectLink(Login.java:1823)
at org.apache.jsp.falcon.handleSignin_jsp._jspService(handleSignin_jsp.java:117)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.jboss.web.tomcat.tc5.JvmRouteFilter.doFilter(JvmRouteFilter.java:111)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at 
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 

[JBoss-user] [Clustering/JBoss] - Gathering info from multiple app servers

2005-04-26 Thread abitha
Hi all,

Without clustering, the appserver used to hold some session info and statistics 
in a map. With clustering now, each appserver will only hold the session info 
and statistics of the sessions running in its app server. Since this 
information is large, and used mainly for debugging, maintenance and reporting 
purposes - and never directly for the app to run, I do not want to have a tree 
cache and share all information with all the servers. But when I go to the 
monitoring page, I want to see the sum total of information collected from all 
the app servers that are running.

Any thoughts on how this can be done? All replies are greatly appreciated.

Thanks, Abitha.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3875465#3875465

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3875465


---
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: mod_jk2 with Apache 2 and JBoss 4

2005-04-08 Thread abitha
We have mod jk 1.2 with JBoss 3.2.6. I have a question for those of you who 
have implemented this. Even though two nodes are in the cluster, and they are 
loadbalanced via mod jk, I am finding that the requests always go to the first 
node on the list.

Is there anyway to make them alternate, or be more random?

Thanks.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3873301#3873301

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3873301


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossCache] - Multiple TreeCache instances

2005-03-31 Thread abitha
I have multiple tree cache instances in my app, and each requires different 
cache setting (ie, cache mode, locking etc). Do I need multiple config files, 
or is this best done programatically?

Thanks.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3872262#3872262

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3872262


---
This SF.net email is sponsored by Demarc:
A global provider of Threat Management Solutions.
Download our HomeAdmin security software for free today!
http://www.demarc.com/info/Sentarus/hamr30
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: simple clustering - no J2ee

2005-03-29 Thread abitha
We use regular java classes, and use mod-jk as the load balancer. We specify 
all the servers in the worker.properties file, and it load balances 
automatically. I believe that when one server goes down, it will automatically 
redirect requests to the other server.

Abitha.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3871939#3871939

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3871939


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - File reads/writes in application

2005-03-29 Thread abitha
Hi,

My responsibility is to convert an existing enterprise app running on a single 
server to a clustered setup. I am in the process of identifying the different 
classes, and issues, and coming up with a design/solution to address each issue.

I find that there are quite some places in the app where config information is 
stored as xml files and is read from the file, and when config information is 
changed programatically, they are written back to file on disk.

Now, in a clustered setup, is using files for reading and writing advisable? My 
initial gut feeling is to transfer the data to a relational database, and read 
from there. What do most apps do? Is it a good design to read the file from a 
shared server? What are other options? How are file reads/writes handled?

Abitha.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3871941#3871941

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3871941


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - HASingleton and new instances.

2005-03-29 Thread abitha
If I have a HASingleton class, and that object creates a new instance (call it 
instanceA) of some other class - can we say with certainty that the new 
instance is running on the same server? If there is a failover, and a different 
server starts the HASingleton service, and references the instanceA, then what 
happens?

Sorry if the questions is very basic, or naive.

Thanks. 

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3871943#3871943

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3871943


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Interserver communication/Intelligent load balancing

2005-03-25 Thread abitha
Hi - 

We have a JBoss cluster, which we use mainly to run regular POJO's and services 
at the moment. We have Tomcat for webserver, and mod-jk doing the load 
balancing.

Is there a way I can write extra logic at the mod-jk layer such that the 
requests are only funelled to certain appserver based on a certain logic? I 
need to use this logic only when certain conditions are triggered, in all other 
cases, it should use the regular round robin or whatever algorithm it uses.

If thats too complicated, then if I get a request on one appserver, can I 
somehow then ask another appserver to run that request and send the status back 
to me (original app server on which request was served)? How can I implement 
this? 

If there are any tools on the market which will help me do this, I would be 
open to that as well.

Thanks, Abitha.



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3871640#3871640

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3871640


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: Clustering for POJOs

2005-03-11 Thread abitha
I have some state - but it is not necessarily related to the session. Basically 
there is a hashmap that contains lot of information about different clients, 
but any client can have access to it.

So, can I make this into a stateless session bean? If so, will I lose my 
hashmap contents during a fail-over? 



View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3869848#3869848

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3869848


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: Clustering for POJOs

2005-03-11 Thread abitha
To give some more info, I have this cache class which contains a hashmap that 
the client can talk to and pickup whatever is assigned to it (based on the key 
value). What I would really like to do is to share this cache among the entire 
cluster, such that no matter which app server instance the request lands on, it 
will be able to have the right and latest information about the cache.

Two considerations are:
1. We dont want to change the logic inside the class.
2. It is okay to change the form of the class (ie, convert to EJB).

Any ideas are appreciated.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3869849#3869849

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3869849


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Data transfer between streams in a cluster.

2005-03-11 Thread abitha
Hi all. I am still in the beginning stages of my investigation, and would 
really like your input...

We have a servlet that reads from an input stream and writes to a output 
stream. The data comes in byte by byte, and the servlet transfers the data.

Now the issue is - in a cluster, what if the input request and output requests 
are on two different machines? ie, the input byte comes in on one instance, but 
the output request has connected to another instance. Now it becomes necessary 
to transfer data (byte by byte) between two instances/machines.

I could make this a singleton service so that all the streaming requests go to 
the same machine. However, since this is a big part of what we do, having just 
one machine to do it sort-of defeats the purpose of having a cluster.

Any other ideas? Hope my question is clear - if not, just ask and I will 
provide more info.

Thanks, Abby.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3869852#3869852

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3869852


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Clustering for POJOs

2005-03-10 Thread abitha
We have a application that runs on jboss 3.2.6. It mainly uses plain old java 
objects for almost everything - including database updates/inserts (java class 
with jdbc - only uses the jdbc connection pooling app server service).

We want to scale and I am wondering about the options:
1. Should I convert my java objects to stateless session beans in order to 
deploy them in a cluster? Are there other options?
2. Alternately can I upgrade to jboss 4.0, and use AOP to inject clustering 
aspects into my java objects?
3. Is JMS (topics/queues/mdbs) recommended in a jboss cluster?

We are still in the very high level architecture evaluation phase , so any 
input is appreciated.

Thanks, Abby.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3869643#3869643

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3869643


---
SF email is sponsored by - The IT Product Guide
Read honest  candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user