Troubleshooting
Problem
In WebSphere Application Server traditional V9.0, if an application has a field of @Inject Validator or a field of @Inject ValidatorFactory, the Contexts and Dependency Injection (CDI) 1.2 failover from one server to another server fails on deserialisation on the new server.
Symptom
The following exception is created:
org.jboss.weld.exceptions.WeldException: WELD-001500: Failed to deserialize proxy object with beanId x.
Resolving The Problem
Use Java Naming and Directory Interface (JNDI) lookup to get the ValidatorFactory class or the Validator class.
You can use the following example to obtain the ValidatorFactory class:
ValidatorFactory vf = (ValidatorFactory) context.lookup("java:comp/ValidatorFactory");
You can use either of the following examples to obtain the Validator class:
Validator v = vf.getValidator();
or
(Validator)context.lookup("java:comp/Validator");
You can optionally install a fix pack for Version 9 to resolve this issue. Refer to the Recommended Updates page for delivery information: http://www.ibm.com/support/docview.wss?uid=swg27004980
Related Information
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg21983650