Peter Branforn
Peter Branforn

Reputation: 1677

Weblogic: How to prevent "A mismatch exists between the bean code and generated code" when deploying

I use WLST (scripted) automatic deployment on WebLogic 12c (12.1.3 - latest). This automatically deploys my enterprise application on a managed server (not admin server).

Note: The error also occurs if I execute the deployment manually.

Sometimes I get this exception:

A mismatch exists between the bean code and generated code. ...

My application does not get deployed then. This cannot be fixed by deploying again, only deleting the deployment with the help of the AdminServer console works reliably.

Any ideas how this is triggered and/or I can "fix" (heal) it reliably?

I have seen this error being logged and reported numerous times even with older versions of Weblogic, but no possible solution in sight.

Upvotes: 0

Views: 1105

Answers (2)

Panos K.
Panos K.

Reputation: 61

If nothing works, try to clear the cache as described here: https://www.funoracleapps.com/2022/06/how-to-clear-weblogic-cache.html

Upvotes: 0

Display Name is missing
Display Name is missing

Reputation: 6227

Sometimes weblogic has caching issues when you try to redeploy over an existing app. Trying an undeploy and redeploy normally corrects it:

undeploy(appName=application_name);
save()
activate(300000, "block='true'")

deploy(appName=application_name, path=deployment_artifact, targets=target_names, planPath=deployment_plan);
save()
activate(300000, "block='true'")

Upvotes: 1

Related Questions