Ticket:User Management: invalid response to register

Hi, I have a problem with the user management module, the tests work correctly but when I load the page localhost: 5000 / status I receive the message User Management: invalid response to register and in the console the following error appears several times:
java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter and the error mflix.api.security.JWTAuthEntryPoint : Unauthorized error: Full authentication is required to access this resource

Can you help me?
Thanks.

Hi Dani_igma,

I have experienced the same issue.
But, when I tried run application in debug mode and get to localhost: 5000/status, then I have got “Currently Validating”, instead of “invalid response to register”.
I am going report this like issue.

Regards,
Igor.

Do not go to http…/status directly. Go to / first and use the Status button.

Hi Steevej,

Thank you for specification.
In both cases it was done exactly as you suggested - localhost:5000 and then over Status button.

Did it work?

If not, what are the error messages?

Hi, I’ve already got it to work. The problem was that I was compiling with jdk 11 instead of jdk 8.

1 Like

Hello, I got the same exception. All the tests are passing but status is not generating valid code. doesn’t the compilation work with JDK 11?

I have done all the TODOs of user Management, with JDK * my whole application dies out and fail to run but with JDK 11 only the user management status is failing. all my userTest are passed

same here, used jdk11 and got the exact same jwt error. I switched back to openJDK8 and got the code

Managed to get pass code with jdk-8u202-windows-x64.
@dani_igma , can you please specify which one version you have used?
Thank you in advance.

I have the jdk-8u201-windows-x64.

I use JDK 8 but the problem it seems it is still there, any help?

I managed by using jdk-8u201-windows-x64. thanks

Alternatively, I found that altering the dependency from

        <dependency>
            <groupId>io.jsonwebtoken</groupId>
            <artifactId>jjwt</artifactId>
            <version>0.9.1</version>
        </dependency>

to

        <dependency>
            <groupId>io.jsonwebtoken</groupId>
            <artifactId>jjwt-api</artifactId>
            <version>0.10.7</version>
        </dependency>
        <dependency>
            <groupId>io.jsonwebtoken</groupId>
            <artifactId>jjwt-impl</artifactId>
            <version>0.10.7</version>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>io.jsonwebtoken</groupId>
            <artifactId>jjwt-jackson</artifactId>
            <version>0.10.7</version>
            <scope>runtime</scope>
        </dependency>

I assume this is to do with the deprecation of javax.xml.bind (see here https://stackoverflow.com/questions/52502189/java-11-package-javax-xml-bind-does-not-exist)

Latest dependency versions found here https://github.com/jwtk/jjwt

This may just have to be a note at the start of the course depending on whether the new libraries work with Java 8 or not

1 Like