Sunday, July 8, 2012

WLSTInterpreter fails to setup

java.lang.NullPointerException
java.io.File.(File.java:222)
weblogic.management.utils.PDevHelper.getUpgradeLaunchLocation(PDevHelper.java:77)
weblogic.management.utils.PDevHelper.getPDevClassLoader(PDevHelper.java:36)
weblogic.management.scripting.utils.WLSTUtil.setupOffline(WLSTUtil.java:226)
weblogic.management.scripting.utils.WLSTInterpreter.(WLSTInterpreter.java:134)
weblogic.management.scripting.utils.WLSTInterpreter.(WLSTInterpreter.java:76)


It turns out that PDevHelper.getUpgradeLaunchLocation is requiring a bea.home property to be set (set it to -Dbea.home=/opt/oracle/fmw11_1_1_5/ )

See also http://www.javamonamour.org/2012/07/error-in-finding-weblogichome.html

3 comments:

Habin said...

Can you elaborate how exactly it needs to be set.I am trying to run the java class and stuck with this exception.Tried to set -Dbea.home to my fusionmiddleware home but no luck with it.

vernetto said...

see if this https://forums.oracle.com/thread/2300143 can be of any help.

If still in need, email me directly and I will try to reproduce (and fix) the issue. publicpierre at gmail dot com

vernetto said...

and see also http://www.javamonamour.org/2012/07/error-in-finding-weblogichome.html