Comments (3)
Please try to convert password to uppercase, this should help.
from hmdm-server.
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.
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)
- Self signed certificated and app error ERROR TAG: trust_anchor HOT 1
- MQTT is not using TLS HOT 1
- Error 500 | Cannot Genrate QRCode after Installation HOT 2
- failed to deploy WAR file HOT 1
- Security error on ActiveMX, devices can not connect to message broker HOT 5
- Migration to organization HOT 4
- Order Softwares HOT 1
- FireOS support
- Postgre DB default LATIN1 encoding leads to "Failure to deploy war" HOT 1
- Difficulty Setting Up Local Environment for Geolocation Functionality HOT 1
- Qr code not open HOT 1
- Feature request - Accessibility settings
- reporting wrong version HOT 2
- System update on Pixel Tablet does not work HOT 2
- Setting homepage for Edge browser HOT 1
- Log4j Vuln HOT 5
- Login Issue HOT 1
- Cant be reached error when trying to generate QR code HOT 1
- AngularJS vulnarable version
- Provide tags or releases
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hmdm-server.