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 7CF3F180B5 for ; Tue, 15 Sep 2015 12:34:36 +0000 (UTC) Received: (qmail 80583 invoked by uid 500); 15 Sep 2015 12:34:36 -0000 Delivered-To: apmail-ignite-dev-archive@ignite.apache.org Received: (qmail 80539 invoked by uid 500); 15 Sep 2015 12:34:36 -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 80526 invoked by uid 99); 15 Sep 2015 12:34:36 -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 12:34:36 +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 9D2D5C047F for ; Tue, 15 Sep 2015 12:34:35 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.151 X-Spam-Level: *** X-Spam-Status: No, score=3.151 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=3, 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-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 2oh6Fgp7n9bS for ; Tue, 15 Sep 2015 12:34:22 +0000 (UTC) Received: from mail-ob0-f181.google.com (mail-ob0-f181.google.com [209.85.214.181]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id C2D1D2303C for ; Tue, 15 Sep 2015 12:34:21 +0000 (UTC) Received: by obbzf10 with SMTP id zf10so77584877obb.2 for ; Tue, 15 Sep 2015 05:34:21 -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=VCLzZgs6X41FdHTZt/fe5hOL+dbeWlEXIAvsoJxOZlM=; b=mcI/c0jJD+H0ogtHr9ZBKa3Pyem6cBBHW9AOslGxzTgYQ5dBAstSTIMZb5/iIVMwlH DwATD/zDyhen8tlHUd/FPEXlfYfuNXjX7wbKm1WA1uypB0/6QPeZRTs+ZJV288o3MR0u JwImKQcmzS1BHBRdCChDYAgMQycWRbctXXS99vatEa/N3kp4KVMMRTb+JDXGXoeXmI7l wKB6rix9BAm1vXnyRS+Xh6A+OjlYkndjiGtLki0Y+VZtL1EaQT2t5FfjVgDjnNTls0Wg eBbQCl+1VxDE7MONU13n2WrkkUNYIaE+c5ZEjgx2+4DWOiho9VweGAoBqypUpxh1o97K qBhQ== MIME-Version: 1.0 X-Received: by 10.182.115.163 with SMTP id jp3mr16562485obb.77.1442320461179; Tue, 15 Sep 2015 05:34:21 -0700 (PDT) Received: by 10.202.63.11 with HTTP; Tue, 15 Sep 2015 05:34:21 -0700 (PDT) In-Reply-To: References: Date: Tue, 15 Sep 2015 18:04:21 +0530 Message-ID: Subject: Re: Anyone faced this issue while writing unit tests. Please help From: chandresh pancholi To: dev@ignite.apache.org Content-Type: multipart/alternative; boundary=089e011829fabdb358051fc866b3 --089e011829fabdb358051fc866b3 Content-Type: text/plain; charset=UTF-8 Forking it from github. will update the thread once push the changes. Thanks On Tue, Sep 15, 2015 at 5:45 PM, chandresh pancholi < chandreshpancholi007@gmail.com> wrote: > While doing git push i am getting Auth error. Its not accepting git-hub > profile. > > > On Tue, Sep 15, 2015 at 5:08 PM, Artem Shutak > wrote: > >> Hi Chandresh, >> >> It looks like for me you have different log4j versions at your classpath. >> How do you build your project? Did you copy-paste log4j jars by yourself? >> >> It would be nice, if you commit and push a current state of your project >> at >> your fork on github and point out on your fork, branch at fork and test >> which you run. It will keep a lot of time. >> >> Thanks, >> -- Artem -- >> >> On Tue, Sep 15, 2015 at 2:21 PM, chandresh pancholi < >> chandreshpancholi007@gmail.com> wrote: >> >> > I am implementing ignite-storm feature. log4j version is my project >> > version. >> > >> > >> > org.apache.ignite >> > ignite-log4j >> > ${project.version} >> > >> > >> > >> > >> > On Tue, Sep 15, 2015 at 4:36 PM, Gianfranco Murador < >> > murador.gianfranco@gmail.com> wrote: >> > >> > > 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 >> > > > >> > > >> > >> > >> > >> > -- >> > Chandresh Pancholi >> > Senior Software Engineer >> > Flipkart.com >> > Email-id:chandresh.pancholi@flipkart.com >> > Contact:08951803660 >> > >> > > > > -- > Chandresh Pancholi > Senior Software Engineer > Flipkart.com > Email-id:chandresh.pancholi@flipkart.com > Contact:08951803660 > -- Chandresh Pancholi Senior Software Engineer Flipkart.com Email-id:chandresh.pancholi@flipkart.com Contact:08951803660 --089e011829fabdb358051fc866b3--