0 Replies Latest reply on Nov 9, 2016 11:47 AM by Vincenzo Tresoldi

    Wildlfy load or reload a module programmatically

    Vincenzo Tresoldi Newbie

      Hi guys,

      It's possible to reload a module in Java.

      I do not know why, but every once in my application this error happens when I try to access the application, and the only solution is to reboot.

       

      java.lang.NullPointerException

        at com.sun.faces.application.resource.ResourceHelper$ELEvaluatingInputStream.close(ResourceHelper.java:856)

        at java.io.BufferedInputStream.close(BufferedInputStream.java:483)

        at java.nio.channels.Channels$ReadableByteChannelImpl.implCloseChannel(Channels.java:403)

        at java.nio.channels.spi.AbstractInterruptibleChannel.close(AbstractInterruptibleChannel.java:115)

        at com.sun.faces.application.resource.ResourceHandlerImpl.handleResourceRequest(ResourceHandlerImpl.java:380)

        at javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(ResourceHandlerWrapper.java:153)

        at org.primefaces.application.resource.PrimeResourceHandler.handleResourceRequest(PrimeResourceHandler.java:87)

        at javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(ResourceHandlerWrapper.java:153)

        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:655)

       

       

      I think that for some reason a resource is no longer avaiable.

      I wanted to restart Mojarra module

      The module that i see in log

      [javax.enterprise.resource.webcontainer.jsf.config'] (ServerService Thread Pool -- 59) Initializing Mojarra 2.2.13.SP1 20160303-1204 for context '/Metrica'

       

      It's Possible?

      Thanks