SMPP Connection

15 pts.
Tags:
EXCEPTION
SMPP
Hi,I am getting negative response exception while connecting to smpp server.
Please help what is the exact problem ...

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • carlosdl
    You will have to provide much more details, if you really want to have a chance at getting some help.

    What SMPP server are you using?
    Where are you trying to connect from?
    What tools, languages, operating systems are you using?
    How are you trying to connect (share some code)?
    What is the exact and complete error message?
    69,065 pointsBadges:
    report
  • AnkitArora
    We are deploying this application in one of the company's Server.
    We are using their SMPP Server with details like IP address,Port number,User id,Password,Sender Id given by them.
    We are using java code.Operating system is Windows 2003
    WE are getting error message -->RECIEVED NEGATIVE BIND RESPONSE due to Negative Response Exception. while connecting to their smpp server
    Below is the code from smpp API where error is occuring


    public String connectAndBind(String host, int port,
                BindParameter bindParam, long timeout) 
            throws IOException {
        logger.debug("Connect and bind to {} port {}", host, port);
    if (sequence().currentValue() != 1) {
    throw new IOException("Failed connecting");
    }
    conn = connFactory.createConnection(host, port);
    logger.info("Connected");
    conn.setSoTimeout(getEnquireLinkTimer());
    sessionContext.open();
    try {
    in = new DataInputStream(conn.getInputStream());
    out = conn.getOutputStream();
    new PDUReaderWorker().start();
    String smscSystemId = sendBind(bindParam.getBindType(), bindParam.getSystemId(), bindParam.getPassword(), bindParam.getSystemType(),
                        InterfaceVersion.IF_34, bindParam.getAddrTon(), bindParam.getAddrNpi(), bindParam.getAddressRange(), timeout);
    sessionContext.bound(bindParam.getBindType());
    enquireLinkSender = new EnquireLinkSender();
    enquireLinkSender.start();
    return smscSystemId;
    } catch (PDUException e) {
        logger.error("Failed sending bind command", e);
        throw new IOException("Failed sending bind since some string parameter area invalid : " + e.getMessage());
    } catch (NegativeResponseException e) {
    String message = "Receive negative bind response";
    logger.error(message, e);
    close();
    throw new IOException(message + ": " + e.getMessage());
    } catch (InvalidResponseException e) {
    String message = "Receive invalid response of bind";
    logger.error(message, e);
    close();
    throw new IOException(message + ": " + e.getMessage());
    } catch (ResponseTimeoutException e) {
    String message = "Waiting bind response take time to long";
    logger.error(message, e);
    close();
    throw new IOException(message + ": " + e.getMessage());
    } catch (IOException e) {
    logger.error("IO Error occur", e);
    close();
    throw e;
    }
    }
    15 pointsBadges:
    report
  • carlosdl
    It could be a number of reasons, for example, incorrect user and/or password.  The exception message usually includes an error code that you could use to research the issue according to the SMPP specification.

    Without looking at the complete exception message it would be difficult to figure out a possible cause.
    69,065 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following