org.hibernate.HibernateException: Unable to access lob stream

Google Groups | Wim Wintmolders | 3 months ago
  1. 0

    IntervalRetryScheduler configuration

    Google Groups | 3 months ago | Wim Wintmolders
    org.hibernate.HibernateException: Unable to access lob stream
  2. 0

    org.hibernate.HibernateException: Unable to access lob stream

    Stack Overflow | 5 years ago | lucky_start_izumi
    org.hibernate.HibernateException: Unable to access lob stream
  3. 0

    [spring][hibernate]tomcat ok, websphere nok

    Google Groups | 1 decade ago | septe...@yahoo.fr
    org.hibernate.HibernateException: Unable to copy listeners
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Starting in 4.2.7, the following association mapping results in an error on flushing (regardless of whether there was a change to the collection). {code:xml} <class name="User" table="`User`"> <id name="name" length="32" /> <map name="groups" table="UserGroup" cascade="all,delete-orphan" > <key column="name" /> <map-key column="groupType" type="integer" /> <many-to-many class="Group" unique="true" > <column name="groupName"/> </many-to-many> </map> </class> {code} Stacktrace: {noformat} org.hibernate.HibernateException: Unable to resolve property: null at org.hibernate.tuple.entity.EntityMetamodel.getPropertyIndex(EntityMetamodel.java:1215) at org.hibernate.persister.entity.AbstractEntityPersister.getPropertyIndex(AbstractEntityPersister.java:2406) at org.hibernate.engine.spi.EntityEntry.getLoadedValue(EntityEntry.java:289) at org.hibernate.engine.internal.Cascade.cascadeProperty(Cascade.java:188) at org.hibernate.engine.internal.Cascade.cascadeCollectionElements(Cascade.java:381) at org.hibernate.engine.internal.Cascade.cascadeCollection(Cascade.java:321) at org.hibernate.engine.internal.Cascade.cascadeAssociation(Cascade.java:298) at org.hibernate.engine.internal.Cascade.cascadeProperty(Cascade.java:161) at org.hibernate.engine.internal.Cascade.cascade(Cascade.java:118) at org.hibernate.event.internal.AbstractFlushingEventListener.cascadeOnFlush(AbstractFlushingEventListener.java:167) at org.hibernate.event.internal.AbstractFlushingEventListener.prepareEntityFlushes(AbstractFlushingEventListener.java:158) at org.hibernate.event.internal.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:91) at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:55) at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1218) at org.hibernate.internal.SessionImpl.managedFlush(SessionImpl.java:421) at org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.beforeTransactionCommit(JdbcTransaction.java:101) at org.hibernate.engine.transaction.spi.AbstractTransactionImpl.commit(AbstractTransactionImpl.java:177) at org.hibernate.test.manytomany.mapunique.ManyToManyUniqueDelOrphanTest.testManyToManyWithCascadeDeleteOrphan(ManyToManyUniqueDelOrphanTest.java:62) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) at org.hibernate.testing.junit4.ExtendedFrameworkMethod.invokeExplosively(ExtendedFrameworkMethod.java:62) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:74) {noformat} I've attached a test case ({{org.hibernate.test.manytomany.mapunique.ManyToManyUniqueDelOrphanTest}}). The test case succeeds under 4.2.6, but fails under 4.2.7 (and master). I believe this regression was caused by the fix for [HHH-6484|https://hibernate.atlassian.net/browse/HHH-6484].

    Hibernate JIRA | 3 years ago | Darren Evenson
    org.hibernate.HibernateException: Unable to resolve property: null
  6. 0

    After activating the *"hibernate.cache.auto_evict_collection_cache"* property, I am getting this error on saving entities updates. {quote} {color:red}org.hibernate.HibernateException: Unable to resolve property: at org.hibernate.tuple.entity.EntityMetamodel.getPropertyIndex(EntityMetamodel.java:1215) at org.hibernate.cache.internal.CollectionCacheInvalidator.evictCache(CollectionCacheInvalidator.java:130) at org.hibernate.cache.internal.CollectionCacheInvalidator.onPostInsert(CollectionCacheInvalidator.java:80) at org.hibernate.action.internal.EntityInsertAction.postInsert(EntityInsertAction.java:177) at org.hibernate.action.internal.EntityInsertAction.execute(EntityInsertAction.java:145) at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:463) at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:349) at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:350) at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:56) {color} {quote} I think that the problem is when checking for the mappedBy property on a collection persister: when empty, It returns an empty string instead of null. The error is thrown by the following lines in *org.hibernate.cache.internal.CollectionCacheInvalidator.java*: {code:title=org.hibernate.cache.internal.CollectionCacheInvalidator.java} // this is the property this OneToMany relation is mapped by String mappedBy = collectionPersister.getMappedByProperty(); if ( mappedBy != null ) { int i = persister.getEntityMetamodel().getPropertyIndex( mappedBy ); ... } {code} Is this an Hibernate issue ? Thank you. Note: I am using Hibernate 4.3.5.Final with JPA 2.1.

    Hibernate JIRA | 3 years ago | Ram
    org.hibernate.HibernateException: Unable to resolve property:

    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.HibernateException

      Unable to access lob stream

      at org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert()
    2. org.hibernate.jpa
      QueryImpl.getResultList
      1. org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1692)[hibernate-entitymanager-5.0.9.Final.jar:5.0.9.Final]
      2. org.hibernate.jpa.spi.AbstractEntityManagerImpl.convert(AbstractEntityManagerImpl.java:1602)[hibernate-entitymanager-5.0.9.Final.jar:5.0.9.Final]
      3. org.hibernate.jpa.internal.QueryImpl.getResultList(QueryImpl.java:492)[hibernate-entitymanager-5.0.9.Final.jar:5.0.9.Final]
      3 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor166.invoke(Unknown Source)[na:na]
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_71]
      3. java.lang.reflect.Method.invoke(Method.java:497)[na:1.8.0_71]
      3 frames
    4. Spring ORM
      SharedEntityManagerCreator$DeferredQueryInvocationHandler.invoke
      1. org.springframework.orm.jpa.SharedEntityManagerCreator$DeferredQueryInvocationHandler.invoke(SharedEntityManagerCreator.java:372)[spring-orm-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      1 frame
    5. com.sun.proxy
      $Proxy178.getResultList
      1. com.sun.proxy.$Proxy178.getResultList(Unknown Source)[na:na]
      1 frame
    6. org.axonframework.eventstore
      JpaEventStore.readEvents
      1. org.axonframework.eventstore.jpa.DefaultEventEntryStore$BatchingAggregateStreamIterator.fetchBatch(DefaultEventEntryStore.java:319)[axon-core-2.4.3.jar:2.4.3]
      2. org.axonframework.eventstore.jpa.DefaultEventEntryStore$BatchingAggregateStreamIterator.<init>(DefaultEventEntryStore.java:290)[axon-core-2.4.3.jar:2.4.3]
      3. org.axonframework.eventstore.jpa.DefaultEventEntryStore$BatchingAggregateStreamIterator.<init>(DefaultEventEntryStore.java:272)[axon-core-2.4.3.jar:2.4.3]
      4. org.axonframework.eventstore.jpa.DefaultEventEntryStore.fetchAggregateStream(DefaultEventEntryStore.java:268)[axon-core-2.4.3.jar:2.4.3]
      5. org.axonframework.eventstore.jpa.JpaEventStore.readEvents(JpaEventStore.java:213)[axon-core-2.4.3.jar:2.4.3]
      5 frames
    7. org.axonframework.eventsourcing
      EventSourcingRepository.doLoad
      1. org.axonframework.eventsourcing.EventSourcingRepository.doLoad(EventSourcingRepository.java:166)[axon-core-2.4.3.jar:2.4.3]
      2. org.axonframework.eventsourcing.EventSourcingRepository.doLoad(EventSourcingRepository.java:56)[axon-core-2.4.3.jar:2.4.3]
      2 frames
    8. org.axonframework.repository
      LockingRepository.load
      1. org.axonframework.repository.AbstractRepository.load(AbstractRepository.java:76)[axon-core-2.4.3.jar:2.4.3]
      2. org.axonframework.repository.LockingRepository.load(LockingRepository.java:102)[axon-core-2.4.3.jar:2.4.3]
      3. org.axonframework.repository.LockingRepository.load(LockingRepository.java:51)[axon-core-2.4.3.jar:2.4.3]
      3 frames
    9. org.axonframework.commandhandling
      RetryingCallback$RetryDispatch.run
      1. org.axonframework.commandhandling.annotation.AggregateAnnotationCommandHandler.loadAggregate(AggregateAnnotationCommandHandler.java:282)[axon-core-2.4.3.jar:2.4.3]
      2. org.axonframework.commandhandling.annotation.AggregateAnnotationCommandHandler.access$100(AggregateAnnotationCommandHandler.java:52)[axon-core-2.4.3.jar:2.4.3]
      3. org.axonframework.commandhandling.annotation.AggregateAnnotationCommandHandler$AggregateCommandHandler.handle(AggregateAnnotationCommandHandler.java:329)[axon-core-2.4.3.jar:2.4.3]
      4. org.axonframework.commandhandling.annotation.AggregateAnnotationCommandHandler.handle(AggregateAnnotationCommandHandler.java:277)[axon-core-2.4.3.jar:2.4.3]
      5. org.axonframework.commandhandling.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:63)[axon-core-2.4.3.jar:2.4.3]
      6. org.axonframework.commandhandling.DefaultInterceptorChain.proceed(DefaultInterceptorChain.java:69)[axon-core-2.4.3.jar:2.4.3]
      7. org.axonframework.commandhandling.SimpleCommandBus.doDispatch(SimpleCommandBus.java:127)[axon-core-2.4.3.jar:2.4.3]
      8. org.axonframework.commandhandling.SimpleCommandBus.doDispatch(SimpleCommandBus.java:103)[axon-core-2.4.3.jar:2.4.3]
      9. org.axonframework.commandhandling.SimpleCommandBus.dispatch(SimpleCommandBus.java:75)[axon-core-2.4.3.jar:2.4.3]
      10. org.axonframework.commandhandling.gateway.RetryingCallback$RetryDispatch.run(RetryingCallback.java:113)[axon-core-2.4.3.jar:2.4.3]
      10 frames
    10. Spring Context
      DelegatingErrorHandlingRunnable.run
      1. org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
      1 frame
    11. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[na:1.8.0_71]
      2. java.util.concurrent.FutureTask.run(FutureTask.java:266)[na:1.8.0_71]
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)[na:1.8.0_71]
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[na:1.8.0_71]
      5. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_71]
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_71]
      7. java.lang.Thread.run(Thread.java:745)[na:1.8.0_71]
      7 frames