logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
charles.tsai  
#1 Posted : Monday, October 30, 2017 3:02:37 PM(UTC)
charles.tsai


Rank: Newbie

Joined: 2/14/2017(UTC)
Posts: 10
United States
Location: New York

Thanks: 1 times
Dear ScreenConnect Support,
We are trying to migrate our SC version to SC 6.3 but having trouble to using SC6 java API to connect to the session.

Here is the exception looks like
java.lang.NullPointerException
at java.util.Properties$LineReader.readLine(Properties.java:434)
at java.util.Properties.load0(Properties.java:353)
at java.util.Properties.load(Properties.java:341)
at com.screenconnect.ConfigurationSettingsProvider.getConfigurationSettingValue(ConfigurationSettingsProvider.java:15)
at com.screenconnect.client.Client.<init>(Client.java:269)

I am wondering what properties is this and does it required for Java Client API to make a connection?

Thanks,
Charles Tsai
Scott  
#2 Posted : Tuesday, October 31, 2017 11:59:44 AM(UTC)
Scott


Rank: Administration

Medals: Level 4: Wise Old Owl! Received 100 Thanks!

Joined: 3/28/2014(UTC)
Posts: 2,514
United States

Thanks: 3 times
Was thanked: 305 time(s) in 262 post(s)
About which "SC 6.3 Java API" are you describing?
ScreenConnect Team
charles.tsai  
#3 Posted : Tuesday, October 31, 2017 12:05:23 PM(UTC)
charles.tsai


Rank: Newbie

Joined: 2/14/2017(UTC)
Posts: 10
United States
Location: New York

Thanks: 1 times
Here is the sample code I tried to run

ClientLaunchParameters clp = new ClientLaunchParameters();
clp.sessionID = SID;
clp.encryptionKey = new ByteArraySegment(Base64.decode(EncryptionKey));
clp.host = relayHost;
clp.port = relayPort;
clp.processType = getProcessType();
clp.sessionType = getSessionType();
clp.sessionTitle = getSessionTitle();

SocketEndPointManager endPointManager = new SocketEndPointManager(clp, ClientExtensions.getVersion(), ClientType.JAVA_SWING);
Client SCClient = new Client(endPointManager); <== This line throw the NullPointerException

charles.tsai  
#4 Posted : Wednesday, November 8, 2017 2:43:20 PM(UTC)
charles.tsai


Rank: Newbie

Joined: 2/14/2017(UTC)
Posts: 10
United States
Location: New York

Thanks: 1 times
Dear Scott,
Any update on this issue?

Thanks
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.