org.testng.TestNGException

Cannot instantiate class com.hazelcast.cache.CacheUnitTest

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web101

  • Cannot instantiate class com.hazelcast.cache.CacheUnitTest
  • via Google Groups by Idan Shay, 9 months ago
    Cannot instantiate class com.fmr.BusinessTests.PartAFileUploadServer
  • via Jenkins JIRA by kutzi, 1 year ago
    Cannot instantiate class XyzTest
  • Stack trace

    • org.testng.TestNGException: Cannot instantiate class com.hazelcast.cache.CacheUnitTest at org.testng.internal.ObjectFactoryImpl.newInstance(ObjectFactoryImpl.java:37) at org.testng.internal.ClassHelper.createInstance1(ClassHelper.java:372) at org.testng.internal.ClassHelper.createInstance(ClassHelper.java:284) at org.testng.internal.ClassImpl.getDefaultInstance(ClassImpl.java:109) at org.testng.internal.ClassImpl.getInstances(ClassImpl.java:181) at org.testng.internal.TestNGClassFinder.<init>(TestNGClassFinder.java:120) at org.testng.TestRunner.initMethods(TestRunner.java:402) at org.testng.TestRunner.init(TestRunner.java:228) at org.testng.TestRunner.init(TestRunner.java:198) at org.testng.TestRunner.<init>(TestRunner.java:154) at org.testng.remote.RemoteTestNG$1.newTestRunner(RemoteTestNG.java:141) at org.testng.remote.RemoteTestNG$DelegatingTestRunnerFactory.newTestRunner(RemoteTestNG.java:270) at org.testng.SuiteRunner$ProxyTestRunnerFactory.newTestRunner(SuiteRunner.java:561) at org.testng.SuiteRunner.init(SuiteRunner.java:156) at org.testng.SuiteRunner.<init>(SuiteRunner.java:110) at org.testng.TestNG.createSuiteRunner(TestNG.java:1235) at org.testng.TestNG.createSuiteRunners(TestNG.java:1222) at org.testng.TestNG.runSuitesLocally(TestNG.java:1074) at org.testng.TestNG.run(TestNG.java:999) at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111) at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:203) at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:174) at org.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:125) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at org.testng.internal.ObjectFactoryImpl.newInstance(ObjectFactoryImpl.java:28) ... 27 more Caused by: java.lang.NumberFormatException: null at java.lang.Integer.parseInt(Integer.java:454) at java.lang.Byte.parseByte(Byte.java:148) at java.lang.Byte.parseByte(Byte.java:174) at com.hazelcast.instance.BuildInfoProvider.getBuildInfo(BuildInfoProvider.java:67) at com.hazelcast.config.AbstractXmlConfigHelper.getReleaseVersion(AbstractXmlConfigHelper.java:210) at com.hazelcast.config.AbstractXmlConfigHelper.<init>(AbstractXmlConfigHelper.java:72) at com.hazelcast.config.AbstractConfigBuilder.<init>(AbstractConfigBuilder.java:60) at com.hazelcast.config.XmlConfigBuilder.<init>(XmlConfigBuilder.java:156) at com.hazelcast.instance.HazelcastInstanceFactory.newHazelcastInstance(HazelcastInstanceFactory.java:109) at com.hazelcast.core.Hazelcast.newHazelcastInstance(Hazelcast.java:58) at com.hazelcast.cache.CacheUnitTest.<init>(CacheUnitTest.java:17) ... 32 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Once, 1 year ago
    5 times, 3 days ago
    5 times, 1 week ago
    Once, 1 month ago
    Once, 2 months ago
    19 more bugmates