JBoss AS 6.0.0.M3 - Fails to boot when not on network, with HornetQ errors
jaikiran May 6, 2010 8:10 AMJust downloaded AS 6.0.0.M3 and was just testing it out. When my system is not connected to a network, I see that the AS fails with startup errors related to HornetQ clustering configurations. I am booting the "default" AS config, so I don't know whether HornetQ should even be trying to join a cluster group. Here's the error I get: {code} 13:00:21,653 INFO [AbstractJBossASServerBase] Server Configuration: JBOSS_HOME URL: file:/home/jpai/jboss-6.0.0.M3/ Bootstrap: $JBOSS_HOME/server/default/conf/bootstrap.xml Common Base: $JBOSS_HOME/common/ Common Library: $JBOSS_HOME/common/lib/ Server Name: default Server Base: $JBOSS_HOME/server/ Server Library: $JBOSS_HOME/server/default/lib/ Server Config: $JBOSS_HOME/server/default/conf/ Server Home: $JBOSS_HOME/server/default/ Server Data: $JBOSS_HOME/server/default/data Server Log: $JBOSS_HOME/server/default/log/ Server Temp: $JBOSS_HOME/server/default/tmp 13:00:21,657 INFO [AbstractServer] Starting: JBossAS [6.0.0.20100429-M3 "Neo"] 13:00:24,069 INFO [ServerInfo] Java version: 1.6.0_16,Sun Microsystems Inc. 13:00:24,069 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_16-b01) 13:00:24,069 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 14.2-b01,Sun Microsystems Inc. 13:00:24,069 INFO [ServerInfo] OS-System: Linux 2.6.18-164.11.1.el5,i386 13:00:24,070 INFO [ServerInfo] VM arguments: -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Stack=true -Dprogram.name=run.sh -Djava.library.path=/NotBackedUp/jpai/jboss-6.0.0.M3/bin/native/lib -Djava.endorsed.dirs=/NotBackedUp/jpai/jboss-6.0.0.M3/lib/endorsed 13:00:24,112 INFO [JMXKernel] Legacy JMX core initialized 13:00:30,327 INFO [AbstractServerConfig] JBoss Web Services - Native Server 3.3.0.CR1.SP2 13:00:38,421 INFO [JMXConnector] starting JMXConnector on host 0.0.0.0:1090 13:00:39,058 INFO [MailService] Mail Service bound to java:/Mail 13:00:39,814 INFO [HornetQServerImpl] live server is starting.. 13:00:39,950 INFO [JournalStorageManager] Using AIO Journal 13:00:39,975 WARNING [HornetQServerImpl] Security risk! It has been detected that the cluster admin user and password have not been changed from the installation default. Please see the HornetQ user guide, cluster chapter, for instructions on how to do this. 13:00:47,688 ERROR [AbstractKernelController] Error installing to Start: name=JMSServerManager state=Create: java.net.SocketException: No such device at java.net.PlainDatagramSocketImpl.join(Native Method) [:1.6.0_16] at java.net.PlainDatagramSocketImpl.join(PlainDatagramSocketImpl.java:172) [:1.6.0_16] at java.net.MulticastSocket.joinGroup(MulticastSocket.java:276) [:1.6.0_16] at org.hornetq.core.cluster.impl.DiscoveryGroupImpl.start(DiscoveryGroupImpl.java:124) [:6.0.0.20100429-M3] at org.hornetq.core.server.cluster.impl.ClusterManagerImpl.deployDiscoveryGroup(ClusterManagerImpl.java:357) [:6.0.0.20100429-M3] at org.hornetq.core.server.cluster.impl.ClusterManagerImpl.start(ClusterManagerImpl.java:142) [:6.0.0.20100429-M3] at org.hornetq.core.server.impl.HornetQServerImpl.initialisePart2(HornetQServerImpl.java:1090) [:6.0.0.20100429-M3] at org.hornetq.core.server.impl.HornetQServerImpl.start(HornetQServerImpl.java:310) [:6.0.0.20100429-M3] at org.hornetq.jms.server.impl.JMSServerManagerImpl.start(JMSServerManagerImpl.java:233) [:6.0.0.20100429-M3] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_16] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_16] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_16] at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_16] at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59) [jboss-reflect.jar:2.2.0.Alpha4] at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:168) [jboss-reflect.jar:2.2.0.Alpha4] at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66) [jboss-reflect.jar:2.2.0.Alpha4] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:257) [jboss-kernel.jar:2.2.0.Alpha9] at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47) [jboss-kernel.jar:2.2.0.Alpha9] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:125) [jboss-kernel.jar:2.2.0.Alpha9] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:72) [jboss-kernel.jar:2.2.0.Alpha9] at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:202) [jboss-kernel.jar:2.2.0.Alpha9] at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.Alpha9] at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.Alpha9] at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.Alpha9] at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.Alpha9] at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.Alpha9] at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:377) [jboss-dependency.jar:2.2.0.Alpha9] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2042) [jboss-dependency.jar:2.2.0.Alpha9] at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1081) [jboss-dependency.jar:2.2.0.Alpha9] at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1320) [jboss-dependency.jar:2.2.0.Alpha9] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1244) [jboss-dependency.jar:2.2.0.Alpha9] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1137) [jboss-dependency.jar:2.2.0.Alpha9] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:892) [jboss-dependency.jar:2.2.0.Alpha9] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:639) [jboss-dependency.jar:2.2.0.Alpha9] at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:180) [:2.2.0.Alpha4] at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:58) [:2.2.0.Alpha4] at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62) [:2.2.0.Alpha4] at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55) [:2.2.0.Alpha4] at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.Alpha4] at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1857) [:2.2.0.Alpha4] at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1575) [:2.2.0.Alpha4] at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1596) [:2.2.0.Alpha4] at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1516) [:2.2.0.Alpha4] at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:377) [jboss-dependency.jar:2.2.0.Alpha9] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2042) [jboss-dependency.jar:2.2.0.Alpha9] at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1081) [jboss-dependency.jar:2.2.0.Alpha9] at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1320) [jboss-dependency.jar:2.2.0.Alpha9] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1244) [jboss-dependency.jar:2.2.0.Alpha9] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1137) [jboss-dependency.jar:2.2.0.Alpha9] at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:937) [jboss-dependency.jar:2.2.0.Alpha9] at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:652) [jboss-dependency.jar:2.2.0.Alpha9] at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:2008) [:2.2.0.Alpha4] at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1101) [:2.2.0.Alpha4] at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.Alpha4] at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117) [:6.0.0.20100429-M3] at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70) [:6.0.0.20100429-M3] at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53) [:6.0.0.20100429-M3] at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:403) [:6.0.0.20100429-M3] at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:377) [jboss-dependency.jar:2.2.0.Alpha9] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2042) [jboss-dependency.jar:2.2.0.Alpha9] at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1081) [jboss-dependency.jar:2.2.0.Alpha9] at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1320) [jboss-dependency.jar:2.2.0.Alpha9] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1244) [jboss-dependency.jar:2.2.0.Alpha9] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1137) [jboss-dependency.jar:2.2.0.Alpha9] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:892) [jboss-dependency.jar:2.2.0.Alpha9] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:639) [jboss-dependency.jar:2.2.0.Alpha9] at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(AbstractProfileService.java:308) [:6.0.0.20100429-M3] at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:256) [:6.0.0.20100429-M3] at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:97) [:6.0.0.20100429-M3] at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5] at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5] at java.lang.Thread.run(Thread.java:619) [:1.6.0_16] 13:00:47,767 INFO [WebService] Using RMI server codebase: http://localhost.localdomain:8083/ 13:00:48,530 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /NotBackedUp/jpai/jboss-6.0.0.M3/bin/native/lib 13:00:48,729 INFO [TomcatDeployment] deploy, ctxPath=/invoker 13:00:49,318 INFO [RARDeployment] Required license terms exist, view vfs:/NotBackedUp/jpai/jboss-6.0.0.M3/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml 13:00:49,333 INFO [RARDeployment] Required license terms exist, view vfs:/NotBackedUp/jpai/jboss-6.0.0.M3/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml 13:00:49,356 INFO [RARDeployment] Required license terms exist, view vfs:/NotBackedUp/jpai/jboss-6.0.0.M3/server/default/deploy/jms-ra.rar/META-INF/ra.xml 13:00:49,385 INFO [HornetQResourceAdapter] HornetQ resource adaptor started 13:00:49,391 INFO [RARDeployment] Required license terms exist, view vfs:/NotBackedUp/jpai/jboss-6.0.0.M3/server/default/deploy/mail-ra.rar/META-INF/ra.xml 13:00:49,402 INFO [RARDeployment] Required license terms exist, view vfs:/NotBackedUp/jpai/jboss-6.0.0.M3/server/default/deploy/quartz-ra.rar/META-INF/ra.xml 13:00:49,467 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: Thread-2 13:00:49,498 INFO [SchedulerSignalerImpl] Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl 13:00:49,499 INFO [QuartzScheduler] Quartz Scheduler v.1.7.3 created. 13:00:49,501 INFO [RAMJobStore] RAMJobStore initialized. 13:00:49,501 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties' 13:00:49,501 INFO [StdSchedulerFactory] Quartz scheduler version: 1.7.3 13:00:49,505 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started. 13:00:50,181 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS' 13:00:50,458 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA' 13:00:50,491 INFO [xnio] XNIO Version 2.1.0.CR2 13:00:50,494 INFO [nio] XNIO NIO Implementation Version 2.1.0.CR2 13:00:50,893 INFO [remoting] JBoss Remoting version 3.1.0.Beta2 13:00:50,974 INFO [TomcatDeployment] deploy, ctxPath=/ 13:00:51,045 INFO [service] Removing bootstrap log handlers 13:00:51,120 INFO [org.jboss.system.server.profileservice.ProfileServiceBootstrap] Loading profile: ProfileKey@181f5b[domain=default, server=default, name=default] 13:00:51,123 ERROR [org.jboss.system.server.profileservice.ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS): DEPLOYMENTS MISSING DEPENDENCIES: Deployment "JMSConnectionFactoryManageMO" is missing the following dependencies: Dependency "" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'JMSServerManager' **") Deployment "JMSQueueManageMO" is missing the following dependencies: Dependency "" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'JMSServerManager' **") Deployment "JMSServerMO" is missing the following dependencies: Dependency "" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'JMSServerManager' **") Deployment "JMSTopicManageMO" is missing the following dependencies: Dependency "" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'JMSServerManager' **") Deployment "org.hornetq:module=JMS,name="InVMConnectionFactory",type=ConnectionFactory" is missing the following dependencies: Dependency "JMSServerManager" (should be in state "Installed", but is actually in state "**ERROR**") Deployment "org.hornetq:module=JMS,name="NettyConnectionFactory",type=ConnectionFactory" is missing the following dependencies: Dependency "JMSServerManager" (should be in state "Installed", but is actually in state "**ERROR**") Deployment "org.hornetq:module=JMS,name="NettyThroughputConnectionFactory",type=ConnectionFactory" is missing the following dependencies: Dependency "JMSServerManager" (should be in state "Installed", but is actually in state "**ERROR**") Deployment "org.hornetq:module=JMS,type=Queue,name="DLQ"" is missing the following dependencies: Dependency "JMSServerManager" (should be in state "Installed", but is actually in state "**ERROR**") Deployment "org.hornetq:module=JMS,type=Queue,name="ExpiryQueue"" is missing the following dependencies: Dependency "JMSServerManager" (should be in state "Installed", but is actually in state "**ERROR**") DEPLOYMENTS IN ERROR: Deployment "JMSServerManager" is in error due to the following reason(s): java.net.SocketException: No such device, **ERROR** Deployment "" is in error due to the following reason(s): ** UNRESOLVED Demands 'JMSServerManager' ** Deployment "" is in error due to the following reason(s): ** UNRESOLVED Demands 'JMSServerManager' ** Deployment "" is in error due to the following reason(s): ** UNRESOLVED Demands 'JMSServerManager' ** Deployment "" is in error due to the following reason(s): ** UNRESOLVED Demands 'JMSServerManager' ** 13:00:51,144 INFO [org.apache.coyote.http11.Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080 13:00:51,151 INFO [org.apache.coyote.ajp.AjpProtocol] Starting Coyote AJP/1.3 on ajp-0.0.0.0-8009 13:00:51,152 INFO [org.jboss.bootstrap.impl.base.server.AbstractServer] JBossAS [6.0.0.20100429-M3 "Neo"] Started in 29s:478ms 13:00:52,716 ERROR [org.hornetq.core.server.cluster.impl.BroadcastGroupImpl] Failed to broadcast connector configs: java.io.IOException: Network is unreachable at java.net.PlainDatagramSocketImpl.send(Native Method) [:1.6.0_16] at java.net.DatagramSocket.send(DatagramSocket.java:612) [:1.6.0_16] at org.hornetq.core.server.cluster.impl.BroadcastGroupImpl.broadcastConnectors(BroadcastGroupImpl.java:239) [:6.0.0.20100429-M3] at org.hornetq.core.server.cluster.impl.BroadcastGroupImpl.run(BroadcastGroupImpl.java:251) [:6.0.0.20100429-M3] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [:1.6.0_16] at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [:1.6.0_16] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [:1.6.0_16] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) [:1.6.0_16] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181) [:1.6.0_16] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205) [:1.6.0_16] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_16] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_16] at java.lang.Thread.run(Thread.java:619) [:1.6.0_16] {code} Looking at the HornetQ configs (and the stacktrace) it appears to be related to the discovery group configuration: {code:xml} <discovery-groups> <discovery-group name="dg-group1"> <group-address>231.7.7.7</group-address> <group-port>9876</group-port> <refresh-timeout>10000</refresh-timeout> </discovery-group> </discovery-groups> {code} In addition to finding a solution to preventing the error on bootup (when not connected to network), the other questions I had were: 1) Should HornetQ have clustering capabilities in "default" config of AS? 2) Should those (and other similar) group-address and ports be configured to ServiceBindingManager in AS?