ngrinder3.3控制台验证脚本报错

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

ngrinder3.3控制台验证脚本报错

ypspace
目前发现3.3版本在控制台校验脚本报错,无法执行,但执行测试分发到压力机上可以正常执行。
已下是错误日志:
Failed to instantiate [ch.qos.logback.classic.LoggerContext]
Reported exception:
sun.misc.ServiceConfigurationError: sun.net.spi.nameservice.NameServiceDescriptor: Provider org.ngrinder.dns.LocalManagedDnsDescriptor could not be instantiated: java.lang.ExceptionInInitializerError
        at sun.misc.Service.fail(Service.java:120)
        at sun.misc.Service.access$200(Service.java:111)
        at sun.misc.Service$LazyIterator.next(Service.java:284)
        at java.net.InetAddress$2.run(InetAddress.java:895)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.InetAddress.<clinit>(InetAddress.java:889)
        at ch.qos.logback.core.util.ContextUtil.getLocalHostName(ContextUtil.java:32)
        at ch.qos.logback.core.util.ContextUtil.addHostNameAsProperty(ContextUtil.java:41)
        at ch.qos.logback.classic.joran.action.ConfigurationAction.begin(ConfigurationAction.java:48)
        at ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:276)
        at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:148)
        at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:130)
        at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50)
        at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:147)
        at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:133)
        at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:96)
        at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:55)
        at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:75)
        at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:148)
        at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:84)
        at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:54)
        at org.slf4j.LoggerFactory.bind(LoggerFactory.java:128)
        at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:108)
        at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:279)
        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:252)
        at net.grinder.engine.process.WorkerProcessEntryPoint.run(WorkerProcessEntryPoint.java:73)
        at net.grinder.engine.process.WorkerProcessEntryPoint.main(WorkerProcessEntryPoint.java:60)
Caused by: java.lang.ExceptionInInitializerError
        at org.ngrinder.dns.LocalManagedDnsImpl.<init>(LocalManagedDnsImpl.java:33)
        at org.ngrinder.dns.LocalManagedDnsProxy.<init>(LocalManagedDnsProxy.java:30)
        at org.ngrinder.dns.LocalManagedDnsDescriptor.<clinit>(LocalManagedDnsDescriptor.java:29)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at java.lang.Class.newInstance0(Class.java:357)
        at java.lang.Class.newInstance(Class.java:310)
        at sun.misc.Service$LazyIterator.next(Service.java:282)
        ... 24 more
Caused by: java.lang.NullPointerException
        at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1229)
        at java.net.InetAddress.getAllByName0(InetAddress.java:1180)
        at java.net.InetAddress.getAllByName(InetAddress.java:1110)
        at java.net.InetAddress.getAllByName(InetAddress.java:1046)
        at java.net.InetAddress.getByName(InetAddress.java:996)
        at org.xbill.DNS.SimpleResolver.<init>(SimpleResolver.java:56)
        at org.xbill.DNS.SimpleResolver.<init>(SimpleResolver.java:68)
        at org.xbill.DNS.ExtendedResolver.<init>(ExtendedResolver.java:266)
        at org.xbill.DNS.Lookup.refreshDefault(Lookup.java:86)
        at org.xbill.DNS.Lookup.<clinit>(Lookup.java:97)
        ... 34 more
Exception in thread "main" java.lang.NoClassDefFoundError: Could not initialize class java.net.InetAddress
        at ch.qos.logback.core.util.ContextUtil.getLocalHostName(ContextUtil.java:32)
        at ch.qos.logback.core.util.ContextUtil.addHostNameAsProperty(ContextUtil.java:41)
        at ch.qos.logback.classic.joran.action.ConfigurationAction.begin(ConfigurationAction.java:48)
        at ch.qos.logback.core.joran.spi.Interpreter.callBeginAction(Interpreter.java:276)
        at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:148)
        at ch.qos.logback.core.joran.spi.Interpreter.startElement(Interpreter.java:130)
        at ch.qos.logback.core.joran.spi.EventPlayer.play(EventPlayer.java:50)
        at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:147)
        at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:133)
        at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:96)
        at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:55)
        at net.grinder.engine.process.GrinderProcess.configureLogging(GrinderProcess.java:257)
        at net.grinder.engine.process.GrinderProcess.<init>(GrinderProcess.java:141)
        at net.grinder.engine.process.WorkerProcessEntryPoint.run(WorkerProcessEntryPoint.java:78)
        at net.grinder.engine.process.WorkerProcessEntryPoint.main(WorkerProcessEntryPoint.java:60)

控制台的hosts文件如下:
[new@controller-01 logs]$ getent hosts
127.0.0.1       localhost localhost.localdomain localhost4 localhost4.localdomain4
127.0.0.1       localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.1.210   controller-01
192.168.1.211   agent-01
192.168.1.212   agent-02
Reply | Threaded
Open this post in threaded view
|

Re: ngrinder3.3控制台验证脚本报错

kevin yun
hello

can i get solution of this error?
Reply | Threaded
Open this post in threaded view
|

Re: ngrinder3.3控制台验证脚本报错

tage
In reply to this post by ypspace
这个问题有处理吗?3.4.1版本还存在这个问题
Reply | Threaded
Open this post in threaded view
|

Re: ngrinder3.3控制台验证脚本报错

Frank.Wang
In reply to this post by ypspace
我目前也碰到这种问题,我是在云平台运行的时候碰到这种情况的。云平台无法访问外网,怀疑是因为无网络访问权限导致的。