Teammates: Server error when add new instructor by admin

Created on 11 May 2020  路  3Comments  路  Source: TEAMMATES/teammates

  • Environment: master branch at commit 2918cc169ceb9f6d585c1cc6d645b9a6f2ea7593
  • Browser: Google Chrome
  • Server: dev server listening at localhost:8080

  • Issue 1: action to add instructor fails at http://localhost:8080/web/admin/home
    server error

  • Error message:

Caused by: java.lang.ClassNotFoundException: javax.activation.DataSource
        at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:466)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:563)
        at com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass(IsolatedAppClassLoader.java:208)
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)
        ... 65 more

However, the new instructor can still be found at http://localhost:8080/web/admin/search

instructor-list

  • Issue 2: the join link does not work when entered as URL.

Screenshot 2020-05-11 at 21 54 39

Following the warning, either I log in through instructor login button or masquerade mode, the error occurs.

Screenshot 2020-05-11 at 21 57 03

  • Problem: due to the above issues, I am not able to interact with the application in instructor/student mode in the dev server.

  • Setup status:

    • front & back-end are built successfully
    • run component test with 5 failed test cases
    • staging server is not yet deployed
a-DevHelp

Most helpful comment

Many thanks to @ccyccyccy !

Cause: mismatched JDK (local: Java SE 9.0.1)

Solution: (for Mac OS X)

  • run /usr/libexec/java_home -V on the terminal
  • look for the path for Java SE 8 (Mac default version) /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home (in my case)
  • in the root directory of the project, open gradle.properties, paste the line org.gradle.java.home=/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home
  • open a new terminal, cd to the project folder, re-run the command ./gradlew createConfigs

Result:
The above solution resolves the issue.
Screenshot 2020-05-12 at 10 45 21

All 3 comments

Are you using JDK 8? I faced a similar problem as well when I used JDK 11.

Many thanks to @ccyccyccy !

Cause: mismatched JDK (local: Java SE 9.0.1)

Solution: (for Mac OS X)

  • run /usr/libexec/java_home -V on the terminal
  • look for the path for Java SE 8 (Mac default version) /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home (in my case)
  • in the root directory of the project, open gradle.properties, paste the line org.gradle.java.home=/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home
  • open a new terminal, cd to the project folder, re-run the command ./gradlew createConfigs

Result:
The above solution resolves the issue.
Screenshot 2020-05-12 at 10 45 21

Server error issue is resolved.

Was this page helpful?
0 / 5 - 0 ratings