on 12-02-2010 4:54 PM
Ola Experts.
Criei um Module Adapter conforme a Wiki Sample code to create email body and XML attachment in an outgoing NFE B2B e-mail communication para que o Nome do arquivo seja dinamico.
No Mapping o Dynamic Configuration esta OK:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Call Adapter
-->
- <SAP:DynamicConfiguration xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:Record namespace="http://sap.com/xi/XI/System/Mail" name="THeaderSUBJECT">NF-e numero 9999</SAP:Record>
<SAP:Record namespace="http://sap.com/xi/XI/System/Mail" name="THeaderTO">???@???.com.br</SAP:Record>
<SAP:Record namespace="http://www.sap.com/grc/nfe" name="Name">teste.xml</SAP:Record>
</SAP:DynamicConfiguration>
No Configuration, inclui o Module passando o parametro abaixo:
MODULE KEY: 1
Parameter Name: Message
Parameter Value: Mensagem Teste
Porém esta ocorrendo erro na execucao do Modulo:
2010-12-02 14:50:12 Success MP: Entering module processor
2010-12-02 14:50:12 Success MP: Processing local module localejbs/SetAttName
2010-12-02 14:50:12 Error MP: Exception caught with cause java.lang.ClassCastException
Alguma sugestão?
Abracos.
Sugestao: adicione algumas linhas de audit log, fica mais facil de debugar e identificar em q linha está o problema.
De qq maneira, geralmente esse problema ocorre qdo vc coloca um objeto recebendo um objeto resultado de um lookup, que volta com uma classe generica.
Em particular, nessa linha:
Message msg = (Message)inputModuleData.getPrincipalData();
Verifique qual classe "Message" (o nome completo da classe, com o package) que foi associado aqui.
Pode ter ido pra classe Message errada.
A correta se nao me engano é:
import com.sap.aii.messaging.mo.Message;
Abs,
Henrique.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
13 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.