Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ADF EAR file failed to start in weblogic server with Null pointer exception

HKumar679Jul 26 2019 — edited Aug 1 2019

Hi,

We have the below error when starting the EAR file in weblogic 12.2.1 after migrating VM's.

Sequence of Events:

- I have done the release with new EAR file 2 weeks back and our EAR application was running fine (until today morning)

- VMs migrated yesterday

- Application users faced Java errors accessing the application

- So I decided to restart weblogic server and the EAR application

- Weblogic servers are up and running after restart

- but EAR application is failed to start and it gives NULL pointer exception( error below)

- Tried the below JAVA_OPTIONS solution but still not coming up , added -DANTLR_USE_DIRECT_CLASS_LOADING=true to the Weblogic managed server startup script.

https://stackoverflow.com/questions/51031511/weblogic-12-2-1-deployment-issue

Can someone please advise how to resolve this issue? This is very urgent for me, Quick help will be appreciated.

Thank you in advance.

pastedImage_0.png

Full error:

<Jul 26, 2019 4:20:34 PM BST> <Error> <HTTP> <BEA-101216> <Servlet: "StartupServlet" failed to preload on startup in Web application: "XXXXWeb".

java.lang.NullPointerException: Name is null

    at java.lang.Enum.valueOf(Enum.java:236)

    at com.ucl.model.domain.XXXXRoleEnum.valueOf(XXXXRoleEnum.java:6)

    at com.ucl.model.mgr.ProjectLocationMgr.\<init>(ProjectLocationMgr.java:86)

    at com.ucl.model.mgr.ProjectLocationMgr.getInstance(ProjectLocationMgr.java:107)

    at com.ucl.view.servlet.StartupServlet.init(StartupServlet.java:44)

    Truncated. see log file for complete stacktrace

>

<Jul 26, 2019 4:20:34 PM BST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID "303190198353936" for task "1" on [partition-name: DOMAIN]. Error is: "weblogic.application.ModuleException: java.lang.NullPointerException: Name is null"

weblogic.application.ModuleException: java.lang.NullPointerException: Name is null

    at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:140)

    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:124)

    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:237)

    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:232)

    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)

    Truncated. see log file for complete stacktrace

Caused By: java.lang.NullPointerException: Name is null

    at java.lang.Enum.valueOf(Enum.java:236)

    at com.ucl.model.domain.XXXRoleEnum.valueOf(LamaisRoleEnum.java:6)

    at com.ucl.model.mgr.ProjectLocationMgr.\<init>(ProjectLocationMgr.java:86)

    at com.ucl.model.mgr.ProjectLocationMgr.getInstance(ProjectLocationMgr.java:107)

    at com.ucl.view.servlet.StartupServlet.init(StartupServlet.java:44)

    Truncated. see log file for complete stacktrace
This post has been answered by HKumar679 on Jul 29 2019
Jump to Answer
Comments
Post Details
Added on Jul 26 2019
7 comments
3,556 views