martes, 29 de julio de 2014

NoSuchElementException

http://stackoverflow.com/questions/8032099/no-such-element-exception 

Convert Calendar to Date in Java

Converting is easy, setting date and time is a little tricky. Here's an example:
Calendar cal = Calendar.getInstance();
cal.set(Calendar.YEAR, 2000);
cal.set(Calendar.MONTH, 0);
cal.set(Calendar.DAY_OF_MONTH, 1);
cal.set(Calendar.HOUR_OF_DAY, 1);
cal.set(Calendar.MINUTE, 1);
cal.set(Calendar.SECOND, 0);
cal.set(Calendar.MILLISECOND, 0);
stmt.setDate(1, new java.sql.Date(cal.getTimeInMillis()));

martes, 22 de julio de 2014

java.sql.SQLException: ORA-01403: no data found ORA-06512

se esperaba return procedure oracle.

java.sql.SQLException: ORA-01403: no data found ORA-06512

Debido a que existe un error al momento de escribir el procedimiento, recordar q debe ser escrito asi:

DECLARE
  RetVal VARCHAR2(32767);
  ID_EVAL VARCHAR2(32767);

BEGIN
  ID_EVAL := 111111;

  RetVal := PHOSTOCLDS.FUN_NOMBRE_FUNCION ( ID_EVAL );
  COMMIT;

END;

Y NO ASI:

DECLARE
  RetVal VARCHAR2(32767);
  ID_EVAL VARCHAR2(32767);

BEGIN
  ID_EVAL := 111111;

  RetVal := PHOSTOCLDS.FUN_NOMBRE_FUNCION ( ID_EVAL IN VARCHAR2);
  COMMIT;

END;

Could not publish the server

1. kill the oracle.exe process if it is occuping 8080 same port of the server.
2. 





Cerrar eclipse,
Eliminar carpetas mostradas arriba
Inicar eclipse

 Se inicia el server se corre la app

The AXIS engine could not find a target service to invoke!

Hey dear, you have only to change the endpoint path... ! check it out!!!!!!!!!!!!!

1. copy the wsdl of the server ws
2. generate client clases binding stub and other classes that allow the communication thought the web service tool of eclipse.
3. change the endpoint! correctly:

newService=http://ip:port/nameOfWSOperation/services/nameOfWSwsdl





AXIS IWAB0489E Error when deploying Web service to Axis runtime axis-admin failed with {http://xml.apache.org/axis/}HTTP (404)Not found

Error:
IWAB0489E Error when deploying Web service to Axis runtime
  axis-admin failed with  {http://xml.apache.org/axis/}HTTP (404)Not found

The solution for this problem is:


1. control+ alt+ sup , delete the oracle.exe process because maybe it is running in the same port of eclipse.
2. click in the proyect and clean it project - clean
3. right click in the server and clean
4. close eclipse
5. clean the project
6. debug eclipse
7. click on the project and web service, generate web service.


jueves, 10 de julio de 2014

Gestión de incidencias

http://prezi.com/gb0u1cesglkz/gestion-de-incidentes-itil-vs-cobit/
http://itil.osiatis.es/Curso_ITIL/Gestion_Servicios_TI/gestion_de_incidentes/introduccion_objetivos_gestion_de_incidentes/introduccion_objetivos_gestion_de_incidentes.php