cancel
Showing results for 
Search instead for 
Did you mean: 

Error in UDF java when activng msg mappings after moving from PI 7.0 to 7.1

susan_pfab
Participant
0 Kudos

We are getting an error when trying to activate a message mapping. The error occurs in the User-Defined functions. They worked in 7.0, but after the migration, the mapping errors upon activation. Here's an example of one of the errrors:

Function getMessageID, Line 1:

getMessageID(com.sap.aii.mappingtool.tf3.rt.Container) in com.roche.rd.pi.util.Message cannot be applied to (com.sap.aii.mappingtool.tf7.rt.Container) return Message.getMessageID(container);

What could be causing this?

Accepted Solutions (0)

Answers (3)

Answers (3)

susan_pfab
Participant
0 Kudos

Java jar files in "Imported Archives" had to be updated.

stefan_grube
Active Contributor
0 Kudos

> Function getMessageID, Line 1:

> getMessageID(com.sap.aii.mappingtool.tf3.rt.Container) in com.roche.rd.pi.util.Message cannot be applied to (com.sap.aii.mappingtool.tf7.rt.Container) return Message.getMessageID(container);

In your library com.roche.rd.pi.util.Message you have used com.sap.aii.mappingtool.tf3.rt.Container,

change this to com.sap.aii.mappingtool.tf7.rt.Container.

Change also all other refenreces from com.sap.aii.mappingtool.tf3.* to com.sap.aii.mappingtool.tf7.*in your libraries.

Regards

Stefan

Shabarish_Nair
Active Contributor
0 Kudos

/people/michal.krawczyk2/blog/2009/03/04/pixi-pi-71-upgrademigration--message-mappings keep this in mind when u r migrating

susan_pfab
Participant
0 Kudos

I added the "retainlastValueofPreviousContext=true;" line to the init method, and it didn't help.

Former Member
0 Kudos

>

> I added the "retainlastValueofPreviousContext=true;" line to the init method, and it didn't help.

Could be cache isse. Refresh the cache and then try. Secondly you can also try by first closing the IR and then reopen it and check if it solves the issue.