Erro JSF

2 respostas
gisa_screen

Alguem Sabe me explicar porque a página nao é apresentada …e aparece logo esses códigos???

HTTP Status 500 -


type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: An exception occurred processing JSP page /editarPerfil.jsp at line 52

49: value="#{participanteMB.participantePerfil.areaDeInteresse}"/>
50:
51: <h:outputText value=“Foto” />
52: <h:inputText id=“nome”
53: value="#{participanteMB.participantePerfil.foto}" />
54:
55:

Stacktrace:

org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:401)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)

javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)

com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:468)

com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:140)

com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)

com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)

com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)

javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)

root cause

javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.servlet.jsp.JspException: Component ID ‘nome’ has already been used in the view.
See below for the view up to the point of the detected error.
+id: j_id_jsp_490726618_0
type: javax.faces.component.UIViewRoot@139491b
+id: j_id0
type: javax.faces.component.html.HtmlOutputText@1eea7f0
+id: j_id_jsp_490726618_1
type: javax.faces.component.html.HtmlOutputText@15386c2
+id: j_id1
type: javax.faces.component.html.HtmlOutputText@b45130
+id: j_id_jsp_490726618_2
type: javax.faces.component.html.HtmlForm@3e53cf
+id: j_id_jsp_490726618_3
type: javax.faces.component.html.HtmlMessages@1f04ea6
+id: j_id_jsp_490726618_4
type: javax.faces.component.html.HtmlPanelGrid@1bb9829
+id: j_id_jsp_490726618_5
type: javax.faces.component.html.HtmlOutputText@102be12
+id: nome <===============
type: javax.faces.component.html.HtmlInputText@10cc9b4
+id: j_id_jsp_490726618_7
type: javax.faces.component.html.HtmlOutputText@8e7f54
+id: sexo
type: javax.faces.component.html.HtmlInputText@1496e57
+id: j_id_jsp_490726618_9
type: javax.faces.component.html.HtmlOutputText@1eb1db2
+id: dataNascimento
type: javax.faces.component.html.HtmlInputText@eabd2f
+id: j_id_jsp_490726618_11
type: javax.faces.component.html.HtmlOutputText@12a78ee
+id: cidade
type: javax.faces.component.html.HtmlInputText@1696452
+id: j_id_jsp_490726618_13
type: javax.faces.component.html.HtmlOutputText@39474b
+id: areaAtuacao
type: javax.faces.component.html.HtmlInputText@779959
+id: j_id_jsp_490726618_15
type: javax.faces.component.html.HtmlOutputText@1f4cf6f
+id: areaDeInteresse
type: javax.faces.component.html.HtmlInputText@15e8aa5
+id: j_id_jsp_490726618_17
type: javax.faces.component.html.HtmlOutputText@1e06de8

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
org.apache.jsp.editarPerfil_jsp._jspService(editarPerfil_jsp.java:90)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:468)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:140)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)

root cause

javax.servlet.jsp.JspException: Component ID ‘nome’ has already been used in the view.
See below for the view up to the point of the detected error.
+id: j_id_jsp_490726618_0
type: javax.faces.component.UIViewRoot@139491b
+id: j_id0
type: javax.faces.component.html.HtmlOutputText@1eea7f0
+id: j_id_jsp_490726618_1
type: javax.faces.component.html.HtmlOutputText@15386c2
+id: j_id1
type: javax.faces.component.html.HtmlOutputText@b45130
+id: j_id_jsp_490726618_2
type: javax.faces.component.html.HtmlForm@3e53cf
+id: j_id_jsp_490726618_3
type: javax.faces.component.html.HtmlMessages@1f04ea6
+id: j_id_jsp_490726618_4
type: javax.faces.component.html.HtmlPanelGrid@1bb9829
+id: j_id_jsp_490726618_5
type: javax.faces.component.html.HtmlOutputText@102be12
+id: nome <===============
type: javax.faces.component.html.HtmlInputText@10cc9b4
+id: j_id_jsp_490726618_7
type: javax.faces.component.html.HtmlOutputText@8e7f54
+id: sexo
type: javax.faces.component.html.HtmlInputText@1496e57
+id: j_id_jsp_490726618_9
type: javax.faces.component.html.HtmlOutputText@1eb1db2
+id: dataNascimento
type: javax.faces.component.html.HtmlInputText@eabd2f
+id: j_id_jsp_490726618_11
type: javax.faces.component.html.HtmlOutputText@12a78ee
+id: cidade
type: javax.faces.component.html.HtmlInputText@1696452
+id: j_id_jsp_490726618_13
type: javax.faces.component.html.HtmlOutputText@39474b
+id: areaAtuacao
type: javax.faces.component.html.HtmlInputText@779959
+id: j_id_jsp_490726618_15
type: javax.faces.component.html.HtmlOutputText@1f4cf6f
+id: areaDeInteresse
type: javax.faces.component.html.HtmlInputText@15e8aa5
+id: j_id_jsp_490726618_17
type: javax.faces.component.html.HtmlOutputText@1e06de8

javax.faces.webapp.UIComponentClassicTagBase.createId(UIComponentClassicTagBase.java:1591)
javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:654)
javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1142)
com.sun.faces.taglib.html_basic.InputTextTag.doStartTag(InputTextTag.java:424)
org.apache.jsp.editarPerfil_jsp._jspx_meth_h_005finputText_005f6(editarPerfil_jsp.java:695)
org.apache.jsp.editarPerfil_jsp._jspx_meth_h_005fpanelGrid_005f0(editarPerfil_jsp.java:338)
org.apache.jsp.editarPerfil_jsp._jspx_meth_h_005fform_005f0(editarPerfil_jsp.java:208)
org.apache.jsp.editarPerfil_jsp._jspx_meth_f_005fview_005f0(editarPerfil_jsp.java:135)
org.apache.jsp.editarPerfil_jsp._jspService(editarPerfil_jsp.java:83)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:468)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:140)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:110)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.26 logs.


Apache Tomcat/6.0.26

2 Respostas

T

Você leu a mensagem de erro ? De uma olhada na causa do erro no log postado por vc mesmo.

Falw

gisa_screen

rsrs… obrigada! sabe o que acontece???..vai chegando uma hora q não aguento mais ver tanto código java na minha frente…ai eu copiei os código de input do nome, pra input de foto…sendo q esqueci de mudar o id=“foto”; rsrsrsrs…

Criado 14 de maio de 2010
Ultima resposta 14 de mai. de 2010
Respostas 2
Participantes 2