Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.6.0
-
None
-
None
Description
Setting openjpa.streaming=true and using the JPAStreamingMailboxMessage entity on the Spring version (against PostgreSQL) leads to
```
jvm 1 | Caused by: org.apache.openjpa.persistence.ArgumentException: No metadata was found for type "class org.apache.james.mailbox.jpa.mail.model.openjpa.JPAMailboxMessage". The class does not appear in the list of persistent types: [org.apache.james.mailbox.jpa.mail.model.JPAUserFlag, org.apache.james.mailbox.jpa.quota.model.MaxUserStorage, org.apache.james.mailbox.jpa.mail.model.openjpa.AbstractJPAMailboxMessage, org.apache.james.mailbox.jpa.quota.model.JpaCurrentQuota, org.apache.james.mailbox.jpa.mail.model.JPAMailboxAnnotation, org.apache.james.mailbox.jpa.user.model.JPASubscription, org.apache.james.rrt.jpa.model.JPARecipientRewrite, org.apache.james.mailbox.jpa.quota.model.MaxDefaultStorage, org.apache.james.mailbox.jpa.mail.model.JPAMailbox, org.apache.james.mailbox.jpa.quota.model.MaxUserMessageCount, org.apache.james.domainlist.jpa.model.JPADomain, org.apache.james.user.jpa.model.JPAUser, org.apache.james.mailbox.jpa.mail.model.JPAProperty, org.apache.james.mailbox.jpa.mail.model.openjpa.JPAStreamingMailboxMessage, org.apache.james.mailbox.jpa.quota.model.MaxDefaultMessageCount].
jvm 1 | at org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal(MetaDataRepository.java:419) ~[openjpa-3.1.2.jar:3.1.2]
jvm 1 | at org.apache.openjpa.meta.MetaDataRepository.getMetaData(MetaDataRepository.java:394) ~[openjpa-3.1.2.jar:3.1.2]
jvm 1 | at org.apache.openjpa.kernel.BrokerImpl.persistInternal(BrokerImpl.java:2769) ~[openjpa-3.1.2.jar:3.1.2]
jvm 1 | at org.apache.openjpa.kernel.BrokerImpl.persist(BrokerImpl.java:2707) ~[openjpa-3.1.2.jar:3.1.2]
jvm 1 | at org.apache.openjpa.kernel.BrokerImpl.persist(BrokerImpl.java:2690) ~[openjpa-3.1.2.jar:3.1.2]
jvm 1 | at org.apache.openjpa.kernel.BrokerImpl.persist(BrokerImpl.java:2592) ~[openjpa-3.1.2.jar:3.1.2]
jvm 1 | at org.apache.openjpa.kernel.DelegatingBroker.persist(DelegatingBroker.java:1197) ~[openjpa-3.1.2.jar:3.1.2]
jvm 1 | at org.apache.openjpa.persistence.EntityManagerImpl.persist(EntityManagerImpl.java:837) ~[openjpa-3.1.2.jar:3.1.2]
jvm 1 | at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
jvm 1 | at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:?]
jvm 1 | at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:?]
jvm 1 | at java.lang.reflect.Method.invoke(Unknown Source) ~[?:?]
jvm 1 | at org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:347) ~[spring-orm-4.3.25.RELEASE.jar:4.3.25.RELEASE]
jvm 1 | at com.sun.proxy.$Proxy81.persist(Unknown Source) ~[?:?]
jvm 1 | at org.apache.james.mailbox.jpa.mail.JPAMessageMapper.save(JPAMessageMapper.java:361) ~[apache-james-mailbox-jpa-3.6.0.jar:3.6.0]
jvm 1 | at org.apache.james.mailbox.jpa.mail.JPAMessageMapper.add(JPAMessageMapper.java:293) ~[apache-james-mailbox-jpa-3.6.0.jar:3.6.0]
jvm 1 | at org.apache.james.mailbox.store.MessageStorer$WithoutAttachment.lambda$appendMessageToStore$0(MessageStorer.java:135) ~[apache-james-mailbox-store-3.6.0.jar:3.6.0]
jvm 1 | at org.apache.james.mailbox.store.transaction.TransactionalMapper.execute(TransactionalMapper.java:38) ~[apache-james-mailbox-store-3.6.0.jar:3.6.0]
jvm 1 | at org.apache.james.mailbox.store.MessageStorer$WithoutAttachment.appendMessageToStore(MessageStorer.java:133) ~[apache-james-mailbox-store-3.6.0.jar:3.6.0]
jvm 1 | at org.apache.james.mailbox.store.StoreMessageManager.lambda$createAndDispatchMessage$2(StoreMessageManager.java:477) ~[apache-james-mailbox-store-3.6.0.jar:3.6.0]
```
Attachments
Issue Links
- links to