This discussion is archived
1 Reply Latest reply: Feb 21, 2013 9:43 PM by 983292 RSS

Weblogic Failed to Shutdown

983292 Newbie
Currently Being Moderated
Hi All,

When I'm trying to shutdown weblogic server after test run ( TestNG ) i' m getting following error. I'm using ant task to shutdown the server.
Can anyone help.

Thanks in advance.

ERROR LOG
========

stop-weblogic:
[WLServer adminserver] <Feb 20, 2013 11:35:03 PM IST> <Alert> <WebLogicServer> <BEA-000396> <Server shutdown has been requested by weblogic>
[WLServer adminserver] <Feb 20, 2013 11:35:03 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SUSPENDING>
[WLServer adminserver] <Feb 20, 2013 11:35:03 PM IST> <Critical> <WebLogicServer> <BEA-000366> <Server failed to shutdown. Exception: java.lang.NullPointerException
[WLServer adminserver] java.lang.NullPointerException
[WLServer adminserver]      at weblogic.ejb.container.internal.JMSConnectionPoller.suspend(JMSConnectionPoller.java:2202)
[WLServer adminserver]      at weblogic.ejb.container.deployer.MDBServiceImpl.iterateOnMDBs(MDBServiceImpl.java:102)
[WLServer adminserver]      at weblogic.ejb.container.deployer.MDBServiceImpl.haltService(MDBServiceImpl.java:45)
[WLServer adminserver]      at weblogic.server.ServiceActivator.halt(ServiceActivator.java:115)
[WLServer adminserver]      at weblogic.t3.srvr.ServerServicesManager.haltInternal(ServerServicesManager.java:504)
[WLServer adminserver]      Truncated. see log file for complete stacktrace
[WLServer adminserver] >
[WLServer adminserver] <Feb 20, 2013 11:35:03 PM IST> <Critical> <WebLogicServer> <BEA-000386> <Server subsystem failed. Reason: java.lang.NullPointerException
[WLServer adminserver] java.lang.NullPointerException
[WLServer adminserver]      at weblogic.ejb.container.internal.JMSConnectionPoller.suspend(JMSConnectionPoller.java:2202)
[WLServer adminserver]      at weblogic.ejb.container.deployer.MDBServiceImpl.iterateOnMDBs(MDBServiceImpl.java:102)
[WLServer adminserver]      at weblogic.ejb.container.deployer.MDBServiceImpl.haltService(MDBServiceImpl.java:45)
[WLServer adminserver]      at weblogic.server.ServiceActivator.halt(ServiceActivator.java:115)
[WLServer adminserver]      at weblogic.t3.srvr.ServerServicesManager.haltInternal(ServerServicesManager.java:504)
[WLServer adminserver]      Truncated. see log file for complete stacktrace
[WLServer adminserver] >
[WLServer adminserver] <Feb 20, 2013 11:35:03 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
[wlserver] javax.management.MBeanException: MBean invoke failed: weblogic.server.ServerLifecycleException: weblogic.server.ServerLifecycleException: java.lang.NullPointerException
[wlserver]      at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
[wlserver]      at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
[wlserver]      at weblogic.management.mbeanservers.compatibility.internal.RemoteMBeanServerImpl_1032_WLStub.invoke(Unknown Source)
[wlserver]      at weblogic.ant.taskdefs.management.WLServer.killServer(WLServer.java:575)
[wlserver]      at weblogic.ant.taskdefs.management.WLServer.execute(WLServer.java:361)
[wlserver]      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[wlserver]      at org.apache.tools.ant.Task.perform(Task.java:364)
[wlserver]      at org.apache.tools.ant.Target.execute(Target.java:341)
[wlserver]      at org.apache.tools.ant.Target.performTasks(Target.java:369)
[wlserver]      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[wlserver]      at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
[wlserver]      at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[wlserver]      at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
[wlserver]      at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
[wlserver]      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[wlserver]      at org.apache.tools.ant.Task.perform(Task.java:364)
[wlserver]      at org.apache.tools.ant.Target.execute(Target.java:341)
[wlserver]      at org.apache.tools.ant.Target.performTasks(Target.java:369)
[wlserver]      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[wlserver]      at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:37)
[wlserver]      at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[wlserver]      at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
[wlserver]      at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
[wlserver]      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[wlserver]      at org.apache.tools.ant.Task.perform(Task.java:364)
[wlserver]      at org.apache.tools.ant.Target.execute(Target.java:341)
[wlserver]      at org.apache.tools.ant.Target.performTasks(Target.java:369)
[wlserver]      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[wlserver]      at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[wlserver]      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[wlserver]      at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[wlserver]      at org.apache.tools.ant.Main.runBuild(Main.java:668)
[wlserver]      at org.apache.tools.ant.Main.startAnt(Main.java:187)
[wlserver]      at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
[wlserver]      at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
[wlserver] Caused by: weblogic.server.ServerLifecycleException: weblogic.server.ServerLifecycleException: java.lang.NullPointerException
[wlserver]      at weblogic.t3.srvr.ServerRuntime.forceShutdown(ServerRuntime.java:350)
[wlserver]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[wlserver]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[wlserver]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[wlserver]      at java.lang.reflect.Method.invoke(Method.java:597)
[wlserver]      at weblogic.management.jmx.modelmbean.WLSModelMBean.invoke(WLSModelMBean.java:437)
[wlserver]      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
[wlserver]      at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
[wlserver]      at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$16.run(WLSMBeanServerInterceptorBase.java:449)
[wlserver]      at java.security.AccessController.doPrivileged(Native Method)
[wlserver]      at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.invoke(WLSMBeanServerInterceptorBase.java:447)
[wlserver]      at weblogic.management.mbeanservers.compatibility.internal.ReparentingInterceptor.invoke(ReparentingInterceptor.java:135)
[wlserver]      at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$16.run(WLSMBeanServerInterceptorBase.java:449)
[wlserver]      at java.security.AccessController.doPrivileged(Native Method)
[wlserver]      at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.invoke(WLSMBeanServerInterceptorBase.java:447)
[wlserver]      at weblogic.management.mbeanservers.compatibility.internal.EditServiceInterceptor.invoke(EditServiceInterceptor.java:303)
[wlserver]      at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$16.run(WLSMBeanServerInterceptorBase.java:449)
[wlserver]      at java.security.AccessController.doPrivileged(Native Method)
[wlserver]      at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.invoke(WLSMBeanServerInterceptorBase.java:447)
[wlserver]      at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$16.run(WLSMBeanServerInterceptorBase.java:449)
[wlserver]      at java.security.AccessController.doPrivileged(Native Method)
[wlserver]      at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.invoke(WLSMBeanServerInterceptorBase.java:447)
[wlserver]      at weblogic.management.mbeanservers.internal.SecurityInterceptor.invoke(SecurityInterceptor.java:443)
[wlserver]      at weblogic.management.jmx.mbeanserver.WLSMBeanServer.invoke(WLSMBeanServer.java:314)
[wlserver]      at weblogic.management.mbeanservers.compatibility.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:203)
[wlserver]      at weblogic.management.mbeanservers.compatibility.internal.RemoteMBeanServerImpl_WLSkel.invoke(Unknown Source)
[wlserver]      at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
[wlserver]      at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
[wlserver]      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
[wlserver]      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
[wlserver]      at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
[wlserver]      at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
[wlserver]      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
[wlserver]      at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
[wlserver] Caused by: weblogic.server.ServerLifecycleException: java.lang.NullPointerException
[wlserver]      at weblogic.t3.srvr.T3Srvr.suspend(T3Srvr.java:1042)
[wlserver]      at weblogic.t3.srvr.T3Srvr.shutdown(T3Srvr.java:972)
[wlserver]      at weblogic.t3.srvr.T3Srvr.forceShutdown(T3Srvr.java:892)
[wlserver]      at weblogic.t3.srvr.ServerRuntime.forceShutdown(ServerRuntime.java:343)
[wlserver]      ... 33 more
[wlserver] Caused by: java.lang.NullPointerException
[wlserver]      at weblogic.ejb.container.internal.JMSConnectionPoller.suspend(JMSConnectionPoller.java:2202)
[wlserver]      at weblogic.ejb.container.deployer.MDBServiceImpl.iterateOnMDBs(MDBServiceImpl.java:102)
[wlserver]      at weblogic.ejb.container.deployer.MDBServiceImpl.haltService(MDBServiceImpl.java:45)
[wlserver]      at weblogic.server.ServiceActivator.halt(ServiceActivator.java:115)
[wlserver]      at weblogic.t3.srvr.ServerServicesManager.haltInternal(ServerServicesManager.java:504)
[wlserver]      at weblogic.t3.srvr.ServerServicesManager.halt(ServerServicesManager.java:328)
[wlserver]      at weblogic.t3.srvr.T3Srvr.suspend(T3Srvr.java:1024)
[wlserver]      ... 36 more
Trying to override old definition of task branded-javadoc
[WLServer adminserver] Feb 20, 2013 11:35:06 PM com.sun.faces.config.ConfigureListener contextInitialized
[WLServer adminserver] INFO: Initializing Sun's JavaServer Faces implementation (1.2_03-b04-FCS) for context '/console'
[WLServer adminserver] Feb 20, 2013 11:35:06 PM com.sun.faces.config.ConfigureListener contextInitialized
[WLServer adminserver] INFO: Completed initializing Sun's JavaServer Faces implementation (1.2_03-b04-FCS) for context '/console'
  • 1. Re: Weblogic Failed to Shutdown
    983292 Newbie
    Currently Being Moderated
    I have found a 2 solutions.
    1. Stopping weblogic two times
    <antcall target="stop-weblogic"/>
    <antcall target="stop-weblogic"/>

    2. Using ant to kill weblogic
    <target name="kill-weblogic">
    <exec executable="${jdk.home}/bin/jps" output="pid.out.file"/>
    <loadfile srcfile="pid.out.file" property="pid.out">
    <filterchain>
    <linecontains>
    <contains value="Server"/>
    </linecontains>
    <tokenfilter>
    <deletecharacters chars="Server"/>
    <trim/>
    <ignoreblank/>
    </tokenfilter>
    <striplinebreaks/>
    </filterchain>
    </loadfile>
    <echo>Killing weblogic instance with PID - "${pid.out}"</echo>
    <exec executable="kill">
    <arg value="-9"/>
    <arg value="${pid.out}"/>
    </exec>
    <delete file="pid.out.file"/>
    </target>

    Thanks !

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points