duongthanhtam2 / jsmpp

Automatically exported from code.google.com/p/jsmpp
Apache License 2.0
0 stars 0 forks source link

Not recieving the submitted message. #58

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run the SMPPServersimulator.java(OK)
2. Run SimpleSubmitExample.java(Submit the message sucessfully.)
3. Run ReceiveSubmittedExample.java(Exception occurred while executing this
example)
The exception is :

Listening ...
java.net.BindException: Address already in use: JVM_Bind
    at java.net.PlainSocketImpl.socketBind(Native Method)
    at java.net.PlainSocketImpl.bind(Unknown Source)
    at java.net.ServerSocket.bind(Unknown Source)
    at java.net.ServerSocket.<init>(Unknown Source)
    at java.net.ServerSocket.<init>(Unknown Source)
    at
org.jsmpp.session.connection.socket.ServerSocketConnectionFactory.listen(ServerS
ocketConnectionFactory.java:30)
    at
org.jsmpp.session.SMPPServerSessionListener.<init>(SMPPServerSessionListener.jav
a:66)
    at
org.jsmpp.session.SMPPServerSessionListener.<init>(SMPPServerSessionListener.jav
a:60)
    at
org.jsmpp.examples.ReceiveSubmittedMessageExample.main(ReceiveSubmittedMessageEx
ample.java:95)

Please help me to run these example.

Original issue reported on code.google.com by ak.bhart...@gmail.com on 24 Nov 2009 at 1:31

GoogleCodeExporter commented 9 years ago
Of course.
Both SMPPServerSimulator and ReveiveSubmittedExample listen on the same port.
The last one will failed.

SMPPServerSimulator is a simple SMSC simulator (SMPP Server)
SimpleSubmitExample is example to submit a message (SMPP Client)
ReceiveSubmittedExample is demonstration of how SMPP Sever receive message from 
SMPP Client (SMPP Client) 

Original comment by uuda...@gmail.com on 24 Nov 2009 at 3:18

GoogleCodeExporter commented 9 years ago
Thanks a lot.

-
Regards
Ashwani

Original comment by ak.bhart...@gmail.com on 25 Nov 2009 at 5:13