title: I have a exception with java.lang.Thread.run(Unknown Source)
body: <p>HEELP!!
  I have a problem running the code, it does not execute the Sql statement and I cannot locate the error between the DAO class and the rest service.</p>
  
  <p>I already added the exceptions of SQLException and ClassNotFound in the DAO class but I still cannot locate the error, and I already executed the code in a separate class and if the request of the BD returns, which means that the driver is well configured.</p>
  
  <pre><code>package com.DAO;
  
  import java.sql.Connection;
  import java.sql.ResultSet;
  import java.sql.SQLException;
  //import java.sql.SQLException;
  import java.sql.Statement;
  import java.util.ArrayList;
  import java.util.List;
  
  import com.connection.ConexionPSQL;
  import com.IDAO.EmployeIDAO;
  import com.model.EmployeObject;
  
  public class EmployeDAO implements EmployeIDAO {
  
      @Override
      public List&lt;EmployeObject&gt; obtener() {
  
          Connection co = null;
          Statement stm = null;
          ResultSet rs = null;
  
          String sql = "SELECT * FROM TABLE_EMPLOYES";
  
          List&lt;EmployeObject&gt; listaCliente = new 
                  ArrayList&lt;EmployeObject&gt;();
  
          try {
              co = ConexionPSQL.crearConexion();
              stm = co.createStatement();
              rs = stm.executeQuery(sql);
  
              while (rs.next()) {
  
                  EmployeObject e = new EmployeObject();
                  e.setId(rs.getInt(1));
                  e.setNombre(rs.getString(2));
                  e.setApellido(rs.getString(3));
                  listaCliente.add(e);
              }
              stm.close();
              rs.close();
              co.close();
          } catch (ClassNotFoundException | SQLException e) {
              e.printStackTrace();
          }
          return listaCliente;
  
      }
  }
  `` ``` ``` ``` ``` ``` ``` ``` ``` ``` ``` ``` ``` ``` ``` `
  package com.IDAO;
  
  import java.util.List;
  
  import com.model.EmployeObject;
  
  public interface EmployeIDAO {
  
      public boolean registrar(EmployeObject employe);
      public List&lt;EmployeObject&gt; obtener();   
      public boolean actualizar(EmployeObject employe);
      public boolean eliminar(EmployeObject employe);
  }
  
  `` ``` ``` ``` ``` ``` ``` ``` ``` ``` 
  package REST;
  
  import java.util.List;
  
  import javax.ws.rs.ApplicationPath;
  import javax.ws.rs.GET;
  import javax.ws.rs.Path;
  import javax.ws.rs.core.Application;
  import javax.ws.rs.core.MediaType;
  
  import com.DAO.EmployeDAO;
  import com.model.EmployeObject;
  
  
  import javax.ws.rs.Produces;
  
  // http://localhost:8080/RestService/resources/MyRestService/verEmpleados
       @GET
       @Path("/verEmpleados")
       @Produces(MediaType.APPLICATION_JSON)
       public List&lt;EmployeObject&gt; VerEmpleado() {
  
  
           List&lt;EmployeObject&gt; verEmpleados =  empleados.obtener();
           return verEmpleados;
  
     }
  
  
  `` ``` ``` ``` ``` ``` ``` ``` ``` ``` 
  
  
  I hope I can help, thank you very much
  Here are the error messages
  
  </code></pre>
  
  <p>10:55:27,125 ERROR [stderr] (default task-2)    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:198)</p>
  
  <p>10:55:27,125 ERROR [stderr] (default task-2)    at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:412)</p>
  
  <p>10:55:27,125 ERROR [stderr] (default task-2)    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:400)</p>
  
  <p>10:55:27,125 ERROR [stderr] (default task-2)    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)</p>
  
  <p>10:55:27,126 ERROR [stderr] (default task-2)    at java.lang.Class.forName0(Native Method)</p>
  
  <p>10:55:27,126 ERROR [stderr] (default task-2)    at java.lang.Class.forName(Unknown Source)</p>
  
  <p>10:55:27,126 ERROR [stderr] (default task-2)    at com.connection.ConexionPSQL.crearConexion(ConexionPSQL.java:17)</p>
  
  <p>10:55:27,126 ERROR [stderr] (default task-2)    at com.DAO.EmployeDAO.obtener(EmployeDAO.java:55)</p>
  
  <p>10:55:27,127 ERROR [stderr] (default task-2)    at REST.RestService.VerEmpleado(RestService.java:46)</p>
  
  <p>10:55:27,127 ERROR [stderr] (default task-2)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</p>
  
  <p>10:55:27,127 ERROR [stderr] (default task-2)    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)</p>
  
  <p>10:55:27,127 ERROR [stderr] (default task-2)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)</p>
  
  <p>10:55:27,127 ERROR [stderr] (default task-2)    at java.lang.reflect.Method.invoke(Unknown Source)</p>
  
  <p>10:55:27,127 ERROR [stderr] (default task-2)    at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140)</p>
  
  <p>10:55:27,128 ERROR [stderr] (default task-2)    at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:295)</p>
  
  <p>10:55:27,128 ERROR [stderr] (default task-2)    at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:249)</p>
  
  <p>10:55:27,128 ERROR [stderr] (default task-2)    at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:236)</p>
  
  <p>10:55:27,128 ERROR [stderr] (default task-2)    at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:406)</p>
  
  <p>10:55:27,129 ERROR [stderr] (default task-2)    at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:213)</p>
  
  <p>10:55:27,129 ERROR [stderr] (default task-2)    at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:228)</p>
  
  <p>10:55:27,129 ERROR [stderr] (default task-2)    at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)</p>
  
  <p>10:55:27,129 ERROR [stderr] (default task-2)    at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)</p>
  
  <p>10:55:27,130 ERROR [stderr] (default task-2)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)</p>
  
  <p>10:55:27,130 ERROR [stderr] (default task-2)    at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)</p>
  
  <p>10:55:27,130 ERROR [stderr] (default task-2)    at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)</p>
  
  <p>10:55:27,130 ERROR [stderr] (default task-2)    at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)</p>
  
  <p>10:55:27,130 ERROR [stderr] (default task-2)    at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)</p>
  
  <p>10:55:27,131 ERROR [stderr] (default task-2)    at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)</p>
  
  <p>10:55:27,131 ERROR [stderr] (default task-2)    at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)</p>
  
  <p>10:55:27,131 ERROR [stderr] (default task-2)    at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)</p>
  
  <p>10:55:27,131 ERROR [stderr] (default task-2)    at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)</p>
  
  <p>10:55:27,131 ERROR [stderr] (default task-2)    at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)</p>
  
  <p>10:55:27,132 ERROR [stderr] (default task-2)    at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)</p>
  
  <p>10:55:27,132 ERROR [stderr] (default task-2)    at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)</p>
  
  <p>10:55:27,132 ERROR [stderr] (default task-2)    at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)</p>
  
  <p>10:55:27,132 ERROR [stderr] (default task-2)    at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)</p>
  
  <p>10:55:27,134 ERROR [stderr] (default task-2)    at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)</p>
  
  <p>10:55:27,134 ERROR [stderr] (default task-2)    at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)</p>
  
  <p>10:55:27,134 ERROR [stderr] (default task-2)    at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)</p>
  
  <p>10:55:27,135 ERROR [stderr] (default task-2)    at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)</p>
  
  <p>10:55:27,135 ERROR [stderr] (default task-2)    at org.wildfly.extension.undertow.deployment.GlobalRequestControllerHandler.handleRequest(GlobalRequestControllerHandler.java:68)</p>
  
  <p>10:55:27,135 ERROR [stderr] (default task-2)    at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)</p>
  
  <p>10:55:27,135 ERROR [stderr] (default task-2)    at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292)</p>
  
  <p>10:55:27,136 ERROR [stderr] (default task-2)    at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81)</p>
  
  <p>10:55:27,136 ERROR [stderr] (default task-2)    at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138)</p>
  
  <p>10:55:27,136 ERROR [stderr] (default task-2)    at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135)</p>
  
  <p>10:55:27,136 ERROR [stderr] (default task-2)    at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)</p>
  
  <p>10:55:27,137 ERROR [stderr] (default task-2)    at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)</p>
  
  <p>10:55:27,137 ERROR [stderr] (default task-2)    at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)</p>
  
  <p>10:55:27,137 ERROR [stderr] (default task-2)    at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)</p>
  
  <p>10:55:27,137 ERROR [stderr] (default task-2)    at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)</p>
  
  <p>10:55:27,138 ERROR [stderr] (default task-2)    at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)</p>
  
  <p>10:55:27,138 ERROR [stderr] (default task-2)    at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)</p>
  
  <p>10:55:27,138 ERROR [stderr] (default task-2)    at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)</p>
  
  <p>10:55:27,138 ERROR [stderr] (default task-2)    at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)</p>
  
  <p>10:55:27,138 ERROR [stderr] (default task-2)    at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)</p>
  
  <p>10:55:27,139 ERROR [stderr] (default task-2)    at io.undertow.server.Connectors.executeRootHandler(Connectors.java:326)</p>
  
  <p>10:55:27,139 ERROR [stderr] (default task-2)    at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:812)</p>
  
  <p>10:55:27,139 ERROR [stderr] (default task-2)    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)</p>
  
  <p>10:55:27,139 ERROR [stderr] (default task-2)    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)</p>
  
  <p>10:55:27,139 ERROR [stderr] (default task-2)    at java.lang.Thread.run(Unknown Source)</p>
  
  <pre><code>
  </code></pre>