We're updating the issue view to help you get more done. 

SocketException is thrown seconds after deploying the alert-integration

Description

Reproduction:

[gsc][2/23152] java.net.SocketException: maximum number of DatagramSockets reached
[gsc][2/23152] at sun.net.ResourceManager.beforeUdpCreate(ResourceManager.java:53)
[gsc][2/23152] at java.net.PlainDatagramSocketImpl.create(PlainDatagramSocketImpl.java:74)
[gsc][2/23152] at java.net.DatagramSocket.createImpl(DatagramSocket.java:318)
[gsc][2/23152] at java.net.DatagramSocket.<init>(DatagramSocket.java:209)
[gsc][2/23152] at java.net.DatagramSocket.<init>(DatagramSocket.java:262)
[gsc][2/23152] at java.net.DatagramSocket.<init>(DatagramSocket.java:235)
[gsc][2/23152] at org.snmp4j.transport.DefaultUdpTransportMapping.<init>(DefaultUdpTransportMapping.java:62)
[gsc][2/23152] at org.openspaces.example.alert.logging.snmp.SnmpTrapSender.sendTrap(SnmpTrapSender.java:128)
[gsc][2/23152] at org.apache.log4j.ext.SNMPTrapAppender.append(SNMPTrapAppender.java:313)
[gsc][2/23152] at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)
[gsc][2/23152] at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:65)
[gsc][2/23152] at org.apache.log4j.Category.callAppenders(Category.java:203)
[gsc][2/23152] at org.apache.log4j.Category.forcedLog(Category.java:388)
[gsc][2/23152] at org.apache.log4j.Category.log(Category.java:853)
[gsc][2/23152] at org.apache.commons.logging.impl.Log4JLogger.info(Log4JLogger.java:176)
[gsc][2/23152] at org.openspaces.example.alert.logging.snmp.AlertLoggingGateway$1.alertTriggered(AlertLoggingGateway.java:110)
[gsc][2/23152] at org.openspaces.admin.internal.alert.events.DefaultAlertEventManager$3.run(DefaultAlertEventManager.java:94)
[gsc][2/23152] at org.openspaces.admin.internal.admin.DefaultAdmin$LoggerRunnable.run(DefaultAdmin.java:2093)
[gsc][2/23152] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
[gsc][2/23152] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
[gsc][2/23152] at java.util.concurrent.FutureTask.run(FutureTask.java:138)
[gsc][2/23152] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
[gsc][2/23152] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
[gsc][2/23152] at java.lang.Thread.run(Thread.java:662)

Workaround

None

Acceptance Test

manual milestone test

Status

Assignee

Meron Avigdor

Reporter

Yohana Khoury

Labels

None

Priority

Medium

SalesForce Case ID

10936

Fix versions

Commitment Version/s

None

Due date

None

Product

XAP

Edition

Premium

Platform

Java

Sprint

None