Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot add the TextNG 7.0 library #445

Closed
vkadlcik opened this issue Aug 23, 2019 · 2 comments
Closed

Cannot add the TextNG 7.0 library #445

vkadlcik opened this issue Aug 23, 2019 · 2 comments
Assignees

Comments

@vkadlcik
Copy link

Problem Statement

I cannot create a project with TestNG 7.0.0 or add the library to an existing project. I always get Invalid classpath container: 'TestNG'.

My SW:

  • Fedora 30
  • OpenJDK 1.8 (java-1.8.0-openjdk-devel-1.8.0.212.b04-0.fc30.x86_64)
  • Eclipse Platform + JDT of SimRel 2019-06
  • org.testng 7.0.0.r201908191551
  • org.testng.eclipse 7.0.0.201908201535

configuration.txt is my Eclipse configuration taken from Help > About. setup.sh.txt is my minimal reproducing setup script (note: it's destructive).

Steps to reproduce the problem:

  1. File > New > Project... > Java > Java Project, click "Next >"
  2. Project name: o.e.vk.p1, click "Next >"
  3. Select the Libraries tab, click "Add Library...", double-click "TextNG", click "Finish", click "Finish"
  4. Confirm switching to the Java perspective

Immediately you get 2 errors in the Problems view, the primary one is:
Invalid classpath container: 'TestNG' in project 'o.e.vk.p1'
screenshot1
The workspace log says:

!MESSAGE Null entry in container 'org.testng.TESTNG_CONTAINER'

!ENTRY org.eclipse.ui 4 0 2019-08-23 11:00:54.486
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
        at org.eclipse.jdt.internal.ui.packageview.ClassPathContainer.getChildren(ClassPathContainer.java:202)
        ...

Now on exiting Eclipse, you get a window with "Problems saving workspace"
screenshot2
and in the workspace log:

!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".
!STACK 0
java.lang.NullPointerException
        at org.eclipse.jdt.internal.compiler.util.HashtableOfObjectToInt.get(HashtableOfObjectToInt.java:75)
        ...

Here is the workspace log in full.

I see similarities with #443 and #444 so it's possible that all these issues share a common root cause.

@missedone missedone changed the title Cannot add the TextNG library Cannot add the TextNG 7.0 library Aug 24, 2019
@missedone missedone self-assigned this Aug 24, 2019
@missedone
Copy link
Collaborator

thanks for reporting,
fixed in new release 7.0.0.201908240652
pls verify

@vkadlcik
Copy link
Author

thanks for reporting,
fixed in new release 7.0.0.201908240652

pretty swift :-)

pls verify

works for me, thanks for fixing this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants