cancel
Showing results for 
Search instead for 
Did you mean: 

user defined function - error at runtime

Former Member
0 Kudos

Hi,

I have to write a small java mapping, which has to obtain a substring 1 to 4 characters from a 5 characters string.

I used <b>graphical</b> mapping and the following <b>java</b> mapping program

<i>try

{

if(NodeId.length() == 5)

{

NodeId = NodeId.substring(1,4);

}

}

catch (Exception e)

{

NodeId = "NodeIdError";

}

return NodeId;</i>

In both cases i am receiving an error.

regards,

Ramesh P

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

What is the error you are receiving ?

regards

krishna

Former Member
0 Kudos

Hi,

Thanks for your quick reply.

I tested in Test bed of the design time but i am receiving error at runtime only.

Error is :

<i>"="MAPPING">GENERIC

RuntimeException in Message-Mapping transformatio"</i>

Regards,

Ramesh P

Former Member
0 Kudos

Load the data from sxmb_moni into the test bed and test it over there

regards

krishna

Former Member
0 Kudos

Hi,

It is <b>successful</b> there also.

The server is installed on SUN Solaris. Does it make any difference, because we test it on client machine which is on Windows.

Regards,

Ramesh P.

Former Member
0 Kudos

No, the server has got nothing to do with it.

Did you load the payload from sxmb_moni into your Test tab of MM in Integration repository and check the mapping???

For sure , you should get an error when you do that

regards

krishna