activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Davies <rajdav...@gmail.com>
Subject Re: UnknownHostException on startup
Date Tue, 17 Jul 2007 05:09:35 GMT
Weird! The IdGenerator tries and establishes the InetAddress of the  
localhost whilst building up a unique stub to use for id generation.  
What is the name of the machine you are using ?
On Jul 16, 2007, at 7:13 AM, Jim Alateras wrote:

> I am starting to see the following exception when starting the  
> XBeanBroker
>
> Running  
> au.com.observant.ringocore.dispatcher.service.BlobEntryDispatcherTest
> 16/07/2007 16:11:29 org.apache.activemq.util.IdGenerator <clinit>
> WARNING: could not generate unique stub
> java.net.UnknownHostException: MERCURY: MERCURY
>         at java.net.InetAddress.getLocalHost(InetAddress.java:1308)
>         at org.apache.activemq.util.IdGenerator.<clinit> 
> (IdGenerator.java:51)
>         at org.apache.activemq.broker.region.RegionBroker.<clinit> 
> (RegionBroker.java:73)
>         at  
> org.apache.activemq.broker.BrokerService.createRegionBroker 
> (BrokerService.java:1266)
>         at org.apache.activemq.broker.BrokerService.createBroker 
> (BrokerService.java:1209)
>         at org.apache.activemq.broker.BrokerService.getBroker 
> (BrokerService.java:508)
>         at org.apache.activemq.broker.BrokerService.addConnector 
> (BrokerService.java:163)
>         at org.apache.activemq.broker.BrokerService.addConnector 
> (BrokerService.java:153)
>         at  
> org.apache.activemq.broker.BrokerService.processHelperProperties 
> (BrokerService.java:1035)
>         at org.apache.activemq.broker.BrokerService.start 
> (BrokerService.java:379)
>         at  
> org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet 
> (XBeanBrokerService.java:47)
>         at  
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanF 
> actory.invokeInitMethods(AbstractAutowireCapableBea
> nFactory.java:1058)
>         at  
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanF 
> actory.createBean(AbstractAutowireCapableBeanFactor
> y.java:363)
>         at  
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean( 
> AbstractBeanFactory.java:226)
>         at  
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean( 
> AbstractBeanFactory.java:147)
>         at  
> org.springframework.beans.factory.support.DefaultListableBeanFactory.p 
> reInstantiateSingletons(DefaultListableBeanFactory.
> java:275)
>         at  
> org.springframework.context.support.AbstractApplicationContext.refresh 
> (AbstractApplicationContext.java:318)
>         at  
> org.springframework.context.support.ClassPathXmlApplicationContext.<in 
> it>(ClassPathXmlApplicationContext.java:81)
>         at  
> org.springframework.context.support.ClassPathXmlApplicationContext.<in 
> it>(ClassPathXmlApplicationContext.java:66)
>         at  
> org.springframework.test.AbstractSpringContextTests.loadContextLocatio 
> ns(AbstractSpringContextTests.java:121)
>         at  
> org.springframework.test.AbstractDependencyInjectionSpringContextTests 
> .loadContextLocations(AbstractDependencyInjectionSp
> ringContextTests.java:161)
>         at  
> org.springframework.test.AbstractSpringContextTests.getContext 
> (AbstractSpringContextTests.java:101)
>         at  
> org.springframework.test.AbstractDependencyInjectionSpringContextTests 
> .setUp(AbstractDependencyInjectionSpringContextTest
> s.java:129)
>         at junit.framework.TestCase.runBare(TestCase.java:132)
>         at junit.framework.TestResult$1.protect(TestResult.java:110)
>         at junit.framework.TestResult.runProtected(TestResult.java: 
> 128)
>         at junit.framework.TestResult.run(TestResult.java:113)
>         at junit.framework.TestCase.run(TestCase.java:124)
>         at junit.framework.TestSuite.runTest(TestSuite.java:232)
>         at junit.framework.TestSuite.run(TestSuite.java:227)
>         at org.junit.internal.runners.OldTestClassRunner.run 
> (OldTestClassRunner.java:76)
>         at org.apache.maven.surefire.junit4.JUnit4TestSet.execute 
> (JUnit4TestSet.java:62)
>         at  
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTest 
> Set(AbstractDirectoryTestSuite.java:138)
>         at  
> org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute 
> (AbstractDirectoryTestSuite.java:125)
>         at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke 
> (NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke 
> (DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at  
> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess 
> (SurefireBooter.java:290)
>         at org.apache.maven.surefire.booter.SurefireBooter.main 
> (SurefireBooter.java:818)
>
>
>
> This is the broker configuration i am using
>
>     <bean id="broker"  
> class="org.apache.activemq.xbean.XBeanBrokerService">
>         <property name="persistenceAdapter">
>             <ref local="memPersistenceAdaptor"/>
>         </property>
>         <property name="transportConnectorURIs">
>             <list>
>                 <value>vm://localhost</value>
>             </list>
>         </property>
>         <property name="start" value="true"/>
>         <property name="useJmx" value="true" />
>     </bean>
>
>
> This is on W2K box. Any idea why this would be happening?


Mime
View raw message