Created
April 29, 2013 17:55
-
-
Save Isxida/5483401 to your computer and use it in GitHub Desktop.
Persiste el error, aun asi se haya implementado el metodo getAsString de Converter y el getAsObject
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.sunarp.copiasimple.bean; | |
import java.io.Serializable; | |
import java.util.ArrayList; | |
import java.util.Iterator; | |
import java.util.List; | |
import javax.faces.bean.ManagedBean; | |
import javax.faces.bean.ManagedProperty; | |
import javax.faces.bean.SessionScoped; | |
import javax.faces.component.UIComponent; | |
import javax.faces.context.FacesContext; | |
import javax.faces.convert.Converter; | |
import javax.faces.convert.ConverterException; | |
import javax.faces.convert.FacesConverter; | |
import javax.faces.model.SelectItem; | |
import org.primefaces.model.DualListModel; | |
import org.sunarp.copiasimple.beanconsulta.BeanBuscarTituloActosRegistral; | |
import org.sunarp.copiasimple.beanconsulta.BeanBuscarTituloNumero; | |
import org.sunarp.copiasimple.beanconsulta.BeanBuscarTituloParticipantePEN; | |
import org.sunarp.copiasimple.beanconsulta.BeanBuscarTituloParticipantePN; | |
import org.sunarp.copiasimple.beanconsulta.BeanBuscarTituloPartida; | |
import org.sunarp.copiasimple.beanconsulta.BeanBuscarTituloPresentantePN; | |
import org.sunarp.copiasimple.bo.IBusquedaTituloBo; | |
import org.sunarp.copiasimple.bo.IComponentesBo; | |
import org.sunarp.copiasimple.modelo.RegisPublico; | |
import org.sunarp.copiasimple.modelo.TmDocIden; | |
import org.primefaces.component.picklist.PickList; | |
import org.primefaces.event.TransferEvent; | |
@ManagedBean(name = "cTitulo") | |
@SessionScoped | |
public class BeanManegerRegisPublico implements Serializable,Converter { | |
@ManagedProperty(value = "#{BeanComponentesBo}") | |
IComponentesBo componentesBo; | |
@ManagedProperty(value = "#{BeanBusquedaTituloBo}") | |
IBusquedaTituloBo busquedaTituloBo; | |
private static final long serialVersionUID = 1L; | |
private String selectedItemCombo; | |
private String selectedItemDocumento; | |
private List<RegisPublico> lista = new ArrayList<RegisPublico>(); | |
private List<SelectItem> listaCombo; | |
private List<SelectItem> listaDocumento; | |
private List<RegisPublico> sourceZN = new ArrayList<RegisPublico>(); | |
private List<RegisPublico> targetZN = new ArrayList<RegisPublico>(); | |
private DualListModel<RegisPublico> zonaRegistral; | |
private String NTanyo; | |
private String NTNroTitulo; | |
private String selectedzonas; | |
private UIComponent zRPickListComponent; | |
//para la tabla | |
private String rPres; | |
private String rOficReg; | |
private String rAnyo; | |
//para el resultado | |
private List<BeanBuscarTituloNumero> listares; | |
// para hacer las pruebas ... | |
private List<BeanBuscarTituloNumero> RtitNum; | |
private List<BeanBuscarTituloPartida> RtitPartida; | |
private List<BeanBuscarTituloActosRegistral> RtitAR; | |
private List<BeanBuscarTituloPresentantePN> RtitPPN; | |
private List<BeanBuscarTituloParticipantePEN> RtitPPEN; | |
public List<SelectItem> getListaCombo() { | |
listaCombo = new ArrayList<SelectItem>(); | |
List<RegisPublico> lista = getComponentesBo().ListarZonaRegistral(); | |
for (RegisPublico iterator : lista) { | |
listaCombo.add(new SelectItem(iterator.getRegPubId(), iterator | |
.getNombre())); | |
} | |
return listaCombo; | |
} | |
public void setListaCombo(List<SelectItem> listaTres) { | |
this.listaCombo = listaTres; | |
} | |
public IComponentesBo getComponentesBo() { | |
return componentesBo; | |
} | |
public void setComponentesBo(IComponentesBo componentesBo) { | |
this.componentesBo = componentesBo; | |
} | |
public IBusquedaTituloBo getBusquedaTituloBo() { | |
return busquedaTituloBo; | |
} | |
public void setBusquedaTituloBo(IBusquedaTituloBo busquedaTituloBo) { | |
this.busquedaTituloBo = busquedaTituloBo; | |
} | |
public List<RegisPublico> getLista() { | |
lista = new ArrayList<RegisPublico>(); | |
lista.addAll(getComponentesBo().ListarZonaRegistral()); | |
return lista; | |
} | |
public void setLista(List<RegisPublico> lista) { | |
this.lista = lista; | |
} | |
public String getSelectedItemCombo() { | |
return selectedItemCombo; | |
} | |
public void setSelectedItemCombo(String selectedItemCombo) { | |
this.selectedItemCombo = selectedItemCombo; | |
} | |
public String getSelectedItemDocumento() { | |
return selectedItemDocumento; | |
} | |
public void setSelectedItemDocumento(String selectedItemDocumento) { | |
this.selectedItemDocumento = selectedItemDocumento; | |
} | |
public List<SelectItem> getListaDocumento() { | |
listaDocumento = new ArrayList<SelectItem>(); | |
List<TmDocIden> lista = getComponentesBo().ListaTipoDocIdentidad(); | |
for (TmDocIden iterator : lista) { | |
listaDocumento.add(new SelectItem(iterator.getTipoDocId(), iterator | |
.getNombreAbrev())); | |
} | |
return listaDocumento; | |
} | |
public void setListaDocumento(List<SelectItem> listaDocumento) { | |
this.listaDocumento = listaDocumento; | |
} | |
public List<BeanBuscarTituloActosRegistral> getListaPrueba() { | |
/* | |
* listaPrueba = new ArrayList<BeanBuscarTituloNumero>(); | |
* listaPrueba.addAll | |
* (getBusquedaTituloBo().BuscarTituloNumero("00000212", "2012", "02")); | |
*/ | |
RtitAR = new ArrayList<BeanBuscarTituloActosRegistral>(); | |
RtitAR.addAll(getBusquedaTituloBo().listarActosRegistrales( | |
"00000212", "2002", "02", "02")); | |
return RtitAR; | |
} | |
public void setListaPrueba(List<BeanBuscarTituloActosRegistral> listaPrueba) { | |
this.RtitAR = listaPrueba; | |
} | |
public List<BeanBuscarTituloPresentantePN> getListarPersona() { | |
// 01:Busqueda por ApePat y nombres | |
// 02:Busqueda por apePat,apeMat,nombres | |
// 03:Busqueda por tipoDocumento y Numero de Documento | |
String tipoBusqueda = "03"; | |
RtitPPN = new ArrayList<BeanBuscarTituloPresentantePN>(); | |
RtitPPN.addAll(getBusquedaTituloBo().buscarTituloPresentatePN( | |
"LOPEZ", "PAREDES", "JUANA", "1025617461", "01", tipoBusqueda)); | |
return RtitPPN; | |
} | |
public void setListarPersona( | |
List<BeanBuscarTituloPresentantePN> listarPersona) { | |
this.RtitPPN = listarPersona; | |
} | |
public List<BeanBuscarTituloParticipantePEN> getListaParticipante() { | |
String tipoBusqueda = "01"; | |
RtitPPEN = new ArrayList<BeanBuscarTituloParticipantePEN>(); | |
RtitPPEN.addAll(getBusquedaTituloBo() | |
.buscarTituloParticipantePEN("GAMER", "RODRIGUEZ", "TARCIL", | |
"32117951 ", "09", tipoBusqueda)); | |
// addAll(getBusquedaTituloBo().buscarTituloPresentatePN( | |
// "GAMER", "RODRIGUEZ", "TARCIL", "32117951 ", "09", tipoBusqueda)); | |
return RtitPPEN; | |
} | |
public void setListaParticipante( | |
List<BeanBuscarTituloParticipantePEN> listaParticipante) { | |
this.RtitPPEN = listaParticipante; | |
} | |
public List<RegisPublico> getTargetZN() { | |
return targetZN; | |
} | |
public void setTargetZN(List<RegisPublico> targetZN) { | |
this.targetZN = targetZN; | |
} | |
public DualListModel<RegisPublico> getZonaRegistral() { | |
lista.add(new RegisPublico("02", "ZONA REGISTRAL VIII - HUANCAYO")); | |
lista.add(new RegisPublico("01", "ZONA REGISTRAL IX - LIMA")); | |
lista.add(new RegisPublico("03", "ZONA REGISTRAL XII - AREQUIPA")); | |
lista.add(new RegisPublico("05", "ZONA REGISTRAL I - PIURA")); | |
lista.add(new RegisPublico("07", "ZONA REGISTRAL XIII - TACNA")); | |
lista.add(new RegisPublico("10", "ZONA REGISTRAL XI - ICA")); | |
lista.add(new RegisPublico("04", "ZONA REGISTRAL VII - HUARAZ")); | |
lista.add(new RegisPublico("08", "ZONA REGISTRAL V - TRUJILLO")); | |
lista.add(new RegisPublico("09", "ZONA REGISTRAL IV - IQUITOS")); | |
lista.add(new RegisPublico("12","ZONA REGISTRAL III - MOYOBAMBA")); | |
lista.add(new RegisPublico("13", "ZONA REGISTRAL VI - PUCALLPA")); | |
lista.add(new RegisPublico("11","ZONA REGISTRAL II - CHICLAYO")); | |
lista.add(new RegisPublico("06","ZONA REGISTRAL X - CUSCO")); | |
zonaRegistral = new DualListModel<RegisPublico>(lista,targetZN); | |
return zonaRegistral; | |
} | |
public void setZonaRegistral(DualListModel<RegisPublico> zonaRegistral) { | |
this.zonaRegistral = zonaRegistral; | |
} | |
public List<RegisPublico> getSourceZN() { | |
return sourceZN; | |
} | |
public void setSourceZN(List<RegisPublico> sourceZN) { | |
this.sourceZN = sourceZN; | |
} | |
public List<BeanBuscarTituloPartida> getRtitPartida() { | |
return RtitPartida; | |
} | |
public void setRtitPartida(List<BeanBuscarTituloPartida> rtitPartida) { | |
RtitPartida = rtitPartida; | |
} | |
public List<BeanBuscarTituloActosRegistral> getRtitAR() { | |
return RtitAR; | |
} | |
public void setRtitAR(List<BeanBuscarTituloActosRegistral> rtitAR) { | |
RtitAR = rtitAR; | |
} | |
public List<BeanBuscarTituloPresentantePN> getRtitPPN() { | |
return RtitPPN; | |
} | |
public void setRtitPPN(List<BeanBuscarTituloPresentantePN> rtitPPN) { | |
RtitPPN = rtitPPN; | |
} | |
public List<BeanBuscarTituloParticipantePEN> getRtitPPEN() { | |
return RtitPPEN; | |
} | |
public void setRtitPPEN(List<BeanBuscarTituloParticipantePEN> rtitPPEN) { | |
RtitPPEN = rtitPPEN; | |
} | |
public String obtRtitNum(){ | |
System.out.println(NTNroTitulo + NTanyo); | |
StringBuilder sb = new StringBuilder(); | |
listares = new ArrayList<BeanBuscarTituloNumero>(); | |
List<BeanBuscarTituloNumero> prueba = new ArrayList<BeanBuscarTituloNumero>(); | |
List<RegisPublico> zR = zonaRegistral.getTarget(); | |
System.out.println(zR.size()); | |
for (Iterator iterator = zR.iterator(); iterator.hasNext();) { | |
sb.append(getAsString(null, null, iterator.next())+","); | |
} | |
String resRegPub; //para quitar el "," que esta demás | |
System.out.println(sb.toString()); | |
resRegPub = sb.substring(0,sb.length()-1); | |
System.out.println("sin , : "+resRegPub); | |
RtitNum = new ArrayList<BeanBuscarTituloNumero>(); | |
RtitNum.addAll(getBusquedaTituloBo() | |
.buscarTituloNumero(NTNroTitulo, NTanyo, resRegPub.toString())); | |
for (int i = 0; i < RtitNum.size(); i++) { | |
BeanBuscarTituloNumero a = RtitNum.get(i); | |
System.out.println("Datos : "+ a.getNumTitu() +" "+a.getAreaRegId()+" "+a.getEstado()+" "+a.getNombreZona()); | |
listares.add(a); | |
} | |
return "./rconsultaTitulo.xhtml"; | |
} | |
public void setRtitNum(List<BeanBuscarTituloNumero> rtitNum) { | |
RtitNum = rtitNum; | |
} | |
public String getNTanyo() { | |
return NTanyo; | |
} | |
public void setNTanyo(String nTanyo) { | |
NTanyo = nTanyo; | |
} | |
public String getNTNroTitulo() { | |
return NTNroTitulo; | |
} | |
public void setNTNroTitulo(String nTNroTitulo) { | |
NTNroTitulo = nTNroTitulo; | |
} | |
public String getSelectedPlayerNames() { | |
return selectedzonas; | |
} | |
public void setSelectedPlayerNames(String selectedPlayerNames) { | |
this.selectedzonas = selectedPlayerNames; | |
} | |
public String getSelectedzonas() { | |
return selectedzonas; | |
} | |
public void setSelectedzonas(String selectedzonas) { | |
this.selectedzonas = selectedzonas; | |
} | |
public String getrPres() { | |
return rPres; | |
} | |
public void setrPres(String rPres) { | |
this.rPres = rPres; | |
} | |
public String getrOficReg() { | |
return rOficReg; | |
} | |
public void setrOficReg(String rOficReg) { | |
this.rOficReg = rOficReg; | |
} | |
public String getrAnyo() { | |
return rAnyo; | |
} | |
public void setrAnyo(String rAnyo) { | |
this.rAnyo = rAnyo; | |
} | |
public List<BeanBuscarTituloNumero> getListares() { | |
return listares; | |
} | |
public void setListares(List<BeanBuscarTituloNumero> listares) { | |
this.listares = listares; | |
} | |
public Object getAsObject(FacesContext context, UIComponent component, | |
String value) throws ConverterException { | |
if(value.trim().equals("")) | |
return null; | |
else{ | |
String number = value; | |
for (RegisPublico rp : lista ){ | |
if(rp.getRegPubId() == number) | |
return rp; | |
} | |
} | |
return null; | |
} | |
public String getAsString(FacesContext context, UIComponent component, | |
Object value) throws ConverterException { | |
if (value == null){ | |
return null; | |
}else { | |
return String.valueOf(((RegisPublico) value).getRegPubId()); //Caused by: javax.faces.el.EvaluationException: java.lang.ClassCastException | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abr 29, 2013 12:45:57 PM org.apache.catalina.core.AprLifecycleListener init | |
INFORMACIÓN: La biblioteca nativa de Apache Tomcat basada en ARP que permite un rendimiento óptimo en entornos de desarrollo no ha sido hallada en java.library.path: C:\Program Files\IBM\SDPWS_Beta\jdk\jre\bin\default;C:\Program Files\IBM\SDPWS_Beta\jdk\jre\bin;C:\Windows\system32;C:\Windows;D:\app\user\product\11.2.0\dbhome_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\Users\user\Desktop\Isxida\apache-maven-3.0.4\bin;. | |
abr 29, 2013 12:45:57 PM org.apache.tomcat.util.digester.SetPropertiesRule begin | |
AVISO: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:SUNARP' did not find a matching property. | |
abr 29, 2013 12:45:57 PM org.apache.tomcat.util.digester.SetPropertiesRule begin | |
AVISO: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Piloto Base' did not find a matching property. | |
abr 29, 2013 12:45:57 PM org.apache.tomcat.util.digester.SetPropertiesRule begin | |
AVISO: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Prime1' did not find a matching property. | |
abr 29, 2013 12:45:57 PM org.apache.coyote.AbstractProtocol init | |
INFORMACIÓN: Initializing ProtocolHandler ["http-bio-8080"] | |
abr 29, 2013 12:45:57 PM org.apache.coyote.AbstractProtocol init | |
INFORMACIÓN: Initializing ProtocolHandler ["ajp-bio-8009"] | |
abr 29, 2013 12:45:57 PM org.apache.catalina.startup.Catalina load | |
INFORMACIÓN: Initialization processed in 760 ms | |
abr 29, 2013 12:45:57 PM org.apache.catalina.core.StandardService startInternal | |
INFORMACIÓN: Arrancando servicio Catalina | |
abr 29, 2013 12:45:57 PM org.apache.catalina.core.StandardEngine startInternal | |
INFORMACIÓN: Starting Servlet Engine: Apache Tomcat/7.0.34 | |
abr 29, 2013 12:46:00 PM org.apache.catalina.startup.TaglibUriRule body | |
INFORMACIÓN: TLD skipped. URI: http://mojarra.dev.java.net/mojarra_ext is already defined | |
abr 29, 2013 12:46:00 PM org.apache.catalina.startup.TaglibUriRule body | |
INFORMACIÓN: TLD skipped. URI: | |
http://java.sun.com/jsf/html | |
is already defined | |
abr 29, 2013 12:46:00 PM org.apache.catalina.startup.TaglibUriRule body | |
INFORMACIÓN: TLD skipped. URI: http://java.sun.com/jsf/core is already defined | |
abr 29, 2013 12:46:00 PM com.sun.faces.config.ConfigureListener contextInitialized | |
INFORMACIÓN: Inicializando Mojarra 2.0.10 (SNAPSHOT 20121218-2005) para el contexto '/Prime1' | |
abr 29, 2013 12:46:01 PM com.sun.faces.spi.InjectionProviderFactory createInstance | |
INFORMACIÓN: JSF1048: hay presentes anotaciones PostConstruct/PreDestroy. Los métodos de beans administrados marcados con estas anotaciones procesarán dichas anotaciones. | |
abr 29, 2013 12:46:01 PM org.primefaces.webapp.PostConstructApplicationEventListener processEvent | |
INFORMACIÓN: Running on PrimeFaces 3.5 | |
abr 29, 2013 12:46:01 PM com.sun.faces.config.ConfigureListener$WebConfigResourceMonitor$Monitor <init> | |
INFORMACIÓN: Monitoring jndi:/localhost/Prime1/WEB-INF/faces-config.xml for modifications | |
abr 29, 2013 12:46:04 PM org.apache.catalina.core.ApplicationContext log | |
INFORMACIÓN: No Spring WebApplicationInitializer types detected on classpath | |
abr 29, 2013 12:46:04 PM org.apache.catalina.core.ApplicationContext log | |
INFORMACIÓN: Initializing Spring root WebApplicationContext | |
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader). | |
log4j:WARN Please initialize the log4j system properly. | |
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. | |
abr 29, 2013 12:46:07 PM com.sun.faces.config.ConfigureListener contextInitialized | |
INFORMACIÓN: Inicializando Mojarra 2.0.10 (SNAPSHOT 20121218-2005) para el contexto '/SUNARP' | |
abr 29, 2013 12:46:07 PM com.sun.faces.spi.InjectionProviderFactory createInstance | |
INFORMACIÓN: JSF1048: hay presentes anotaciones PostConstruct/PreDestroy. Los métodos de beans administrados marcados con estas anotaciones procesarán dichas anotaciones. | |
abr 29, 2013 12:46:08 PM org.primefaces.webapp.PostConstructApplicationEventListener processEvent | |
INFORMACIÓN: Running on PrimeFaces 3.5 | |
abr 29, 2013 12:46:08 PM com.sun.faces.config.ConfigureListener$WebConfigResourceMonitor$Monitor <init> | |
INFORMACIÓN: Monitoring jndi:/localhost/SUNARP/WEB-INF/faces-config.xml for modifications | |
abr 29, 2013 12:46:10 PM org.apache.catalina.core.ApplicationContext log | |
INFORMACIÓN: No Spring WebApplicationInitializer types detected on classpath | |
abr 29, 2013 12:46:10 PM org.apache.catalina.core.ApplicationContext log | |
INFORMACIÓN: Initializing Spring root WebApplicationContext | |
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader). | |
log4j:WARN Please initialize the log4j system properly. | |
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. | |
abr 29, 2013 12:46:12 PM com.sun.faces.config.ConfigureListener contextInitialized | |
INFORMACIÓN: Inicializando Mojarra 2.0.10 (SNAPSHOT 20121218-2005) para el contexto '/piloto01' | |
abr 29, 2013 12:46:12 PM com.sun.faces.spi.InjectionProviderFactory createInstance | |
INFORMACIÓN: JSF1048: hay presentes anotaciones PostConstruct/PreDestroy. Los métodos de beans administrados marcados con estas anotaciones procesarán dichas anotaciones. | |
abr 29, 2013 12:46:12 PM org.primefaces.webapp.PostConstructApplicationEventListener processEvent | |
INFORMACIÓN: Running on PrimeFaces 3.5 | |
abr 29, 2013 12:46:12 PM org.apache.coyote.AbstractProtocol start | |
INFORMACIÓN: Starting ProtocolHandler ["http-bio-8080"] | |
abr 29, 2013 12:46:12 PM org.apache.coyote.AbstractProtocol start | |
INFORMACIÓN: Starting ProtocolHandler ["ajp-bio-8009"] | |
abr 29, 2013 12:46:12 PM org.apache.catalina.startup.Catalina start | |
INFORMACIÓN: Server startup in 15498 ms | |
000002122002 | |
1 | |
abr 29, 2013 12:46:22 PM com.sun.faces.lifecycle.InvokeApplicationPhase execute | |
AVISO: #{cTitulo.obtRtitNum}: java.lang.ClassCastException: java.lang.String incompatible with org.sunarp.copiasimple.modelo.RegisPublico | |
javax.faces.FacesException: #{cTitulo.obtRtitNum}: java.lang.ClassCastException: java.lang.String incompatible with org.sunarp.copiasimple.modelo.RegisPublico | |
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118) | |
at javax.faces.component.UICommand.broadcast(UICommand.java:315) | |
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794) | |
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259) | |
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81) | |
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) | |
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) | |
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593) | |
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) | |
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) | |
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) | |
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) | |
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) | |
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) | |
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) | |
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936) | |
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) | |
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) | |
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004) | |
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) | |
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) | |
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1121) | |
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614) | |
at java.lang.Thread.run(Thread.java:780) | |
Caused by: javax.faces.el.EvaluationException: java.lang.ClassCastException: java.lang.String incompatible with org.sunarp.copiasimple.modelo.RegisPublico | |
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102) | |
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102) | |
... 23 more | |
Caused by: java.lang.ClassCastException: java.lang.String incompatible with org.sunarp.copiasimple.modelo.RegisPublico | |
at org.sunarp.copiasimple.bean.BeanManegerRegisPublico.getAsString(BeanManegerRegisPublico.java:400) | |
at org.sunarp.copiasimple.bean.BeanManegerRegisPublico.obtRtitNum(BeanManegerRegisPublico.java:290) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55) | |
at java.lang.reflect.Method.invoke(Method.java:613) | |
at org.apache.el.parser.AstValue.invoke(AstValue.java:278) | |
at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:274) | |
at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105) | |
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88) | |
... 24 more | |
abr 29, 2013 12:47:23 PM org.apache.catalina.core.StandardContext reload | |
INFORMACIÓN: Ha comenzado la recarga de Contexto [/SUNARP] | |
abr 29, 2013 12:47:23 PM org.apache.catalina.session.StandardSession writeObject | |
AVISO: No puedo serializar atributo de sesión cTitulo para sesión C2840D07A9F05FA5817C117E15166D1A | |
java.io.NotSerializableException: org.sunarp.copiasimple.dao.ComponentesDao | |
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1200) | |
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548) | |
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1513) | |
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1436) | |
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1194) | |
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548) | |
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1513) | |
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1436) | |
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1194) | |
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548) | |
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1513) | |
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1436) | |
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1194) | |
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548) | |
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1513) | |
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1436) | |
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1194) | |
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548) | |
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1513) | |
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1436) | |
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1194) | |
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548) | |
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1513) | |
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1436) | |
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1194) | |
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:363) | |
at org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1671) | |
at org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:1077) | |
at org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:432) | |
at org.apache.catalina.session.StandardManager.unload(StandardManager.java:353) | |
at org.apache.catalina.session.StandardManager.stopInternal(StandardManager.java:518) | |
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) | |
at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5474) | |
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) | |
at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3913) | |
at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:426) | |
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1345) | |
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1530) | |
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540) | |
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540) | |
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1519) | |
at java.lang.Thread.run(Thread.java:780) | |
abr 29, 2013 12:47:23 PM org.apache.catalina.core.ApplicationContext log | |
INFORMACIÓN: Closing Spring root WebApplicationContext | |
abr 29, 2013 12:47:23 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc | |
GRAVE: La aplicación web [/SUNARP] registró el conductor JDBC [oracle.jdbc.driver.OracleDriver] pero falló al anular el registro mientras la aplicación web estaba parada. Para prevenir un fallo de memoria, se ha anulado el registro del conductor JDBC por la fuerza. | |
abr 29, 2013 12:47:23 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads | |
GRAVE: La aplicación web [/SUNARP] parece haber arrancado un hilo llamado [Resource Destroyer in BasicResourcePool.close()] pero no ha podido pararlo. Esto tiene todas las papeletas de convertirse en un fallo de memoria. | |
abr 29, 2013 12:47:25 PM org.apache.catalina.core.ApplicationContext log | |
INFORMACIÓN: No Spring WebApplicationInitializer types detected on classpath | |
abr 29, 2013 12:47:25 PM org.apache.catalina.core.ApplicationContext log | |
INFORMACIÓN: Initializing Spring root WebApplicationContext | |
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader). | |
log4j:WARN Please initialize the log4j system properly. | |
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. | |
abr 29, 2013 12:47:28 PM com.sun.faces.config.ConfigureListener contextInitialized | |
INFORMACIÓN: Inicializando Mojarra 2.0.10 (SNAPSHOT 20121218-2005) para el contexto '/SUNARP' | |
abr 29, 2013 12:47:28 PM com.sun.faces.spi.InjectionProviderFactory createInstance | |
INFORMACIÓN: JSF1048: hay presentes anotaciones PostConstruct/PreDestroy. Los métodos de beans administrados marcados con estas anotaciones procesarán dichas anotaciones. | |
abr 29, 2013 12:47:29 PM org.primefaces.webapp.PostConstructApplicationEventListener processEvent | |
INFORMACIÓN: Running on PrimeFaces 3.5 | |
abr 29, 2013 12:47:29 PM com.sun.faces.config.ConfigureListener$WebConfigResourceMonitor$Monitor <init> | |
INFORMACIÓN: Monitoring jndi:/localhost/SUNARP/WEB-INF/faces-config.xml for modifications | |
abr 29, 2013 12:47:29 PM org.apache.catalina.session.StandardManager doLoad | |
GRAVE: IOException al cargar sesiones persistidas: java.io.InvalidObjectException: Could not find a SessionFactory [uuid=074ab337-4120-44ff-b012-38e1dfb104e8,name=null] | |
java.io.InvalidObjectException: Could not find a SessionFactory [uuid=074ab337-4120-44ff-b012-38e1dfb104e8,name=null] | |
at org.hibernate.internal.SessionFactoryImpl.locateSessionFactoryOnDeserialization(SessionFactoryImpl.java:1962) | |
at org.hibernate.internal.SessionFactoryImpl.readResolve(SessionFactoryImpl.java:1942) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55) | |
at java.lang.reflect.Method.invoke(Method.java:613) | |
at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:1163) | |
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1836) | |
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1403) | |
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2020) | |
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1944) | |
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1827) | |
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1403) | |
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2020) | |
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1944) | |
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1827) | |
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1403) | |
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2020) | |
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1944) | |
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1827) | |
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1403) | |
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2020) | |
at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:553) | |
at org.springframework.aop.framework.AdvisedSupport.readObject(AdvisedSupport.java:550) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55) | |
at java.lang.reflect.Method.invoke(Method.java:613) | |
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1076) | |
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1922) | |
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1827) | |
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1403) | |
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2020) | |
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1944) | |
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1827) | |
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1403) | |
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2020) | |
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1944) | |
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1827) | |
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1403) | |
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2020) | |
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1944) | |
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1827) | |
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1403) | |
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:408) | |
at org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1595) | |
at org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:1060) | |
at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:284) | |
at org.apache.catalina.session.StandardManager.load(StandardManager.java:204) | |
at org.apache.catalina.session.StandardManager.startInternal(StandardManager.java:491) | |
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) | |
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5294) | |
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) | |
at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3920) | |
at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:426) | |
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1345) | |
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1530) | |
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540) | |
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540) | |
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1519) | |
at java.lang.Thread.run(Thread.java:780) | |
abr 29, 2013 12:47:29 PM org.apache.catalina.session.StandardManager startInternal | |
GRAVE: Excepción cargando sesiones desde almacenamiento persistente | |
java.io.InvalidObjectException: Could not find a SessionFactory [uuid=074ab337-4120-44ff-b012-38e1dfb104e8,name=null] | |
at org.hibernate.internal.SessionFactoryImpl.locateSessionFactoryOnDeserialization(SessionFactoryImpl.java:1962) | |
at org.hibernate.internal.SessionFactoryImpl.readResolve(SessionFactoryImpl.java:1942) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55) | |
at java.lang.reflect.Method.invoke(Method.java:613) | |
at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:1163) | |
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1836) | |
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1403) | |
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2020) | |
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1944) | |
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1827) | |
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1403) | |
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2020) | |
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1944) | |
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1827) | |
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1403) | |
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2020) | |
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1944) | |
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1827) | |
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1403) | |
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2020) | |
at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:553) | |
at org.springframework.aop.framework.AdvisedSupport.readObject(AdvisedSupport.java:550) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55) | |
at java.lang.reflect.Method.invoke(Method.java:613) | |
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1076) | |
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1922) | |
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1827) | |
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1403) | |
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2020) | |
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1944) | |
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1827) | |
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1403) | |
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2020) | |
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1944) | |
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1827) | |
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1403) | |
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2020) | |
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1944) | |
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1827) | |
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1403) | |
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:408) | |
at org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1595) | |
at org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:1060) | |
at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:284) | |
at org.apache.catalina.session.StandardManager.load(StandardManager.java:204) | |
at org.apache.catalina.session.StandardManager.startInternal(StandardManager.java:491) | |
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) | |
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5294) | |
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) | |
at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3920) | |
at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:426) | |
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1345) | |
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1530) | |
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540) | |
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540) | |
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1519) | |
at java.lang.Thread.run(Thread.java:780) | |
abr 29, 2013 12:47:29 PM org.apache.catalina.core.StandardContext reload | |
INFORMACIÓN: Se ha completado la Regarga de este Contexto |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment