Validate Script always runs error

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

Validate Script always runs error

Run Qiusheng
HI!
It done good on my PC,but runs error on Linux OS,,I had check out the CLASSPATH,but it dosen't work,thank you for your help very much!
Failed to instantiate [ch.qos.logback.classic.LoggerContext]
Reported exception:
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 java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:247)
        at sun.misc.Service$LazyIterator.next(Service.java:271)
        at java.net.InetAddress$2.run(InetAddress.java:869)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.InetAddress.<clinit>(InetAddress.java:863)
        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.NullPointerException
        at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1201)
        at java.net.InetAddress.getAllByName0(InetAddress.java:1154)
        at java.net.InetAddress.getAllByName(InetAddress.java:1084)
        at java.net.InetAddress.getAllByName(InetAddress.java:1020)
        at java.net.InetAddress.getByName(InetAddress.java:970)
        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)
        ... 30 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)
+
nGrinder v3.3
Reply | Threaded
Open this post in threaded view
|

Re: Validate Script always runs error

songeunwoo
Can I see a script written for you?