Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

delphi server-java client

18 views
Skip to first unread message

om

unread,
May 31, 2001, 9:37:21 AM5/31/01
to
Dear Sir;
I wrote Delphi server and export idl file ,then update it by adding
"
#include "StdVCL.idl"
..........
interface IMyinterface: StdVCL::IDataBroker
..........
StdVCL::IProvider MyFunction(in wstring Str);
..........
"
Next,for java client i do following commands:
" >idl2java -boa MyFile.idl"
" >javac *.java
" >idl2java -boa StdVCL.idl"
( impelmenting java client )
" >javac client.java"

At the end:
i run visiboker
i run delphi sever
i run java client " >vbj client"

java client successfully conected to delphi server
and successfully run the first method (don't differ for any method)
but at this point fail(see below);
next i use IProvider.Get_data() also run time error message rised:
"Error unmarshaling".
My Setting Environment:
os win98
visibroker 3.3 for delphi5(update version)
visibroker 4.5
JDK 1.2 .


please guide me about this.
thanks,
Best wishes.
---------------------------------------------------------------------
"
Exception in thread "main" org.omg.CORBA.MARSHAL: Error unmarshaling
object
refe
rence [underflow during read from stream] minor code: 0 completed: No
at
com.inprise.vbroker.orb.CDRInputStream.read_Object(CDRInputStream.jav
a:1731)
at StdVCL.IProviderHelper.read(IProviderHelper.java:101)
at CSC._IclientStub.EnterMethod(_IclientobjStub.java, Compiled Code)
at CSLogger.enterMethod(client.java:24)
at CSLogger.main(client.java:33)

0 new messages