Hi,
  I write a sample Object named TestObj for MapMessage and publish a MapMessage 
by the following code:
            MapMessage msg = tsession_.createMapMessage();
  |             msg.setBoolean("Boolean", TestObj.BOOLEAN);
  |             msg.setByte("Byte", TestObj.BYTE);
  |             msg.setBytes("Bytes", TestObj.BYTEARRAY);
  |             msg.setChar("Char", TestObj.CHAR);
  |             msg.setDouble("Double", TestObj.DOUBLE);
  |             msg.setFloat("Float", TestObj.FLOAT);
  |             msg.setInt("Int", TestObj.INT);
  |             msg.setLong("Long", TestObj.LONG);
  |             msg.setObject("Object", TestObj.INTEGER);
  |             msg.setShort("Short", TestObj.SHORT);
  |             msg.setString("String", str);
  |             tpublisher_.publish(msg);
  Error came out as:
Exception in thread "main" java.lang.NoSuchMethodError: org.jboss.util.Primitive
s.valueOf(Z)Ljava/lang/Boolean;
        at org.jboss.mq.SpyMapMessage.setBoolean(SpyMapMessage.java:66)
        at 
SampleTopicPublisher.publishMapMessage(SampleTopicPublisher.java:179) 

  I modifed the code by comment the following:
            msg.setBoolean("Boolean", TestObj.BOOLEAN);
  |   then the error gone and message was sent sucessfully.
  | Since boolean type is important for me application, anyone can help me with 
this? Thanks very much!

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3880091#3880091

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3880091


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to