Netbeans IDE complains of error in the program IPModemDriver.java. I
will be glad if you could kindly help to solve the problem.
Here is the error message:
method setSocketFactory in class org.apache.commons.net.SocketClient
cannot be applied to given types
required: org.apache.commons.net.SocketFactory
found: javax.net.ssl.SSLSocketFactory
The offending statement is: this.tc.setSocketFactory
(SSLContext.getInstance("Default").getSocketFactory());
of the connectPort() method, as shown below: -
protected void connectPort() throws GatewayException, IOException,
InterruptedException
{
try
{
getGateway().getService().getLogger().logInfo("Opening:
" +
this.ipAddress + " @" + this.ipPort, null, getGateway().getGatewayId
());
this.tc = new TelnetClient();
this.tc.addOptionHandler(this.ttopt);
this.tc.addOptionHandler(this.echoopt);
this.tc.addOptionHandler(this.gaopt);
if (getGateway().getIpProtocol() == IPProtocols.BINARY)
this.tc.addOptionHandler(this.binaryopt); // Make telnet session
binary, so ^Z in ATHander.Sendmessage is send raw!
if (getGateway().getIpEncryption())
{
try
{
this.tc.setSocketFactory(SSLContext.getInstance
("Default").getSocketFactory());
}
--
You received this message because you are subscribed to the Google Groups
"SMSLib for Java User Group" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/smslib?hl=en.