hal9000plus / bimserver

Automatically exported from code.google.com/p/bimserver
0 stars 0 forks source link

add user problem #370

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.add new user
2.
3.

What is the expected output? What do you see instead?
Should be able to add a new user. I see:

type Exception report

message

description The server encountered an internal error () that prevented it from 
fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP: 

An error occurred at line: 18 in the jsp file: /adduser.jsp
Type mismatch: cannot convert from SUser to long
15:     if (loginManager.isLoggedIn()) {
16:         if (request.getParameter("save") != null) {
17:             try {
18:                 long uoid = 
loginManager.getService().addUser(request.getParameter("username"), 
request.getParameter("name"), 
SUserType.values()[Integer.parseInt(request.getParameter("type"))], false);
19:                 response.sendRedirect("user.jsp?uoid=" + uoid);
20:             } catch (ServiceException e) {
21:                 JspHelper.showException(out, e);

Stacktrace:
    org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)
    org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
    org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:349)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:327)
    org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)
    org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:326)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache 
Tomcat/6.0.32 logs.

What version of the product are you using? On what operating system?
Version
Local Version   1.1.0
Build date/time 16-12-2011 00:00
Schema Version  12
Latest available version
Latest Version  -1.-1.-1
Build date/time 01-01-1970 01:00

Please provide any additional information below.

Original issue reported on code.google.com by hartmann...@gmail.com on 9 Feb 2012 at 8:05

GoogleCodeExporter commented 8 years ago

Original comment by berlo...@gmail.com on 10 Feb 2012 at 6:47

GoogleCodeExporter commented 8 years ago

Original comment by berlo...@gmail.com on 10 Feb 2012 at 6:48

GoogleCodeExporter commented 8 years ago
Can't reproduce in latest version

Original comment by ru...@logic-labs.nl on 14 Feb 2012 at 8:43