|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
EmailOutput Node: NoSuchProviderException: incorrect class |
« View previous topic :: View next topic » |
Author |
Message
|
Dean24 |
Posted: Tue Oct 27, 2009 1:12 am Post subject: EmailOutput Node: NoSuchProviderException: incorrect class |
|
|
 Newbie
Joined: 27 Oct 2009 Posts: 9 Location: Gomel, BY
|
Hello,
I have tried to implement a simple message flow which include MQInput node, JavaCompute node and EmailOutput node.
When I added SMTP server and addresses (To, From and so on) to the properties of EmailOutput node my flow worked correctly, but when I tried to build mail by JavaCompute node flow failed with following exception: NoSuchProviderException: incorrect class.
Could anybody help me with this problem? |
|
Back to top |
|
 |
smdavies99 |
Posted: Tue Oct 27, 2009 1:34 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Where are you storing the Sender info?
Two things to do
1) Add a trace node between your java compute node and the email node. Set the trace to use ${Root} etc
2) Enable user trace and look at the formatted output.
Also take a look at the sample email flow. This may give you some hints.
Finally, putting an extract of your code might help us understand your problem. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
Dean24 |
Posted: Tue Oct 27, 2009 5:01 am Post subject: |
|
|
 Newbie
Joined: 27 Oct 2009 Posts: 9 Location: Gomel, BY
|
I added Trace node after email node and connect it with email node failure terminal. I used ${ExceptionList} to set the trace.
The trace file contains following:
( ['MQROOT' : 0x3afd9f8]
(0x01000000:Name):RecoverableException = (
(0x03000000:NameValue):File = 'F:\build\S610_P\src\DataFlowEngine\ImbDataFlowNode.cpp' (CHARACTER)
(0x03000000:NameValue):Line = 957 (INTEGER)
(0x03000000:NameValue):Function = 'ImbDataFlowNode::createExceptionList' (CHARACTER)
(0x03000000:NameValue):Type = 'ComIbmEmailOutputNode' (CHARACTER)
(0x03000000:NameValue):Name = 'EmailTest#FCMComposite_1_6' (CHARACTER)
(0x03000000:NameValue):Label = 'EmailTest.EmailOutput1' (CHARACTER)
(0x03000000:NameValue):Catalog = 'BIPv610' (CHARACTER)
(0x03000000:NameValue):Severity = 3 (INTEGER)
(0x03000000:NameValue):Number = 2230 (INTEGER)
(0x03000000:NameValue):Text = 'Node throwing exception' (CHARACTER)
(0x01000000:Name ):RecoverableException = (
(0x03000000:NameValue):File = 'MbErrorHandler.java' (CHARACTER)
(0x03000000:NameValue):Line = 122 (INTEGER)
(0x03000000:NameValue):Function = 'sendBasicEmail()' (CHARACTER)
(0x03000000:NameValue):Type = '' (CHARACTER)
(0x03000000:NameValue):Name = '' (CHARACTER)
(0x03000000:NameValue):Label = '' (CHARACTER)
(0x03000000:NameValue):Catalog = 'BIPv610' (CHARACTER)
(0x03000000:NameValue):Severity = 3 (INTEGER)
(0x03000000:NameValue):Number = 4459 (INTEGER)
(0x03000000:NameValue):Text = 'Exception sending email' (CHARACTER)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = 'com.ibm.broker.emailnodes.EmailOutputNode : javax.mail.NoSuchProviderException: incorrect class
at javax.mail.Session.getTransport(Session.java:710)
at javax.mail.Session.getTransport(Session.java:651)
at javax.mail.Session.getTransport(Session.java:631)
at com.ibm.broker.emailnodes.EmailOutputNode.sendMail(EmailOutputNode.java:422)
at com.ibm.broker.emailnodes.EmailOutputNode.sendBasicEmail(EmailOutputNode.java:470)
at com.ibm.broker.emailnodes.EmailOutputNode.sendData(EmailOutputNode.java:352)
at com.ibm.broker.plugin.MbOutputTemplateNode.sendData(MbOutputTemplateNode.java:47)
at com.ibm.broker.plugin.MbOutputTerminal._propagate(Native Method)
at com.ibm.broker.plugin.MbOutputTerminal.propagate(MbOutputTerminal.java:103)
at EmailTest.evaluate(EmailTest.java:58)
at com.ibm.broker.javacompute.MbRuntimeJavaComputeNode.evaluate(MbRuntimeJavaComputeNode.java:179)
at com.ibm.broker.plugin.MbNode.evaluate(MbNode.java:1434)
' (CHARACTER)
)
(0x01000000:Name ):RecoverableException = (
(0x03000000:NameValue):File = 'MbErrorHandler.java' (CHARACTER)
(0x03000000:NameValue):Line = 247 (INTEGER)
(0x03000000:NameValue):Function = 'throwableToMbException' (CHARACTER)
(0x03000000:NameValue):Type = '' (CHARACTER)
(0x03000000:NameValue):Name = '' (CHARACTER)
(0x03000000:NameValue):Label = '' (CHARACTER)
(0x03000000:NameValue):Catalog = 'BIPv610' (CHARACTER)
(0x03000000:NameValue):Severity = 3 (INTEGER)
(0x03000000:NameValue):Number = 3450 (INTEGER)
(0x03000000:NameValue):Text = 'Exception sending email' (CHARACTER)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = 'incorrect class
' (CHARACTER)
)
)
)
)
) |
|
Back to top |
|
 |
Dean24 |
Posted: Tue Oct 27, 2009 5:05 am Post subject: |
|
|
 Newbie
Joined: 27 Oct 2009 Posts: 9 Location: Gomel, BY
|
Java node contains:
Code: |
public void evaluate(MbMessageAssembly assembly) throws MbException {
MbOutputTerminal out = getOutputTerminal("out");
MbMessage outMessage = new MbMessage();
copyMessageHeaders(assembly.getMessage(), outMessage);
MbMessage outLocalEnv = new MbMessage(assembly.getLocalEnvironment());
MbMessage outExceptionList = new MbMessage(assembly.getExceptionList());
MbMessageAssembly outAssembly = new MbMessageAssembly(assembly, outLocalEnv, outExceptionList, outMessage);
MbElement localEnv = outAssembly.getLocalEnvironment().getRootElement();
MbElement root = outMessage.getRootElement();
MbElement SMTPOutput = root.createElementAsLastChild("EmailOutputHeader");
SMTPOutput.createElementAsLastChild(MbElement.TYPE_NAME_VALUE, "To", "myemail@email.by");
SMTPOutput.createElementAsLastChild(MbElement.TYPE_NAME_VALUE, "Cc", "myemail@email.by");
SMTPOutput.createElementAsLastChild(MbElement.TYPE_NAME_VALUE, "Bcc", "myemail@email.by");
SMTPOutput.createElementAsLastChild(MbElement.TYPE_NAME_VALUE, "From", "myemail@email.by");
SMTPOutput.createElementAsLastChild(MbElement.TYPE_NAME_VALUE, "Reply-To", "myemail@email.by");
SMTPOutput.createElementAsLastChild(MbElement.TYPE_NAME_VALUE, "Subject", "Replaced by Java compute node.");
MbElement Destination = localEnv.createElementAsLastChild(MbElement.TYPE_NAME, "Destination", null);
MbElement destinationEmail = Destination.createElementAsLastChild(MbElement.TYPE_NAME, "Email", null);
destinationEmail.createElementAsLastChild(MbElement.TYPE_NAME_VALUE, "SMTPServer", "SMTPserver");
MbElement BLOB = root.createElementAsLastChild(MbBLOB.PARSER_NAME);
String text = "This is the new text for the body of the email";
BLOB.createElementAsLastChild(MbElement.TYPE_NAME_VALUE, "BLOB", text.getBytes());
outMessage.finalizeMessage(MbMessage.FINALIZE_VALIDATE);
out.propagate(outAssembly);
}
|
and I took it from an example in Message Broker Help Home Documentain. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Oct 27, 2009 5:06 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Apply 6.1.0.5 and try again. |
|
Back to top |
|
 |
Dean24 |
Posted: Tue Oct 27, 2009 5:09 am Post subject: |
|
|
 Newbie
Joined: 27 Oct 2009 Posts: 9 Location: Gomel, BY
|
I have already updated my broker to 6.1.0.5, but it doesn't help  |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Oct 27, 2009 5:31 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Post the trace of ${Root} and ${LocalEnvironment} |
|
Back to top |
|
 |
smdavies99 |
Posted: Tue Oct 27, 2009 5:48 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
to add to what mqjeff said,
you might like to disconnect the email output node from the trace node. That way you won't get the exception. This will help us help you to find out your problem.
The other thing you might like to do is modify the sample flow privided with broker and put a trace node in the same place. Then you can compare the trace at the same point in both flows. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
Dean24 |
Posted: Tue Oct 27, 2009 6:50 am Post subject: |
|
|
 Newbie
