Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1095653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:09:34+00:00 2026-05-17T00:09:34+00:00

Exception java.lang.IllegalArgumentException: partidosPK.idEquipo at javax.faces.component.UIComponentBase.validateId(UIComponentBase.java:551) at javax.faces.component.UIComponentBase.setId(UIComponentBase.java:366) at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply (ComponentTagHandlerDelegateImpl.java:168) at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:114) at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:91)

  • 0

Exception

java.lang.IllegalArgumentException: partidosPK.idEquipo
at javax.faces.component.UIComponentBase.validateId(UIComponentBase.java:551)
at javax.faces.component.UIComponentBase.setId(UIComponentBase.java:366)
at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply        (ComponentTagHandlerDelegateImpl.java:168)
at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:114)
at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:91)
at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:120)
at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:204)
at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:114)
at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:91)
at javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(DelegatingMetaTagHandler.java:120)
at com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(ComponentTagHandlerDelegateImpl.java:204)
at javax.faces.view.facelets.DelegatingMetaTagHandler.apply(DelegatingMetaTagHandler.java:114)
at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:91)
at com.sun.faces.facelets.tag.ui.DefineHandler.applyDefinition(DefineHandler.java:97)
at com.sun.faces.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:172)

and keeps going… also
Entity bean

private String ganador;
@Column(name = "fecha")
@Temporal(TemporalType.TIMESTAMP)
private Date fecha;
@Column(name = "golesEquipoGanador")
private Integer golesEquipoGanador;
@Column(name = "golesEquipoPerdedor")
private Integer golesEquipoPerdedor;
@Column(name = "perdedor")
private String perdedor;
@OneToMany(cascade = CascadeType.ALL, mappedBy = "partidos")
private Collection<Goleadores> goleadoresCollection;
@OneToMany(cascade = CascadeType.ALL, mappedBy = "partidos")
private Collection<SancionesJugadores> sancionesJugadoresCollection;
@JoinColumns({
    @JoinColumn(name = "idCampeonato", referencedColumnName = "idCampeonato", insertable = false, updatable = false),
    @JoinColumn(name = "idPartido", referencedColumnName = "idEquipo", insertable = false, updatable = false)})
@ManyToOne(optional = false)
private EquiposPorCampeonato equiposPorCampeonato;

public Partidos() {
}

public Partidos(PartidosPK partidosPK) {
    this.partidosPK = partidosPK;
}

public Partidos(int idCampeonato, int idEquipo, int idPartido) {
    this.partidosPK = new PartidosPK(idCampeonato, idEquipo, idPartido);
}

public PartidosPK getPartidosPK() {
    return partidosPK;
}

public void setPartidosPK(PartidosPK partidosPK) {
    this.partidosPK = partidosPK;
}

public String getGanador() {
    return ganador;
}

public void setGanador(String ganador) {
    this.ganador = ganador;
}

public Date getFecha() {
    return fecha;
}

public void setFecha(Date fecha) {
    this.fecha = fecha;
}

public Integer getGolesEquipoGanador() {
    return golesEquipoGanador;
}

public void setGolesEquipoGanador(Integer golesEquipoGanador) {
    this.golesEquipoGanador = golesEquipoGanador;
}

public Integer getGolesEquipoPerdedor() {
    return golesEquipoPerdedor;
}

public void setGolesEquipoPerdedor(Integer golesEquipoPerdedor) {
    this.golesEquipoPerdedor = golesEquipoPerdedor;
}

public String getPerdedor() {
    return perdedor;
}

public void setPerdedor(String perdedor) {
    this.perdedor = perdedor;
}

public Collection<Goleadores> getGoleadoresCollection() {
    return goleadoresCollection;
}

public void setGoleadoresCollection(Collection<Goleadores> goleadoresCollection) {
    this.goleadoresCollection = goleadoresCollection;
}

public Collection<SancionesJugadores> getSancionesJugadoresCollection() {
    return sancionesJugadoresCollection;
}

