Git Product home page Git Product logo

Comments (3)

h-mdm avatar h-mdm commented on August 22, 2024

Please try to convert password to uppercase, this should help.

from hmdm-server.

sah-anshu avatar sah-anshu commented on August 22, 2024

Hi, I have tried the same but It is not working:

  • Changed Admin Password to Uppercase Password
  • Created MD5 of Uppercased password and tried in JSON
    {
    "login": "admin",
    "password": "xxxxxx"
    }

Please find the Logs below:

Jun 19 13:28:22 instance-2 tomcat9[32548]: 2022-06-19 13:28:22 [ERROR] JWTAuth : Unexpected error when authenticating user
Jun 19 13:28:22 instance-2 tomcat9[32548]: java.lang.NullPointerException
Jun 19 13:28:22 instance-2 tomcat9[32548]: at com.hmdm.security.jwt.rest.JWTAuthResource.login(JWTAuthResource.java:116)
Jun 19 13:28:22 instance-2 tomcat9[32548]: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Jun 19 13:28:22 instance-2 tomcat9[32548]: at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
Jun 19 13:28:22 instance-2 tomcat9[32548]: at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Jun 19 13:28:22 instance-2 tomcat9[32548]: at java.base/java.lang.reflect.Method.invoke(Method.java:566)
Jun 19 13:28:22 instance-2 tomcat9[32548]: at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFacto
Jun 19 13:28:22 instance-2 tomcat9[32548]: at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java
Jun 19 13:28:22 instance-2 tomcat9[32548]: at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.jav
Jun 19 13:28:22 instance-2 tomcat9[32548]: at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ResponseOutInvoker.doDispatch(JavaResourceMetho
Jun 19 13:28:22 instance-2 tomcat9[32548]: at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.j
Jun 19 13:28:22 instance-2 tomcat9[32548]: at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)
Jun 19 13:28:22 instance-2 tomcat9[32548]: at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)
Jun 19 13:28:22 instance-2 tomcat9[32548]: at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
Jun 19 13:28:22 instance-2 tomcat9[32548]: at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:326)
Jun 19 13:28:22 instance-2 tomcat9[32548]: at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
Jun 19 13:28:22 instance-2 tomcat9[32548]: at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
Jun 19 13:28:22 instance-2 tomcat9[32548]: at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
Jun 19 13:28:22 instance-2 tomcat9[32548]: at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
Jun 19 13:28:22 instance-2 tomcat9[32548]: at org.glassfish.jersey.internal.Errors.process(Errors.java:267)
Jun 19 13:28:22 instance-2 tomcat9[32548]: at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
Jun 19 13:28:22 instance-2 tomcat9[32548]: at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305)
Jun 19 13:28:22 instance-2 tomcat9[32548]: at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154)
Jun 19 13:28:22 instance-2 tomcat9[32548]: at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473)
Jun 19 13:28:22 instance-2 tomcat9[32548]: at org.glassfish.jersey.servlet.ServletContainer.serviceImpl(ServletContainer.java:408)
Jun 19 13:28:22 instance-2 tomcat9[32548]: at org.glassfish.jersey.servlet.ServletContainer.doFilter(ServletContainer.java:583)
Jun 19 13:28:22 instance-2 tomcat9[32548]: at org.glassfish.jersey.servlet.ServletContainer.doFilter(ServletContainer.java:524)
Jun 19 13:28:22 instance-2 tomcat9[32548]: at org.glassfish.jersey.servlet.ServletContainer.doFilter(ServletContainer.java:461)
Jun 19 13:28:22 instance-2 tomcat9[32548]: at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
Jun 19 13:28:22 instance-2 tomcat9[32548]: at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
Jun 19 13:28:22 instance-2 tomcat9[32548]: at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:89)
Jun 19 13:28:22 instance-2 tomcat9[32548]: at com.hmdm.plugins.audit.rest.filter.ResourceAuditor.doProcess(ResourceAuditor.java:99)
Jun 19 13:28:22 instance-2 tomcat9[32548]: at com.hmdm.plugins.audit.rest.filter.AuditFilter.doFilter(AuditFilter.java:123)
Jun 19 13:28:22 instance-2 tomcat9[32548]: at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)
Jun 19 13:28:22 instance-2 tomcat9[32548]: at com.hmdm.rest.filter.ApiOriginFilter.doFilter(ApiOriginFilter.java:52)
Jun 19 13:28:22 instance-2 tomcat9[32548]: at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)

from hmdm-server.

h-mdm avatar h-mdm commented on August 22, 2024

NPE at that line of code means the credentials are not sent at all. Please make sure you're sending the request properly. Use Chrome's Advanced Rest Client for tests: https://chrome.google.com/webstore/detail/advanced-rest-client/hgmloofddffdnphfgcellkdfbfbjeloo

from hmdm-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.