Quantcast
Channel: Adobe Community : Unanswered Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 5794

Issue with Java Socket Initialization

$
0
0

Hello all.....

below is my code snippet which is trying to initialize the connection using Java Socket and was working fine sine few days ago.

All of sudden it stopped working and I am not able to understand what happened. can any one help what cause this issue.

 

<!---Set and initialize the socket--->

52 :     <cfset sock = createObject("java", "java.net.Socket")>

53 :     <cfset sock.init("localhost", 1500)>

54 :     <cfset success = sock.isConnected()>

 

Error which I am getting is below.

 

Object instantiation exception.

An exception occurred while instantiating a Java object. The class must not be an interface or an abstract class. Error: ''.

 

Thanks in advance.


Viewing all articles
Browse latest Browse all 5794

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>