Application migration .war wls 10.3.6 application to wls 12

UI Components for JSF
Post Reply
Osmarr7
Posts: 2
Joined: 27 Dec 2021, 19:14

27 Dec 2021, 20:44

Hello, recently an application was migrated that was deployed in wls 10.3.6 that runs with a version of java 1.6.0_45 with a version of JSF 2.0 and primefaces 5.3 and some changes were applied to deploy in wls 12.2.1.4 with a version of java 1.8.0_291 and same versions of JSF and primefaces and throws the following error.

<Dec 27, 2021 12:42:11,830 PM CST> <Error> <javax.enterprise.resource.webcontainer.jsf.application> <BEA-000000> <Error Rendering View[/xhtml/principal.xhtml]
com.sun.faces.mgbean.ManagedBeanCreationException: Cant instantiate class: com.ccm.simaTienda.seguridad.MB.CambiaPassMB.
at com.sun.faces.mgbean.BeanBuilder.newBeanInstance(BeanBuilder.java:191)
at com.sun.faces.mgbean.BeanBuilder.build(BeanBuilder.java:100)
at com.sun.faces.mgbean.BeanManager.createAndPush(BeanManager.java:409)
at com.sun.faces.mgbean.BeanManager.create(BeanManager.java:269)
at com.sun.faces.el.ManagedBeanELResolver.resolveBean(ManagedBeanELResolver.java:257)
Truncated. see log file for complete stacktrace
Caused By: java.lang.NullPointerException
at com.ccm.simaTienda.seguridad.MB.CambiaPassMB.<init>(CambiaPassMB.java:51)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
Truncated. see log file for complete stacktrace
>
Hopefully someone has a suggestion or someone who has experienced the same problem

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

28 Dec 2021, 10:37

not related to PrimeFaces, also the exception is in YOUR bean
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

Osmarr7
Posts: 2
Joined: 27 Dec 2021, 19:14

19 Jan 2022, 23:44

Any other update on this that doesn't come from the Java class?

christophs78
Posts: 85
Joined: 01 Mar 2018, 12:29

21 Jan 2022, 22:58

Code: Select all

at com.ccm.simaTienda.seguridad.MB.CambiaPassMB.<init>(CambiaPassMB.java:51)
This line causes NPE. Can we have a look at this line? As Thomas said before it does not look like a PrimeFaces issue.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 27 guests