org.springframework.dao.InvalidDataAccessApiUsageException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • The filterSearchCriteria is never called since getControl() always returns null. {code:title=LookupInputField.java} public Map<String, String> filterSearchCriteria(Map<String, String> searchCriteria) { if (getControl() instanceof FilterableLookupCriteriaControl) { return ((FilterableLookupCriteriaControl) getControl()).filterSearchCriteria(getPropertyName(), searchCriteria); } else { return searchCriteria; } } {code} This is due to the performance improvement that pulled content from the view which included the control information. This error can be recreated via the Travel Account Lookup. On the KRAD Demo Travel Account Lookup use the Quickfinder to return a Fiscal Officer. When executing the search the following error will be thrown: {code} org.springframework.dao.InvalidDataAccessApiUsageException: The attribute [name] is not present in the managed type [EntityTypeImpl@988673052:EntityBo [ javaType: class org.kuali.rice.kim.impl.identity.entity.EntityBo descriptor: RelationalDescriptor(org.kuali.rice.kim.impl.identity.entity.EntityBo --> [DatabaseTable(KRIM_ENTITY_T)]), mappings: 16]].; nested exception is java.lang.IllegalArgumentException: The attribute [name] is not present in the managed type [EntityTypeImpl@988673052:EntityBo [ javaType: class org.kuali.rice.kim.impl.identity.entity.EntityBo descriptor: RelationalDescriptor(org.kuali.rice.kim.impl.identity.entity.EntityBo --> [DatabaseTable(KRIM_ENTITY_T)]), mappings: 16]]. at org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java:296) at org.springframework.orm.jpa.DefaultJpaDialect.translateExceptionIfPossible(DefaultJpaDialect.java:121) {code}
    via by Claus Niesen,
  • JPA Query Issue
    via Stack Overflow by hdost
    ,
  • Creating blob within quartz scheduled job workmanager thread gives us following exception: {CODE} interface org.hibernate.engine.jdbc.WrappedBlob is not visible from class loader; nested exception is java.lang.IllegalArgumentException: interface org.hibernate.engine.jdbc.WrappedBlob is not visible from class loader org.springframework.dao.InvalidDataAccessApiUsageException: interface org.hibernate.engine.jdbc.WrappedBlob is not visible from class loader; nested exception is java.lang.IllegalArgumentException: interface org.hibernate.engine.jdbc.WrappedBlob is not visible from class loader at org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java:296) at org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:104) at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.translateExceptionIfPossible(AbstractEntityManagerFactoryBean.java:403) at org.springframework.dao.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:58) at org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:213) at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:163) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) .... Caused by: java.lang.IllegalArgumentException: interface org.hibernate.engine.jdbc.WrappedBlob is not visible from class loader at java.lang.reflect.Proxy.getProxyClass(Proxy.java:353) at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581) at org.hibernate.engine.jdbc.SerializableBlobProxy.generateProxy(SerializableBlobProxy.java:92) at org.hibernate.engine.jdbc.AbstractLobCreator.wrap(AbstractLobCreator.java:39) {CODE} Following change in SerializableBlobProxy resolves issue: {CODE} public static ClassLoader getProxyClassLoader() { return WrappedBlob.class.getClassLoader(); } {CODE} But is it correct solution? Similar issue is described here https://hibernate.atlassian.net/browse/HHH-3529
    via by peterp,
  • spring-data-jpa call Stored Procedure
    via Stack Overflow by Shahbour
    ,
    • org.springframework.dao.InvalidDataAccessApiUsageException: The attribute [name] is not present in the managed type [EntityTypeImpl@988673052:EntityBo [ javaType: class org.kuali.rice.kim.impl.identity.entity.EntityBo descriptor: RelationalDescriptor(org.kuali.rice.kim.impl.identity.entity.EntityBo --> [DatabaseTable(KRIM_ENTITY_T)]), mappings: 16]].; nested exception is java.lang.IllegalArgumentException: The attribute [name] is not present in the managed type [EntityTypeImpl@988673052:EntityBo [ javaType: class org.kuali.rice.kim.impl.identity.entity.EntityBo descriptor: RelationalDescriptor(org.kuali.rice.kim.impl.identity.entity.EntityBo --> [DatabaseTable(KRIM_ENTITY_T)]), mappings: 16]]. at org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java:296) at org.springframework.orm.jpa.DefaultJpaDialect.translateExceptionIfPossible(DefaultJpaDialect.java:121)

    Users with the same issue

    Unknown visitor1 times, last one,
    tvrmsmith
    1 times, last one,
    Unknown visitor2 times, last one,
    linxiaolong
    3 times, last one,
    marcbouvierdav
    2 times, last one,
    15 more bugmates