Highlighted

Issue with Java Socket Initialization

New Here ,
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.

Views

162

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Issue with Java Socket Initialization

New Here ,
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.

Views

163

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jun 02, 2015 0

Have something to add?

Join the conversation