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

Not able to create a new student using the command line argument #4

Open
dheeraj1991 opened this issue Oct 8, 2014 · 0 comments
Open

Comments

@dheeraj1991
Copy link

java -jar cloudcoderApp-v0.1.0.jar registerstudents
For which course would you like to register students?
0 - CCDemo - CloudCoder demo course
[Enter value in range 0..0] 0
Enter the name of the file containing a tab-separated list student registration entries in this format:
username firstname lastname email password section
Usernames in the datbase will be re-used, but the names/email/password will not be updated,and users will not be registered for a course if they are already registered
[default: ] ==> test
Note that this may be a slow operation
Some logging results will be appended to logs/cloudcoder.log rather than echoed to stdout
java.lang.IllegalArgumentException: Unsupported conversion from java.lang.Integer to java.lang.String
at org.cloudcoder.app.server.persist.util.DBUtil.convertValue(DBUtil.java:820)
at org.cloudcoder.app.server.persist.util.DBUtil.loadModelObjectFields(DBUtil.java:926)
at org.cloudcoder.app.server.persist.util.DBUtil.loadModelObjectFields(DBUtil.java:908)
at org.cloudcoder.app.server.persist.util.ConfigurationUtil.getUsersInCourse(ConfigurationUtil.java:455)
at org.cloudcoder.app.server.persist.util.ConfigurationUtil.registerStudentsForCourseId2(ConfigurationUtil.java:391)
at org.cloudcoder.app.server.persist.RegisterStudents.registerStudents(RegisterStudents.java:49)
at org.cloudcoder.app.server.persist.RegisterStudents.main(RegisterStudents.java:18)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.cloudcoder.jetty.NestedJarClassLoader.runMain(NestedJarClassLoader.java:107)
at org.cloudcoder.jetty.WebServer.runAdminCommand(WebServer.java:99)
at org.cloudcoder.jetty.WebServer.handleCommand(WebServer.java:86)
at org.cloudcoder.webserver.CloudCoderWebServer.main(CloudCoderWebServer.java:61)
Database error: Unsupported conversion from java.lang.Integer to java.lang.String

Test File Contents :
test1 test1 test1 [email protected] pass 101

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

1 participant