Return-Path: X-Original-To: apmail-ignite-dev-archive@minotaur.apache.org Delivered-To: apmail-ignite-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F0A5017CB0 for ; Tue, 15 Sep 2015 11:06:17 +0000 (UTC) Received: (qmail 73421 invoked by uid 500); 15 Sep 2015 11:06:17 -0000 Delivered-To: apmail-ignite-dev-archive@ignite.apache.org Received: (qmail 73377 invoked by uid 500); 15 Sep 2015 11:06:17 -0000 Mailing-List: contact dev-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list dev@ignite.apache.org Received: (qmail 73364 invoked by uid 99); 15 Sep 2015 11:06:16 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Sep 2015 11:06:16 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 5763FC0041 for ; Tue, 15 Sep 2015 11:06:16 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.88 X-Spam-Level: ** X-Spam-Status: No, score=2.88 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id ObreKDc9mSXE for ; Tue, 15 Sep 2015 11:06:07 +0000 (UTC) Received: from mail-oi0-f52.google.com (mail-oi0-f52.google.com [209.85.218.52]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 513ED42B5D for ; Tue, 15 Sep 2015 11:06:07 +0000 (UTC) Received: by oiev17 with SMTP id v17so92627611oie.1 for ; Tue, 15 Sep 2015 04:06:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=z17sAc3RBrmeO0Y2QH5wI3G0OOEMRqs8JN5CaZU6YaU=; b=aj9+KAyNIzhuPR+uRxIY1s+rpCoH8Gk6QFZyMltEYRtQ/XcXDa63tU0MM6/ZtC4Z6r wKESB6Shj6hsSH55u87BpQwFcCOmYQwfOfXfhWHYq8bgOAUHkT2JxQyWNcoWZ4UMMVdi gh4c5DYyAdMou6iSU+F7L9SiM44hImkmUvBoIUfDWfM/rPCyLN+GUQ8stx+MA+TVz/Nb Grytxq56WMCUvHNhg5902fn3cObTwdU7JJbx+Un9ijRaT3RCb70i0dM7Rev9ke5+AilG PNx84fOo+g2WkdJYZy7BZ6VPLofCIjL2ZHli9DMfA3RKqF5gUfpECELHjRJUY2i6k1QI 8ZFA== MIME-Version: 1.0 X-Received: by 10.202.221.198 with SMTP id u189mr15635559oig.68.1442315166626; Tue, 15 Sep 2015 04:06:06 -0700 (PDT) Received: by 10.76.41.33 with HTTP; Tue, 15 Sep 2015 04:06:06 -0700 (PDT) In-Reply-To: References: Date: Tue, 15 Sep 2015 13:06:06 +0200 Message-ID: Subject: Re: Anyone faced this issue while writing unit tests. Please help From: Gianfranco Murador To: dev@ignite.apache.org Content-Type: multipart/alternative; boundary=001a113d62b8293832051fc72be2 --001a113d62b8293832051fc72be2 Content-Type: text/plain; charset=UTF-8 Hi chandresh, What are you trying to achieve? It seems you have not set an appropriate dependencies in your project .What version of log4j are you using? Regards, Gianfranco 2015-09-15 12:54 GMT+02:00 chandresh pancholi < chandreshpancholi007@gmail.com>: > Hi Igniters, > > I am facing this issue and i guess i am missing some dependency. > Please help!! > junit.framework.AssertionFailedError: *Exception in constructor: > testStormStreamer (java.lang.NoSuchMethodError: > org.apache.log4j.Category.getParent()Lorg/apache/log4j/Category*; > at > > org.apache.ignite.testframework.junits.logger.GridTestLog4jLogger.addConsoleAppenderIfNeeded(GridTestLog4jLogger.java:325) > at > > org.apache.ignite.testframework.junits.logger.GridTestLog4jLogger.(GridTestLog4jLogger.java:136) > at > > org.apache.ignite.testframework.junits.logger.GridTestLog4jLogger.(GridTestLog4jLogger.java:117) > at > > org.apache.ignite.testframework.junits.GridAbstractTest.(GridAbstractTest.java:185) > at > > org.apache.ignite.testframework.junits.common.GridCommonAbstractTest.(GridCommonAbstractTest.java:106) > at > > org.apache.ignite.stream.storm.StormIgniteStreamerSelfTest.(StormIgniteStreamerSelfTest.java:14) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at > > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) > at > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > at java.lang.reflect.Constructor.newInstance(Constructor.java:422) > at junit.framework.TestSuite.createTest(TestSuite.java:63) > at junit.framework.TestSuite.addTestMethod(TestSuite.java:310) > at junit.framework.TestSuite.addTestsFromTestCase(TestSuite.java:153) > at junit.framework.TestSuite.(TestSuite.java:132) > at > > org.apache.ignite.stream.storm.IgniteStormStreamerSelfTestSuite.suite(IgniteStormStreamerSelfTestSuite.java:14) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:497) > at > > org.junit.internal.runners.SuiteMethod.testFromSuiteMethod(SuiteMethod.java:35) > at org.junit.internal.runners.SuiteMethod.(SuiteMethod.java:24) > at > > org.junit.internal.builders.SuiteMethodBuilder.runnerForClass(SuiteMethodBuilder.java:11) > at > > org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59) > at > > org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26) > at > > org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59) > at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:26) > at > > com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:41) > at > > com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:212) > at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:68) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:497) > at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140) > ) > junit.framework.AssertionFailedError: Exception in constructor: > testStormStreamer (java.lang.NoSuchMethodError: > org.apache.log4j.Category.getParent()Lorg/apache/log4j/Category; > at > > org.apache.ignite.testframework.junits.logger.GridTestLog4jLogger.addConsoleAppenderIfNeeded(GridTestLog4jLogger.java:325) > at > > org.apache.ignite.testframework.junits.logger.GridTestLog4jLogger.(GridTestLog4jLogger.java:136) > at > > org.apache.ignite.testframework.junits.logger.GridTestLog4jLogger.(GridTestLog4jLogger.java:117) > at > > org.apache.ignite.testframework.junits.GridAbstractTest.(GridAbstractTest.java:185) > at > > org.apache.ignite.testframework.junits.common.GridCommonAbstractTest.(GridCommonAbstractTest.java:106) > at > > org.apache.ignite.stream.storm.StormIgniteStreamerSelfTest.(StormIgniteStreamerSelfTest.java:14) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at > > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) > at > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > at java.lang.reflect.Constructor.newInstance(Constructor.java:422) > at > > org.apache.ignite.stream.storm.IgniteStormStreamerSelfTestSuite.suite(IgniteStormStreamerSelfTestSuite.java:14) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at > > org.junit.internal.runners.SuiteMethod.testFromSuiteMethod(SuiteMethod.java:35) > at org.junit.internal.runners.SuiteMethod.(SuiteMethod.java:24) > at > > org.junit.internal.builders.SuiteMethodBuilder.runnerForClass(SuiteMethodBuilder.java:11) > at > > org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59) > at > > org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26) > at > > org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59) > at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:26) > at > > com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:41) > at > > com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:212) > at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:68) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140) > ) > at > > org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84) > at org.junit.runner.JUnitCore.run(JUnitCore.java:160) > at > > com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:78) > at > > com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:212) > at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:68) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140) > > > Process finished with exit code 255 > > > -- > Chandresh Pancholi > Senior Software Engineer > Flipkart.com > Email-id:chandresh.pancholi@flipkart.com > Contact:08951803660 > --001a113d62b8293832051fc72be2--