logo       

Problems with Variant serialization: msg#00024

windows.devel.jawin

Subject: Problems with Variant serialization

Hello,

I'm using Jawin with a Redemption library to read mail stored in
Outlook. I have to say that Jawin is really fantastic, I can do almost
anything I could do in VB. "Almost" is the key, though...

The problem I have manifests when I try to get an indexed property of a
DispatchPtr object, which is supposed to contain an array of bytes. The
call looks like that:

DispatchPtr att = ...
Object o = att.get("Fields", new Integer(922812674));

This object has many other properties, mostly strings and integers, and
retrieving them works just fine. However, the line above produces the
following:

GenericStub.dispatchInvoke v:V
03 00 02 01 01 37 00 00 .....7..
00 00 00 00 00 00 00 00 ........
00 00 00 00 00 00 00 00 ........
00 00 00 00 00 00 00 00 ........

org.jawin.COMException: 8000ffff: Cannot serialize vartype 17
at org.jawin.marshal.GenericStub.dispatchInvoke0(Native Method)
at org.jawin.marshal.GenericStub.dispatchInvoke(GenericStub.java:84)
at org.jawin.DispatchPtr.getN(DispatchPtr.java:211)
at org.jawin.DispatchPtr.get(DispatchPtr.java:165)
...

This is with Jawin 1.0.19 release. I tried to find something in the
documentation, but it appears that vartype 17 is defined as a VT_UI1
(?), and it appears to be supported...

Could somebody provide an insight as to how to solve this issue? Thank you!


--
Best regards,
Andrzej Bialecki

-------------------------------------------------
Software Architect, System Integration Specialist
CEN/ISSS EC Workshop, ECIMF project chair
EU FP6 E-Commerce Expert/Evaluator
-------------------------------------------------
FreeBSD developer (http://www.freebsd.org)



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise