Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 90406 invoked from network); 19 Sep 2010 02:44:16 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Sep 2010 02:44:16 -0000 Received: (qmail 61367 invoked by uid 500); 19 Sep 2010 02:44:15 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 60843 invoked by uid 500); 19 Sep 2010 02:44:14 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 60826 invoked by uid 99); 19 Sep 2010 02:44:13 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Sep 2010 02:44:13 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Sep 2010 02:43:55 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8J2hY8A007573 for ; Sun, 19 Sep 2010 02:43:34 GMT Message-ID: <7845839.279751284864214064.JavaMail.jira@thor> Date: Sat, 18 Sep 2010 22:43:34 -0400 (EDT) From: "viola.lu (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Resolved: (GERONIMO-5371) Connection refused when change ServerHostName attribute to short hostname In-Reply-To: <14251664.20291275980650843.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/GERONIMO-5371?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] viola.lu resolved GERONIMO-5371. -------------------------------- Resolution: Fixed this is fixed in activemq 5.4, so resolve it. > Connection refused when change ServerHostName attribute to short hostname > ------------------------------------------------------------------------- > > Key: GERONIMO-5371 > URL: https://issues.apache.org/jira/browse/GERONIMO-5371 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: ActiveMQ > Affects Versions: 2.2.1 > Environment: OS: windows 2003, redhat 5.3, suse sp 10 > Latest build: 2010.06.08-07:44:42.869-0400 > Reporter: viola.lu > Assignee: Rex Wang > Fix For: 2.2.1 > > > 1. On linux server, its /etc/hosts is like below: > IP-Address Full-Qualified-Hostname Short-Hostname > 127.0.0.1 localhost > 9.186.10.68 suse10sp268.site suse10sp268 > 2.Go to server installation directory $server/var/config/cconfig-substitutions.properties, > Change ServerHostName = 0.0.0.0 to ServerHostName=suse10sp268 > 3.Start server, but activemq-ra module reported errors: > 2010-06-08 15:43:38,281 ERROR [MCFConnectionInterceptor] Error occurred creating ManagedConnection for org.apache.geronimo.connector.outbound.ConnectionInfo@1a1f058 > javax.resource.ResourceException: Could not create connection. > at org.apache.activemq.ra.ActiveMQManagedConnectionFactory.createManagedConnection(ActiveMQManagedConnectionFactory.java:171) > at org.apache.geronimo.connector.outbound.MCFConnectionInterceptor.getConnection(MCFConnectionInterceptor.java:49) > at org.apache.geronimo.connector.outbound.XAResourceInsertionInterceptor.getConnection(XAResourceInsertionInterceptor.java:41) > at org.apache.geronimo.connector.outbound.SinglePoolConnectionInterceptor.internalGetConnection(SinglePoolConnectionInterceptor.java:69) > at org.apache.geronimo.connector.outbound.AbstractSinglePoolConnectionInterceptor.getConnection(AbstractSinglePoolConnectionInterceptor.java:80) > at org.apache.geronimo.connector.outbound.TransactionEnlistingInterceptor.getConnection(TransactionEnlistingInterceptor.java:46) > at org.apache.geronimo.connector.outbound.TransactionCachingInterceptor.getConnection(TransactionCachingInterceptor.java:103) > at org.apache.geronimo.connector.outbound.TCCLInterceptor.getConnection(TCCLInterceptor.java:39) > at org.apache.geronimo.connector.outbound.AbstractConnectionManager.doRecovery(AbstractConnectionManager.java:65) > at org.apache.geronimo.connector.outbound.ManagedConnectionFactoryWrapper.doStart(ManagedConnectionFactoryWrapper.java:164) > at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:953) > at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:269) > at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:103) > at org.apache.geronimo.gbean.runtime.GBeanInstance.start(GBeanInstance.java:525) > at org.apache.geronimo.gbean.runtime.GBeanDependency.attemptFullStart(GBeanDependency.java:110) > at org.apache.geronimo.gbean.runtime.GBeanDependency.addTarget(GBeanDependency.java:145) > at org.apache.geronimo.gbean.runtime.GBeanDependency$1.running(GBeanDependency.java:119) > at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.fireRunningEvent(BasicLifecycleMonitor.java:175) > at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor.access$300(BasicLifecycleMonitor.java:44) > at org.apache.geronimo.kernel.basic.BasicLifecycleMonitor$RawLifecycleBroadcaster.fireRunningEvent(BasicLifecycleMonitor.java:253) > at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:295) > at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:103) > at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:125) > at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:539) > at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:377) > at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:456) > at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:190) > at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:546) > at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34) > at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:130) > at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:816) > at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57) > at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35) > at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96) > at org.apache.geronimo.gbean.GBeanLifecycle$$EnhancerByCGLIB$$785d013c.startConfiguration() > at org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:204) > at org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:87) > at org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45) > at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65) > at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:30) > Caused by: javax.jms.JMSException: Could not connect to broker URL: tcp://suse10sp268:61616. Reason: java.net.ConnectException: Connection refused: connect > at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:35) > at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:286) > at org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:185) > at org.apache.activemq.ra.ActiveMQConnectionSupport.makeConnection(ActiveMQConnectionSupport.java:79) > at org.apache.activemq.ra.ActiveMQConnectionSupport.makeConnection(ActiveMQConnectionSupport.java:61) > at org.apache.activemq.ra.ActiveMQManagedConnectionFactory.createManagedConnection(ActiveMQManagedConnectionFactory.java:169) > ... 42 more > Caused by: java.net.ConnectException: Connection refused: connect > at java.net.PlainSocketImpl.socketConnect(Native Method) > at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) > at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) > at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) > at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) > at java.net.Socket.connect(Socket.java:519) > at org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:483) > at org.apache.activemq.transport.tcp.TcpTransport.doStart(TcpTransport.java:446) > at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:53) > at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58) > at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58) > at org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72) > at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58) > at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58) > at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:266) > ... 46 more > If i change ServerHostName=suse10sp268 to ServerHostName=suse10sp268.site, no error. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.