2 Replies Latest reply on Sep 12, 2005 7:12 AM by bosak

    Login error

    bosak

      Hi everybody,
      I've installed JBoss Portal 2.0 on JBossAS 4.0.2 and database is MaxDB 7.5. (I have a right Hibernate SAPSQLDialect in config file). Portal starts up correctly and I can work with my portlets, but when I try to login as any user (administrator or my custom users), portals shows only blank page (http://localhost:8080/portal/auth/j_security_check)

      And AS shows this error code:
      ERROR [CoyoteAdapter] An exception or error occurred in the container during the request processing
      java.lang.NullPointerException

      Where is problem?

        • 1. Re: Login error
          darranl

          Is there any more information than just 'java.lang.NullPointerException', if not the associated stack trace might be in the server log.

          If you encounter any exceptions the stack trace and message and possibly nested causes are required to track where the error occured.

          • 2. Re: Login error
            bosak

            Solution is very simple, remove 'LEFT' from following code in login-config.xml:

            <module-option name="rolesQuery">SELECT g.name FROM UserImpl AS u LEFT JOIN u.roles AS g WHERE u.userName=:username</module-option>

            The answer is available here:
            http://www.jboss.com/index.html?module=bb&op=viewtopic&t=65157