Advertisement
Guest User

Untitled

a guest
Jun 18th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.78 KB | None | 0 0
  1. Hibernate: {call CLIP_403(?,?,?,?,?,?,?,?,?,?,?)}
  2. 2018-06-18 10:47:25 WARN o.h.e.jdbc.spi.SqlExceptionHelper - SQL Error: 6550, SQLState: 65000
  3. 2018-06-18 10:47:25 ERROR o.h.e.jdbc.spi.SqlExceptionHelper - ORA-06550: línea 1, columna 7:
  4. PLS-00306: wrong number or types of arguments in call to 'CLIP_403'
  5. ORA-06550: línea 1, columna 7:
  6. PL/SQL: Statement ignored
  7.  
  8. 2018-06-18 10:47:25 DEBUG o.s.w.s.m.m.a.ExceptionHandlerExceptionResolver -
  9. Resolving exception from handler [public org.springframework.web.servlet.ModelAndView com.grupo2.SIAV.controlador.Cliv401Controlador.guardarModificacionCliente(org.springframework.web.servlet.ModelAndView,com.grupo2.SIAV.modelo.Cliv401,org.springframework.validation.BindingResult,javax.servlet.http.HttpServletRequest)]: org.springframework.dao.InvalidDataAccessResourceUsageException: Error calling CallableStatement.getMoreResults; SQL [CLIP_403]; nested exception is org.hibernate.exception.SQLGrammarException: Error calling CallableStatement.getMoreResults
  10. 2018-06-18 10:47:25 DEBUG o.s.w.s.m.a.ResponseStatusExceptionResolver - Resolving exception from handler [public org.springframework.web.servlet.ModelAndView com.grupo2.SIAV.controlador.Cliv401Controlador.guardarModificacionCliente(org.springframework.web.servlet.ModelAndView,com.grupo2.SIAV.modelo.Cliv401,org.springframework.validation.BindingResult,javax.servlet.http.HttpServletRequest)]: org.springframework.dao.InvalidDataAccessResourceUsageException: Error calling CallableStatement.getMoreResults; SQL [CLIP_403]; nested exception is org.hibernate.exception.SQLGrammarException: Error calling CallableStatement.getMoreResults
  11. 2018-06-18 10:47:25 DEBUG o.s.w.s.m.s.DefaultHandlerExceptionResolver - Resolving exception from handler [public org.springframework.web.servlet.ModelAndView com.grupo2.SIAV.controlador.Cliv401Controlador.guardarModificacionCliente(org.springframework.web.servlet.ModelAndView,com.grupo2.SIAV.modelo.Cliv401,org.springframework.validation.BindingResult,javax.servlet.http.HttpServletRequest)]: org.springframework.dao.InvalidDataAccessResourceUsageException: Error calling CallableStatement.getMoreResults; SQL [CLIP_403]; nested exception is org.hibernate.exception.SQLGrammarException: Error calling CallableStatement.getMoreResults
  12. 2018-06-18 10:47:25 DEBUG o.s.web.servlet.DispatcherServlet - Could not complete request
  13. org.springframework.dao.InvalidDataAccessResourceUsageException: Error calling CallableStatement.getMoreResults; SQL [CLIP_403]; nested exception is org.hibernate.exception.SQLGrammarException: Error calling CallableStatement.getMoreResults
  14. at org.springframework.orm.jpa.vendor.HibernateJpaDialect.convertHibernateAccessException(HibernateJpaDialect.java:261)
  15. at org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:244)
  16. at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.translateExceptionIfPossible(AbstractEntityManagerFactoryBean.java:525)
  17. at org.springframework.dao.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:59)
  18. at org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:209)
  19. at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:147)
  20. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  21. at org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:133)
  22. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  23. at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
  24. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  25. at org.springframework.data.repository.core.support.SurroundingTransactionDetectorMethodInterceptor.invoke(SurroundingTransactionDetectorMethodInterceptor.java:57)
  26. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
  27. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
  28.  
  29. CREATE OR REPLACE PROCEDURE CLIP_403 (llave integer, nom varchar2, apell varchar2, sexoo integer, tipo_doc integer , num_doc varchar2, fec_nac date, estado integer, dir varchar2, tel varchar2, cel varchar2)
  30. IS
  31. BEGIN
  32. UPDATE CLIENTE SET NOM_CLIENTE = nom, DIRECCION = dir, TELEFONO = tel, CELULAR = cel WHERE ID_CLIENTE = llave;
  33. UPDATE PERSONAL SET ID_TIPO_DOC = tipo_doc, ID_EST_CIVIL = estado, APELLIDO = apell, NUM_DOC_PER = num_doc, FECHA_NACIMIENTO = fec_nac, SEXO = sexoo WHERE ID_CLIENTE = llave;
  34. COMMIT;
  35. END;
  36.  
  37. cliv401Repo.registrar(cli.getNomCliente(), cli.getApellido(), cli.getSexo(),
  38. cli.getTipoDoc(), cli.getNumDocPer(), cli.getFechaNacimiento(), cli.getEstCivil(),
  39. cli.getDireccion(), cli.getTelefono(), cli.getCelular());
  40.  
  41. @Procedure(name = "CLIP_403")
  42. void actualizar(@Param("llave") Integer llave,
  43. @Param("nom") String nom,
  44. @Param("apell") String apell,
  45. @Param("sexo") Integer sexo,
  46. @Param("tipo_doc") Integer tipoDoc,
  47. @Param("num_doc") String numDoc,
  48. @Param("fec_nac") Date fechaNac,
  49. @Param("estado") Integer estado,
  50. @Param("dir") String dir,
  51. @Param("tel") String tel,
  52. @Param("cel") String cel);
  53.  
  54. @NamedStoredProcedureQueries({
  55. @NamedStoredProcedureQuery(
  56. name = "CLIP_403",
  57. procedureName = "CLIP_403",
  58. parameters = {
  59. @StoredProcedureParameter(mode = ParameterMode.IN, name = "llave", type = Integer.class)
  60. ,
  61. @StoredProcedureParameter(mode = ParameterMode.IN, name = "nom", type = String.class)
  62. ,
  63. @StoredProcedureParameter(mode = ParameterMode.IN, name = "apell", type = String.class)
  64. ,
  65. @StoredProcedureParameter(mode = ParameterMode.IN, name = "sexo", type = Integer.class)
  66. ,
  67. @StoredProcedureParameter(mode = ParameterMode.IN, name = "tipo_doc", type = Integer.class)
  68. ,
  69. @StoredProcedureParameter(mode = ParameterMode.IN, name = "num_doc", type = String.class)
  70. ,
  71. @StoredProcedureParameter(mode = ParameterMode.IN, name = "fec_nac", type = Date.class)
  72. ,
  73. @StoredProcedureParameter(mode = ParameterMode.IN, name = "estado", type = Integer.class)
  74. ,
  75. @StoredProcedureParameter(mode = ParameterMode.IN, name = "dir", type = String.class)
  76. ,
  77. @StoredProcedureParameter(mode = ParameterMode.IN, name = "tel", type = String.class)
  78. ,
  79. @StoredProcedureParameter(mode = ParameterMode.IN, name = "cel", type = String.class)
  80. }
  81. )})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement