Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-7388

Hibernate mapping exception: Unknown entity: [Ljava.lang.Object;

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Critical Critical
    • fuse-7.0
    • fuse-7.0
    • Camel, Hibernate
    • None

      Hibernate unable to map entity in camel jpa route. It throws this exception:

      Karaf log
      2017-10-20 13:36:02,136 | WARN  | raf4.entity.Book | JpaConsumer                      | 239 - org.apache.camel.camel-jpa - 2.20.0.fuse-000120 | Error processing last message due: java.lang.IllegalArgumentException: Unknown entity: [Ljava.lang.Object;. Will commit all previous successful processed message, and ignore this last failure.
      javax.persistence.PersistenceException: java.lang.IllegalArgumentException: Unknown entity: [Ljava.lang.Object;
      	at org.apache.camel.component.jpa.JpaConsumer$1.doInTransaction(JpaConsumer.java:137) [239:org.apache.camel.camel-jpa:2.20.0.fuse-000120]
      	at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133) [170:org.apache.servicemix.bundles.spring-tx:4.3.10.RELEASE_1]
      	at org.apache.camel.component.jpa.JpaConsumer.poll(JpaConsumer.java:106) [239:org.apache.camel.camel-jpa:2.20.0.fuse-000120]
      	at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:174) [53:org.apache.camel.camel-core:2.20.0.fuse-000120]
      	at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:101) [53:org.apache.camel.camel-core:2.20.0.fuse-000120]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
      	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [?:?]
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [?:?]
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [?:?]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
      	at java.lang.Thread.run(Thread.java:748) [?:?]
      Caused by: java.lang.IllegalArgumentException: Unknown entity: [Ljava.lang.Object;
      	at org.hibernate.internal.SessionImpl.fireDelete(SessionImpl.java:991) ~[?:?]
      	at org.hibernate.internal.SessionImpl.delete(SessionImpl.java:920) ~[?:?]
      	at org.hibernate.internal.SessionImpl.remove(SessionImpl.java:3341) ~[?:?]
      	at org.apache.camel.component.jpa.JpaConsumer$5.deleteObject(JpaConsumer.java:476) ~[?:?]
      	at org.apache.camel.component.jpa.JpaConsumer.processBatch(JpaConsumer.java:207) ~[?:?]
      	at org.apache.camel.component.jpa.JpaConsumer$1.doInTransaction(JpaConsumer.java:132) ~[?:?]
      	... 11 more
      Caused by: org.hibernate.MappingException: Unknown entity: [Ljava.lang.Object;
      	at org.hibernate.metamodel.internal.MetamodelImpl.entityPersister(MetamodelImpl.java:620) ~[?:?]
      	at org.hibernate.internal.SessionImpl.getEntityPersister(SessionImpl.java:1627) ~[?:?]
      	at org.hibernate.event.internal.DefaultDeleteEventListener.onDelete(DefaultDeleteEventListener.java:82) ~[?:?]
      	at org.hibernate.event.internal.DefaultDeleteEventListener.onDelete(DefaultDeleteEventListener.java:56) ~[?:?]
      	at org.hibernate.internal.SessionImpl.fireDelete(SessionImpl.java:984) ~[?:?]
      	at org.hibernate.internal.SessionImpl.delete(SessionImpl.java:920) ~[?:?]
      	at org.hibernate.internal.SessionImpl.remove(SessionImpl.java:3341) ~[?:?]
      	at org.apache.camel.component.jpa.JpaConsumer$5.deleteObject(JpaConsumer.java:476) ~[?:?]
      	at org.apache.camel.component.jpa.JpaConsumer.processBatch(JpaConsumer.java:207) ~[?:?]
      	at org.apache.camel.component.jpa.JpaConsumer$1.doInTransaction(JpaConsumer.java:132) ~[?:?]
      	... 11 more
      

              Unassigned Unassigned
              tturek@redhat.com Tomas Turek
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: