Skip to Content
Former Member
May 02, 2005 at 06:40 PM

Module Processor : Module exception java.lang.ClassCastException



I am trying to understand how the Module processor works for our custom module exits.

So, using NW Dev. Studio, I created a EJB project with an EJB module Local interface. In the bean class, I have process() method and everything is same as the example module ConvertCRLFfromToLF provided by SAP (except the class name and the package).

My ejb-jar.xml looks like this

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"



<description>EJB JAR description</description>

<display-name>EJB JAR</display-name>














The ejb-j2ee-engine.xml looks like

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE ejb-j2ee-engine SYSTEM "ejb-j2ee-engine.dtd">










I am deploying this bean using NW Dev Studio.

In the module process or Sender File Adapter, I have provided the following

1. localejbs/KK/MYConvertCRLFfromToLFBean

2. localejbs/CallSapAdapter

After activating the comm. channel, I get the following error

"Error: Module exception java.lang.ClassCastException found"

However, if I use SAP's example module localejbs/SAP XI Sample/ConvertCRLFfromToLF, the same works OK.

I don't know what I am missing here. Any help will be highly appreciated.



Message was edited by: KK