[JBoss-user] [Clustering/JBoss] - problem calling a remote ejb from a servlet in a cluster env

2005-06-09 Thread gdevito
I've three jboss instances on different machine in the same network:
1. Jboss (A) running a web application 
2. Jboss (B) running some ejbs
3. Jboss (C) running some ejbs


Jboss (B) and Jboss (C) are in the same partition.

In a servlet, running in the first jboss intance (A), I call an ejb
deployed in the cluster (B,C) using autodiscovery (using jnp.port, 
jnp.partitionName etc..).

You suppose the Jboss C responds to this call (made from servlet).

If the server C goes down the next call to this ejb throws this error :

java.rmi.ConnectException: Connection refused to host: serverC; nested 
exception is: 
java.net.ConnectException: Connection refused
at 
sun.rmi.transport.tcp.TCPEndpoint.newSocket()Ljava.net.Socket;(Optimized Method)
at 
sun.rmi.transport.tcp.TCPChannel.createConnection()Lsun.rmi.transport.Connection;(Optimized
 Method)
at 
sun.rmi.transport.tcp.TCPChannel.newConnection()Lsun.rmi.transport.Connection;(Optimized
 Method)
at 
sun.rmi.server.UnicastRef.invoke(Ljava.rmi.Remote;Ljava.lang.reflect.Method;[Ljava.lang.Object;J)Ljava.lang.Object;(Optimized
 Method)
at 
org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(Optimized
 Method)
at 
org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(JRMPInvokerProxy.java:118)
at 
org.jboss.invocation.InvokerInterceptor.invokeInvoker(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(InvokerInterceptor.java:227)
at 
org.jboss.invocation.InvokerInterceptor.invoke(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(InvokerInterceptor.java:167)
at 
org.jboss.proxy.TransactionInterceptor.invoke(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(TransactionInterceptor.java:46)
at 
org.jboss.proxy.SecurityInterceptor.invoke(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(SecurityInterceptor.java:55)
at 
org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(Lorg.jboss.invocation.Invocation;)Ljava.lang.Object;(StatelessSessionInterceptor.java:97)
at 
org.jboss.proxy.ClientContainer.invoke(Ljava.lang.Object;Ljava.lang.reflect.Method;[Ljava.lang.Object;)Ljava.lang.Object;(ClientContainer.java:86)


Anyone could help me ?

BEST REGARDS.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3880963#3880963

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3880963


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [EJB/JBoss] - Urgent, It seams a BUG

2005-02-18 Thread gdevito
I'm using Jboss 3.2.2 on Windows 2003 server.
Periodically, under heavy load, we get this error :

2005-02-17 16:18:41,812 ERROR [STDERR] javax.naming.CommunicationException 
[Root exception is java.rmi.ConnectIOException: Exception creating connection 
to: 172.18.0.38; nested exception is: 
java.net.SocketException: Insufficient buffer space]
2005-02-17 16:18:41,843 ERROR [STDERR]  at 
org.jnp.interfaces.NamingContext.lookup(Ljavax.naming.Name;)Ljava.lang.Object;(Optimized
 Method)
2005-02-17 16:18:41,859 ERROR [STDERR]  at 
org.jnp.interfaces.NamingContext.lookup(Ljava.lang.String;)Ljava.lang.Object;(Optimized
 Method)
2005-02-17 16:18:41,875 ERROR [STDERR]  at 
javax.naming.InitialContext.lookup(Ljava.lang.String;)Ljava.lang.Object;(Optimized
 Method)
2005-02-17 16:18:41,890 ERROR [STDERR]  at 
com.cid.web.actions.RiprenotaAction.getPrenotazioneEJB()Lcom.cid.components.prenotazione.ejb.Prenotazione;(RiprenotaAction.java:376)
2005-02-17 16:18:41,906 ERROR [STDERR]  at 
com.cid.web.actions.RiprenotaAction.handleTransactions([Lcom.cid.transactions.DatiAppuntamento;[Lcom.cid.components.prenotazione.model.Appuntamento;Lcom.cid.session.UserData;Ljavax.servlet.http.HttpServlet;Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)Ljava.lang.String;(RiprenotaAction.java:85)
2005-02-17 16:18:41,937 ERROR [STDERR]  at 
com.cid.web.actions.RiprenotaAction.handle(Ljavax.servlet.http.HttpServlet;Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)Ljava.lang.String;(RiprenotaAction.java:68)
2005-02-17 16:18:41,968 ERROR [STDERR]  at 
com.cid.web.controller.Controller.handleAction(Ljava.lang.String;Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(Optimized
 Method)
2005-02-17 16:18:41,984 ERROR [STDERR]  at 
com.cid.web.controller.Controller.doPost(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(Optimized
 Method)
2005-02-17 16:18:42,000 ERROR [STDERR]  at 
com.cid.web.controller.Controller.doGet(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(Optimized
 Method)
2005-02-17 16:18:42,031 ERROR [STDERR]  at 
javax.servlet.http.HttpServlet.service(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(Optimized
 Method)
2005-02-17 16:18:42,046 ERROR [STDERR]  at 
javax.servlet.http.HttpServlet.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(Optimized
 Method)
2005-02-17 16:18:42,062 ERROR [STDERR]  at 
org.mortbay.jetty.servlet.ServletHolder.handle(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(Optimized
 Method)
2005-02-17 16:18:42,078 ERROR [STDERR]  at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(Ljava.lang.String;Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;Lorg.mortbay.jetty.servlet.ServletHolder;)V(Optimized
 Method)
2005-02-17 16:18:42,109 ERROR [STDERR]  at 
org.mortbay.jetty.servlet.Dispatcher.dispatch(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(Optimized
 Method)
2005-02-17 16:18:42,125 ERROR [STDERR]  at 
org.mortbay.jetty.servlet.Dispatcher.forward(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(Optimized
 Method)
2005-02-17 16:18:42,156 ERROR [STDERR]  at 
com.cid.web.actions.DefaultAction.forward(Ljava.lang.String;Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(DefaultAction.java:22)
2005-02-17 16:18:42,171 ERROR [STDERR]  at 
com.cid.web.actions.ConfermaPrenAction.handle(Ljavax.servlet.http.HttpServlet;Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)Ljava.lang.String;(ConfermaPrenAction.java:94)
2005-02-17 16:18:42,203 ERROR [STDERR]  at 
com.cid.web.controller.Controller.handleAction(Ljava.lang.String;Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(Optimized
 Method)
2005-02-17 16:18:42,218 ERROR [STDERR]  at 
com.cid.web.controller.Controller.doPost(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(Optimized
 Method)
2005-02-17 16:18:42,234 ERROR [STDERR]  at 
com.cid.web.controller.Controller.doGet(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(Optimized
 Method)
2005-02-17 16:18:42,265 ERROR [STDERR]  at 
javax.servlet.http.HttpServlet.service(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(Optimized
 Method)
2005-02-17 16:18:42,281 ERROR [STDERR]  at 
javax.servlet.http.HttpServlet.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(Optimized
 Method)
2005-02-17 16:18:42,296 ERROR [STDERR]  at 
org.mortbay.jetty.servlet.ServletHolder.handle(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(Optimized
 Method)
2005-02-17 16:18:42,312 ERROR [STDERR]  at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(Ljava.lang.String;Ljavax.servlet.http.HttpServletRequest;

[JBoss-user] [HTTPD, Servlets & JSP] - Re: Urgent OutOfMemory!!

2005-02-17 Thread gdevito
I've forgot that the problem displayed in the JVM console is :

kgefec : fatal error 0
kgepop : no error frame to pop for error 21503

Could be the Oracle OCI driver for 9.2.0.4 ?

If I use thin driver could I solve my problem ?



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3866915#3866915

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3866915


---
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=6595&alloc_id=14396&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [HTTPD, Servlets & JSP] - Urgent OutOfMemory!!

2005-02-14 Thread gdevito
How to verify what objects are not removed (finalized) from JVM ?

My JVM has an heap of 1024Mb and my application should not store
a lot of data, but after some days (2,3..) Jboss crash with an out
of memory error.

All my classes seam to be safe, without static members or referenced
objects.

Can anyone help me ?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3866505#3866505

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3866505


---
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=6595&alloc_id=14396&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Re: Strange behaivour of jboss cluster

2005-01-28 Thread gdevito
Multihomed means that :

Each ServerA and ServerB has two jboss instances with different Ip address 
binded.

Ex.:
Server A ==> two Ip Alias : 192.168.10.186, 192.168.10.188
First Jboss Instance
192.168.10.186 jboss.bind.address

Second Jboss Instance
192.168.10.188 jboss.bind.address


Server B ==> two Ip Alias : 192.168.10.187, 192.168.10.189
First Jboss instance
192.168.10.187 jboss.bind.address

Second Jboss instance
192.168.10.189 jboss.bind.address


Each First JBoss instance of ServerA and Server B forms a Cluster
in the DefaultPartition with the same multicast ip address and
group (HAJndi 1100).

Each Second Jboss instance of Server A and Server B forms another
Cluster in MyPArtition with the same multicast ip address and group
but different from the first Jboss instance
HAJNdi 1101

BEST regards.


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3864080#3864080

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3864080


---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Clustering/JBoss] - Strange behaivour of jboss cluster

2005-01-21 Thread gdevito
Hi all, 
I have two Host (A,B).
Each host has a multihomed Jboss installation.
Server A : Address ipA1, Address IpA2
Server B : Address ipB1, Address IpB2

Server A : Jboss1, Jboss2
Server B : Jboss1, Jboss2

Each Jboss1 is in the same cluster.
Jboss2 are another cluster.

My jboss version is 3.2.2.

Jboss1 contains a j2ee application and hosts some ejbs (Stateless EJB)
Jboss2 contains only ejbs (Stateless EJB).

In a JSP page I do two lookups : one for an EJB hosted by Jboss1 and
one for an EJB hosted by Jboss2. Jndi query are cached.


If I stop Jboss2, sometimes I get Service unavalible in the stack trace.
But this happends only for ejbs of Jboss2.
My jndi lookup looks like this :

p.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
p.put(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces");
p.put(Context.PROVIDER_URL,"ipA1:1101,ipA2:1101");
p.put("jnp.partitionName","myPartition");
p.put("jnp.discoveryGroup","224.10.10.10");
p.put("jnp.discoveryPort","1103");


Moreover, Jboss1 and Jboss2 have different Partition and Multicast
address. Each Jboss is started with --host option.


Anyone can help me ?

BEST REGARDS


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3863086#3863086

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3863086


---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user