0 Replies Latest reply on Jun 2, 2015 2:13 PM by GJMintu

    Issue with Java Socket Initialization


      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.