public void setSancionesJugadoresCollection(Collection<SancionesJugadores> sancionesJugadoresCollection) {
    this.sancionesJugadoresCollection = sancionesJugadoresCollection;
}

public EquiposPorCampeonato getEquiposPorCampeonato() {
    return equiposPorCampeonato;
}

public void setEquiposPorCampeonato(EquiposPorCampeonato equiposPorCampeonato) {
    this.equiposPorCampeonato = equiposPorCampeonato;
}

@Override
public int hashCode() {
    int hash = 0;
    hash += (partidosPK != null ? partidosPK.hashCode() : 0);
    return hash;
}

@Override
public boolean equals(Object object) {
    // TODO: Warning - this method won't work in the case the id fields are not set
    if (!(object instanceof Partidos)) {
        return false;
    }
    Partidos other = (Partidos) object;
    if ((this.partidosPK == null && other.partidosPK != null) || (this.partidosPK != null && !this.partidosPK.equals(other.partidosPK))) {
        return false;
    }
    return true;
}

@Override
public String toString() {
    return "" + partidosPK + "";
}

}

related primaryKey entitybean

@Embeddable
public class PartidosPK implements Serializable {
@Basic(optional = false)
@Column(name = "idCampeonato")
private int idCampeonato;
@Basic(optional = false)
@Column(name = "idEquipo")
private int idEquipo;
@Basic(optional = false)
@Column(name = "idPartido")
private int idPartido;

public PartidosPK() {
}

public PartidosPK(int idCampeonato, int idEquipo, int idPartido) {
    this.idCampeonato = idCampeonato;
    this.idEquipo = idEquipo;
    this.idPartido = idPartido;
}

public int getIdCampeonato() {
    return idCampeonato;
}

public void setIdCampeonato(int idCampeonato) {
    this.idCampeonato = idCampeonato;
}

public int getIdEquipo() {
    return idEquipo;
}

public void setIdEquipo(int idEquipo) {
    this.idEquipo = idEquipo;
}

public int getIdPartido() {
    return idPartido;
}

public void setIdPartido(int idPartido) {
    this.idPartido = idPartido;
}

@Override
public int hashCode() {
    int hash = 0;
    hash += (int) idCampeonato;
    hash += (int) idEquipo;
    hash += (int) idPartido;
    return hash;
}

@Override
public boolean equals(Object object) {
    // TODO: Warning - this method won't work in the case the id fields are not set
    if (!(object instanceof PartidosPK)) {
        return false;
    }
    PartidosPK other = (PartidosPK) object;
    if (this.idCampeonato != other.idCampeonato) {
        return false;
    }
    if (this.idEquipo != other.idEquipo) {
        return false;
    }
    if (this.idPartido != other.idPartido) {
        return false;
    }
    return true;
}

@Override
public String toString() {
    return "" + idCampeonato + ", " + idEquipo + ", " + idPartido + "";
}
}

Last but not least

@Entity
@Table(name = "equipos")
@NamedQueries({
@NamedQuery(name = "Equipos.findAll", query = "SELECT e FROM Equipos e"),
@NamedQuery(name = "Equipos.findByIdEquipo", query = "SELECT e FROM Equipos e WHERE e.idEquipo = :idEquipo"),
@NamedQuery(name = "Equipos.findByNombre", query = "SELECT e FROM Equipos e WHERE e.nombre = :nombre")})
public class Equipos implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Basic(optional = false)
@Column(name = "idEquipo")
private Integer idEquipo;
@Basic(optional = false)
@Column(name = "nombre")
private String nombre;
@JoinColumn(name = "idSexo", referencedColumnName = "idSexo")
@ManyToOne(optional = false)
private Sexos idSexo;
@OneToMany(cascade = CascadeType.ALL, mappedBy = "idEquipo")
private Collection<Jugadores> jugadoresCollection;
@OneToMany(cascade = CascadeType.ALL, mappedBy = "equipos")
private Collection<EquiposPorCampeonato> equiposPorCampeonatoCollection;

public Equipos() {
}

public Equipos(Integer idEquipo) {
    this.idEquipo = idEquipo;
}

public Equipos(Integer idEquipo, String nombre) {
    this.idEquipo = idEquipo;
    this.nombre = nombre;
}

public Integer getIdEquipo() {
    return idEquipo;
}

public void setIdEquipo(Integer idEquipo) {
    this.idEquipo = idEquipo;
}

public String getNombre() {
    return nombre;
}

public void setNombre(String nombre) {
    this.nombre = nombre;
}

public Sexos getIdSexo() {
    return idSexo;
}

public void setIdSexo(Sexos idSexo) {
    this.idSexo = idSexo;
}

public Collection<Jugadores> getJugadoresCollection() {
    return jugadoresCollection;
}

public void setJugadoresCollection(Collection<Jugadores> jugadoresCollection) {
    this.jugadoresCollection = jugadoresCollection;
}

public Collection<EquiposPorCampeonato> getEquiposPorCampeonatoCollection() {
    return equiposPorCampeonatoCollection;
}

public void setEquiposPorCampeonatoCollection(Collection<EquiposPorCampeonato> equiposPorCampeonatoCollection) {
    this.equiposPorCampeonatoCollection = equiposPorCampeonatoCollection;
}

@Override
public int hashCode() {
    int hash = 0;
    hash += (idEquipo != null ? idEquipo.hashCode() : 0);
    return hash;
}

@Override
public boolean equals(Object object) {
    // TODO: Warning - this method won't work in the case the id fields are not set
    if (!(object instanceof Equipos)) {
        return false;
    }
    Equipos other = (Equipos) object;
    if ((this.idEquipo == null && other.idEquipo != null) || (this.idEquipo != null && !this.idEquipo.equals(other.idEquipo))) {
        return false;
    }
    return true;
}

@Override
public String toString() {
    return "" + nombre + "";
}

}

Table scripts available if needed

Thank you very much.
Yes its spanish please bear with me!

Equipos == Teams;

Partidos == Matches;

Campeonatos == Championships;

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T00:09:34+00:00Added an answer on May 17, 2026 at 12:09 am

    This exception is related to the view, not to the model. The exception is telling that you’ve set a component ID with the value partidosPK.idEquipo like as follows:

    <h:someComponent id="partidosPK.idEquipo">
    

    However, this ID is illegal as per the rules. It contains a dot .. Remove it or replace by _ or -. The rules are the same as for the HTML/CSS identifiers.

    In CSS, identifiers (including element names, classes, and IDs in selectors) can contain only the characters [a-zA-Z0-9] and ISO 10646 characters U+00A1 and higher, plus the hyphen (-) and the underscore (_); they cannot start with a digit, or a hyphen followed by a digit.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm being driven out of my mind by the following exception: java.lang.IllegalArgumentException: com.sun.xml.messaging.saaj.soap.LocalStrings !=
I am getting an exception: java.lang.IllegalArgumentException: cannot add to layout: constraints must be a
I am getting the following exception: java.lang.IllegalArgumentException: object is not an instance of the
here is my error : UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already added: Lorg/codehaus/jackson/Base64Variant; Conversion to
when I use jsoup.jar in android ,the problem is: UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.IllegalArgumentException: already
Hi guys i catch exception: java.lang.IndexOutOfBoundsException: Index: 1, Size: 0 Code look like this:
I get the following exception java.lang.NumberFormatException: Invalid int: It is happening when you try
I am tring to send mail by AWSCredentials but getting an exception java.lang.NoClassDefFoundError: org/apache/http/conn/scheme/SchemeSocketFactory
I'm getting a class cast exception namely java.lang.ClassCastException: android.app.Application cannot be cast to greendroid.app.GDApplication
my android app crash before load main.xml. This is the exception thrown java.lang.RuntimeException: Unable

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.