1753734 Members
4859 Online
108799 Solutions
New Discussion

Problem logging in after reinstalling IMC and restoring database backup.

 
SOLVED
Go to solution
ahnet
Occasional Advisor

Re: Problem logging in after reinstalling IMC and restoring database backup.

24:19 [INFO ] [main] [org.apache.catalina.startup.Catalina::start] Server startup in 61182 ms
24:19 [ERROR] [main] [com.imc.bootstrap.ServerContext::afterStarted] afterStarted() invoke com.imc.ext.NavigationSearchImplementMgrImpl@7d6e6201, class: class com.imc.ext.NavigationSearchImplementMgrImpl get Exception: 
24:19 [ERROR] [main] [com.imc.bootstrap.ServerContext::afterStarted] 
net.sf.json.JSONException: A JSONObject text must begin with '{' at character 1 of <html><head><title>Apache Tomcat/7.0.85 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The server encountered an internal error that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>java.lang.NullPointerException
	java.lang.String.&lt;init&gt;(String.java:481)
	com.imc.common.CommonUtils.decryptData(CommonUtils.java:1950)
	com.imc.seplat.operator.entity.Operator.getPassword(Operator.java:76)
	com.imc.seplat.operator.func.OperatorMgrImpl.queryPwdByName(OperatorMgrImpl.java:63)
	com.imc.rs.seplat.ext.OperatorUserDetailsService.loadUserByUsername(OperatorUserDetailsService.java:97)
	com.imc.rs.seplat.ext.DigestAuthenticationFilter.handleAuth(DigestAuthenticationFilter.java:414)
	com.imc.rs.seplat.ext.DigestAuthenticationFilter.doFilter(DigestAuthenticationFilter.java:185)
	com.imc.rs.seplat.ext.PasswordProtectDigestAuthenticationFilter.doFilter(PasswordProtectDigestAuthenticationFilter.java:66)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.access.channel.ChannelProcessingFilter.doFilter(ChannelProcessingFilter.java:144)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
	org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
	org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)
	org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)
	com.imc.rs.seplat.ext.api.ApiOriginFilter.doFilter(ApiOriginFilter.java:66)
</pre></p><p><b>note</b> <u>The full stack trace of the root cause is available in the Apache Tomcat/7.0.85 logs.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/7.0.85</h3></body></html>
24:22 [WARN ] [Thread-66] [com.imc.ntam.config.ntatask.func.NoneConfigInfoReceiver$ReceiverMsgMonitor::run] java.net.SocketTimeoutException: Receive timed out
arg0 : LicenseRegister
arg1 : C:\Program Files\iMC\client
iMF connection listener added
Aug 23, 2019 7:24:19 PM com.imf.IMFConnection open
INFO: open() - imgAddress=/127.0.0.1:8801
monitorThread is alive...
Aug 23, 2019 7:24:20 PM com.imf.KeepAlive call
SEVERE: Try to connect to img/img.exe, I/O return "Connection refused: connect"
monitorThread is alive...
thread wait finish, number : 1
monitorThread is alive...
monitorThread is alive...
thread wait finish, number : 2
monitorThread is alive...
monitorThread is alive...
thread wait finish, number : 3
monitorThread is alive...
Aug 23, 2019 7:24:26 PM com.imf.IMFConnection freeConnection
SEVERE: freeConnection()
iMF Disconnected
exit process.

24:32 [WARN ] [Thread-66] [com.imc.ntam.config.ntatask.func.NoneConfigInfoReceiver$ReceiverMsgMonitor::run] java.net.SocketTimeoutException: Receive timed out
24:42 [WARN ] [Thread-66] [com.imc.ntam.config.ntatask.func.NoneConfigInfoReceiver$ReceiverMsgMonitor::run] java.net.SocketTimeoutException: Receive timed out
24:51 [WARN ] [http-nio-8080-exec-7] [com.imc.servlet.filters.UrlAccessController::doFilter] Access URL With No OperatorInfo: /imc/login.jsf?null from 192.168.100.200
24:52 [WARN ] [Thread-66] [com.imc.ntam.config.ntatask.func.NoneConfigInfoReceiver$ReceiverMsgMonitor::run] java.net.SocketTimeoutException: Receive timed out
24:53 [WARN ] [http-nio-8080-exec-7] [com.imc.traceLog.IMCTraceBeanPostProcessor::postProcessAfterInitialization] ****iMC Startup tarce log: Bean after 'platAclMgr' created : com.imc.plat.acl.func.AclMgrImpl@9f0542f spend ms is 12
24:54 [WARN ] [http-nio-8080-exec-7] [com.imc.ext.beans.CommonExtensionManagedBean::filterExtensionConfigsForAppVersion] current version is not app version.current perspectiveId is empty.
24:54 [WARN ] [http-nio-8080-exec-7] [com.imc.ext.beans.CommonExtensionManagedBean::filterExtensionConfigsForAppVersion] current version is not app version.current perspectiveId is empty.
[...]
24:54 [WARN ] [http-nio-8080-exec-7] [com.imc.ext.beans.CommonExtensionManagedBean::filterExtensionConfigsForAppVersion] current version is not app version.current perspectiveId is empty.
24:54 [WARN ] [http-nio-8080-exec-11] [com.imc.servlet.filters.UrlAccessController::doFilter] Access URL With No OperatorInfo: /imc/javax.faces.resource/aes.js.jsf?ln=jscript from 192.168.100.200
24:54 [WARN ] [http-nio-8080-exec-15] [com.imc.servlet.filters.UrlAccessController::doFilter] Access URL With No OperatorInfo: /imc/javax.faces.resource/login_hpe.css.jsf?ln=css from 192.168.100.200
24:55 [WARN ] [http-nio-8080-exec-19] [com.imc.servlet.filters.UrlAccessController::doFilter] Access URL With No OperatorInfo: /imc/resources/fonts/HPSimplifiedW04-Regular.ttf?null from 192.168.100.200
24:55 [WARN ] [http-nio-8080-exec-19] [com.imc.servlet.filters.UrlAccessController::doFilter] Access URL With No OperatorInfo: /imc/resources/fonts/HPSimplifiedW04-Regular.ttf?null from 192.168.100.200
24:55 [WARN ] [http-nio-8080-exec-23] [com.imc.servlet.filters.UrlAccessController::doFilter] Access URL With No OperatorInfo: /imc/navigationToLogin.xhtml?reloginFlag=true from 192.168.100.200
25:02 [WARN ] [Thread-66] [com.imc.ntam.config.ntatask.func.NoneConfigInfoReceiver$ReceiverMsgMonitor::run] java.net.SocketTimeoutException: Receive timed out
25:12 [WARN ] [Thread-66] [com.imc.ntam.config.ntatask.func.NoneConfigInfoReceiver$ReceiverMsgMonitor::run] java.net.SocketTimeoutException: Receive timed out
25:21 [WARN ] [http-nio-8080-exec-25] [com.imc.servlet.filters.UrlAccessController::doFilter] Access URL With No OperatorInfo: /imc/login.jsf?null from 192.168.100.200
25:21 [WARN ] [http-nio-8080-exec-25] [com.imc.ext.beans.CommonExtensionManagedBean::filterExtensionConfigsForAppVersion] current version is not app version.current perspectiveId is empty.
[...]
25:21 [WARN ] [http-nio-8080-exec-25] [com.imc.ext.beans.CommonExtensionManagedBean::filterExtensionConfigsForAppVersion] current version is not app version.current perspectiveId is empty.
25:21 [ERROR] [http-nio-8080-exec-25] [com.imc.common.CommonUtils::decryptData] 
25:21 [ERROR] [http-nio-8080-exec-25] [org.apache.catalina.core.StandardWrapperValve::invoke] Servlet.service() for servlet [Faces Servlet] in context with path [/imc] threw exception [javax.el.ELException: java.lang.NullPointerException] with root cause
java.lang.NullPointerException
25:21 [ERROR] [http-nio-8080-exec-25] [com.imc.common.ex.ErrorPageBean::checkLoginErrorException] ErrorPageBean find error : org.apache.myfaces.view.facelets.el.ContextAwareELException: javax.el.ELException: java.lang.NullPointerException
Caused by: javax.el.ELException: java.lang.NullPointerException
Caused by: java.lang.NullPointerException
org.apache.myfaces.view.facelets.el.ContextAwareELException: javax.el.ELException: java.lang.NullPointerException
Caused by: javax.el.ELException: java.lang.NullPointerException
Caused by: java.lang.NullPointerException
25:22 [WARN ] [http-nio-8080-exec-25] [com.imc.common.ImcPerspectiveBean::getCurrentOperator] plat error code:50324
25:22 [WARN ] [http-nio-8080-exec-25] [com.imc.common.ImcPerspectiveBean::getPerspective] Operator is null.
25:22 [WARN ] [Thread-66] [com.imc.ntam.config.ntatask.func.NoneConfigInfoReceiver$ReceiverMsgMonitor::run] java.net.SocketTimeoutException: Receive timed out
[...]
29:52 [WARN ] [Thread-66] [com.imc.ntam.config.ntatask.func.NoneConfigInfoReceiver$ReceiverMsgMonitor::run] java.net.SocketTimeoutException: Receive timed out
30:01 [WARN ] [ImcTaskQuartzScheduler_Worker-9] [com.imc.plat.task.entity.ImcRfTaskEntity::execute] execute() ImcTask: periodic.[ImcTaskIdentifier_CallerClass(class com.imc.plat.search.task.ImcSearchTaskMgrImpl)_TaskName(execute periodicCustomizeSearchableEntityList of resDeviceSearchImplementMgr)]_1566580995644_2, beanObject: class com.imc.res.device.func.DeviceSearchImplementMgrImpl, methodName: periodicCustomizeSearchableEntityList, parameters: [Ljava.lang.Object;@3bded382, parameterTypes: [Ljava.lang.Class;@22101a83 get exception: 
java.lang.reflect.InvocationTargetException
Caused by: net.sf.json.JSONException: A JSONObject text must begin with '{' at character 1 of <html><head><title>Apache Tomcat/7.0.85 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The server encountered an internal error that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>java.lang.NullPointerException
	java.lang.String.&lt;init&gt;(String.java:481)
	com.imc.common.CommonUtils.decryptData(CommonUtils.java:1950)
	com.imc.seplat.operator.entity.Operator.getPassword(Operator.java:76)
	com.imc.seplat.operator.func.OperatorMgrImpl.queryPwdByName(OperatorMgrImpl.java:63)
	com.imc.rs.seplat.ext.OperatorUserDetailsService.loadUserByUsername(OperatorUserDetailsService.java:97)
	com.imc.rs.seplat.ext.DigestAuthenticationFilter.handleAuth(DigestAuthenticationFilter.java:414)
	com.imc.rs.seplat.ext.DigestAuthenticationFilter.doFilter(DigestAuthenticationFilter.java:185)
	com.imc.rs.seplat.ext.PasswordProtectDigestAuthenticationFilter.doFilter(PasswordProtectDigestAuthenticationFilter.java:66)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.access.channel.ChannelProcessingFilter.doFilter(ChannelProcessingFilter.java:144)
	org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
	org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
	org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
	org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)
	org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)
	com.imc.rs.seplat.ext.api.ApiOriginFilter.doFilter(ApiOriginFilter.java:66)
</pre></p><p><b>note</b> <u>The full stack trace of the root cause is available in the Apache Tomcat/7.0.85 logs.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/7.0.85</h3></body></html>
30:02 [WARN ] [Thread-66] [com.imc.ntam.config.ntatask.func.NoneConfigInfoReceiver$ReceiverMsgMonitor::run] java.net.SocketTimeoutException: Receive timed out
[...]
39:52 [WARN ] [Thread-66] [com.imc.ntam.config.ntatask.func.NoneConfigInfoReceiver$ReceiverMsgMonitor::run] java.net.SocketTimeoutException: Receive timed out
ahnet
Occasional Advisor

Re: Problem logging in after reinstalling IMC and restoring database backup.

Regarding the SQL query:

SELECT * FROM [config_db].[imc_config].[tbl_bs_view]

it returns 0 rows. (This table is empty.)

I also checked that this table is empty after fresh install of IMC to which I can login without issues (before I restore backup)

ahnet
Occasional Advisor

Re: Problem logging in after reinstalling IMC and restoring database backup.

I recovered IMC database from different backup and now it's working.