Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
No replies
Letteb
Letteb
1 Post
ACCEPTED ANSWER

Pinned topic Unable to restart Server Status EJB

‏2011-12-29T13:39:57Z |
Unable to restart an EJB application on WebSphere Application Server, i get the following error in the

12/29/11 15:40:00:834 SAST 00000029 ServerStatusS E Failed to start server status trap
12/29/11 15:40:00:836 SAST 00000029 ServerStatusS E TRAS0014I: The following exception was logged java.lang.NullPointerException
at org.snmp4j.transport.DefaultTcpTransportMapping$ServerThread.<init>(DefaultTcpTransportMapping.java:586)
at org.snmp4j.transport.DefaultTcpTransportMapping.listen(DefaultTcpTransportMapping.java:111)
at org.snmp4j.Snmp.listen(Snmp.java:467)
at org.snmp4j.test.MultiThreadedTrapReceiver.run(MultiThreadedTrapReceiver.java:94)
at za.vsp.ejb.server.ServerStatusStartupBean.runTrap(ServerStatusStartupBean.java:96)
at za.vsp.ejb.server.ServerStatusStartupBean.start(ServerStatusStartupBean.java:75)
at com.ibm.websphere.startupservice.EJSRemoteStatelessServerStatusStartup_4d292a90.start(EJSRemoteStatelessServerStatusStartup_4d292a90.java:27)
at com.ibm.websphere.startupservice._AppStartUp_Stub.start(_AppStartUp_Stub.java:252)
at com.ibm.ws.startupservice.StartBeanInfo.start(StartBeanInfo.java(Compiled Code))
at com.ibm.ws.startupservice.StartUpModule.appStart(StartUpModule.java(Compiled Code))
at com.ibm.ws.startupservice.StartUpApplication.start(StartUpApplication.java(Compiled Code))
at com.ibm.ws.startupservice.StartUpService.stateChanged(StartUpService.java(Compiled Code))
at com.ibm.ws.runtime.component.ApplicationMgrImpl.stateChanged(ApplicationMgrImpl.java(Compiled Code))
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectEvent(DeployedApplicationImpl.java(Inlined Compiled Code))
at com.ibm.ws.runtime.component.DeployedApplicationImpl.setState(DeployedApplicationImpl.java(Compiled Code))
at com.ibm.ws.runtime.component.DeployedApplicationImpl.setState(DeployedApplicationImpl.java:208)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:766)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:923)
at com.ibm.ws.runtime.component.ApplicationMgrImpl$1.run(ApplicationMgrImpl.java:1480)
at com.ibm.ws.security.auth.distContextManagerImpl.runAs(distContextManagerImpl.java(Compiled Code))
at com.ibm.ws.security.auth.distContextManagerImpl.runAsSystem(distContextManagerImpl.java:2704)
at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:240)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1485)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java(Compiled Code))
at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:1012)
at mx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke(InvokerMBeanServerInterceptor.java:233)
at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:128)
at mx4j.server.interceptor.SecurityMBeanServerInterceptor.invoke(SecurityMBeanServerInterceptor.java:86)
at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:128)
at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:128)
at mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.invoke(ContextClassLoaderMBeanServerInterceptor.java:167)
at mx4j.server.MX4JMBeanServer.invoke(MX4JMBeanServer.java:1249)
at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1054)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java(Compiled Code))
at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:970)
at com.ibm.ws.management.connector.AdminServiceDelegator.invoke(AdminServiceDelegator.java:157)
at sun.reflect.GeneratedMethodAccessor155.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at com.ibm.ws.management.connector.soap.SOAPConnector.invoke(SOAPConnector.java(Compiled Code))
at com.ibm.ws.management.connector.soap.SOAPConnector.service(SOAPConnector.java(Compiled Code))
at com.ibm.ws.management.connector.soap.SOAPConnection.handleRequest(SOAPConnection.java:55)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:680)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:484)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1498)
.
12/29/11 15:40:00:851 SAST 00000029 StartBeanInfo E STUP0005E: Startup bean named ejb/com/ibm/websphere/startupservice/AppStartUpHome forced application to stop.
12/29/11 15:40:04:263 SAST 00000023 ServerStatusS E Failed to start server status trap
12/29/11 15:40:04:270 SAST 00000023 ServerStatusS E TRAS0014I: The following exception was logged java.net.BindException: The socket name is already in use.
at java.net.PlainDatagramSocketImpl.bind(Native Method)
at java.net.DatagramSocket.bind(DatagramSocket.java:397)
at java.net.DatagramSocket.<init>(DatagramSocket.java:234)
at java.net.DatagramSocket.<init>(DatagramSocket.java:285)
at org.snmp4j.transport.DefaultUdpTransportMapping.<init>(DefaultUdpTransportMapping.java:101)
at org.snmp4j.test.MultiThreadedTrapReceiver.init(MultiThreadedTrapReceiver.java:77)
at org.snmp4j.test.MultiThreadedTrapReceiver.run(MultiThreadedTrapReceiver.java:93)
at za.vsp.ejb.server.ServerStatusStartupBean.runTrap(ServerStatusStartupBean.java:96)
at za.vsp.ejb.server.ServerStatusStartupBean.start(ServerStatusStartupBean.java:75)
at com.ibm.websphere.startupservice.EJSRemoteStatelessServerStatusStartup_4d292a90.start(EJSRemoteStatelessServerStatusStartup_4d292a90.java:27)
at com.ibm.websphere.startupservice._AppStartUp_Stub.start(_AppStartUp_Stub.java:252)
at com.ibm.ws.startupservice.StartBeanInfo.start(StartBeanInfo.java(Compiled Code))
at com.ibm.ws.startupservice.StartUpModule.appStart(StartUpModule.java(Compiled Code))
at com.ibm.ws.startupservice.StartUpApplication.start(StartUpApplication.java(Compiled Code))
at com.ibm.ws.startupservice.StartUpService.stateChanged(StartUpService.java(Compiled Code))
at com.ibm.ws.runtime.component.ApplicationMgrImpl.stateChanged(ApplicationMgrImpl.java(Compiled Code))
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectEvent(DeployedApplicationImpl.java(Inlined Compiled Code))
at com.ibm.ws.runtime.component.DeployedApplicationImpl.setState(DeployedApplicationImpl.java(Compiled Code))
at com.ibm.ws.runtime.component.DeployedApplicationImpl.setState(DeployedApplicationImpl.java:208)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:766)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:923)
at com.ibm.ws.runtime.component.ApplicationMgrImpl$1.run(ApplicationMgrImpl.java:1480)
at com.ibm.ws.security.auth.distContextManagerImpl.runAs(distContextManagerImpl.java(Compiled Code))
at com.ibm.ws.security.auth.distContextManagerImpl.runAsSystem(distContextManagerImpl.java:2704)
at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:240)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1485)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java(Compiled Code))
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java(Compiled Code))
at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:1012)
at mx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke(InvokerMBeanServerInterceptor.java:233)
at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:128)
at mx4j.server.interceptor.SecurityMBeanServerInterceptor.invoke(SecurityMBeanServerInterceptor.java:86)
at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:128)
at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:128)
at mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.invoke(ContextClassLoaderMBeanServerInterceptor.java:167)
at mx4j.server.MX4JMBeanServer.invoke(MX4JMBeanServer.java:1249)
at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1054)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java(Compiled Code))
at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:970)
at com.ibm.ws.management.connector.AdminServiceDelegator.invoke(AdminServiceDelegator.java:157)
at sun.reflect.GeneratedMethodAccessor148.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
at com.ibm.ws.management.connector.soap.SOAPConnector.invoke(SOAPConnector.java(Compiled Code))
at com.ibm.ws.management.connector.soap.SOAPConnector.service(SOAPConnector.java(Compiled Code))
at com.ibm.ws.management.connector.soap.SOAPConnection.handleRequest(SOAPConnection.java:55)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:680)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:484)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1498)
.
12/29/11 15:40:04:289 SAST 00000023 StartBeanInfo E STUP0005E: Startup bean named ejb/com/ibm/websphere/startupservice/AppStartUpHome forced application to stop.

pls help