[Installation, Configuration & DEPLOYMENT] - JBoss hangs, deadlock
by dahlgren325@fastmail.fm
Hi all,
I'm using JBoss 4.2.2.GA.
When I run a specific JSP script, JBoss hangs and stops responding after some time.
I took a threaddump and saw that there is some kind of deadlock. I don't want to post the whole thing unless it's necessary, but here is a snippet:
Found one Java-level deadlock:
=============================
"http-127.0.0.1-9080-2":
waiting to lock monitor 0x685d18bc (object 0x090536c8, a org.apache.log4j.spi.
RootLogger),
which is held by "Thread-5"
"Thread-5":
waiting to lock monitor 0x685d1854 (object 0x09156070, a org.jboss.logging.uti
l.LoggerStream),
which is held by "http-127.0.0.1-9080-1"
"http-127.0.0.1-9080-1":
waiting to lock monitor 0x685d18bc (object 0x090536c8, a org.apache.log4j.spi.
RootLogger),
which is held by "Thread-5"
Can anyone help?
Thank you/best regards,
Ronnie
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4197740#4197740
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4197740
17 years, 4 months
[JNDI/Naming/Network] - jndi lookup on a different app server (glassfish)
by 20div0
Trying to do what I thought would be a easy task but search the web up and down and can't find a solution.
I am try to access a remote ejb3 in glassfish(v2) from jboss (4.0.5).
On a stand-alone app, it's easy, I just include the appserv-rt.jar and javaee.jar in my classpath and create an initialcontext and do the lookup. Works just fine.
On jboss, it's different. I deleted all the *.properties file in the appserv-rt.jar so it won't interfere with jboss and rename it to xappserv-rt.jar and put it in the server's lib directory. Jboss won't even start.
Here are the different properties I tried:
1) This failed with ClassNotFound exception because I can't include appserv-rt.jar which define the com.sun.enterprise.naming.SerialInitContextFactory class:
properties.setProperty("java.naming.factory.initial", "com.sun.enterprise.naming.SerialInitContextFactory");
| properties.setProperty("java.naming.factory.url.pkgs", "com.sun.enterprise.naming");
| properties.setProperty("java.naming.factory.state", "com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl");
|
| properties.setProperty("org.omg.CORBA.ORBInitialHost", "1.2.3.4");
|
| properties.setProperty("org.omg.CORBA.ORBInitialPort", "3700");
|
|
2) Trying to use Jboss's naming factory but the connection seems to hang there and every return:
properties.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
| properties.put("java.naming.factory.url.pkgs",
| "org.jboss.naming:org.jnp.interfaces");
| properties.put("java.naming.provider.url", "jnp://1.2.3.4:3700");
3) A slight varient of 2) I found on the web but same result as in 2)
properties.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
| properties.setProperty("java.naming.factory.url.pkgs", "org.jnp.interfaces.NamingContextFactory");
| properties.setProperty("java.naming.provider.url", "http://1.2.3.4:3700");
4) Try using the corba naming service in jboss but got NameNotFound exception:
properties.setProperty("java.naming.factory.initial", "org.jboss.iiop.naming.ORBInitialContextFactory");
| properties.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
| properties.put("java.naming.provider.url", "iiop://1.2.3.4:3700");
|
Anyone try this before?
Andy
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4197733#4197733
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4197733
17 years, 4 months
[JBoss Cache: Core Edition] - Problem setting up clustered JBossCache
by mattdz
Hi everyone. We recently upgraded to JBossCache 3.0.1 and are having some troubles getting the clustered cache working. We're running on multi-homed IP systems with our clustered frontends feeding off the same directory for the web application. Here is the error we're getting:
n-21} at org.jboss.cache.util.reflect.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:144)
[14:13:03.989] {resin-21} ... 19 more
[14:13:03.989] {resin-21} Caused by: org.jboss.cache.CacheException: Unable to connect to JGroups channel
[14:13:03.989] {resin-21} at org.jboss.cache.RPCManagerImpl.start(RPCManagerImpl.java:207)
[14:13:03.989] {resin-21} ... 24 more
[14:13:03.989] {resin-21} Caused by: org.jgroups.ChannelException: failed to start protocol stack
[14:13:03.989] {resin-21} at org.jgroups.JChannel.startStack(JChannel.java:1555)
[14:13:03.989] {resin-21} at org.jgroups.JChannel.connect(JChannel.java:365)
[14:13:03.989] {resin-21} at org.jboss.cache.RPCManagerImpl.start(RPCManagerImpl.java:203)
[14:13:03.989] {resin-21} ... 24 more
[14:13:03.989] {resin-21} Caused by: java.lang.Exception: problem creating sockets (bind_addr=viper3/127.0.1.1, mcast_addr=228.10.10.10:45588)
[14:13:03.989] {resin-21} at org.jgroups.protocols.UDP.start(UDP.java:381)
[14:13:03.989] {resin-21} at org.jgroups.stack.Configurator.startProtocolStack(Configurator.java:129)
[14:13:03.989] {resin-21} at org.jgroups.stack.ProtocolStack.startStack(ProtocolStack.java:410)
[14:13:03.989] {resin-21} at org.jgroups.JChannel.startStack(JChannel.java:1552)
[14:13:03.989] {resin-21} ... 26 more
[14:13:03.989] {resin-21} Caused by: java.net.SocketException: bad argument for IP_MULTICAST_IF: address not bound to any interface
[14:13:03.989] {resin-21} at java.net.PlainDatagramSocketImpl.socketSetOption(Native Method)
[14:13:03.989] {resin-21} at java.net.PlainDatagramSocketImpl.setOption(PlainDatagramSocketImpl.java:299)
[14:13:03.989] {resin-21} at java.net.MulticastSocket.setInterface(MulticastSocket.java:420)
[14:13:03.989] {resin-21} at org.jgroups.protocols.UDP.createSockets(UDP.java:519)
[14:13:03.989] {resin-21} at org.jgrou
We get this with both the default udp.xml file being used for the JGroups config and the expanded cut and pasted version. In standard local mode, everything seems to work fine. On our dev machines, the udp.xml seems to work fine and picks up the single IP. We really would like the cluster to be listening on the 2nd NIC in the machine only since its on a private network. Any help would be greatly appreciated.
Thanks,
Matt
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4197730#4197730
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4197730
17 years, 4 months
[Remoting] - JBoss AS 4.2.3.GA java.net.SocketException
by sunilbabu
I am using JBoss AS 4.2.3.GA and jboss-4.2.0.CR2 with ejb3.0. I have a remote client that calls the method in server using sslscoket and both servers will successfully print out the echo message.
But If i try to call any method on 4.2.3 server from a remote client I will get a debug message about
java.net.SocketException: Socket closed
| at java.net.PlainSocketImpl.socketAccept(Native Method)
| at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384)
| at java.net.ServerSocket.implAccept(ServerSocket.java:450)
| at java.net.ServerSocket.accept(ServerSocket.java:421)
| at org.jboss.remoting.transport.socket.SocketServerInvoker.run(SocketServerInvoker.java:520)
| at java.lang.Thread.run(Thread.java:595)
On server I have
package com.test;
|
| import javax.ejb.Stateless;
| import org.jboss.annotation.ejb.RemoteBinding;
| import org.jboss.annotation.ejb.RemoteBindings;
|
|
| @RemoteBindings({
| @RemoteBinding(clientBindUrl="sslsocket://0.0.0.0:3843", jndiBinding="test_SSL")
| })
|
|
| public @Stateless class TestFacadeBean implements TestFacade{
| public TestFacadeBean() {
| }
|
| public void echo() {
| System.out.println("Hello");
| }
|
| }
package com.test;
|
| import javax.ejb.Remote;
|
| public @Remote interface TestFacade {
| public void echo();
| }
Client side
package com.test;
|
| import com.test.TestFacade;
| import javax.naming.InitialContext;
| import javax.naming.NamingException;
|
|
| public class Client {
|
| private InitialContext ctx;
| private TestFacade testFacade= null;
|
| public Client {
| }
|
| public static void main(String[] arg) {
| try {
| Client client = new Client();
| client.ctx = new InitialContext();
| client.testFacade= (TestFacade) ctx.lookup("test_SSL");
| client.testFacade.echo();
| } catch (Exception ex) {
| }
| }
|
| }
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4197719#4197719
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4197719
17 years, 4 months