Null pointer exception
February 21, 2011 at 10:15 pm #17742
Hi all, I have a strange error using Pretty Faces.
The error is:
type Exception report
descriptionThe server encountered an internal error () that prevented it from fulfilling this request.
It is quite strange because it was working. I moved from Netbeans 7.0 beta to beta2 and now it is giving this problem. Same application server (now its is glassfish 3.1 b41, old version should be b29, but i’m not sure)
In the server log I found this:
GRAVE: WebModule[/px]PWC1321: Error invoking requestInitialized method on ServletRequestListener com.ocpsoft.pretty.faces.config.PrettyConfigListener
I tried to remove the Pretty faces jar from the project, and it works.
I tried also with Pretty faces 3.1.0, but I had the same error.
GiorgioFebruary 22, 2011 at 4:36 pm #19946
this is a very strange issue you are seeing. Perhaps some kind of incompatibility between one of the latest Mojarra versions and PrettyFaces? Do you have any idea which Mojarra version Glassfish is using? I think this is mentioned in the logs somewhere.
Thanks for reporting this
ChristianFebruary 23, 2011 at 10:43 am #19947
probably that is the cause.
In the log I found this:
Initializing Mojarra 2.1.0 (FCS 2.1.0-b11)
GiorgioFebruary 23, 2011 at 11:02 am #19948
thank you very much. Could you perhaps open a ticket for this issue? This way you will be kept up to date regarding this.
I’ll take a look at this as soon as I find some time.
ChristianFebruary 23, 2011 at 12:56 pm #19949
thanks in advance.
GiorgioApril 9, 2011 at 11:13 am #19950
I have the same Problem. I’ve just read the interesting article of Christian in the Java Magazin and wanted to try PrettyFaces. Unfortunately I got the same null-pointer exception. I’m using the same versions of Netbeans and Glassfish.
Did you fix the problem?
ThanksApril 9, 2011 at 12:00 pm #19951
I’ve just downloaded the newest Mojarra release into my Glassfish and now my app starts without problem.April 9, 2011 at 2:08 pm #19952
I’m glad to hear you got it working.
Could you perhaps tell us how you updated the Mojarra JARs in Glassfish? I think there are some other people suffering from this issue and I guess they would love to hear how you resolved it.
Perhaps you could attach the info to the corresponding issue:
ThanksApril 9, 2011 at 11:21 pm #19953
I’ve just replaced the two libraries jsf-api.jar and jsf-impl.jar in glassfish-3.1-b41/glassfish/modules/ with those from the new Mojarra release 2.1.1.
FouadApril 10, 2011 at 6:17 am #19954
Thanks for sharing your solution!
The forum ‘PrettyFaces Users’ is closed to new topics and replies.