on 06-27-2017 10:58 PM
Hi,
I have this error in Pi system, what does this mean? this happened after patch upgarde from SP11 to SP16 on PI 7.1
Message processing failed. Cause: java.lang.ClassCastException: Cannot cast class java.util.Collections$SynchronizedMap to class java.util.LinkedHashMap
Thanks!
Hi Prema,
Does your response/request mapping have any UDF/java mapping? Please check.
In order to understand cause of ClassCastException, you need to be familiar with concept of type casting in Java. Since Java is an object oriented programming language and supports features like Inheritance and Polymorphism, a reference variable of type parent class can represent object of child class. This leads to ClassCastException if object is not of type on which you are casting it. It can be best explained with an example. Let's see a sample code which will throw ClassCastException in Java
Object im = new String();
Integer i = (Integer) im;
This code results in Exception in thread "main" java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer at test.ClassCastExcetpionTest.main(ClassCastExcetpionTest.java:31)
Thus some code in java mapping/UDF is having this issue with upgrade the old code has become invalid.
Please kindly check and revert.
Regards
Anupam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prema!
Where does this error happen? If it happens during message mapping execution, you should check if any UDF (or java mapping) uses assignments to SAP inner class instances as their implementations could be changed with this Service pack.
Regards, Evgeniy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Evgeniy,
this doesnt happen when mapping, but this error i see in receiver adapter.
this interface has request and response. request goes all the way through calling adapter. but response has this error.
and i did unit testing in mapping with payload. request mapping looks good.
Please let me know any other thoughts.
thanks for your time and help!
prema
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.