Resolution
AppManager 5.0.1
fact
WebLogic Server UNIX
fact
WebLogicSvrUNIX Discovery Script not run since WebLogic Server was upgraded
symptom
The script WebLogicSvrUNIX_ServerJVMHeap failed.
symptom
Detailed event message:
The script WebLogicSvrUNIX_ServerJVMHeap failed.
mbeanName = examplesServer.
Caught exception in getMBeanHome: java.lang.NullPointerExceptionhostname = 10.41.7.203 port = 7001 username = system password = examplesPassword
Stack trace:
java.lang.NullPointerException
at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:191)
at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:180)
at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:149)
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:207)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:235)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:176)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:123)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:668)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
at javax.naming.InitialContext.init(InitialContext.java:222)
at javax.naming.InitialContext.<init>(InitialContext.java:198)
at NetIQWLSAgent.getMBeanHome(NetIQWLSAgent.java:564)
at NetIQWLSAgent.getValues(NetIQWLSAgent.java:157)
at java.lang.reflect.Method.invoke(Native Method)
at Dealer.callFunction(Dealer.java:854)
at Dealer.parse(Dealer.java:527)
at Dealer.run(Dealer.java:426)
Unable to obtain MBeanHome: hostname = 10.41.7.203 port = 7001 username = system password = examplesPassword
The WebLogic Server may have been shutting down while the NetIQ WebLogic Server agent was attempting to collect data.
change
Upgraded to new release of WebLogic Server
cause
The job is trying to communicate with the WebLogic Server using back level BEA WebLogic Server Java classes, which were selected the last time that you ran the WebLogicSvrUNIX Discovery Script.
fix
1. Record which WebLogicSvrUNIX Knowledge Scripts are running on the machine with the WebLogic Server and the values that you have set for the parameters, since these jobs will be stopped and deleted when you run discovery.
2. Run the WebLogicSvrUNIX Discovery Script to discover the new release of WebLogic Server. This will have the side effect of stopping and deleting any jobs that are running on that machine.
3. Recreate the jobs that were running previously.