Joined: 27 Oct 2009 Posts: 9 Location: Gomel, BY
|
Trace of ${Root}
( ['MQROOT' : 0x3afcd08]
(0x01000000:Name):Properties = ( ['MQPROPERTYPARSER' : 0x3a20a80]
(0x03000000:NameValue):MessageSet = '' (CHARACTER)
(0x03000000:NameValue):MessageType = '' (CHARACTER)
(0x03000000:NameValue):MessageFormat = '' (CHARACTER)
(0x03000000:NameValue):Encoding = 546 (INTEGER)
(0x03000000:NameValue):CodedCharSetId = 866 (INTEGER)
(0x03000000:NameValue):Transactional = TRUE (BOOLEAN)
(0x03000000:NameValue):Persistence = TRUE (BOOLEAN)
(0x03000000:NameValue):CreationTime = GMTTIMESTAMP '2009-10-27 14:32:56.970' (GMTTIMESTAMP)
(0x03000000:NameValue):ExpirationTime = -1 (INTEGER)
(0x03000000:NameValue):Priority = 0 (INTEGER)
(0x03000000:NameValue):ReplyIdentifier = X'414d5120416c696e616b5f71756575650100e04a200bb903' (BLOB)
(0x03000000:NameValue):ReplyProtocol = 'MQ' (CHARACTER)
(0x03000000:NameValue):Topic = NULL
(0x03000000:NameValue):ContentType = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourceType = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourceToken = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourcePassword = '' (CHARACTER)
(0x03000000:NameValue):IdentitySourceIssuedBy = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedType = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedToken = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedPassword = '' (CHARACTER)
(0x03000000:NameValue):IdentityMappedIssuedBy = '' (CHARACTER)
)
(0x01000000:Name):MQMD = ( ['MQHMD' : 0x3af2280]
(0x03000000:NameValue):SourceQueue = 'EmailInput' (CHARACTER)
(0x03000000:NameValue):Transactional = TRUE (BOOLEAN)
(0x03000000:NameValue):Encoding = 546 (INTEGER)
(0x03000000:NameValue):CodedCharSetId = 866 (INTEGER)
(0x03000000:NameValue):Format = 'MQHRF2 ' (CHARACTER)
(0x03000000:NameValue):Version = 2 (INTEGER)
(0x03000000:NameValue):Report = 0 (INTEGER)
(0x03000000:NameValue):MsgType = 8 (INTEGER)
(0x03000000:NameValue):Expiry = -1 (INTEGER)
(0x03000000:NameValue):Feedback = 0 (INTEGER)
(0x03000000:NameValue):Priority = 0 (INTEGER)
(0x03000000:NameValue):Persistence = 1 (INTEGER)
(0x03000000:NameValue):MsgId = X'414d5120416c696e616b5f71756575650100e04a200bb902' (BLOB)
(0x03000000:NameValue):CorrelId = X'414d5120416c696e616b5f71756575650100e04a200bb903' (BLOB)
(0x03000000:NameValue):BackoutCount = 0 (INTEGER)
(0x03000000:NameValue):ReplyToQ = ' ' (CHARACTER)
(0x03000000:NameValue):ReplyToQMgr = 'Alinak_queue_manager ' (CHARACTER)
(0x03000000:NameValue):UserIdentifier = 'Akadzilnikav' (CHARACTER)
(0x03000000:NameValue):AccountingToken = X'160105150000006a33b4186b1c484303634500260e000000000000000000000b' (BLOB)
(0x03000000:NameValue):ApplIdentityData = ' ' (CHARACTER)
(0x03000000:NameValue):PutApplType = 11 (INTEGER)
(0x03000000:NameValue):PutApplName = '30\eclipse\jre\bin\javaw.exe' (CHARACTER)
(0x03000000:NameValue):PutDate = DATE '2009-10-27' (DATE)
(0x03000000:NameValue):PutTime = GMTTIME '14:32:56.970' (GMTTIME)
(0x03000000:NameValue):ApplOriginData = ' ' (CHARACTER)
(0x03000000:NameValue):GroupId = X'000000000000000000000000000000000000000000000000' (BLOB)
(0x03000000:NameValue):MsgSeqNumber = 1 (INTEGER)
(0x03000000:NameValue):Offset = 0 (INTEGER)
(0x03000000:NameValue):MsgFlags = 0 (INTEGER)
(0x03000000:NameValue):OriginalLength = -1 (INTEGER)
)
(0x01000000:Name):MQRFH2 = ( ['MQHRF2' : 0x3af5e30]
(0x03000000:NameValue):Version = 2 (INTEGER)
(0x03000000:NameValue):Format = 'EMAILHDR' (CHARACTER)
(0x03000000:NameValue):Encoding = 546 (INTEGER)
(0x03000000:NameValue):CodedCharSetId = 866 (INTEGER)
(0x03000000:NameValue):Flags = 0 (INTEGER)
(0x03000000:NameValue):NameValueCCSID = 1208 (INTEGER)
(0x01000000:Name ):MQFT = (
(0x01000000:Name):MQFT_REJECT_UNSUPPORTED = (
(0x01000000:Name):FORMAT = (
(0x02000000:Value): = 'BINARY' (CHARACTER)
)
(0x01000000:Name):LAST = (
(0x02000000:Value): = 'Y' (CHARACTER)
)
(0x01000000:Name):FILENAME = (
(0x02000000:Value): = 'input.txt' (CHARACTER)
)
(0x01000000:Name):OFFSET = (
(0x02000000:Value): = '0' (CHARACTER)
)
(0x01000000:Name):ORIGINAL_LENGTH = (
(0x02000000:Value): = '32' (CHARACTER)
)
)
(0x01000000:Name):MQFT_ACCEPT_UNSUPPORTED = (
(0x01000000:Name):DIR = (
(0x02000000:Value): = '\__Work\MSL\mail test\1' (CHARACTER)
)
(0x01000000:Name):ORIG_QMGR = (
(0x02000000:Value): = 'Alinak_queue_manager' (CHARACTER)
)
)
)
)
(0x01000000:Name):EmailOutputHeader = ( ['EMAILHDR' : 0xb31ab0]
(0x03000000:NameValue):To = 'myemail@email.by' (CHARACTER)
(0x03000000:NameValue):Cc = 'myemail@email.by' (CHARACTER)
(0x03000000:NameValue):Bcc = 'myemail@email.by' (CHARACTER)
(0x03000000:NameValue):From = 'myemail@email.by' (CHARACTER)
(0x03000000:NameValue):Reply-To = 'myemail@email.by' (CHARACTER)
(0x03000000:NameValue):Subject = 'Replaced by Java compute node.' (CHARACTER)
)
(0x01000000:Name):BLOB = ( ['none' : 0x3910258]
(0x03000000:NameValue):BLOB = X'5468697320697320746865206e6577207465787420666f722074686520626f6479206f662074686520656d61696c' (BLOB)
)
) |
|
Back to top |
|
 |
