I was experiencing occasional exceptions in XPages application:
java.lang.ClassCastException: someClass incompatible with someClass.
Both mentioned classes are the same, it is class used as session bean. I was not able to google anything covering my problem. Usual explanation for this was change in design elements, not my case.
The XPage application become unusable (pages using session bean someClass) since that moment, until restart of http task, or resave of faces-config.xml.
In some cases this is related to other exception:
com.ibm.jscript.InterpretException: Script interpreter error, line=x, col=y:
Java method 'method(signature containg someClass)'
on java class 'someOtherClass' not found
What is behind this behavior?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…