IBM Support

Contexts and Dependency Injection 1.2 failover in WebSphere Application Server

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

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Not Applicable","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF012","label":"IBM i"},{"code":"PF016","label":"Linux"},{"code":"PF014","label":"iOS"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"},{"code":"PF035","label":"z\/OS"},{"code":"PF022","label":"OS X"}],"Version":"9.0.0.0","Edition":"Base;Network Deployment","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SS7K4U","label":"WebSphere Application Server for z\/OS"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Not Applicable","Platform":[{"code":"PF035","label":"z\/OS"}],"Version":"9.0.0.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg21983650