Wednesday, July 20, 2011

[Management:141191]The prepare phase of the configuration update failed with an exception

I found one of the DataSource in my domain was in Suspended state, giving "unable to allocate resources to the application" errors while testing it. I tried to untarget and re-target the DataSource so that it can create fresh connections to the database killing all pending connections and avoid restarting the servers but the untarget changes took so long to be activated so I navigated away from the page and tried to activate the changes one more time and it won't activate any changes that I made and the Error displayed on the console is as below. Restarting AdminServer did not solve the problem.

An error occurred during activation of changes, please see the log for details.
Message icon - Error [Management:141191]The prepare phase of the configuration update failed with an exception:
Message icon - Error java.lang.NullPointerException:

 
Below is the log excerpt seen in the Admin Server logs.
<Jul 20, 2011 3:45:43 PM GMT> <Error> <Console> <BEA-240003> <Console encountered the following error weblogic.management.provider.UpdateException: [Management:141191]The prepare phase of the configuration update failed with an exception: 
at weblogic.management.provider.internal.RuntimeAccessDeploymentReceiverService.updateDeploymentContext(RuntimeAccessDeploymentReceiverService.java:648)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doUpdateDeploymentContextCallback(DeploymentReceiverCallbackDeliverer.java:133)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.updateDeploymentContext(DeploymentReceiverCallbackDeliverer.java:27)
at weblogic.deploy.service.internal.statemachines.targetserver.ReceivedPrepare.callDeploymentReceivers(ReceivedPrepare.java:199)
Caused by: java.lang.NullPointerException: 


Solution
I was able to perform the same changes successfully after I followed the steps below.

1. Stop the AdminServer & ManagedServers.
2. On your AdminServer cd to %WEBLOGIC_HOME%\user_projects\domains\base_domain.
3. Delete the files under pending and servers/domain_bak directory.
4. Repeat steps 2 & 3 one each ManagedServers in the domain.
5. Start the AdminServer & ManagedServers.
6. Login the AdminConsole and click on ReleaseConfiguration button.
7. Perform the same changes now.

Please leave your comments/queries for this post.

11 comments:

Anonymous said...

Need hosting? Get the top dеals at http://hoѕting.
top-informatiοn.nеt/
My website :: Stage 4 Kidney Cancer

Anonymous said...

Saved as a favorite, I love your blog!
Look at my page ; diet that works

Anonymous said...

Thank yоu fοr the auѕpiсiouѕ wгiteup.
It in fact was a amusement account it. Looκ advanced to far addеd agreeable from yοu!

Howevеr, how could ωe communicate?
Feel free to visit my blog post : loans for people with bad credit

Anonymous said...

I am truly happy to glance at this webpagе posts which
іncluԁеs lots of helpful іnformatiοn, thаnκѕ foг providing thesе kinds
of statistics.
Feel free to surf my web site - 1 month loan

thoughts_anshul said...

Thanks for the post. It helped me. Just wanted to add 1 thing, I didn't require restarting the servers.

Anonymous said...

If you would like to obtain a great deal from this article then you have to apply
such methods to your won web site.

Stop by my web blog: diets that work fast

Anonymous said...

Magnificent bеat ! I wіsh to аρprеntiсе while you amеnd your webѕite, hοω could і ѕubscrіbе for a blog websitе?
Τhe аccount aіԁеd me
a аcceρtable dеаl. ӏ hаd beеn tiny bit acquainted of this
your broаdcast offered bгight сlear іdea

Here iѕ my page ... haarausfall schilddrüse was Tun

Anonymous said...

It's appropriate time to make some plans for the future and it is time to be happy. I have read this post and if I could I want to suggest you some interesting things or suggestions. Maybe you can write next articles referring to this article. I want to read more things about it!

Visit my blog post easy diets that work

Anonymous said...

It's a pity you don't haνe a donate buttοn!
I'd most certainly donate to this fantastic blog! I guess for now i'll sеttle foг
bookmаrking and аԁding your RSЅ feeԁ to my Google account.
I look foгward to brand new updаtеs and will talk аbout this website wіth my Facеbοok grouρ.
Сhаt ѕоon!

Visit mу ωеbpаge - emorroidi cure naturali ippocastano

Unknown said...

It surely is a bother and having ideas in terms of learning from them help us with moving into the correct direction and in the same way agile business solutions are the ones which help us a lot in learning a lot of things which goes right most of the times.

Madhu Kiran said...

Good one Dude!