Re: Exception while sending message to MSMQ
Kishore R <[email protected]> Tue, 1 Aug 2006 05:01:02 -0700
| Newsgroups | gmane.comp.windows.devel.jawin |
|---|---|
| Message-ID | <[email protected]> |
Hi Florian,
Thanks for taking the time to reply to my
question. Just wanted to let you know that I gave up
on jawin. I was browsing the net and there is this
product called jacozoom which worked for me. It is
very similar to jawin except that it works. I could
get almost the same example that I posted to work in
like 5 mins. Also , their licensing terms are very
good (199 euros with no runtime royalties). So I
highly recommend it. Funny thing is my project manager
just nixed my idea of java to com communication. He
feels that MSMQ is very flaky and hence we are going
with the route of the java app. writing the events to
a database table and the MS app reading it from there.
Peace
--- Florian Schmitt <[email protected]> wrote:
> Hi,
>
> > -----------------------------------
> > org.jawin.COMException: 8000ffff: Unable to
> serialize variant:
> ...
> > Object[] q = new Object[]{msmqQInfo};
> > Variant v1 = new Variant();
> > v1.boolVal = false;
> > Variant[] v = new Variant[]{v1};
> > msmqMessage.Send(q, v);
> >
>
------------------------------------------------------------------------
>
> You may declare the Variant type of v1 explicitly:
>
> v1.vt = VarTypes.VT_BOOL;
>
> But i suppose that will lead to the next Exception:
> "COMException: A VT_VARIANT must be combined with
> VT_BYREF (base vartype 12)". Combining the Type with
> a VT_ARRAY and/or a VT_BYREF leads to "Unable to
> serialize variant" Exception again. I think the
> problem isn't specific to invoking the
> msmqMessage.Send method but to passing a variant
> array as an argument. It seems that there existst
> nor any documentation how to pass a variant array as
> an argument nor a working example for that: The
> example at
>
http://discuss.develop.com/archives/wa.exe?A2=ind0307e&L=jawin&D=0&T=0&P=1722
> doesn't work for me. And the description at
>
http://jawinproject.sourceforge.net/jawinuserguide_dispatch.html#dispatchptr_usage_methods_arrays
> isn't sufficient, at least for me.
>
> HTH
> Florian
>
> --
> http://www.florian-schmitt.net
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com