{"action":"created","issue":{"url":"https://api.github.com/repos/anshooarora/extentreports/issues/101","labels_url":"https://api.github.com/repos/anshooarora/extentreports/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/anshooarora/extentreports/issues/101/comments","events_url":"https://api.github.com/repos/anshooarora/extentreports/issues/101/events","html_url":"https://github.com/anshooarora/extentreports/issues/101","id":111841976,"number":101,"title":"IllegalAccessError: tried to access field com.relevantcodes.extentreports.model.SystemProperties.info from class com.relevantcodes.extentreports.SystemInfo","user":{"login":"ilitkevich","id":15159015,"avatar_url":"https://avatars.githubusercontent.com/u/15159015?v=3","gravatar_id":"","url":"https://api.github.com/users/ilitkevich","html_url":"https://github.com/ilitkevich","followers_url":"https://api.github.com/users/ilitkevich/followers","following_url":"https://api.github.com/users/ilitkevich/following{/other_user}","gists_url":"https://api.github.com/users/ilitkevich/gists{/gist_id}","starred_url":"https://api.github.com/users/ilitkevich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilitkevich/subscriptions","organizations_url":"https://api.github.com/users/ilitkevich/orgs","repos_url":"https://api.github.com/users/ilitkevich/repos","events_url":"https://api.github.com/users/ilitkevich/events{/privacy}","received_events_url":"https://api.github.com/users/ilitkevich/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-16T14:20:16Z","updated_at":"2015-10-16T14:32:12Z","closed_at":null,"body":"Hi Anshoo!\r\n\r\nFor some reason I start getting next error yesterday as soon as I start playing with v2.10:\r\n```\r\n[TestRunner] Running the tests in 'DevSuiteTests' with parallel mode:false\r\n[RunInfo] Adding method selector: org.testng.internal.XmlMethodSelector@d041cf priority: 10\r\norg.testng.TestNGException: \r\nAn error occurred while instantiating class MedeTests.Login.LoginTests: tried to access field com.relevantcodes.extentreports.model.SystemProperties.info from class com.relevantcodes.extentreports.SystemInfo\r\n\tat org.testng.internal.ClassHelper.createInstance1(ClassHelper.java:394)\r\n\tat org.testng.internal.ClassHelper.createInstance(ClassHelper.java:295)\r\n\tat org.testng.internal.ClassImpl.getDefaultInstance(ClassImpl.java:118)\r\n\tat org.testng.internal.ClassImpl.getInstances(ClassImpl.java:183)\r\n\tat org.testng.internal.TestNGClassFinder.<init>(TestNGClassFinder.java:128)\r\n\tat org.testng.TestRunner.initMethods(TestRunner.java:416)\r\n\tat org.testng.TestRunner.init(TestRunner.java:242)\r\n\tat org.testng.TestRunner.init(TestRunner.java:212)\r\n\tat org.testng.TestRunner.<init>(TestRunner.java:166)\r\n\tat org.testng.remote.RemoteTestNG$1.newTestRunner(RemoteTestNG.java:143)\r\n\tat org.testng.remote.RemoteTestNG$DelegatingTestRunnerFactory.newTestRunner(RemoteTestNG.java:272)\r\n\tat org.testng.SuiteRunner$ProxyTestRunnerFactory.newTestRunner(SuiteRunner.java:587)\r\n\tat org.testng.SuiteRunner.init(SuiteRunner.java:161)\r\n\tat org.testng.SuiteRunner.<init>(SuiteRunner.java:114)\r\n\tat org.testng.TestNG.createSuiteRunner(TestNG.java:1266)\r\n\tat org.testng.TestNG.createSuiteRunners(TestNG.java:1253)\r\n\tat org.testng.TestNG.runSuitesLocally(TestNG.java:1107)\r\n\tat org.testng.TestNG.run(TestNG.java:1024)\r\n\tat org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:112)\r\n\tat org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:205)\r\n\tat org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:176)\r\n\tat org.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:125)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:483)\r\n\tat com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)\r\nCaused by: java.lang.IllegalAccessError: tried to access field com.relevantcodes.extentreports.model.SystemProperties.info from class com.relevantcodes.extentreports.SystemInfo\r\n\tat com.relevantcodes.extentreports.SystemInfo.setInfo(SystemInfo.java:46)\r\n\tat com.relevantcodes.extentreports.SystemInfo.<init>(SystemInfo.java:57)\r\n\tat com.relevantcodes.extentreports.ExtentReports.<init>(ExtentReports.java:47)\r\n\tat com.relevantcodes.extentreports.ExtentReports.<init>(ExtentReports.java:100)\r\n\tat Automation.Utils.ExtentManager.getInstance(ExtentManager.java:14)\r\n\tat Automation.Utils.TestBase.<clinit>(TestBase.java:41)\r\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)\r\n\tat sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)\r\n\tat java.lang.reflect.Constructor.newInstance(Constructor.java:408)\r\n\tat org.testng.internal.ObjectFactoryImpl.newInstance(ObjectFactoryImpl.java:29)\r\n\tat org.testng.internal.ClassHelper.createInstance1(ClassHelper.java:382)\r\n\t... 26 more\r\n\r\nProcess finished with exit code 0\r\n```\r\n\r\n**ExtentManager:**\r\n```\r\npublic class ExtentManager {\r\n    private static ExtentReports extent;\r\n\r\n    public static ExtentReports getInstance() {\r\n\r\n        if (extent == null) {\r\n            extent = new ExtentReports(\"./ExtentReport.html\", true);\r\n            extent.config()\r\n                    .documentTitle(\"Automation Report\")\r\n                    .reportName(\"Regression\")\r\n                    .reportHeadline(\"\")\r\n                    .insertCustomStyles(\".test { border: 1px solid lightseagreen; }\")\r\n                    .insertJs(\"$('.test.warning').each(function() { $(this).addClass('pass').removeClass('warning'); }); $('.test-status.warning').each(function() { $(this).addClass('pass').removeClass('warning').text('pass'); });$('.tests-quick-view .status.warning').each(function() { $(this).addClass('pass').removeClass('warning').text('PASS'); }); testSetChart(); \");\r\n            extent\r\n                    .addSystemInfo(\"Selenium Version\", \"2.46\")\r\n                    .addSystemInfo(\"Environment\", \"C60 Production\");\r\n\r\n        }\r\n        return extent;\r\n    }\r\n}\r\n```\r\n**at Automation.Utils.TestBase.<clinit>(TestBase.java:41)**\r\n```    public static ExtentReports extent = ExtentManager.getInstance(); ```\r\n\r\nI rolled back to v2.05 but no luck, still getting the same Exception. SystemInfo.java gives me 404: https://github.com/anshooarora/extentreports/blob/master/java/2.x/src/com/relevantcodes/extentreports/SystemInfo.java\r\n\r\nThank you."},"comment":{"url":"https://api.github.com/repos/anshooarora/extentreports/issues/comments/148733178","html_url":"https://github.com/anshooarora/extentreports/issues/101#issuecomment-148733178","issue_url":"https://api.github.com/repos/anshooarora/extentreports/issues/101","id":148733178,"user":{"login":"ilitkevich","id":15159015,"avatar_url":"https://avatars.githubusercontent.com/u/15159015?v=3","gravatar_id":"","url":"https://api.github.com/users/ilitkevich","html_url":"https://github.com/ilitkevich","followers_url":"https://api.github.com/users/ilitkevich/followers","following_url":"https://api.github.com/users/ilitkevich/following{/other_user}","gists_url":"https://api.github.com/users/ilitkevich/gists{/gist_id}","starred_url":"https://api.github.com/users/ilitkevich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilitkevich/subscriptions","organizations_url":"https://api.github.com/users/ilitkevich/orgs","repos_url":"https://api.github.com/users/ilitkevich/repos","events_url":"https://api.github.com/users/ilitkevich/events{/privacy}","received_events_url":"https://api.github.com/users/ilitkevich/received_events","type":"User","site_admin":false},"created_at":"2015-10-16T14:32:12Z","updated_at":"2015-10-16T14:32:12Z","body":"On another workstation, where I did not swing between 2.05 -> 2.10 -> 2.05, everything works fine. I guess that's because Maven didn't update local repository and SystemInfo.java exists there."}}