Ich habe eine einfache PagingAndSortingRepository mit Frühlings-Daten und eine Anfrage an setFirstResult:Frühling Daten Negative Wert übergeben, wie dies
public List<VhSequenceEntity> findByCampaignIdAndOrganizationId(
@Param("campaignId") Long campaignId, @Param("organizationId") Long organizationId, Pageable pageable);
Wenn ich es mit einer einzigen Seite Abfrage verwenden, wird es die Informationen korrekt, aber wenn die Paging-Informationen Änderungen ich folgende Fehlermeldung habe:
org.springframework.dao.InvalidDataAccessApiUsageException: Negative value (-727379968) passed to setFirstResult; nested exception is java.lang.IllegalArgumentException: Negative value (-727379968) passed to setFirstResult
at org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java:384)
at org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:246)
at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.translateExceptionIfPossible(AbstractEntityManagerFactoryBean.java:491)
at org.springframework.dao.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:59)
at org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:213)
at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:147)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:133)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
at com.sun.proxy.$Proxy107.findByCampaignIdAndOrganizationId(Unknown Source)
ich diesen Fehler gegoogelt, aber die Ergebnisse sind nicht mit dem Prozess im Zusammenhang ich Ausführung.
Danke !.