Revision: 199ae9d6d97a
Author: Jean Deruelle <[email protected]>
Date: Mon Jul 2 02:48:32 2012
Log: Update Issue 3
Fix failing Snapshots cloudbees job due to JDK impl classes import.
(cherry picked from commit 0913824b3af9eafd4a88e18fa0a408bde13486da)
http://code.google.com/p/commscale/source/detail?r=199ae9d6d97a&repo=load-balancer
Modified:
/jar/src/main/java/org/mobicents/tools/sip/balancer/SIPBalancerForwarder.java
=======================================
---
/jar/src/main/java/org/mobicents/tools/sip/balancer/SIPBalancerForwarder.java
Thu Jun 28 08:51:49 2012
+++
/jar/src/main/java/org/mobicents/tools/sip/balancer/SIPBalancerForwarder.java
Mon Jul 2 02:48:32 2012
@@ -27,6 +27,7 @@
import gov.nist.javax.sip.header.SIPHeader;
import gov.nist.javax.sip.message.SIPResponse;
+import java.io.ByteArrayInputStream;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Collection;
@@ -66,8 +67,6 @@
import org.apache.log4j.Logger;
-import com.sun.xml.internal.messaging.saaj.util.ByteInputStream;
-
/**
* A transaction stateful UDP Forwarder that listens at a port and
forwards to multiple
* outbound addresses. It keeps a timer thread around that pings the list
of
@@ -454,7 +453,7 @@
byte[] bytes = (byte[]) request.getContent();
Properties prop = new Properties();
try {
- prop.load(new ByteInputStream(bytes,
bytes.length));
+ prop.load(new ByteArrayInputStream(bytes, 0,
bytes.length));
SIPNode node = new SIPNode(prop.getProperty("hostname"),
prop.getProperty("ip"));
for(String id : prop.stringPropertyNames()) {
node.getProperties().put(id,
prop.getProperty(id));