java.lang.IllegalArgumentException: Provided id of the wrong type for class org.openxava.school.model.Level3a. Expected: class org.openxava.school.model.Level3aId, got class java.lang.Integer

openxava | e-sarge | 1 year ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Grandparent / Parent / Child - "Relationship Issues"

    openxava | 1 year ago | e-sarge
    java.lang.IllegalArgumentException: Provided id of the wrong type for class org.openxava.school.model.Level3a. Expected: class org.openxava.school.model.Level3aId, got class java.lang.Integer
  2. 0

    Provided id of the wrong type for class when testing

    Stack Overflow | 2 years ago | Ru Ru
    org.springframework.dao.InvalidDataAccessApiUsageException: Provided id of the wrong type for class com.ruruapps.ibank.domain.Customer. Expected: class java.lang.Long, got class java.lang.String; nested exception is java.lang.IllegalArgumentException: Provided id of the wrong type for class com.ruruapps.ibank.domain.Customer. Expected: class java.lang.Long, got class java.lang.String
  3. 0

    Provided id of the wrong type for class when testing | Solutions for enthusiast and professional programmers

    fatal-errors.com | 1 year ago
    org.springframework.dao.InvalidDataAccessApiUsageException: Provided id of the wrong type for class com.ruruapps.ibank.domain.Customer. Expected: class java.lang.Long, got class java.lang.String; nested exception is java.lang.IllegalArgumentException: Provided id of the wrong type for class com.ruruapps.ibank.domain.Customer. Expected: class java.lang.Long, got class java.lang.String
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Search query using two parameters or more in JPA

    Stack Overflow | 3 weeks ago | Victor G.
    java.lang.IllegalArgumentException: Provided id of the wrong type for class com.exemplo.model.Pedido. Expected: class java.lang.Long, got class java.sql.Date
  6. 0

    DAOAuthentication provider expected Long, got String

    Stack Overflow | 3 years ago | We are Borg
    org.hibernate.TypeMismatchException: Provided id of the wrong type for class com.WirTauschen.model.User. Expected: class java.lang.Long, got class java.lang.String
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.hibernate.TypeMismatchException

    Provided id of the wrong type for class org.openxava.school.model.Level3a. Expected: class org.openxava.school.model.Level3aId, got class java.lang.Integer

    at org.hibernate.event.internal.DefaultLoadEventListener.onLoad()
  2. Hibernate
    SessionImpl.get
    1. org.hibernate.event.internal.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:134)
    2. org.hibernate.internal.SessionImpl.fireLoad(SessionImpl.java:1106)
    3. org.hibernate.internal.SessionImpl.access$2000(SessionImpl.java:176)
    4. org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.load(SessionImpl.java:2587)
    5. org.hibernate.internal.SessionImpl.get(SessionImpl.java:991)
    5 frames
  3. org.hibernate.jpa
    AbstractEntityManagerImpl.find
    1. org.hibernate.jpa.spi.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:1110)
    2. org.hibernate.jpa.spi.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:1068)
    2 frames
  4. org.openxava.jpa
    EntityManagerDecorator.find
    1. org.openxava.jpa.impl.EntityManagerDecorator.find(EntityManagerDecorator.java:140)
    1 frame
  5. org.openxava.model
    MapFacade.getValues
    1. org.openxava.model.impl.JPAPersistenceProvider.find(JPAPersistenceProvider.java:28)
    2. org.openxava.model.impl.POJOPersistenceProviderBase.find(POJOPersistenceProviderBase.java:92)
    3. org.openxava.model.impl.POJOPersistenceProviderBase.find(POJOPersistenceProviderBase.java:63)
    4. org.openxava.model.impl.MapFacadeBean.findEntity(MapFacadeBean.java:1576)
    5. org.openxava.model.impl.MapFacadeBean.findEntity(MapFacadeBean.java:1720)
    6. org.openxava.model.impl.MapFacadeBean.getValuesImpl(MapFacadeBean.java:666)
    7. org.openxava.model.impl.MapFacadeBean.getValues(MapFacadeBean.java:99)
    8. org.openxava.model.MapFacade.getValues(MapFacade.java:472)
    8 frames
  6. org.openxava.actions
    SearchByViewKeyAction.execute
    1. org.openxava.actions.SearchByViewKeyAction.execute(SearchByViewKeyAction.java:56)
    1 frame
  7. org.openxava.controller
    ModuleManager.execute
    1. org.openxava.controller.ModuleManager.executeAction(ModuleManager.java:495)
    2. org.openxava.controller.ModuleManager.executeAction(ModuleManager.java:403)
    3. org.openxava.controller.ModuleManager.executeAction(ModuleManager.java:616)
    4. org.openxava.controller.ModuleManager.executeAction(ModuleManager.java:403)
    5. org.openxava.controller.ModuleManager.executeAction(ModuleManager.java:616)
    6. org.openxava.controller.ModuleManager.executeAction(ModuleManager.java:403)
    7. org.openxava.controller.ModuleManager.execute(ModuleManager.java:360)
    7 frames
  8. org.apache.jsp
    execute_jsp._jspService
    1. org.apache.jsp.xava.execute_jsp._jspService(execute_jsp.java:196)
    1 frame
  9. GWT dev
    HttpJspBase.service
    1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    1 frame
  10. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    1 frame
  11. GWT dev
    JspServlet.service
    1. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
    2. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
    3. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
    3 frames
  12. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    1 frame
  13. Glassfish Core
    ApplicationDispatcher.include
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
    4. org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:605)
    5. org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:544)
    5 frames
  14. org.openxava.web
    Module.request
    1. org.openxava.web.servlets.Servlets.getURIAsStream(Servlets.java:66)
    2. org.openxava.web.dwr.Module.getURIAsStream(Module.java:202)
    3. org.openxava.web.dwr.Module.request(Module.java:61)
    3 frames
  15. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:497)
    4 frames
  16. Direct Web Remoting
    DwrServlet.doPost
    1. org.directwebremoting.impl.ExecuteAjaxFilter.doFilter(ExecuteAjaxFilter.java:34)
    2. org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.java:428)
    3. org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:431)
    4. org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:283)
    5. org.directwebremoting.servlet.PlainCallHandler.handle(PlainCallHandler.java:52)
    6. org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:101)
    7. org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:146)
    7 frames
  17. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
    2. javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    2 frames
  18. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    2 frames
  19. Tomcat WS
    WsFilter.doFilter
    1. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    1 frame
  20. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
    6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
    8. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
    9. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    10. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:409)
    10 frames
  21. Grizzly HTTP
    JIoEndpoint$SocketProcessor.run
    1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1044)
    2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
    3. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315)
    3 frames
  22. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    3. java.lang.Thread.run(Thread.java:745)
    3 frames