Author Message
Jmq1982
Joined: Apr 9, 2018
Messages: 16
Offline
hi, i used java api to connect aes, but i don't knwo why is session[null].


public class DeviceIDTest {
public static void main(String[] args) throws Exception {
Properties props = new Properties();

props.setProperty(CmapiKeys.SERVICE_PROVIDER_ADDRESS, "192.168.11.230");
props.setProperty(CmapiKeys.SERVICE_PROVIDER_PORT, "4721");
props.setProperty(CmapiKeys.CMAPI_USERNAME, "aes");
props.setProperty(CmapiKeys.CMAPI_PASSWORD, "Aes12345^");
props.setProperty(CmapiKeys.SESSION_PROTOCOL_VERSION, APIProtocolVersion.VERSION_6_3_1);
props.setProperty(CmapiKeys.SESSION_DURATION_TIMER, "180");
props.setProperty(CmapiKeys.SESSION_CLEANUP_TIMER, "60");

ServiceProvider svrProvider = ServiceProvider.getServiceProvider(props);

SessionCharacteristics sc = new SessionCharacteristics();

sc.setDeviceIDType(DeviceIDType.DMCC);
sc.setEventFilterMode(EventFilterMode.DESKTOPCALLCONTROL);

SetSessionCharacteristicsResponse resp = svrProvider.setSessionCharacteristics(sc);



}
}


picture
https://imgur.com/a/5RD7c
MartinFlynn
Joined: Nov 30, 2009
Messages: 1922
Online
There is no variable called "session" in that code. Can you explain what you mean by "session[null]"?

Which line seems to be giving the problem?

Martin
Jmq1982
Joined: Apr 9, 2018
Messages: 16
Offline
i'm new to use IntelliJ IDEA, i am unfamiliar with it. sorry.
Go to:   
Mobile view