Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Error "java.lang.NoClassDefFoundError: com/google/inject/internal/Lists" when using rg.testng.LoggingAssert;
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  13 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Roman Hiden  
View profile  
 More options Aug 8 2012, 11:43 am
From: Roman Hiden <romeo8...@gmail.com>
Date: Wed, 8 Aug 2012 08:43:33 -0700 (PDT)
Local: Wed, Aug 8 2012 11:43 am
Subject: Error "java.lang.NoClassDefFoundError: com/google/inject/internal/Lists" when using rg.testng.LoggingAssert;

I am using TestNG eclipse plugin 6.7.0.20120802_0752 version.

When using
import org.testng.LoggingAssert;

I get the following error:
java.lang.NoClassDefFoundError: com/google/inject/internal/Lists

I know that there have been such issues before. I thought this might be new
issue

Could you please suggest what can be wrong?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Roman Hiden  
View profile  
 More options Aug 8 2012, 11:50 am
From: Roman Hiden <romeo8...@gmail.com>
Date: Wed, 8 Aug 2012 08:50:10 -0700 (PDT)
Local: Wed, Aug 8 2012 11:50 am
Subject: Re: Error "java.lang.NoClassDefFoundError: com/google/inject/internal/Lists" when using rg.testng.LoggingAssert;

I have just reproduce the same issue with testng beta 6.8

Full stack trace
FAILED: test1
java.lang.NoClassDefFoundError: com/google/inject/internal/Lists
    at org.testng.LoggingAssert.<init>(LoggingAssert.java:9)
    at
com.tda.automation.SystematicWithdrawals.TestNgTest.test1(TestNgTest.java:3 2)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at
org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHel per.java:80)
    at org.testng.internal.Invoker.invokeMethod(Invoker.java:715)
    at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:907)
    at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1237)
    at
org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.jav a:127)
    at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
    at org.testng.TestRunner.privateRun(TestRunner.java:767)
    at org.testng.TestRunner.run(TestRunner.java:617)
    at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
    at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
    at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
    at org.testng.SuiteRunner.run(SuiteRunner.java:240)
    at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
    at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
    at org.testng.TestNG.runSuitesSequentially(TestNG.java:1197)
    at org.testng.TestNG.runSuitesLocally(TestNG.java:1122)
    at org.testng.TestNG.run(TestNG.java:1030)
    at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)
    at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)
    at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
SUBRAMANYESWARA RAO BHAVIRISETTY  
View profile  
 More options Aug 8 2012, 11:55 am
From: SUBRAMANYESWARA RAO BHAVIRISETTY <sbhavirise...@gmail.com>
Date: Wed, 8 Aug 2012 08:55:07 -0700
Local: Wed, Aug 8 2012 11:55 am
Subject: Re: [testng-users] Re: Error "java.lang.NoClassDefFoundError: com/google/inject/internal/Lists" when using rg.testng.LoggingAssert;

Hi Roman,

 Can you please check if you have guice jar installed.