Dean24 |
Posted: Tue Oct 27, 2009 6:52 am Post subject: |
|
|
 Newbie
Joined: 27 Oct 2009 Posts: 9 Location: Gomel, BY
|
Trace of ${LocalEnvironment}
( ['MQROOT' : 0x3afe070]
(0x01000000:Name):Destination = (
(0x01000000:Name):Email = (
(0x03000000:NameValue):SMTPServer = 'SMTPserver' (CHARACTER)
)
)
)
Last edited by Dean24 on Wed Oct 28, 2009 4:40 am; edited 1 time in total |
|
Back to top |
|
 |
Dean24 |
Posted: Tue Oct 27, 2009 6:53 am Post subject: |
|
|
 Newbie
Joined: 27 Oct 2009 Posts: 9 Location: Gomel, BY
|
P.S. I have added trace node between java compute node and the email node. |
|
Back to top |
|
 |
smdavies99 |
Posted: Tue Oct 27, 2009 7:03 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
You seem to have a lot of 'stuff' that you don't need.
In the code I use to send email, I have the following
Properties
EmailOutputHeader
BLOB _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
Dean24 |
Posted: Wed Oct 28, 2009 6:07 am Post subject: |
|
|
 Newbie
Joined: 27 Oct 2009 Posts: 9 Location: Gomel, BY
|
@smdavies99, what do you mean "a lot of 'stuff' that you don't need"?
Could you give a code example? and what is properties? Is it Properties of EmailOtput node?
I have run this flow on 4 computers, and it works at one of them! but doesn't work at my..
Below is output from User trace. It shows that message successfully processed by javacompute node but failed on EmailOutput node.
Timestamps are formatted in local time, 180 minutes past GMT.
Trace written by version 6103; formatter version 6103
2009-10-21 16:39:20.895944 5840 UserTrace BIP4040I: The Execution Group ''EmailTest'' has processed a configuration message successfully.
A configuration message has been processed successfully. Any configuration changes have been made and stored persistently.
No user action required.
2009-10-21 16:39:20.896411 5840 UserTrace BIP2638I: The MQ output node 'ConfigurationMessageFlow.outputNode' attempted to write a message to queue ''SYSTEM.BROKER.EXECUTIONGROUP.REPLY'' connected to queue manager ''Alinak_queue_manager''. The MQCC was '0' and the MQRC was '0'.
2009-10-21 16:39:20.896440 5840 UserTrace BIP2622I: Message successfully output by output node 'ConfigurationMessageFlow.outputNode' to queue ''SYSTEM.BROKER.EXECUTIONGROUP.REPLY'' on queue manager ''Alinak_queue_manager''.
2009-10-21 16:39:20.896753 5840 Information BIP2154I: Execution group finished with Configuration message.
A command response will be sent to the broker.
No user action required.
2009-10-21 16:41:12.656665 2540 UserTrace BIP2632I: Message received and propagated to 'out' terminal of MQ input node 'EmailTest.MQInput'.
2009-10-21 16:41:12.667849 2540 UserTrace BIP3904I: Invoking the evaluate() method of node (class='ComIbmJavaComputeNode', name='EmailTest#FCMComposite_1_4').
About to pass a message to the evaluate() method of the specified node.
No user action required.
2009-10-21 16:41:12.670030 2540 UserTrace BIP6060I: Parser type ''Properties'' created on behalf of node 'EmailTest.MQInput' to handle portion of incoming message of length 0 bytes beginning at offset '0'.
2009-10-21 16:41:12.670122 2540 UserTrace BIP6061I: Parser type ''MQMD'' created on behalf of node 'EmailTest.MQInput' to handle portion of incoming message of length '364' bytes beginning at offset '0'. Parser type selected based on value ''MQHMD'' from previous parser.
2009-10-21 16:41:12.681657 2540 UserTrace BIP4144I: Entered function 'cniAddAsLastChild'(84beec0, 78a24e0, 78936a8, 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A').
Entered the specified function with the specified parameters.
No user action required.
2009-10-21 16:41:12.681682 2540 UserTrace BIP4145I: Exiting function 'cniAddAsLastChild' with result: 'CCI_SUCCESS'(0).
About to exit the specified the function with the specified result.
No user action required.
2009-10-21 16:41:12.681859 2540 UserTrace BIP6061I: Parser type ''MQRFH2'' created on behalf of node 'EmailTest.MQInput' to handle portion of incoming message of length '356' bytes beginning at offset '364'. Parser type selected based on value ''MQHRF2'' from previous parser.
2009-10-21 16:41:12.681897 2540 UserTrace BIP4144I: Entered function 'cniAddAsLastChild'(84beec0, 78a24e0, 788ae88, 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A').
Entered the specified function with the specified parameters.
No user action required.
2009-10-21 16:41:12.681912 2540 UserTrace BIP4145I: Exiting function 'cniAddAsLastChild' with result: 'CCI_SUCCESS'(0).
About to exit the specified the function with the specified result.
No user action required.
2009-10-21 16:41:12.682061 2540 UserTrace BIP6061I: Parser type ''XMLNSC'' created on behalf of node 'EmailTest.MQInput' to handle portion of incoming message of length '51' bytes beginning at offset '720'. Parser type selected based on value ''XMLNSC'' from previous parser.
2009-10-21 16:41:12.682098 2540 UserTrace BIP4144I: Entered function 'cniAddAsLastChild'(84beec0, 78a24e0, 78a68f0, 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A').
Entered the specified function with the specified parameters.
No user action required.
2009-10-21 16:41:12.682111 2540 UserTrace BIP4145I: Exiting function 'cniAddAsLastChild' with result: 'CCI_SUCCESS'(0).
About to exit the specified the function with the specified result.
No user action required.
2009-10-21 16:41:12.682641 2540 UserTrace BIP4144I: Entered function 'cniCreateElementAsLastChild'(84beec0, 3947100, 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A').
Entered the specified function with the specified parameters.
No user action required.
2009-10-21 16:41:12.682662 2540 UserTrace BIP4145I: Exiting function 'cniCreateElementAsLastChild' with result: 'CCI_SUCCESS'(0).
About to exit the specified the function with the specified result.
No user action required.
2009-10-21 16:41:12.682682 2540 UserTrace BIP4142I: Evaluating cniElementSet'Type'. Changing value from '0' to '50331648'.
Element ''Type'' has been changed to '50331648'.
No user action required.
2009-10-21 16:41:12.682700 2540 UserTrace BIP4142I: Evaluating cniElementSet'Name'. Changing value from '''' to ''To''.
Element ''Name'' has been changed to ''To''.
No user action required.
2009-10-21 16:41:12.682725 2540 UserTrace BIP4142I: Evaluating cniElementSet'CharacterValue'. Changing value from ''NULL'' to '''myemail@email.by'''.
Element ''CharacterValue'' has been changed to '''myemail@email.by'''.
No user action required.
2009-10-21 16:41:12.682748 2540 UserTrace BIP4144I: Entered function 'cniCreateElementAsLastChild'(84beec0, 3947100, 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A').
Entered the specified function with the specified parameters.
No user action required.
2009-10-21 16:41:12.682767 2540 UserTrace BIP4145I: Exiting function 'cniCreateElementAsLastChild' with result: 'CCI_SUCCESS'(0).
About to exit the specified the function with the specified result.
No user action required.
2009-10-21 16:41:12.682784 2540 UserTrace BIP4142I: Evaluating cniElementSet'Type'. Changing value from '0' to '50331648'.
Element ''Type'' has been changed to '50331648'.
No user action required.
2009-10-21 16:41:12.682800 2540 UserTrace BIP4142I: Evaluating cniElementSet'Name'. Changing value from '''' to ''Cc''.
Element ''Name'' has been changed to ''Cc''.
No user action required.
2009-10-21 16:41:12.682819 2540 UserTrace BIP4142I: Evaluating cniElementSet'CharacterValue'. Changing value from ''NULL'' to '''myemail@email.by'''.
Element ''CharacterValue'' has been changed to '''myemail@email.by'''.
No user action required.
2009-10-21 16:41:12.682840 2540 UserTrace BIP4144I: Entered function 'cniCreateElementAsLastChild'(84beec0, 3947100, 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A').
Entered the specified function with the specified parameters.
No user action required.
2009-10-21 16:41:12.682853 2540 UserTrace BIP4145I: Exiting function 'cniCreateElementAsLastChild' with result: 'CCI_SUCCESS'(0).
About to exit the specified the function with the specified result.
No user action required.
2009-10-21 16:41:12.682868 2540 UserTrace BIP4142I: Evaluating cniElementSet'Type'. Changing value from '0' to '50331648'.
Element ''Type'' has been changed to '50331648'.
No user action required.
2009-10-21 16:41:12.682884 2540 UserTrace BIP4142I: Evaluating cniElementSet'Name'. Changing value from '''' to ''Bcc''.
Element ''Name'' has been changed to ''Bcc''.
No user action required.
2009-10-21 16:41:12.682904 2540 UserTrace BIP4142I: Evaluating cniElementSet'CharacterValue'. Changing value from ''NULL'' to '''myemail@email.by'''.
Element ''CharacterValue'' has been changed to '''myemail@email.by'''.
No user action required.
2009-10-21 16:41:12.682926 2540 UserTrace BIP4144I: Entered function 'cniCreateElementAsLastChild'(84beec0, 3947100, 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A').
Entered the specified function with the specified parameters.
No user action required.
2009-10-21 16:41:12.682939 2540 UserTrace BIP4145I: Exiting function 'cniCreateElementAsLastChild' with result: 'CCI_SUCCESS'(0).
About to exit the specified the function with the specified result.
No user action required.
2009-10-21 16:41:12.682954 2540 UserTrace BIP4142I: Evaluating cniElementSet'Type'. Changing value from '0' to '50331648'.
Element ''Type'' has been changed to '50331648'.
No user action required.
2009-10-21 16:41:12.682971 2540 UserTrace BIP4142I: Evaluating cniElementSet'Name'. Changing value from '''' to ''From''.
Element ''Name'' has been changed to ''From''.
No user action required.
2009-10-21 16:41:12.682993 2540 UserTrace BIP4142I: Evaluating cniElementSet'CharacterValue'. Changing value from ''NULL'' to '''myemail@email.by'''.
Element ''CharacterValue'' has been changed to '''myemail@email.by'''.
No user action required.
2009-10-21 16:41:12.683013 2540 UserTrace BIP4144I: Entered function 'cniCreateElementAsLastChild'(84beec0, 3947100, 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A').
Entered the specified function with the specified parameters.
No user action required.
2009-10-21 16:41:12.683028 2540 UserTrace BIP4145I: Exiting function 'cniCreateElementAsLastChild' with result: 'CCI_SUCCESS'(0).
About to exit the specified the function with the specified result.
No user action required.
2009-10-21 16:41:12.683042 2540 UserTrace BIP4142I: Evaluating cniElementSet'Type'. Changing value from '0' to '50331648'.
Element ''Type'' has been changed to '50331648'.
No user action required.
2009-10-21 16:41:12.683058 2540 UserTrace BIP4142I: Evaluating cniElementSet'Name'. Changing value from '''' to ''Reply-To''.
Element ''Name'' has been changed to ''Reply-To''.
No user action required.
2009-10-21 16:41:12.683077 2540 UserTrace BIP4142I: Evaluating cniElementSet'CharacterValue'. Changing value from ''NULL'' to '''myemail@email.by'''.
Element ''CharacterValue'' has been changed to '''myemail@email.by'''.
No user action required.
2009-10-21 16:41:12.683099 2540 UserTrace BIP4144I: Entered function 'cniCreateElementAsLastChild'(84beec0, 3947100, 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A').
Entered the specified function with the specified parameters.
No user action required.
2009-10-21 16:41:12.683114 2540 UserTrace BIP4145I: Exiting function 'cniCreateElementAsLastChild' with result: 'CCI_SUCCESS'(0).
About to exit the specified the function with the specified result.
No user action required.
2009-10-21 16:41:12.683129 2540 UserTrace BIP4142I: Evaluating cniElementSet'Type'. Changing value from '0' to '50331648'.
Element ''Type'' has been changed to '50331648'.
No user action required.
2009-10-21 16:41:12.683144 2540 UserTrace BIP4142I: Evaluating cniElementSet'Name'. Changing value from '''' to ''Subject''.
Element ''Name'' has been changed to ''Subject''.
No user action required.
2009-10-21 16:41:12.683163 2540 UserTrace BIP4142I: Evaluating cniElementSet'CharacterValue'. Changing value from ''NULL'' to '''Replaced by Java compute node.'''.
Element ''CharacterValue'' has been changed to '''Replaced by Java compute node.'''.
No user action required.
2009-10-21 16:41:12.683184 2540 UserTrace BIP4144I: Entered function 'cniCreateElementAsLastChild'(84beec0, 788f298, 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A').
Entered the specified function with the specified parameters.
No user action required.
2009-10-21 16:41:12.683279 2540 UserTrace BIP4145I: Exiting function 'cniCreateElementAsLastChild' with result: 'CCI_SUCCESS'(0).
About to exit the specified the function with the specified result.
No user action required.
2009-10-21 16:41:12.683295 2540 UserTrace BIP4142I: Evaluating cniElementSet'Type'. Changing value from '0' to '16777216'.
Element ''Type'' has been changed to '16777216'.
No user action required.
2009-10-21 16:41:12.683311 2540 UserTrace BIP4142I: Evaluating cniElementSet'Name'. Changing value from '''' to ''Destination''.
Element ''Name'' has been changed to ''Destination''.
No user action required.
2009-10-21 16:41:12.683332 2540 UserTrace BIP4144I: Entered function 'cniCreateElementAsLastChild'(84beec0, 788f2f8, 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A').
Entered the specified function with the specified parameters.
No user action required.
2009-10-21 16:41:12.683345 2540 UserTrace BIP4145I: Exiting function 'cniCreateElementAsLastChild' with result: 'CCI_SUCCESS'(0).
About to exit the specified the function with the specified result.
No user action required.
2009-10-21 16:41:12.683361 2540 UserTrace BIP4142I: Evaluating cniElementSet'Type'. Changing value from '0' to '16777216'.
Element ''Type'' has been changed to '16777216'.
No user action required.
2009-10-21 16:41:12.683376 2540 UserTrace BIP4142I: Evaluating cniElementSet'Name'. Changing value from '''' to ''Email''.
Element ''Name'' has been changed to ''Email''.
No user action required.
2009-10-21 16:41:12.683398 2540 UserTrace BIP4144I: Entered function 'cniCreateElementAsLastChild'(84beec0, 788f358, 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A').
Entered the specified function with the specified parameters.
No user action required.
2009-10-21 16:41:12.683412 2540 UserTrace BIP4145I: Exiting function 'cniCreateElementAsLastChild' with result: 'CCI_SUCCESS'(0).
About to exit the specified the function with the specified result.
No user action required.
2009-10-21 16:41:12.683426 2540 UserTrace BIP4142I: Evaluating cniElementSet'Type'. Changing value from '0' to '50331648'.
Element ''Type'' has been changed to '50331648'.
No user action required.
2009-10-21 16:41:12.683443 2540 UserTrace BIP4142I: Evaluating cniElementSet'Name'. Changing value from '''' to ''SMTPServer''.
Element ''Name'' has been changed to ''SMTPServer''.
No user action required.
2009-10-21 16:41:12.683462 2540 UserTrace BIP4142I: Evaluating cniElementSet'CharacterValue'. Changing value from ''NULL'' to '''SMTPserver'''.
Element ''CharacterValue'' has been changed to '''SMTPserver'''.
No user action required.
2009-10-21 16:41:12.683614 2540 UserTrace BIP4144I: Entered function 'cniCreateElementAsLastChild'(84beec0, 3955f38, 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A').
Entered the specified function with the specified parameters.
No user action required.
2009-10-21 16:41:12.683633 2540 UserTrace BIP4145I: Exiting function 'cniCreateElementAsLastChild' with result: 'CCI_SUCCESS'(0).
About to exit the specified the function with the specified result.
No user action required.
2009-10-21 16:41:12.683649 2540 UserTrace BIP4142I: Evaluating cniElementSet'Type'. Changing value from '0' to '50331648'.
Element ''Type'' has been changed to '50331648'.
No user action required.
2009-10-21 16:41:12.683665 2540 UserTrace BIP4142I: Evaluating cniElementSet'Name'. Changing value from '''' to ''BLOB''.
Element ''Name'' has been changed to ''BLOB''.
No user action required.
2009-10-21 16:41:12.683700 2540 UserTrace BIP4142I: Evaluating cniElementSet'ByteArrayValue'. Changing value from ''NULL'' to ''5468697320697320746865206e6577207465787420666f722074686520626f6479206f662074686520656d61696c''.
Element ''ByteArrayValue'' has been changed to ''5468697320697320746865206e6577207465787420666f722074686520626f6479206f662074686520656d61696c''.
No user action required.
2009-10-21 16:41:12.826243 2540 UserTrace BIP2231E: Error detected whilst processing a message in node 'EmailTest.EmailOutput1'.
The message broker detected an error whilst processing a message in node 'EmailTest.EmailOutput1'. The message has been augmented with an exception list and has been propagated to the node's failure terminal for further processing.
See the following messages for details of the error.
2009-10-21 16:41:12.826272 2540 RecoverableException BIP4459E: The EmailOutput node received a Java exception when it tried to create an e-mail and send it to the SMTP server. The stack trace from the exception is 'com.ibm.broker.emailnodes.EmailOutputNode : javax.mail.NoSuchProviderException: incorrect class
at javax.mail.Session.getTransport(Session.java:710)
at javax.mail.Session.getTransport(Session.java:651)
at javax.mail.Session.getTransport(Session.java:631)
at com.ibm.broker.emailnodes.EmailOutputNode.sendMail(EmailOutputNode.java:422)
at com.ibm.broker.emailnodes.EmailOutputNode.sendBasicEmail(EmailOutputNode.java:470)
at com.ibm.broker.emailnodes.EmailOutputNode.sendData(EmailOutputNode.java:352)
at com.ibm.broker.plugin.MbOutputTemplateNode.sendData(MbOutputTemplateNode.java:47)
at com.ibm.broker.plugin.MbOutputTerminal._propagate(Native Method)
at com.ibm.broker.plugin.MbOutputTerminal.propagate(MbOutputTerminal.java:103)
at EmailTest.evaluate(EmailTest.java:5
at com.ibm.broker.javacompute.MbRuntimeJavaComputeNode.evaluate(MbRuntimeJavaComputeNode.java:179)
at com.ibm.broker.plugin.MbNode.evaluate(MbNode.java:1434)
'.
Review the stack trace and correct any errors. Contact your IBM support center if you are unable to resolve the problem.
2009-10-21 16:41:12.826292 2540 RecoverableException BIP3450E: An adapter error occurred during the processing of a message. The adapter error message is ''incorrect class
''.
This error was detected by the adapter. The following message describes the diagnostic information that is provided by the adapter ''incorrect class
''.
Inspect the diagnostic information that is provided by the adapter. Further diagnostic information might be written to user trace. Inspect user trace for further information.
2009-10-21 16:41:12.847681 2540 UserTrace BIP2539I: Node 'EmailTest.Trace': Evaluating expression ''ExceptionList'' at ('', '1.3'). This resolved to ''ExceptionList''. The result was ''ROW... Root Element Type=16777216 NameSpace='' Name='Root' Value=NULL''.
2009-10-21 16:41:12.848815 2540 UserTrace BIP4067I: Message propagated to output terminal for trace node 'EmailTest.Trace'.
The trace node 'EmailTest.Trace' has received a message and is propagating it to any nodes connected to its output terminal.
No user action required.
2009-10-21 16:41:12.849218 2540 UserTrace BIP2638I: The MQ output node 'EmailTest.MQOutput' attempted to write a message to queue ''EmailOutput'' connected to queue manager ''''. The MQCC was '0' and the MQRC was '0'.
2009-10-21 16:41:12.849239 2540 UserTrace BIP2622I: Message successfully output by output node 'EmailTest.MQOutput' to queue ''EmailOutput'' on queue manager ''''.
Threads encountered in this trace:
2540 5840
 |
|
Back to top |
|
 |
smdavies99 |
Posted: Wed Oct 28, 2009 6:44 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
The email output node uses the following folders
Properties
EmailOutputHeader
ROOT
OutputLocalEnvironment
In your trace you have (At least)
MQMD
RFH2
ROOT
EmailOutputHeader
OutputLocalEnvironment
So I suggest that you try to clean up the data.
I also strongly suggest that you install the email sample flow and modify it to add a trace node before the email is sent. That will show you what things you need to setup in your flow. That is how I learned it and subsequently used it in my flows. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
Dean24 |
Posted: Thu Oct 29, 2009 6:47 am Post subject: |
|
|
 Newbie
Joined: 27 Oct 2009 Posts: 9 Location: Gomel, BY
|
I have installed the email sample flow and try to run it but it failed with the same exception:
com.ibm.broker.emailnodes.EmailOutputNode : javax.mail.NoSuchProviderException: incorrect class
 |
|
Back to top |
|
 |
|
|
 |
Goto page 1, 2 Next |
Page 1 of 2 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|