SimpleChat test not working through topicchat.sh/queuechat.sh for EMS with MDM.

SimpleChat test not working through topicchat.sh/queuechat.sh for EMS with MDM.

book

Article ID: KB0085857

calendar_today

Updated On:

Products Versions
TIBCO MDM -
Not Applicable -

Description

Resolution:
Description:
============
SimpleChat test not working for EMS with MDM.

Environment:
===========
TIBCO MDM 8.3.0

Symptoms:
========
None

Cause:
=====

Following exception is thrown when SimpleChat is run ( either by topicchat.sh, queuechat.sh) through console



&ltMqException: BEGIN>
Code: JAV-8001: Unexpected error. Class: 'com.tibco.mdm.integration.messaging.message.MqPreSentMessage' and method name: 'setContent'. Additional
ID: 0A64027C_8AE482FC40591AE20140591AE2A90000
DATETIME: Wed Aug 07 15:07:48 BST 2013
EXCEPTIONMESSAGE: java.lang.NoClassDefFoundError: javax/mail/internet/AddressException
STACKTRACE: java.lang.NoClassDefFoundError: javax/mail/internet/AddressException
        at com.tibco.mdm.integration.messaging.msgio.EmailHelper.sendEmail(EmailHelper.java:232)
        at com.tibco.mdm.integration.messaging.msgio.SendEmailMessageContentProcessor.marshalMessageContent(SendEmailMessageContentProcessor.java
        at com.tibco.mdm.integration.messaging.msgio.PipelineMessageContentMarshaler.marshalMessageContentInLoop(PipelineMessageContentMarshaler.
        at com.tibco.mdm.integration.messaging.msgio.PipelineMessageContentMarshaler.marshalMessageContent(PipelineMessageContentMarshaler.java:1
        at com.tibco.mdm.integration.messaging.message.MqPreSentMessage.setContent(MqPreSentMessage.java:75)
        at com.tibco.mdm.integration.messaging.message.MqMessage.setContent(MqMessage.java:71)
        at com.tibco.mdm.integration.messaging.bus.test.Chat.chatter(Chat.java:377)
        at com.tibco.mdm.integration.messaging.bus.test.Chat.main(Chat.java:851)
Caused by: java.lang.ClassNotFoundException: javax.mail.internet.AddressException
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
        ... 8 more
CLASSNAME: com.tibco.mdm.integration.messaging.message.MqPreSentMessage
METHODNAME: setContent
ERRORMESSAGE: Error marshaling message content into native message.
Destination Info:
<MqTopic: BEGIN>
Application Destination name: Chat
Native Destination interface: javax.jms.Topic
Native Destination class: com.tibco.tibjms.TibjmsTopic
Native Destination name: T_ECM_TEST_CHAT
Native Destination toString(): Topic[T_ECM_TEST_CHAT]
<MqTopic: END>
Message Content:
<Chat Message Content: BEGIN>
Class: com.tibco.mdm.integration.messaging.msgio.test.ChatMessageContent
Message Type: GoofingOff
Message: test
Sender: Atul
Create Time: 1375884468859 (Wednesday, 7 August 2013 15:07:48 o'clock BST)
Create Thread Info: Thread[main,5,main]
<Chat Message Content: END>
&ltMqException: END>

Shutting down. Please wait...

P: Closing the publisher.
P: Publisher closed.
L: Closing the listener.
L: Listener closed.

Total published messages: 0
Total received messages: 0


Shutdown complete.

End of Chat session. Goodbye.


Resolution:
==========

mail-1.4.4.jar needs to be added to the environment variables. Procedure follows:

1). open cpath.bat ( in MQ_HOME/bin).

2).  locate the following line:

  set CPATH_APPSERVER="%JBOSS_HOME%"\bin\client\jboss-client.jar%SEP%"%JBOSS_HOME%"\bin\client\jboss-client-7.1.0.Final.jar%SEP%

3).  Replace the above line with :

    set CPATH_APPSERVER="%JBOSS_HOME%"\bin\client\jboss-client.jar%SEP%"%JBOSS_HOME%"\bin\client\jboss-client-7.1.0.Final.jar%SEP%"%JBOSS_HOME%"\modules\javax\mail\api\main\mail-1.4.4.jar

4).  Save cpath.bat

Issue/Introduction

SimpleChat test not working through topicchat.sh/queuechat.sh for EMS with MDM.