org.hibernate.QueryParameterException

Position beyond number of declared ordinal p arameters. Remember that ordinal parameters are 1-based! Position: 2]]

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web8

  • via Stack Overflow by Timo
    , 5 months ago
    Position beyond number of declared ordinal p arameters. Remember that ordinal parameters are 1-based! Position: 2]]
  • Position beyond number of declared ordinal parameters. Remember that ordinal parameters are 1-based! Position: 2
  • Position beyond number of declared ordinal parameters. Remember that ordinal parameters are 1-based! Position: 3
  • Stack trace

    • org.hibernate.QueryParameterException: Position beyond number of declared ordinal p arameters. Remember that ordinal parameters are 1-based! Position: 2]] at play.api.Application$class.handleError(Application.scala:293)[play_2.10-2.2.3.jar:2.2.3] at play.api.DefaultApplication.handleError(Application.scala:399)[play_2.10-2.2.3.jar:2.2.3] at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$3$$anonfun$applyOrElse$3.apply(PlayDefaultUpstreamHandler.scala:264)[play_2.10-2.2.3.jar:2.2.3] at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$3$$anonfun$applyOrElse$3.apply(PlayDefaultUpstreamHandler.scala:264)[play_2.10-2.2.3.jar:2.2.3] at scala.Option.map(Option.scala:145)[scala-library-2.10.3.jar:na] at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$3.applyOrElse(PlayDefaultUpstreamHandler.scala:264)[play_2.10-2.2.3.jar:2.2.3] Caused by: java.lang.IllegalArgumentException: org.hibernate.QueryParameterException: Position beyond number of declared ordinal parameters. Remember that ordin al parameters are 1-based! Position: 2 at org.hibernate.ejb.QueryImpl.setParameter(QueryImpl.java:451)[hibernate-entitymanager-4.1.8.Final.jar:4.1.8.Final] at org.hibernate.ejb.QueryImpl.setParameter(QueryImpl.java:72)[hibernate-entitymanager-4.1.8.Final.jar:4.1.8.Final] at models.lol.player.IPlayer.getPlayerByName(IPlayer.java:22)[na:na] at controllers.LoadTeamController.loadTeamData(LoadTeamController.java:23)[na:na] at Routes$$anonfun$routes$1$$anonfun$applyOrElse$2$$anonfun$apply$2.apply(routes_routing.scala:57)[na:na] at Routes$$anonfun$routes$1$$anonfun$applyOrElse$2$$anonfun$apply$2.apply(routes_routing.scala:57)[na:na] Caused by: org.hibernate.QueryParameterException: Position beyond number of declared ordinal parameters. Remember that ordinal parameters are 1-based! Position: 2 at org.hibernate.engine.query.spi.ParameterMetadata.getOrdinalParameterDescriptor(ParameterMetadata.java:80)[hibernate-core-4.1.8.Final.jar:4.1.8.Final] at org.hibernate.engine.query.spi.ParameterMetadata.getOrdinalParameterExpectedType(ParameterMetadata.java:86)[hibernate-core-4.1.8.Final.jar:4.1.8.Final] at org.hibernate.internal.AbstractQueryImpl.determineType(AbstractQueryImpl.java:450)[hibernate-core-4.1.8.Final.jar:4.1.8.Final] at org.hibernate.internal.AbstractQueryImpl.setParameter(AbstractQueryImpl.java:422)[hibernate-core-4.1.8.Final.jar:4.1.8.Final] at org.hibernate.ejb.QueryImpl.setParameter(QueryImpl.java:445)[hibernate-entitymanager-4.1.8.Final.jar:4.1.8.Final] at org.hibernate.ejb.QueryImpl.setParameter(QueryImpl.java:72)[hibernate-entitymanager-4.1.8.Final.jar:4.1.8.Final]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago