03-04-2014 11:49 AM
Hello!
Could someone help me with my issue. Ncs wont start and its failing all the time. In ServerStatus.log i can see something like this:
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xmpMain' defined in class path resource [xmp-rmi-context.xml]: Invocation of init method failed; nested exception is org.springframework.remoting.RemoteLookupFailureException: Could not find RMI service [rmi://localhost:1199/xmp-service] in RMI registry; nested exception is java.rmi.NotBoundException: xmp-service
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1401)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:309)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1004)
at com.cisco.xmp.startup.GetServerStatus.getStatus(GetServerStatus.java:68)
at com.cisco.xmp.startup.GetServerStatus.main(GetServerStatus.java:45)
Caused by: org.springframework.remoting.RemoteLookupFailureException: Could not find RMI service [rmi://localhost:1199/xmp-service] in RMI registry; nested exception is java.rmi.NotBoundException: xmp-service
at org.springframework.remoting.rmi.RmiClientInterceptor.lookupStub(RmiClientInterceptor.java:211)
at org.springframework.remoting.rmi.RmiClientInterceptor.prepare(RmiClientInterceptor.java:147)
at org.springframework.remoting.rmi.RmiClientInterceptor.afterPropertiesSet(RmiClientInterceptor.java:135)
at org.springframework.remoting.rmi.RmiProxyFactoryBean.afterPropertiesSet(RmiProxyFactoryBean.java:68)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1460)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1398)
... 7 more
Caused by: java.rmi.NotBoundException: xmp-service
at sun.rmi.registry.RegistryImpl.lookup(Unknown Source)
at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
at sun.rmi.server.UnicastServerRef.oldDispatch(Unknown Source)
at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
at sun.rmi.transport.Transport$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at java.rmi.Naming.lookup(Unknown Source)
at org.springframework.remoting.rmi.RmiClientInterceptor.lookupStub(RmiClientInterceptor.java:200)
... 12 more
How this error can be fixed?
Solved! Go to Solution.
03-04-2014 05:05 PM
Hi Valery,
was it a fresh Installed ? or you upgarded to 1.2 and did Data Migration ?
what is the output of " ncs status"
check this file " /opt/CSCOncs/conf/messaging.properties" . see if contain the correct IP address , if not correct it and
then restart ncs.
Thanks-
Afroz
[Do rate the useful post]
****Ratings Encourages Contributors ****
03-04-2014 05:05 PM
Hi Valery,
was it a fresh Installed ? or you upgarded to 1.2 and did Data Migration ?
what is the output of " ncs status"
check this file " /opt/CSCOncs/conf/messaging.properties" . see if contain the correct IP address , if not correct it and
then restart ncs.
Thanks-
Afroz
[Do rate the useful post]
****Ratings Encourages Contributors ****
03-04-2014 08:36 PM
Hi there.
It's fresh install without any upgrades or updates.
I corrected ip in /opt/CSCOncs/conf/messaging.properties and restarted ncs
ncs status looks like this:
Health Monitor Server is running.
Reporting Server is running
Ftp Server is running
Database server is running
Tftp Server is running
Matlab Server is running
NMS Server is running.
SAM Daemon is running ...
DA Daemon is running ...
Syslog Daemon is running ...
status
Web-console now active, but i can't login, neither admin/admin nor mine ssh account are not suitable.
Created new login via console but it wont work either.
03-04-2014 09:24 PM
try resetting the password ,from the below link:
Thanks-
Afroz
[Do rate the useful post]
****Ratings Encourages Contributors ****
03-07-2014 02:19 AM
Thank you for your reply! problem solved
03-07-2014 03:17 AM
Great
Thanks for updating the thread..
Thanks-
Afroz
[Do rate the useful post]
****Ratings Encourages Contributors ****
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide