4 Replies Latest reply on Sep 25, 2019 3:16 AM by animesh.sahani

    Exception in wildfly13 java.util.NoSuchElementException after loading the DB.jndi.properties

    animesh.sahani

      Hi All


      Please can anyone help me with the below error I am getting after deploying the EAR in wildfly 13 server.

      I have a JBOSS 5 developed project which includes WEB and EJB modules. I want to migrate to wildfly 13. In terms of migration i have used JSF 2,  richfaces 4.5. And in connection to the DB i have a db.jndi.properties file, a ds.xml file, and  OJDBC6.jar which are all deployed into the server's deployment directory. My EAR has been deployed successfully. However while running the server I am getting the below exception: 

      2019-09-17 15:50:14,488 INFO  [stdout] (default task-1) ********** Loaded application properties from file: /opt/wildfly/server/configuration/db.jndi.properties

      2019-09-17 15:50:14,492 ERROR [stderr] (default task-1) java.util.NoSuchElementException

      2019-09-17 15:50:14,493 ERROR [stderr] (default task-1) at java.util.ArrayList$Itr.next(ArrayList.java:862)

      ERROR [stderr] (default task-1) java.util.NoSuchElementException

      ERROR [org.jboss.as.ejb3.invocation] (default task-1) WFLYEJB0034: EJB Invocation failed on component LogDAO for method public abstract java.util.List com.siam.dao.LogDAO.getLog

      (java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String) throws javax.naming.NamingException,java.sql.SQLException: javax.ejb.EJBException:

      java.lang.NullPointerException

      ERROR [stderr] (default task-1) javax.ejb.EJBException: java.lang.NullPointerException

      ERROR [org.jboss.as.ejb3.invocation] (default task-1) WFLYEJB0034: EJB Invocation failed on component HeartbeatDAOBean for method public abstract java.util.List

      com.@siam.dao.HeartbeatDAO.retrieveHeartbeat(java.lang.String) throws javax.naming.NamingException,java.sql.SQLException: javax.ejb.EJBException: java.lang.NullPointerException

       

      jaysensharma I have seen some related posts. Please could you have a look