Forum Discussion
jchas5
14 years agoContributor
Hi Dain;
I tired both methods, i.e adding it to the shell script and adding ito to the command line as a flag. Both almost worked.
Setting the https and http ports to different values allows the execution script to actually fully start and get to the line:
11:47:29,630 INFO [ControllerImpl] Agent started and listening on cometd!
Which indicates it is working, however about 5 seconds later, another java exception is thrown:
11:47:29,630 INFO [ControllerImpl] Agent started and listening on cometd!
11:47:32,601 ERROR [ContextLoaderListener] Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=com.eviware.loadui.runner-base, config=osgibundle:/META-INF/spring/*.xml))
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.eviware.loadui.impl.discovery.DiscoveryResponder#0' defined in URL [bundle://34.0:0/META-INF/spring/bundle-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.eviware.loadui.impl.discovery.DiscoveryResponder]: Constructor threw exception; nested exception is java.lang.RuntimeException: java.net.UnknownHostException: deathstar: deathstar
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:965)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)
at java.lang.Thread.run(Unknown Source)
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.eviware.loadui.impl.discovery.DiscoveryResponder]: Constructor threw exception; nested exception is java.lang.RuntimeException: java.net.UnknownHostException: deathstar: deathstar
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:958)
... 15 more
Caused by: java.lang.RuntimeException: java.net.UnknownHostException: deathstar: deathstar
at com.eviware.loadui.impl.discovery.DiscoveryResponder.<init>(DiscoveryResponder.java:46)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
... 17 more
Caused by: java.net.UnknownHostException: deathstar: deathstar
at java.net.InetAddress.getLocalHost(Unknown Source)
at com.eviware.loadui.impl.discovery.DiscoveryResponder.<init>(DiscoveryResponder.java:41)
... 22 more
11:47:32,604 ERROR [AbstractAutowireCapableBeanFactory] Uncaught exception in Thread "SpringOsgiExtenderThread-12":
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.eviware.loadui.impl.discovery.DiscoveryResponder#0' defined in URL [bundle://34.0:0/META-INF/spring/bundle-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.eviware.loadui.impl.discovery.DiscoveryResponder]: Constructor threw exception; nested exception is java.lang.RuntimeException: java.net.UnknownHostException: deathstar: deathstar
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:965)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)
at java.lang.Thread.run(Unknown Source)
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.eviware.loadui.impl.discovery.DiscoveryResponder]: Constructor threw exception; nested exception is java.lang.RuntimeException: java.net.UnknownHostException: deathstar: deathstar
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:958)
... 15 more
Caused by: java.lang.RuntimeException: java.net.UnknownHostException: deathstar: deathstar
at com.eviware.loadui.impl.discovery.DiscoveryResponder.<init>(DiscoveryResponder.java:46)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
... 17 more
Caused by: java.net.UnknownHostException: deathstar: deathstar
at java.net.InetAddress.getLocalHost(Unknown Source)
at com.eviware.loadui.impl.discovery.DiscoveryResponder.<init>(DiscoveryResponder.java:41)
... 22 more
My guess is that the flags are not being passed properly. Is there something else I may need to do? Previously, most of the installs I have done of loadUI-Agent have worked out of the box. This one is giving me some trouble. Is there something in java that is not set right?
Thanks for the help.
-J
I tired both methods, i.e adding it to the shell script and adding ito to the command line as a flag. Both almost worked.
Setting the https and http ports to different values allows the execution script to actually fully start and get to the line:
11:47:29,630 INFO [ControllerImpl] Agent started and listening on cometd!
Which indicates it is working, however about 5 seconds later, another java exception is thrown:
11:47:29,630 INFO [ControllerImpl] Agent started and listening on cometd!
11:47:32,601 ERROR [ContextLoaderListener] Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=com.eviware.loadui.runner-base, config=osgibundle:/META-INF/spring/*.xml))
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.eviware.loadui.impl.discovery.DiscoveryResponder#0' defined in URL [bundle://34.0:0/META-INF/spring/bundle-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.eviware.loadui.impl.discovery.DiscoveryResponder]: Constructor threw exception; nested exception is java.lang.RuntimeException: java.net.UnknownHostException: deathstar: deathstar
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:965)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)
at java.lang.Thread.run(Unknown Source)
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.eviware.loadui.impl.discovery.DiscoveryResponder]: Constructor threw exception; nested exception is java.lang.RuntimeException: java.net.UnknownHostException: deathstar: deathstar
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:958)
... 15 more
Caused by: java.lang.RuntimeException: java.net.UnknownHostException: deathstar: deathstar
at com.eviware.loadui.impl.discovery.DiscoveryResponder.<init>(DiscoveryResponder.java:46)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
... 17 more
Caused by: java.net.UnknownHostException: deathstar: deathstar
at java.net.InetAddress.getLocalHost(Unknown Source)
at com.eviware.loadui.impl.discovery.DiscoveryResponder.<init>(DiscoveryResponder.java:41)
... 22 more
11:47:32,604 ERROR [AbstractAutowireCapableBeanFactory] Uncaught exception in Thread "SpringOsgiExtenderThread-12":
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.eviware.loadui.impl.discovery.DiscoveryResponder#0' defined in URL [bundle://34.0:0/META-INF/spring/bundle-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.eviware.loadui.impl.discovery.DiscoveryResponder]: Constructor threw exception; nested exception is java.lang.RuntimeException: java.net.UnknownHostException: deathstar: deathstar
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:965)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)
at java.lang.Thread.run(Unknown Source)
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.eviware.loadui.impl.discovery.DiscoveryResponder]: Constructor threw exception; nested exception is java.lang.RuntimeException: java.net.UnknownHostException: deathstar: deathstar
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:958)
... 15 more
Caused by: java.lang.RuntimeException: java.net.UnknownHostException: deathstar: deathstar
at com.eviware.loadui.impl.discovery.DiscoveryResponder.<init>(DiscoveryResponder.java:46)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
... 17 more
Caused by: java.net.UnknownHostException: deathstar: deathstar
at java.net.InetAddress.getLocalHost(Unknown Source)
at com.eviware.loadui.impl.discovery.DiscoveryResponder.<init>(DiscoveryResponder.java:41)
... 22 more
My guess is that the flags are not being passed properly. Is there something else I may need to do? Previously, most of the installs I have done of loadUI-Agent have worked out of the box. This one is giving me some trouble. Is there something in java that is not set right?
Thanks for the help.
-J
Related Content
- 13 years ago
- 5 years ago
- 11 years ago
Recent Discussions
- 6 days ago
- 10 days ago