NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

EJB Firebird Glassfish

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
nick_name



Joined: 04 Sep 2009
Posts: 1

PostPosted: Fri Sep 04, 2009 6:07 pm    Post subject: EJB Firebird Glassfish Reply with quote

Hola compañeros foristas...

Estoy desarrollando un proyecto con EJB 3, mi base de datos es Firebird 2.1, el servidor de aplicaciones es Glassfish, del lado de la presentacion es Jsf 1.2 con Icefaces 1.8.

Tengo un EJB donde hago la siguiente consulta:
Code:

public List<ServicioProveedor> getPorLetra(Object letra, int posicionInicio, int tamañoFragmento) {
           return em.createQuery("select object(o) from ServicioProveedor as o WHERE o.servicio.nombre LIKE :letra ORDER BY o.servicio.nombre ASC")
                .setParameter("letra", letra.toString().toUpperCase() + "%")
                .setFirstResult(posicionInicio)
                .setMaxResults(tamañoFragmento)
                .getResultList();
    }

El problema es que cuando ejecuto mi aplicacion y ejecuto la consulta varias veces de repente me manda el siguiente error:
Code:
 
javax.ejb.EJBException: nested exception is: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
   java.rmi.RemoteException: null; nested exception is:
   Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b04-fcs (04/11/2008))): oracle.toplink.essentials.exceptions.DatabaseException
Internal Exception: org.firebirdsql.jdbc.FBDriverNotCapableException: Not yet implemented.
Error Code: 0


Al ejecutar el metodo para ejecutar la consulta lo que hace es ejecutarla y recargar la misma pagina para que muestre los mismos datos:
Code:

    public String next() {
        if (primerRegistro + tamañoFragmento < this.totalRegistros) {
            primerRegistro += tamañoFragmento;
        }
        this.ejecutarFiltro(filtroSeleccionado);
        return "catalogoServicios";
    }


el metodo ejecutar filtro:
Code:

    private void ejecutarFiltro(String tipoFiltro) {
        switch (ComandoFiltro.getOpcion(tipoFiltro)) {
            case Proveedores:
                this.listaDatos = new ListDataModel(this.servicioProveedorBean.getPorProveedorLetra(this.elementoSeleccionado, this.letraCatalogo, this.primerRegistro, this.tamañoFragmento));
                this.indice = this.primerRegistro;
                this.totalRegistros = this.servicioProveedorBean.getTotalServiciosPorProveedorLetra(this.elementoSeleccionado, this.letraCatalogo);
                break;
            case Convenios:
                this.listaDatos = new ListDataModel(this.servicioProveedorBean.getPorConvenioLetra(this.elementoSeleccionado, this.letraCatalogo, this.primerRegistro, this.tamañoFragmento));
                this.indice = this.primerRegistro;
                this.totalRegistros = servicioProveedorBean.getTotalServiciosPorConvenioLetra(this.elementoSeleccionado, this.letraCatalogo);
                break;
            case Todos:
                this.listaDatos = new ListDataModel(this.servicioProveedorBean.getPorLetra(this.letraCatalogo, this.primerRegistro, this.tamañoFragmento));
                this.indice = this.primerRegistro;
                this.totalRegistros = servicioProveedorBean.getTotalServiciosPorLetra(this.letraCatalogo);
                break;
            default:
                System.out.println("error");
                break;
        }
    }


La ejecucion va bien solo algunas veces pero despues de varias ejecuciones lanza el error antes comentado... Yo la verdad no se si sea problema de Firebird o de la vista (JSF, ICEfaces)... Si alguien aya utilizado esta combinacion y tenga alguna idea de que es lo que estoy haciendo mal que me pueda iluminar un poco se lo agradeceria mucho...
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo