|
Exception while sending message to MSMQ: msg#00027windows.devel.jawin
Hi All, I am trying to write a simple test to send a message to an existing Queue on MQMS from my java test client using jawin. I am getting the following exception. Also I am posting the code for my test client. Any ideas as to where I am going wrong? Thanks in advance ----------------------------------- org.jawin.COMException: 8000ffff: Unable to serialize variant: org.jawin.Variant@1fee6fc at org.jawin.Variant.writeVariant(Variant.java:347) at org.jawin.Variant.writeObject(Variant.java:251) at org.jawin.Variant.writeArray(Variant.java:434) at org.jawin.Variant.writeObject(Variant.java:218) at org.jawin.DispatchPtr.invokeN(DispatchPtr.java:579) at org.jawin.DispatchPtr.invokeN(DispatchPtr.java:555) at com.test.java2com.IMSMQMessage.Send(IMSMQMessage.java:587) at com.test.java2com.MSMQTest.main(MSMQTest.java:28) ------------------------------------------------- package com.test.java2com; import org.jawin.*; public class MSMQTest { public static void main(String[] args) { try { String queueName = ".\\private$\\MyQueue"; IMSMQQueueInfo2 msmqQInfo = new IMSMQQueueInfo2 ("MSMQ.MSMQQueueInfo"); msmqQInfo.setPathName (queueName); msmqQInfo.setLabel(queueName); IMSMQQueue2 queue = msmqQInfo.Open (MQACCESS.MQ_SEND_ACCESS ,MQSHARE.MQ_DENY_NONE); //IMSMQEvent2 msmqEvent = new IMSMQEvent2 ("MSMQ.MSMQEvent"); IMSMQMessage msmqMessage = new IMSMQMessage ("MSMQ.MSMQMessage"); // set message properties msmqMessage.put("Label", "test"); msmqMessage.put("Body", "hello world!"); //Dispatch.put(msmqMessage, "AppSpecific", new Integer(0)); Object[] q = new Object[]{msmqQInfo}; Variant v1 = new Variant(); v1.boolVal = false; Variant[] v = new Variant[]{v1}; msmqMessage.Send(q, v); System.out.println("Successfully completed test"); } catch(Exception exc) { exc.printStackTrace(); } } } ------------------------------------------------------------------------ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: generated stubs fail to compile: 00027, Florian Schmitt |
|---|---|
| Next by Date: | Re: Exception while sending message to MSMQ: 00027, Florian Schmitt |
| Previous by Thread: | Word: Documents.Add and Arraysi: 00027, Florian Schmitt |
| Next by Thread: | Re: Exception while sending message to MSMQ: 00027, Florian Schmitt |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |