on 07-12-2011 4:01 PM
Hi,
I try to lookup local bean in different Ear file. The lookup methed return Proxy class instead the home interface,thus it make ClassCastException. Do you have any idea?
java.lang.ClassCastException: class $Proxy659:sap.com/Test_EAR aT com.sap.engine.boot.loader.ResourceMultiParentClassLoader@12a08f1@alive incompatible with interface thongie.test.LoveYouBeanLocalHome:sap.com/TEST_EJB_WEB At com.sap.engine.boot.loader.ResourceMultiParentClassLoader@3ce41d@alive
Hi,
a common trap in SAP NetWeaver Java. You must set an application reference between the two EARs.
I posted an OSS but almost no chance to fix it.
(You might also use Java Reflect api (see other posts in the forum), but this will make your software unreadable.)
Regards
Rolf
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Would you mind sharing your code that leads to this error message?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
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.