JRMP/RMI problem?
olegkon Jan 19, 2006 11:01 AMHi,
We have a few web applications with Security and Messaging EJB.
Works fine on several servers, but this particular server crashed after
a power failure about a month ago (may or may not be related).
We restarted it and it seem to work fine, but yesterday we saw a
messaging problem, so I checked server startup log
and found that both EJBs fail to deploy (no recent changes in configuration).
Might have to do with JRMP/RMI (port 4544 is RMI object port).
I am looking through the log, in addition to the few regular errors
(e.g. "port already in use"),
we had a few strange ones prior to MessageCenterService EJB failed to deploy:
[1:] WARN [ServiceController] Problem starting service jboss:service=invoker,type=jrmp
java.rmi.ServerException: Could not bind JRMP invoker; nested exception is:
java.rmi.server.ExportException: Port already in use: 4544; nested exception is:
java.net.BindException: Address already in use
?..
[2:] INFO [STDOUT] Server.run/init: java.sql.SQLException: File input/output error: /Volumes/pkgs2/jboss-3.0.7/server/default/db/hypersonic/default.backup
ERROR [STDERR] java.sql.SQLException: File input/output error: /Volumes/pkgs2/jboss-3.0.7/server/default/db/hypersonic/default.backup
ERROR [STDERR] at org.hsqldb.Trace.getError(Trace.java:180)
ERROR [STDERR] at org.hsqldb.Trace.getError(Trace.java:144)
ERROR [STDERR] at org.hsqldb.Trace.error(Trace.java:205)
ERROR [STDERR] at org.hsqldb.Log.restoreBackup(Log.java:731)
ERROR [STDERR] at org.hsqldb.Log.open(Log.java:212)
ERROR [STDERR] at org.hsqldb.Database.(Database.java:96)
ERROR [STDERR] at org.hsqldb.Embedded_Server.run(Embedded_Server.java:151)
ERROR [STDERR] at org.hsqldb.Embedded_Server.main(Embedded_Server.java:92)
ERROR [STDERR] at org.jboss.jdbc.HypersonicDatabase$2.run(HypersonicDatabase.java:186)
That is a part of JBoss, why would it fail? (appman has no permission to read that file)?
[3:] That seem to be a JBoss service for EJBs
INFO [MainDeployer] Starting deployment of package: file:/Volumes/pkgs2/jboss-3.0.7/server/default/deploy/ejb-management.jar
INFO [EjbModule] Creating
INFO [EjbModule] Deploying MEJB
INFO [EjbModule] Created
INFO [EjbModule] Starting
WARN [ServiceController] Problem starting service jboss.j2ee:jndiName=ejb/mgmt/MEJB,service=EJB
java.rmi.ServerException: Could not bind home; nested exception is:
javax.naming.CommunicationException [Root exception is java.rmi.NoSuchObjectException: object not exported]
at org.jboss.proxy.ejb.ProxyFactory.bindProxy(ProxyFactory.java:343)
at org.jboss.proxy.ejb.ProxyFactory.start(ProxyFactory.java:187)
at org.jboss.ejb.StatelessSessionContainer.start(StatelessSessionContainer.java:206)
at org.jboss.ejb.Container.invoke(Container.java:782)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
?..
[4:] Another EJB service failing:
INFO [MainDeployer] Starting deployment of package: file:/Volumes/pkgs2/jboss-3.0.7/server/default/deploy/jmx-ejb-adaptor.jar
INFO [EjbModule] Creating
INFO [EjbModule] Deploying jmx/ejb/Adaptor
INFO [EjbModule] Created
INFO [EjbModule] Starting
WARN [ServiceController] Problem starting service jboss.j2ee:jndiName=ejb/jmx/ejb/Adaptor,service=EJB
java.rmi.ServerException: Could not bind home; nested exception is:
javax.naming.CommunicationException [Root exception is java.rmi.NoSuchObjectException: object not exported]
at org.jboss.proxy.ejb.ProxyFactory.bindProxy(ProxyFactory.java:343)
at org.jboss.proxy.ejb.ProxyFactory.start(ProxyFactory.java:187)
at org.jboss.ejb.StatelessSessionContainer.start(StatelessSessionContainer.java:206)
at org.jboss.ejb.Container.invoke(Container.java:782)
?.
[5:] Our SecurityControllerEJB failing:
INFO [MainDeployer] Starting deployment of package: file:/Volumes/pkgs2/jboss-3.0.7/server/default/deploy/SecurityControllerEJB-1.4.2.jar
18:04:06,875 INFO [EjbModule] Creating
18:04:06,894 INFO [EjbModule] Deploying SecurityControllerEJB
18:04:06,933 INFO [EjbModule] Created
18:04:06,933 INFO [EjbModule] Starting
18:04:06,966 WARN [ServiceController] Problem starting service jboss.j2ee:jndiName=SecurityControllerEJB,service=EJB
java.rmi.ServerException: Could not bind home; nested exception is:
javax.naming.CommunicationException [Root exception is java.rmi.NoSuchObjectException: object not exported]
at org.jboss.proxy.ejb.ProxyFactory.bindProxy(ProxyFactory.java:343)
at org.jboss.proxy.ejb.ProxyFactory.start(ProxyFactory.java:187)
at org.jboss.ejb.StatelessSessionContainer.start(StatelessSessionContainer.java:206)
at org.jboss.ejb.Container.invoke(Container.java:782)
??.
[6:] And here is our MessageCenter EJB failing:
INFO [MainDeployer] Starting deployment of package: file:/Volumes/pkgs2/jboss-3.0.7/server/default/deploy/messaging-center.ear
INFO [EARDeployer] Init J2EE application: file:/Volumes/pkgs2/jboss-3.0.7/server/default/deploy/messaging-center.ear
INFO [EjbModule] Creating
INFO [EjbModule] Deploying MessageCenterService
INFO [EjbModule] Deploying TopicStorageService
INFO [EjbModule] Deploying MessageStorageService
INFO [EjbModule] Deploying MessagePublisherService
INFO [EjbModule] Deploying MessageSender
INFO [JMSContainerInvoker] Creating
INFO [JMSContainerInvoker] Created
INFO [EjbModule] Created
INFO [EjbModule] Starting
WARN [ServiceController] Problem starting service jboss.j2ee:jndiName=dotech/messaging/MessageCenterService,service=EJB
java.rmi.ServerException: Could not bind home; nested exception is:
javax.naming.CommunicationException [Root exception is java.rmi.NoSuchObjectException: object not exported]
at org.jboss.proxy.ejb.ProxyFactory.bindProxy(ProxyFactory.java:343)
at org.jboss.proxy.ejb.ProxyFactory.start(ProxyFactory.java:187)
at org.jboss.ejb.StatelessSessionContainer.start(StatelessSessionContainer.java:206)
at org.jboss.ejb.Container.invoke(Container.java:782)
What might be causing such problems ?
Any help is very appreciated (I am pretty new to EJB and JBoss).
Thank you in advance,
Oleg.