Home » Java » JBWEB000065: HTTP Status 500 – java.lang.NullPointerException in JSF

JBWEB000065: HTTP Status 500 – java.lang.NullPointerException in JSF

Posted by: admin October 29, 2018 Leave a comment

Questions:
**Hi, im coding using primefaces, maven, sql, hibernate etc.
If someone could help me I'd be so very glad, it's urgent!!

I’m also using jboss server.
Right now i’m programming the login page, and I’m getting the “JBWEB000065: HTTP Status 500 – java.lang.NullPointerException” error, my login page is as follows:**

<h:body>
    <header> 
    <nav class="navbar navbar-default navbar-fixed-top" role="navigation">
    <div class="container">
        <div class="navbar-header">
            <div class="navbar-brand">
                <h:graphicImage library="images" name="logo.png" />
            </div>
        </div>

        <div class="collapse navbar-collapse">
            <ul class="nav navbar-nav navbar-title">
                <li><p style="color: #fff">#{bundle.tituloDoSistema}</p></li>
            </ul>
        </div>
    </div>
    </nav>

    <div class="tp-banner-container">
        <div class="tp-banner" style="height: 900px;">
            <center>
                <div class="main-content">
                    <p:panel id="panelLogin" header="#{bundle.entrar}"
                        style="width: 70%; border-radius: 12px;">
                        <h:form>
                            <p:growl id="growl" showDetail="true" />
                            <h:panelGrid columns="3" cellpadding="5">
                                <h:outputText value="#{bundle.login}:" />
                                <p:inputText id="login" label="#{bundle.login}"
                                    value="#{funcionarioMB.funcionario.login}" required="true" />
                                <p:ajaxStatus>
                                    <f:facet name="start">
                                        <h:graphicImage library="images" name="loader.gif" />
                                    </f:facet>

                                    <f:facet name="complete" />
                                </p:ajaxStatus>

                                <h:outputText value="#{bundle.senha}:" style="margin-top: 9px;" />
                                <p:password style="margin-top: 9px;" id="senha"
                                    label="#{bundle.senha}" value="#{loginMB.senha}"
                                    required="false" />
                                    &nbsp;
                                </h:panelGrid>

                            <p:spacer height="50" />
                            <p:commandButton value="ENTRAR"
                                action="#{loginMB.realizarLogin()}" update="growl"
                                styleClass="btn btn-primary" />
                        </h:form>
                            LOGIN SEM SENHA HABILITADO
                        </p:panel>
                </div>
            </center>
        </div>
    </div>
    </header>




**And the error log:**

I posted the error log in google drive because it’s too extensive to paste it here!
[Error log][1]

  [1]: https://drive.google.com/file/d/1EXi5NT4k-RcjnYGnkvN1LBLRncONpB3L/view?usp=sharing
Answers: