• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Issue with Java Socket Initialization

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

Views

207

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
community guidelines
no replies

Have something to add?

Join the conversation
Resources
Documentation