Hi,
Were anyone able to use JSMPPGateway from smslib .NET?
I'm trying to run the same code as above in this thread using smslib 3.5.2:
var jSmppGateway = new JSMPPGateway("smppclient1", "127.0.0.1", 2775, new
BindAttributes("smppclient1", "password", "cp",
BindAttributes.BindType.RECEIVER));
and get this exception:
ExceptionType - System.TypeInitializationException
ExceptionMessage - The type initializer for 'org.jsmpp.session.SMPPSession'
threw an exception.
ExceptionSource - smslib-v3.5.2
ExceptionStackTrace - at org.jsmpp.session.SMPPSession..ctor()
at org.smslib.smpp.jsmpp.JSMPPGateway.initSession()
at org.smslib.smpp.jsmpp.JSMPPGateway.init()
at org.smslib.smpp.jsmpp.JSMPPGateway..ctor(String id, String host,
Int32 port, BindAttributes bindAttributes)
at
SmsServer.Drivers.SmsLibSmpp.SmsLibSmppDriver.SubInitialize(IDictionary`2
config, String shortCode) in ...
InnerExceptionType - System.TypeInitializationException
InnerExceptionMessage - The type initializer for
'org.jsmpp.session.AbstractSession' threw an exception.
InnerExceptionStackTrace - at
org.jsmpp.session.AbstractSession.__<clinit>()
at org.jsmpp.session.SMPPSession..cctor()
And innermost exception is of type java.lang.NoClassDefFoundError with
exception message "org.slf4j.LoggerFactory". So it looks like it tries to
instantiate class which is not included in library.
--
Oleg
--
You received this message because you are subscribed to the Google Groups
"SMSLib Discussion Group" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
To view this discussion on the web visit
https://groups.google.com/d/msg/smslib/-/bYyXMAm0YZQJ.
For more options, visit https://groups.google.com/groups/opt_out.