Skip to content

Beta OR: Error message when trying to add resources under Manager project #155

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

Open
sandhiyakavi opened this issue May 2, 2022 · 9 comments
Assignees

Comments

@sandhiyakavi
Copy link
Collaborator

sandhiyakavi commented May 2, 2022

Description:

Getting error message when trying to add resources under Manager project. But we are able to add the same resource with same role using the Edit project.

Also this issue is not happening in old OR. It is working fine.

Steps to reproduce:

  1. Create a challenge and use https://softwarev1.topcoder-dev.com/
  2. In the bottom, click the Manage project button.
  3. Under the Add Resource, try to add a resource.
  4. Click Save changes button.
bandicam.2022-05-02.16-53-29-959.mp4
bandicam.2022-05-02.17-06-00-570.mp4

cc: @Gunasekar-K @standlove

@standlove
Copy link
Contributor

I see this error in log. @xxcxy

2022-05-02 07:20:03,272 ERROR [onlinereview] java.lang.IllegalArgumentException: org.hibernate.hql.ast.QuerySyntaxException: ContestEligibility is not mapped [from ContestEligibility c where c.contestId=:contestId and c.studio=:studio]
--
java.lang.IllegalArgumentException: org.hibernate.hql.ast.QuerySyntaxException: ContestEligibility is not mapped [from ContestEligibility c where c.contestId=:contestId and c.studio=:studio]
at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:616)
at org.hibernate.ejb.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:95)
at com.topcoder.service.contest.eligibility.dao.ContestEligibilityManagerBean.getContestEligibility(ContestEligibilityManagerBean.java:258)
at com.cronos.onlinereview.ejblibrary.ContestEligibilityManagerLibrary.getContestEligibility(ContestEligibilityManagerLibrary.java:85)

@xxcxy
Copy link
Contributor

xxcxy commented May 2, 2022

please check the ContestEligibility.hbm.xml file in the WEB-INF/classes folder

@standlove
Copy link
Contributor

This one is fixed. @sandhiyakavi

@SathyaJayabal
Copy link
Collaborator

@standlove, still see the issue

manage.project.error.mov

@SathyaJayabal
Copy link
Collaborator

@standlove , seems the issue is present for some projects. Here is the project that I used which had the error.
https://softwarev1.topcoder-dev.com/review/actions/ViewProjectDetails?pid=30061435

@standlove
Copy link
Contributor

Let me check.

@standlove
Copy link
Contributor

Please check again. @SathyaJayabal

@SathyaJayabal
Copy link
Collaborator

@standlove, issue is fixed, user is able to edit resources from the manage project page

manage_project_pass.mov

@codejamtc
Copy link

codejamtc commented May 17, 2022

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

No branches or pull requests

7 participants