We also faced similar issue and we fixed it by installing guice jar. (
http://code.google.com/p/google-guice/downloads/list )

~Subramanyam

--
Subramanyam

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cédric Beust ♔  
View profile  
 More options Aug 8 2012, 12:01 pm
From: Cédric Beust ♔ <ced...@beust.com>
Date: Wed, 8 Aug 2012 09:01:26 -0700
Local: Wed, Aug 8 2012 12:01 pm
Subject: Re: [testng-users] Re: Error "java.lang.NoClassDefFoundError: com/google/inject/internal/Lists" when using rg.testng.LoggingAssert;

Hi Roman,

You're not doing anything wrong, it was a problem with the beta. I just
fixed it and also pushed a new Eclipse plug-in, can you update and report
back?

Thanks.

--
Cédric


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cédric Beust ♔  
View profile  
 More options Aug 8 2012, 12:02 pm
From: Cédric Beust ♔ <ced...@beust.com>
Date: Wed, 8 Aug 2012 09:02:20 -0700
Local: Wed, Aug 8 2012 12:02 pm
Subject: Re: [testng-users] Re: Error "java.lang.NoClassDefFoundError: com/google/inject/internal/Lists" when using rg.testng.LoggingAssert;

Hi Subramanyam,

In this case, it was a problem with TestNG itself, no need to install Guice.

--
Cédric

On Wed, Aug 8, 2012 at 8:55 AM, SUBRAMANYESWARA RAO BHAVIRISETTY <


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Roman Hiden  
View profile  
 More options Aug 8 2012, 12:13 pm
From: Roman Hiden <romeo8...@gmail.com>
Date: Wed, 8 Aug 2012 09:13:17 -0700 (PDT)
Local: Wed, Aug 8 2012 12:13 pm
Subject: Re: [testng-users] Re: Error "java.lang.NoClassDefFoundError: com/google/inject/internal/Lists" when using rg.testng.LoggingAssert;

Updated eclipse plugin
using this version now C:/Program
Files/eclipse/plugins/org.testng.eclipse_6.7.0.20120808_0858/lib/testng-sou rces.jar

FAILED: test1
java.lang.NoClassDefFoundError: com/google/inject/internal/Lists
    at org.testng.LoggingAssert.<init>(LoggingAssert.java:9)
    at
com.tda.automation.SystematicWithdrawals.TestNgTest.test1(TestNgTest.java:3 7)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at
org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHel per.java:80)
    at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
    at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
    at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
    at
org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.jav a:127)
    at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
    at org.testng.TestRunner.privateRun(TestRunner.java:767)
    at org.testng.TestRunner.run(TestRunner.java:617)
    at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
    at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
    at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
    at org.testng.SuiteRunner.run(SuiteRunner.java:240)
    at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
    at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
    at org.testng.TestNG.runSuitesSequentially(TestNG.java:1197)
    at org.testng.TestNG.runSuitesLocally(TestNG.java:1122)
    at org.testng.TestNG.run(TestNG.java:1030)
    at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:111)
    at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:204)
    at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:175)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cédric Beust ♔  
View profile  
 More options Aug 8 2012, 12:20 pm
From: Cédric Beust ♔ <ced...@beust.com>
Date: Wed, 8 Aug 2012 09:20:29 -0700
Local: Wed, Aug 8 2012 12:20 pm
Subject: Re: [testng-users] Re: Error "java.lang.NoClassDefFoundError: com/google/inject/internal/Lists" when using rg.testng.LoggingAssert;

I'll look into it tonight, sorry for the trouble.

--
Cédric


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Roman Hiden  
View profile  
 More options Aug 8 2012, 12:27 pm
From: Roman Hiden <romeo8...@gmail.com>
Date: Wed, 8 Aug 2012 09:27:07 -0700 (PDT)
Local: Wed, Aug 8 2012 12:27 pm
Subject: Re: [testng-users] Re: Error "java.lang.NoClassDefFoundError: com/google/inject/internal/Lists" when using rg.testng.LoggingAssert;

np.

Let me know if you need smaller example reproducing this issue


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
SUBRAMANYESWARA RAO BHAVIRISETTY  
View profile  
 More options Aug 8 2012, 12:30 pm
From: SUBRAMANYESWARA RAO BHAVIRISETTY <sbhavirise...@gmail.com>
Date: Wed, 8 Aug 2012 09:30:50 -0700
Local: Wed, Aug 8 2012 12:30 pm
Subject: Re: [testng-users] Re: Error "java.lang.NoClassDefFoundError: com/google/inject/internal/Lists" when using rg.testng.LoggingAssert;

Thanks Cedric for the clarification.

~Subramanyam

On Wed, Aug 8, 2012 at 9:02 AM, Cédric Beust ♔ <ced...@beust.com> wrote:

--
Subramanyam

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cédric Beust ♔  
View profile  
 More options Aug 8 2012, 9:21 pm
From: Cédric Beust ♔ <ced...@beust.com>
Date: Wed, 8 Aug 2012 18:21:43 -0700
Local: Wed, Aug 8 2012 9:21 pm
Subject: Re: [testng-users] Re: Error "java.lang.NoClassDefFoundError: com/google/inject/internal/Lists" when using rg.testng.LoggingAssert;

I just tried the current Eclipse plug-in (6.7.0.20120802_0752) and it seems
to work for me:

  private LoggingAssert m_a = new LoggingAssert();

  @Test
  public void btest1() {
    System.out.println("B.btest1");
    m_a.assertTrue(false, "boom");
  }

[image: Inline image 1]

How are you testing?

--
Cédric

On Wed, Aug 8, 2012 at 9:30 AM, SUBRAMANYESWARA RAO BHAVIRISETTY <

  Screen shot 2012-08-08 at 6.21.13 PM.png
20K Download

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Roman Hiden  
View profile  
 More options Aug 9 2012, 9:06 am
From: Roman Hiden <romeo8...@gmail.com>
Date: Thu, 9 Aug 2012 06:06:09 -0700 (PDT)
Local: Thurs, Aug 9 2012 9:06 am
Subject: Re: [testng-users] Re: Error "java.lang.NoClassDefFoundError: com/google/inject/internal/Lists" when using rg.testng.LoggingAssert;

this is how I am using it

public class TestNgTest {

    private String instanceName;

    public TestNgTest(String instanceName) {
        this.instanceName = instanceName;

    }

    @Test
    public void test1() {
        System.out.println("test1 says " + this.instanceName);
        this.instanceName = this.instanceName + "test1";
        FlexibleAssert f = new FlexibleAssert();

        f.assertEquals(true, true);

        LoggingAssert s = new LoggingAssert();
        s.assertEquals(true, true);

    }

    @Test(dependsOnMethods = { "test1" })
    public void test2() {
        System.out.println("test2 says " + this.instanceName);
        this.instanceName = this.instanceName + "test2";
    }

    @Test(dependsOnMethods = { "test2" })
    public void test3() {
        System.out.println("test3 says " + this.instanceName);
    }

    // The factory will get the values using which a test class has to be
    // initialized and then
    // provides testng with instances of them, so that testng can invoke
them.
    @Factory(dataProvider = "dataFeeder")
    public static Object[] getInstance(String instanceName) {
        return new Object[] { new TestNgTest(instanceName) };
    }

    // This will read values from an external data source and pass it to the
    // factory.
    @DataProvider(name = "dataFeeder")
    public Object[][] dataFeeder() {
        return new Object[][] { { "Krishnan" }, { "Mahadevan" } };
    }


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Cédric Beust ♔  
View profile  
 More options Aug 9 2012, 9:56 am
From: Cédric Beust ♔ <ced...@beust.com>
Date: Thu, 9 Aug 2012 06:56:54 -0700
Local: Thurs, Aug 9 2012 9:56 am
Subject: Re: [testng-users] Re: Error "java.lang.NoClassDefFoundError: com/google/inject/internal/Lists" when using rg.testng.LoggingAssert;

If you are using FlexibleAssert, then I think you're using an older version
of the plug-in (and of testng.jar). Can you check the version of the TestNG
plug-in in the About Eclipse dialog?

--
Cédric


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Roman Hiden  
View profile  
 More options Aug 17 2012, 4:30 pm
From: Roman Hiden <romeo8...@gmail.com>
Date: Fri, 17 Aug 2012 13:30:51 -0700 (PDT)
Local: Fri, Aug 17 2012 4:30 pm
Subject: Re: [testng-users] Re: Error "java.lang.NoClassDefFoundError: com/google/inject/internal/Lists" when using rg.testng.LoggingAssert;

Thanks for help. issue solved


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »