0
Issue with Java Socket Initialization
New Here
,
/t5/coldfusion-discussions/issue-with-java-socket-initialization/td-p/7173450
Jun 02, 2015
Jun 02, 2015
Copy link to clipboard
Copied
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.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Have something to add?
Join the conversation

