Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/11/2014, 18:42
drifftle
 
Fecha de Ingreso: junio-2013
Mensajes: 8
Antigüedad: 9 años
Puntos: 0
por que cuando hago una consulta jpql, netbeans me tira un error

[EL Warning]: 2014-11-13 19:00:16.536--UnitOfWork(1582228806)--Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseExcepti on
Internal Exception: org.postgresql.util.PSQLException: ERROR: no están implementadas las referencias entre bases de datos: «buenagro.public.tbl_usuario»
Position: 13
Error Code: 0
Call: INSERT INTO BUENAGRO.public.tbl_usuario ("cod_usuario", "clave", "email", "identificacion", "primer_apellido", "primer_nombre", "segundo_apellido", "segundo_nombre") VALUES (?, ?, ?, ?, ?, ?, ?, ?)
bind => [8 parameters bound]
Query: InsertObjectQuery(Dm.TblUsuario[ codUsuario=20 ])
13-Nov-2014 19:00:16.539 WARNING [http-nio-8084-exec-6] com.sun.faces.lifecycle.InvokeApplicationPhase.exe cute #{usuarioBean.crear()}: javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseExcepti on
Internal Exception: org.postgresql.util.PSQLException: ERROR: no están implementadas las referencias entre bases de datos: «buenagro.public.tbl_usuario»
Position: 13
Error Code: 0
Call: INSERT INTO BUENAGRO.public.tbl_usuario ("cod_usuario", "clave", "email", "identificacion", "primer_apellido", "primer_nombre", "segundo_apellido", "segundo_nombre") VALUES (?, ?, ?, ?, ?, ?, ?, ?)
bind => [8 parameters bound]
Query: InsertObjectQuery(Dm.TblUsuario[ codUsuario=20 ])
javax.faces.FacesException: #{usuarioBean.crear()}: javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseExcepti on
Internal Exception: org.postgresql.util.PSQLException: ERROR: no están implementadas las referencias entre bases de datos: «buenagro.public.tbl_usuario»
Position: 13
Error Code: 0
Call: INSERT INTO BUENAGRO.public.tbl_usuario ("cod_usuario", "clave", "email", "identificacion", "primer_apellido", "primer_nombre", "segundo_apellido", "segundo_nombre") VALUES (?, ?, ?, ?, ?, ?, ?, ?)
bind => [8 parameters bound]
Query: InsertObjectQuery(Dm.TblUsuario[ codUsuario=20 ])
at com.sun.faces.application.ActionListenerImpl.proce ssAction(ActionListenerImpl.java:118)
at javax.faces.component.UICommand.broadcast(UIComman d.java:315)
at javax.faces.component.UIViewRoot.broadcastEvents(U IViewRoot.java:790)
at javax.faces.component.UIViewRoot.processApplicatio n(UIViewRoot.java:1282)
at com.sun.faces.lifecycle.InvokeApplicationPhase.exe cute(InvokeApplicationPhase.java:81)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:1 01)
at com.sun.faces.lifecycle.LifecycleImpl.execute(Life cycleImpl.java:198)
at javax.faces.webapp.FacesServlet.service(FacesServl et.java:646)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:206)
at org.apache.tomcat.websocket.server.WsFilter.doFilt er(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:206)
at org.netbeans.modules.web.monitor.server.MonitorFil ter.doFilter(MonitorFilter.java:393)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:106)
at org.apache.catalina.authenticator.AuthenticatorBas e.invoke(AuthenticatorBase.java:503)
at org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:136)
at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve. invoke(AbstractAccessLogValve.java:610)
at org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:526)
at org.apache.coyote.http11.AbstractHttp11Processor.p rocess(AbstractHttp11Processor.java:1078)
at org.apache.coyote.AbstractProtocol$AbstractConnect ionHandler.process(AbstractProtocol.java:655)
at org.apache.coyote.http11.Http11NioProtocol$Http11C onnectionHandler.process(Http11NioProtocol.java:22 2)
at org.apache.tomcat.util.net.NioEndpoint$SocketProce ssor.doRun(NioEndpoint.java:1566)
at org.apache.tomcat.util.net.NioEndpoint$SocketProce ssor.run(NioEndpoint.java:1523)
at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:615)
at org.apache.tomcat.util.threads.TaskThread$Wrapping Runnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: javax.faces.el.EvaluationException: javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseExcepti on
Internal Exception: org.postgresql.util.PSQLException: ERROR: no están implementadas las referencias entre bases de datos: «buenagro.public.tbl_usuario»
Position: 13
Error Code: 0
Call: INSERT INTO BUENAGRO.public.tbl_usuario ("cod_usuario", "clave", "email", "identificacion", "primer_apellido", "primer_nombre", "segundo_apellido", "segundo_nombre") VALUES (?, ?, ?, ?, ?, ?, ?, ?)
bind => [8 parameters bound]
Query: InsertObjectQuery(Dm.TblUsuario[ codUsuario=20 ])
at javax.faces.component.MethodBindingMethodExpressio nAdapter.invoke(MethodBindingMethodExpressionAdapt er.java:101)
at com.sun.faces.application.ActionListenerImpl.proce ssAction(ActionListenerImpl.java:102)
... 32 more
Caused by: javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseExcepti on
Internal Exception: org.postgresql.util.PSQLException: ERROR: no están implementadas las referencias entre bases de datos: «buenagro.public.tbl_usuario»
Position: 13
Error Code: 0
Call: INSERT INTO BUENAGRO.public.tbl_usuario ("cod_usuario", "clave", "email", "identificacion", "primer_apellido", "primer_nombre", "segundo_apellido", "segundo_nombre") VALUES (?, ?, ?, ?, ?, ?, ?, ?)
bind => [8 parameters bound]
Query: InsertObjectQuery(Dm.TblUsuario[ codUsuario=20 ])
at org.eclipse.persistence.internal.jpa.EntityManager Impl.flush(EntityManagerImpl.java:868)
at Dao.UsuarioJpaImpl.crear(UsuarioJpaImpl.java:36)
at Dao.UsuarioJpaImpl.crear(UsuarioJpaImpl.java:17)
at Web.UsuarioBean.crear(UsuarioBean.java:133)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.el.parser.AstValue.invoke(AstValue.java :245)
at org.apache.el.MethodExpressionImpl.invoke(MethodEx pressionImpl.java:277)
at com.sun.faces.facelets.el.TagMethodExpression.invo ke(TagMethodExpression.java:105)
at javax.faces.component.MethodBindingMethodExpressio nAdapter.invoke(MethodBindingMethodExpressionAdapt er.java:87)
... 33 more
Caused by: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseExcepti on
Internal Exception: org.postgresql.util.PSQLException: ERROR: no están implementadas las referencias entre bases de datos: «buenagro.public.tbl_usuario»
Position: 13
Error Code: 0
Call: INSERT INTO BUENAGRO.public.tbl_usuario ("cod_usuario", "clave", "email", "identificacion", "primer_apellido", "primer_nombre", "segundo_apellido", "segundo_nombre") VALUES (?, ?, ?, ?, ?, ?, ?, ?)
bind => [8 parameters bound]
Query: InsertObjectQuery(Dm.TblUsuario[ codUsuario=20 ])
at org.eclipse.persistence.exceptions.DatabaseExcepti on.sqlException(DatabaseException.java:340)
at org.eclipse.persistence.internal.databaseaccess.Da tabaseAccessor.processExceptionForCommError(Databa seAccessor.java:1611)
at org.eclipse.persistence.internal.databaseaccess.Da tabaseAccessor.executeDirectNoSelect(DatabaseAcces sor.java:898)
at org.eclipse.persistence.internal.databaseaccess.Da tabaseAccessor.executeNoSelect(DatabaseAccessor.ja va:962)
at org.eclipse.persistence.internal.databaseaccess.Da tabaseAccessor.basicExecuteCall(DatabaseAccessor.j ava:631)
at org.eclipse.persistence.internal.databaseaccess.Da tabaseAccessor.executeCall(DatabaseAccessor.java:5 58)
at org.eclipse.persistence.internal.sessions.Abstract Session.basicExecuteCall(AbstractSession.java:2002 )
at org.eclipse.persistence.sessions.server.ClientSess ion.executeCall(ClientSession.java:298)
at org.eclipse.persistence.internal.queries.Datasourc eCallQueryMechanism.executeCall(DatasourceCallQuer yMechanism.java:242)
at org.eclipse.persistence.internal.queries.Datasourc eCallQueryMechanism.executeCall(DatasourceCallQuer yMechanism.java:228)
at org.eclipse.persistence.internal.queries.Datasourc eCallQueryMechanism.insertObject(DatasourceCallQue ryMechanism.java:377)
at org.eclipse.persistence.internal.queries.Statement QueryMechanism.insertObject(StatementQueryMechanis m.java:165)
at org.eclipse.persistence.internal.queries.Statement QueryMechanism.insertObject(StatementQueryMechanis m.java:180)
at org.eclipse.persistence.internal.queries.DatabaseQ ueryMechanism.insertObjectForWrite(DatabaseQueryMe chanism.java:489)
at org.eclipse.persistence.queries.InsertObjectQuery. executeCommit(InsertObjectQuery.java:80)

si pueden ayudarme se los agradeceria