Consultor Eletrônico



Kbase P131077: Could not connect to the AppServer from .Net using OpenClient with DLL causing errors 8230 and 7203
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/1/2008
Status: Unverified

FACT(s) (Environment):

Progress 9.1x
Windows NT 32 Intel/Windows 2000

SYMPTOM(s):

Could not connect to the AppServer from .Net using OpenClient with DLL causing errors 8230 and 7203

Could not connect to the AppServer:
General Error: com.progress.open4gl.NameServerCommunicationsException:
Connect Failure: NameServer Communications Failure - java.net.SocketException:
Connection reset by peer (8230). (7203)"

CAUSE:

Private Sub Command1_Click()
On Error GoTo handling:
Dim acct As TEST1Lib.CTEST1
Set acct = New CTEST1
Call acct.OC_Connect("AppServer://10.2.4.35:5164", "guest", "guest", "")
Call acct.test(Text1.Text, Text2.Text)
acct.OC_Release
handling:
MsgBox (Err.Description)
End Sub

FIX:

In way to correct the error use the following:
Where the NameServer and AppServer is on X the AppServer is named Y.
Private Sub Command1_Click()
On Error GoTo handling:
Dim acct As TEST1Lib.CTEST1
Dim text As String
Set acct = New CTEST1
Call acct.OC_Connect("AppServer://X/Y", "", "", "")
Call acct.test(Text1.text, text)
Text2.text = text
acct.OC_Release
handling:
MsgBox (Err.Description)
End Sub