[jira] [Updated] (OPENJPA-2920) CriteriaBuilder generating suboptimal code
[ https://issues.apache.org/jira/browse/OPENJPA-2920?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rik Schaaf updated OPENJPA-2920: Description: *Background:* I have the following entity: {code:java} package com.github.cc007.headsplugin.integration.database.entities; import lombok.AccessLevel; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import lombok.ToString; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Index; import javax.persistence.ManyToMany; import javax.persistence.Table; import javax.persistence.Version; import java.util.Collections; import java.util.HashSet; import java.util.Set; @Entity @Table(name = "heads", indexes = { @Index(name = "heads_headowner_index", columnList = "headOwner"), @Index(name = "heads_name_index", columnList = "name") } ) @Getter @Setter @ToString @NoArgsConstructor public class HeadEntity { @Id @Column(name = "id", nullable = false) @GeneratedValue(strategy = GenerationType.AUTO) @Setter(AccessLevel.NONE) private long id; @Version @Column(name = "version", nullable = false) private long version; @Column(name = "headOwner", unique = true, nullable = false) private String headOwner; @Column(name = "name", nullable = false) private String name; @Column(name = "value", length = 1023, nullable = false) private String value; @ToString.Exclude @ManyToMany( fetch = FetchType.EAGER, cascade = {CascadeType.PERSIST, CascadeType.MERGE}, mappedBy = "heads" ) @Getter(AccessLevel.NONE) @Setter(AccessLevel.NONE) private Set databases = new HashSet<>(); @ToString.Exclude @ManyToMany( fetch = FetchType.EAGER, cascade = {CascadeType.PERSIST, CascadeType.MERGE}, mappedBy = "heads" ) @Getter(AccessLevel.NONE) @Setter(AccessLevel.NONE) private Set tags = new HashSet<>(); @ToString.Exclude @ManyToMany( fetch = FetchType.EAGER, cascade = {CascadeType.PERSIST, CascadeType.MERGE}, mappedBy = "heads" ) @Getter(AccessLevel.NONE) @Setter(AccessLevel.NONE) private Set categories = new HashSet<>(); @ToString.Exclude @ManyToMany( fetch = FetchType.LAZY, cascade = {CascadeType.PERSIST, CascadeType.MERGE}, mappedBy = "heads" ) @Getter(AccessLevel.NONE) @Setter(AccessLevel.NONE) private Set searches = new HashSet<>(); public Set getDatabases() { return Collections.unmodifiableSet(databases); } public Set getTags() { return Collections.unmodifiableSet(tags); } public Set getCategories() { return Collections.unmodifiableSet(categories); } public Set getSearches() { return Collections.unmodifiableSet(searches); } } {code} Note the {{{}unique = true{}}}, {{nullable = false}} (and the {{{}heads_headowner_index{}}}) I have created a couple of functions using a CriteriaBuilder: {code:java} public List findAllHeadOwnersByHeadOwnerIn(Collection headOwners) { final var resultList = new ArrayList(); final var headOwnerGroups = CollectionUtils.partitionCollection(headOwners, configProperties.getDatabase().getChunkSize()); for (final var headOwnerGroup : headOwnerGroups) { final var query = querySelectionByCondition(HeadEntity.class, root -> root.get("headOwner"), String.class, (criteriaBuilder, root) -> root.get("headOwner").in(headOwnerGroup) ); resultList.addAll(query.getResultList()); } return resultList; } public TypedQuery querySelectionByCondition( Class entityType, Function, Path> selection, Class selectPropertyType, BiFunction, Predicate> whereCondition ) { final var criteriaBuilder = entityManager.getCriteriaBuilder(); final var criteriaQuery = criteriaBuilder .createQuery(selectPropertyType); final var root = criteriaQuery.from(entityType); criteriaQuery.select(selection.apply(root)).where(whereCondition.apply(criteriaBuilder, root)); return entityManager.createQuery(criteriaQuery); } public Optional getSingleResult(TypedQuery query) { try { return Optional.of(query.getSingleResult()); } catch (NoResultException e) { return Optional.empty(); } } public List getMutableResultList(TypedQuery
[jira] [Created] (OPENJPA-2920) CriteriaBuilder generating suboptimal code
Rik Schaaf created OPENJPA-2920: --- Summary: CriteriaBuilder generating suboptimal code Key: OPENJPA-2920 URL: https://issues.apache.org/jira/browse/OPENJPA-2920 Project: OpenJPA Issue Type: Bug Components: criteria Affects Versions: 3.2.0 Reporter: Rik Schaaf *Background:* I have the following entity: {code:java} package com.github.cc007.headsplugin.integration.database.entities; import lombok.AccessLevel; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import lombok.ToString; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Index; import javax.persistence.ManyToMany; import javax.persistence.Table; import javax.persistence.Version; import java.util.Collections; import java.util.HashSet; import java.util.Set; @Entity @Table(name = "heads", indexes = { @Index(name = "heads_headowner_index", columnList = "headOwner"), @Index(name = "heads_name_index", columnList = "name") } ) @Getter @Setter @ToString @NoArgsConstructor public class HeadEntity { @Id @Column(name = "id", nullable = false) @GeneratedValue(strategy = GenerationType.AUTO) @Setter(AccessLevel.NONE) private long id; @Version @Column(name = "version", nullable = false) private long version; @Column(name = "headOwner", unique = true, nullable = false) private String headOwner; @Column(name = "name", nullable = false) private String name; @Column(name = "value", length = 1023, nullable = false) private String value; @ToString.Exclude @ManyToMany( fetch = FetchType.EAGER, cascade = {CascadeType.PERSIST, CascadeType.MERGE}, mappedBy = "heads" ) @Getter(AccessLevel.NONE) @Setter(AccessLevel.NONE) private Set databases = new HashSet<>(); @ToString.Exclude @ManyToMany( fetch = FetchType.EAGER, cascade = {CascadeType.PERSIST, CascadeType.MERGE}, mappedBy = "heads" ) @Getter(AccessLevel.NONE) @Setter(AccessLevel.NONE) private Set tags = new HashSet<>(); @ToString.Exclude @ManyToMany( fetch = FetchType.EAGER, cascade = {CascadeType.PERSIST, CascadeType.MERGE}, mappedBy = "heads" ) @Getter(AccessLevel.NONE) @Setter(AccessLevel.NONE) private Set categories = new HashSet<>(); @ToString.Exclude @ManyToMany( fetch = FetchType.LAZY, cascade = {CascadeType.PERSIST, CascadeType.MERGE}, mappedBy = "heads" ) @Getter(AccessLevel.NONE) @Setter(AccessLevel.NONE) private Set searches = new HashSet<>(); public Set getDatabases() { return Collections.unmodifiableSet(databases); } public Set getTags() { return Collections.unmodifiableSet(tags); } public Set getCategories() { return Collections.unmodifiableSet(categories); } public Set getSearches() { return Collections.unmodifiableSet(searches); } } {code} Note the {{{}unique = true{}}}, {{nullable = false}} (and the {{{}heads_headowner_index{}}}) I have created a couple of functions using a CriteriaBuilder: {code:java} public List findAllHeadOwnersByHeadOwnerIn(Collection headOwners) { final var resultList = new ArrayList(); final var headOwnerGroups = CollectionUtils.partitionCollection(headOwners, configProperties.getDatabase().getChunkSize()); for (final var headOwnerGroup : headOwnerGroups) { final var query = querySelectionByCondition(HeadEntity.class, root -> root.get("headOwner"), String.class, (criteriaBuilder, root) -> root.get("headOwner").in(headOwnerGroup) ); resultList.addAll(query.getResultList()); } return resultList; } public TypedQuery querySelectionByCondition( Class entityType, Function, Path> selection, Class selectPropertyType, BiFunction, Predicate> whereCondition ) { final var criteriaBuilder = entityManager.getCriteriaBuilder(); final var criteriaQuery = criteriaBuilder .createQuery(selectPropertyType); final var root = criteriaQuery.from(entityType); criteriaQuery.select(selection.apply(root)).where(whereCondition.apply(criteriaBuilder, root)); return entityManager.createQuery(criteriaQuery); } public Optional getSingleResult(TypedQuery quer
[jira] [Commented] (OPENJPA-2642) Entity Loading issue in open-jpa
[ https://issues.apache.org/jira/browse/OPENJPA-2642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17821581#comment-17821581 ] Jan Würthner commented on OPENJPA-2642: --- Hi Senthil! I encountered the very same issue, running the runtime enhancer in tomee-plus 7.1.1 with open-jdk 17: In some cases suddenly one of the entities is not available, while all others are loaded and available (same wording for the error: "... is not a recognized entity or identifier." and the list of entities is not empty ). Have you been able to solve this or find a workaround? Unfortunately there is not much on the internet about this issue. Any insight is highly appreciated! > Entity Loading issue in open-jpa > > > Key: OPENJPA-2642 > URL: https://issues.apache.org/jira/browse/OPENJPA-2642 > Project: OpenJPA > Issue Type: Bug >Reporter: Senthil Kumar Sekar >Priority: Major > Original Estimate: 24h > Remaining Estimate: 24h > > Hello Team, > We have been openjpa – 2.4.0 for our application data access layer > which will be deployed in Jboss Fuse 6.2.1. > We have persistence xml where all the entities are declared. > Sometimes(These days its very frequent) that we are facing the below issue. > This really affects our build and deployment model. > java.lang.reflect.UndeclaredThrowableException > at com.sun.proxy.$Proxy29.createQuery(Unknown Source) > at > com.mysema.query.jpa.impl.AbstractJPAQuery.createQuery(AbstractJPAQuery.java:127)[744:com.mysema.querydsl.jpa:3.6.3] > …. > Caused by: java.lang.reflect.UndeclaredThrowableException > at com.sun.proxy.$Proxy103.createQuery(Unknown Source) > ... 67 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.GeneratedMethodAccessor112.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_79] > at java.lang.reflect.Method.invoke(Method.java:606)[:1.7.0_79] > at > org.apache.aries.jpa.container.impl.EntityManagerProxyFactory$EMHandler.invoke(EntityManagerProxyFactory.java:31) > ... 68 more > Caused by: > org.apache.openjpa.persistence.ArgumentException: An error occurred while > parsing the query filter "select cETAssignmentException_ > from CETAssignmentException cETAssignmentException_ > where lower(cETAssignmentException_.id.officeCode) = ?1 and > lower(cETAssignmentException_.id.businessSegmentCode) = ?2". Error message: > The name "CETAssignmentException" is not a recognized entity or identifier. > Perhaps you meant CDDCaseLocation, which is a close match. Known entity > names: [IndividualReferencesAsu, RmaExcllist, WbSanctionsQuestionnaire, > IndividualAsu, SpeDocumentsChecklist, Property, MvSciClientGrpInfo, > CddAdditionalDetails, CopiFatcaSubownersInfo, DocumentTemplate, > ClientBranchOffices, RoccoDecisionReportPK, CddCaseActorsPK, DdCase, > ClientIndividualReln, EcddSciCasePublish, ForeignExchange, CaseDetail, > CopiFatcaTaxInfo, NorkomTxn, CopiFatcaDocument, ClientGroup, > ClientIndividual, OpaScreen, Country, MvSciClientInfo, IndividualNorkom, > CddRisks, IndividualNorkomAsu, ClientOfficeProducts, CddCaseAuditPK, > AtfFieldsMaster, CddDdrBasedRouting, PreScreening, CddCasePK, > MvSciClientOrgInfo, WorkflowState, RoccoRequest, RoccoRequestAuditPK, Risks, > MvSciClientAddrInfo, GaProductTransaction, ClientDocuments, Bba, > ClientBranch, ClientNorkomPK, ClientISIC, MvSciArmCodeInfo, DDCCountries, > Client, GroupNorkom, IndividualClientReln, Ga, OPARuleBases, > CDDWorkflowState, SubReasonCodes, MoneyMarket, OpaError, DefenceGoodsStatus, > CDDStateMachine, LegalConstitution, ReasonCodes, RoccoRequestAudit, Address, > BranchNorkom, FiDocumentsChecklist, CopiFatcaStatusInfo, CddCase, Cdd, > CddPepSummary, Bonds, BbaDocumentsChecklist, ClientOffice, CDDCaseLocation, > MvSciEmpInfo, GaDocumentChecklist, TaskBasedReasonCodes, BranchAddress, > DgStatusDecisionMatrix, CashEquities, IndividualReferences, EcddSciPublish, > CddCaseAudit, BusinessSubSegment, OPACases, ClientIndividualRelnPK, > IndividualReferencesAsuPK, Product, ClientNorkom, BusinessSegment, > DocumentCategory, CoDocumentsChecklist, CddCaseAuditSubReasons, > IndividualClientRelnAsu, TaskBasedReasonCodesPK, CustomerCountryRisk, > PreScreeningComment, BbaRiskQuestion, IndividualDocuments, FormButton, > Documents, BbaAdditionalDetails, ClientType, GuarantorNorkomPK, > AnticipatedTransaction, CddPepDetail, GoodsType, CddCaseActors, > GuarantorNorkom, CddCountryRisk, CountryOff
[jira] [Comment Edited] (OPENJPA-2919) Connection pool can be exhausted when connections are killed on the DB side
[ https://issues.apache.org/jira/browse/OPENJPA-2919?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17820042#comment-17820042 ] Romain Manni-Bucau edited comment on OPENJPA-2919 at 2/23/24 12:26 PM: --- I don't use dbcp since some years but using tomcat-dbcp the keys are 1. enforce a global default query/statement timeout (validation + runtime) + 2. ensure validation runs often enough for your infra (can be from every 10mn to every 30s depending the perfs and instability). was (Author: romain.manni-bucau): I don't use dbcp since some years but using tomcat-dbcp the keys are 1. enforce a global default query/statement timeout (validation + runtime) + ensure validation runs often enough for your infra (can be from every 10mn to every 30s depending the perfs and instability). > Connection pool can be exhausted when connections are killed on the DB side > --- > > Key: OPENJPA-2919 > URL: https://issues.apache.org/jira/browse/OPENJPA-2919 > Project: OpenJPA > Issue Type: Bug > Components: jdbc >Affects Versions: 3.2.2 >Reporter: Dénes Bodó >Priority: Critical > Labels: deadlock, robustness > Attachments: Screenshot 2024-02-23 at 09.02.19.png > > > Apache Oozie 5.2.1 uses OpenJPA 2.4.2 and commons-dbcp 1.4 and commons-pool > 1.5.4. These are ancient versions, I know. > h1. Description > The issue is that when due to some network issues or "maintenance work" on > the DB side (especially PostgreSQL) which causes the DB connection to be > closed, it results exhausted Pool on the client side. Many threads are > waiting at this point: > {noformat} > "pool-2-thread-4" #20 prio=5 os_prio=31 tid=0x7faf7903b800 nid=0x8603 > waiting on condition [0x00030f3e7000] >java.lang.Thread.State: WAITING (parking) > at sun.misc.Unsafe.park(Native Method) > - parking to wait for <0x00066aca8e70> (a > java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) > at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175) > at > java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039) > at > org.apache.commons.pool2.impl.LinkedBlockingDeque.takeFirst(LinkedBlockingDeque.java:1324) > {noformat} > According to my observation this is because the JDBC driver does not get > closed on the client side, nor the abstract DBCP connection > _org.apache.commons.dbcp2.PoolableConnection_ . > h1. Repro > (Un)Fortunately I can reproduce the issue using the latest and greatest > commons-dbcp 2.11.0 and commons-pool 2.12.0 along with OpenJPA 3.2.2. > I've just created a Java application to reproduce the issue: > [https://github.com/dionusos/pool_exhausted_repro] . See README.md for > detailed repro steps. > h1. What we tried so far > I got in touch with DBCP team who confirmed that in case of an error in the > connection the client (in this case OpenJPA is the client of DBCP) should > handle the exception like closing the connection: DBCP-595. I agree with them > as based on the investigation I did I can also confirm that DBCP is really > robust when the client releases the broken connection object after catching > SQLException. Please check the 4 comments on DBCP-595 for extra details. > h1. Ask > OpenJPA team! > * Could you please confirm that my findings are valid? > * Did I do anything wrong in my repro program? > * Oozie has retry logic implemented: > [https://github.com/apache/oozie/blob/318fac5/core/src/main/java/org/apache/oozie/service/JPAService.java#L397L427] > but this cannot avoid the reported dead lock. > * Do you have any questions I can answer to help in the investigation? -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2919) Connection pool can be exhausted when connections are killed on the DB side
[ https://issues.apache.org/jira/browse/OPENJPA-2919?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17820042#comment-17820042 ] Romain Manni-Bucau commented on OPENJPA-2919: - I don't use dbcp since some years but using tomcat-dbcp the keys are 1. enforce a global default query/statement timeout (validation + runtime) + ensure validation runs often enough for your infra (can be from every 10mn to every 30s depending the perfs and instability). > Connection pool can be exhausted when connections are killed on the DB side > --- > > Key: OPENJPA-2919 > URL: https://issues.apache.org/jira/browse/OPENJPA-2919 > Project: OpenJPA > Issue Type: Bug > Components: jdbc >Affects Versions: 3.2.2 >Reporter: Dénes Bodó >Priority: Critical > Labels: deadlock, robustness > Attachments: Screenshot 2024-02-23 at 09.02.19.png > > > Apache Oozie 5.2.1 uses OpenJPA 2.4.2 and commons-dbcp 1.4 and commons-pool > 1.5.4. These are ancient versions, I know. > h1. Description > The issue is that when due to some network issues or "maintenance work" on > the DB side (especially PostgreSQL) which causes the DB connection to be > closed, it results exhausted Pool on the client side. Many threads are > waiting at this point: > {noformat} > "pool-2-thread-4" #20 prio=5 os_prio=31 tid=0x7faf7903b800 nid=0x8603 > waiting on condition [0x00030f3e7000] >java.lang.Thread.State: WAITING (parking) > at sun.misc.Unsafe.park(Native Method) > - parking to wait for <0x00066aca8e70> (a > java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) > at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175) > at > java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039) > at > org.apache.commons.pool2.impl.LinkedBlockingDeque.takeFirst(LinkedBlockingDeque.java:1324) > {noformat} > According to my observation this is because the JDBC driver does not get > closed on the client side, nor the abstract DBCP connection > _org.apache.commons.dbcp2.PoolableConnection_ . > h1. Repro > (Un)Fortunately I can reproduce the issue using the latest and greatest > commons-dbcp 2.11.0 and commons-pool 2.12.0 along with OpenJPA 3.2.2. > I've just created a Java application to reproduce the issue: > [https://github.com/dionusos/pool_exhausted_repro] . See README.md for > detailed repro steps. > h1. What we tried so far > I got in touch with DBCP team who confirmed that in case of an error in the > connection the client (in this case OpenJPA is the client of DBCP) should > handle the exception like closing the connection: DBCP-595. I agree with them > as based on the investigation I did I can also confirm that DBCP is really > robust when the client releases the broken connection object after catching > SQLException. Please check the 4 comments on DBCP-595 for extra details. > h1. Ask > OpenJPA team! > * Could you please confirm that my findings are valid? > * Did I do anything wrong in my repro program? > * Oozie has retry logic implemented: > [https://github.com/apache/oozie/blob/318fac5/core/src/main/java/org/apache/oozie/service/JPAService.java#L397L427] > but this cannot avoid the reported dead lock. > * Do you have any questions I can answer to help in the investigation? -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2919) Connection pool can be exhausted when connections are killed on the DB side
[ https://issues.apache.org/jira/browse/OPENJPA-2919?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17820029#comment-17820029 ] Dénes Bodó commented on OPENJPA-2919: - Thank you [~romain.manni-bucau] . {quote}ensure to have some test and a proper validation query {quote} If you are talking about this configuration {code:java} connectionProperties.append("MaxActive=").append(1).append(","); connectionProperties.append("MaxTotal=").append(2).append(","); connectionProperties.append("MinIdle=").append(1).append(","); connectionProperties.append("TestOnBorrow=").append("true").append(","); connectionProperties.append("TestOnReturn=").append("true").append(","); connectionProperties.append("TestWhileIdle=").append("true").append(","); connectionProperties.append("fastFailValidation=").append("true").append(","); connectionProperties.append("ValidationQuery=").append("SELECT 1").append(","); {code} it does not matter regarding the repro if we turn validation on or off. With validation enabled the repro time is around 1 minute, without validation it is a couple of seconds. Unfortunately the connections which are closed on the DB side are not closed on the client side so they stick in the pool but nobody can use them. !Screenshot 2024-02-23 at 09.02.19.png|width=778,height=279! The only hack-y way I found to close the stuck connection is {code:java} ((EntityManagerImpl) em).getBroker().getStoreManager().close(); {code} which will free() the connection which was in use when the Exception happened. Otherwise this connection stays in the pool occupying a slot for ever. As you say this is a configuration issue, could you please suggest a description how it should be configured? Going through the official OpenJPA docs wasn't helping me in this case. Thank you > Connection pool can be exhausted when connections are killed on the DB side > --- > > Key: OPENJPA-2919 > URL: https://issues.apache.org/jira/browse/OPENJPA-2919 > Project: OpenJPA > Issue Type: Bug > Components: jdbc >Affects Versions: 3.2.2 >Reporter: Dénes Bodó >Priority: Critical > Labels: deadlock, robustness > Attachments: Screenshot 2024-02-23 at 09.02.19.png > > > Apache Oozie 5.2.1 uses OpenJPA 2.4.2 and commons-dbcp 1.4 and commons-pool > 1.5.4. These are ancient versions, I know. > h1. Description > The issue is that when due to some network issues or "maintenance work" on > the DB side (especially PostgreSQL) which causes the DB connection to be > closed, it results exhausted Pool on the client side. Many threads are > waiting at this point: > {noformat} > "pool-2-thread-4" #20 prio=5 os_prio=31 tid=0x7faf7903b800 nid=0x8603 > waiting on condition [0x00030f3e7000] >java.lang.Thread.State: WAITING (parking) > at sun.misc.Unsafe.park(Native Method) > - parking to wait for <0x00066aca8e70> (a > java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) > at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175) > at > java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039) > at > org.apache.commons.pool2.impl.LinkedBlockingDeque.takeFirst(LinkedBlockingDeque.java:1324) > {noformat} > According to my observation this is because the JDBC driver does not get > closed on the client side, nor the abstract DBCP connection > _org.apache.commons.dbcp2.PoolableConnection_ . > h1. Repro > (Un)Fortunately I can reproduce the issue using the latest and greatest > commons-dbcp 2.11.0 and commons-pool 2.12.0 along with OpenJPA 3.2.2. > I've just created a Java application to reproduce the issue: > [https://github.com/dionusos/pool_exhausted_repro] . See README.md for > detailed repro steps. > h1. What we tried so far > I got in touch with DBCP team who confirmed that in case of an error in the > connection the client (in this case OpenJPA is the client of DBCP) should > handle the exception like closing the connection: DBCP-595. I agree with them > as based on the investigation I did I can also confirm that DBCP is really > robust when the client releases the broken connection object after catching > SQLException. Please check the 4 comments on DBCP-595 for extra details. > h1. Ask > OpenJPA team! > * Could you please confirm that my findings are valid? > * Did I do anything wrong in my repro program? > * Oozie has retry logic implemented: > [https://github.com/apache/oozie/blob/318fac5/core/src/main/java/org/apache/oozie/service/JPAService.java#L397L427] > but this cannot avoid the reported dead lock. > * Do you have any questions I can answer to help in the investigation? -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (OPENJPA-2919) Connection pool can be exhausted when connections are killed on the DB side
[ https://issues.apache.org/jira/browse/OPENJPA-2919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dénes Bodó updated OPENJPA-2919: Attachment: Screenshot 2024-02-23 at 09.02.19.png > Connection pool can be exhausted when connections are killed on the DB side > --- > > Key: OPENJPA-2919 > URL: https://issues.apache.org/jira/browse/OPENJPA-2919 > Project: OpenJPA > Issue Type: Bug > Components: jdbc >Affects Versions: 3.2.2 >Reporter: Dénes Bodó >Priority: Critical > Labels: deadlock, robustness > Attachments: Screenshot 2024-02-23 at 09.02.19.png > > > Apache Oozie 5.2.1 uses OpenJPA 2.4.2 and commons-dbcp 1.4 and commons-pool > 1.5.4. These are ancient versions, I know. > h1. Description > The issue is that when due to some network issues or "maintenance work" on > the DB side (especially PostgreSQL) which causes the DB connection to be > closed, it results exhausted Pool on the client side. Many threads are > waiting at this point: > {noformat} > "pool-2-thread-4" #20 prio=5 os_prio=31 tid=0x7faf7903b800 nid=0x8603 > waiting on condition [0x00030f3e7000] >java.lang.Thread.State: WAITING (parking) > at sun.misc.Unsafe.park(Native Method) > - parking to wait for <0x00066aca8e70> (a > java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) > at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175) > at > java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039) > at > org.apache.commons.pool2.impl.LinkedBlockingDeque.takeFirst(LinkedBlockingDeque.java:1324) > {noformat} > According to my observation this is because the JDBC driver does not get > closed on the client side, nor the abstract DBCP connection > _org.apache.commons.dbcp2.PoolableConnection_ . > h1. Repro > (Un)Fortunately I can reproduce the issue using the latest and greatest > commons-dbcp 2.11.0 and commons-pool 2.12.0 along with OpenJPA 3.2.2. > I've just created a Java application to reproduce the issue: > [https://github.com/dionusos/pool_exhausted_repro] . See README.md for > detailed repro steps. > h1. What we tried so far > I got in touch with DBCP team who confirmed that in case of an error in the > connection the client (in this case OpenJPA is the client of DBCP) should > handle the exception like closing the connection: DBCP-595. I agree with them > as based on the investigation I did I can also confirm that DBCP is really > robust when the client releases the broken connection object after catching > SQLException. Please check the 4 comments on DBCP-595 for extra details. > h1. Ask > OpenJPA team! > * Could you please confirm that my findings are valid? > * Did I do anything wrong in my repro program? > * Oozie has retry logic implemented: > [https://github.com/apache/oozie/blob/318fac5/core/src/main/java/org/apache/oozie/service/JPAService.java#L397L427] > but this cannot avoid the reported dead lock. > * Do you have any questions I can answer to help in the investigation? -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2919) Connection pool can be exhausted when connections are killed on the DB side
[ https://issues.apache.org/jira/browse/OPENJPA-2919?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17819534#comment-17819534 ] Romain Manni-Bucau commented on OPENJPA-2919: - Hi [~dionusos] , seems the pool is not configured, ensure to have some test and a proper validation query - or use tomcat-jdbc instead of dbcp which supports JDBC isValid() - plus a query timeout for the validation test. This will guarantee the connections are dropped properly if your driver is not able to detect it. But long story short this is unrelated to JPA, just a misconfiguration of the connections. > Connection pool can be exhausted when connections are killed on the DB side > --- > > Key: OPENJPA-2919 > URL: https://issues.apache.org/jira/browse/OPENJPA-2919 > Project: OpenJPA > Issue Type: Bug > Components: jdbc >Affects Versions: 3.2.2 >Reporter: Dénes Bodó >Priority: Critical > Labels: deadlock, robustness > > Apache Oozie 5.2.1 uses OpenJPA 2.4.2 and commons-dbcp 1.4 and commons-pool > 1.5.4. These are ancient versions, I know. > h1. Description > The issue is that when due to some network issues or "maintenance work" on > the DB side (especially PostgreSQL) which causes the DB connection to be > closed, it results exhausted Pool on the client side. Many threads are > waiting at this point: > {noformat} > "pool-2-thread-4" #20 prio=5 os_prio=31 tid=0x7faf7903b800 nid=0x8603 > waiting on condition [0x00030f3e7000] >java.lang.Thread.State: WAITING (parking) > at sun.misc.Unsafe.park(Native Method) > - parking to wait for <0x00066aca8e70> (a > java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) > at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175) > at > java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039) > at > org.apache.commons.pool2.impl.LinkedBlockingDeque.takeFirst(LinkedBlockingDeque.java:1324) > {noformat} > According to my observation this is because the JDBC driver does not get > closed on the client side, nor the abstract DBCP connection > _org.apache.commons.dbcp2.PoolableConnection_ . > h1. Repro > (Un)Fortunately I can reproduce the issue using the latest and greatest > commons-dbcp 2.11.0 and commons-pool 2.12.0 along with OpenJPA 3.2.2. > I've just created a Java application to reproduce the issue: > [https://github.com/dionusos/pool_exhausted_repro] . See README.md for > detailed repro steps. > h1. What we tried so far > I got in touch with DBCP team who confirmed that in case of an error in the > connection the client (in this case OpenJPA is the client of DBCP) should > handle the exception like closing the connection: DBCP-595. I agree with them > as based on the investigation I did I can also confirm that DBCP is really > robust when the client releases the broken connection object after catching > SQLException. Please check the 4 comments on DBCP-595 for extra details. > h1. Ask > OpenJPA team! > * Could you please confirm that my findings are valid? > * Did I do anything wrong in my repro program? > * Oozie has retry logic implemented: > [https://github.com/apache/oozie/blob/318fac5/core/src/main/java/org/apache/oozie/service/JPAService.java#L397L427] > but this cannot avoid the reported dead lock. > * Do you have any questions I can answer to help in the investigation? -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Created] (OPENJPA-2919) Connection pool can be exhausted when connections are killed on the DB side
Dénes Bodó created OPENJPA-2919: --- Summary: Connection pool can be exhausted when connections are killed on the DB side Key: OPENJPA-2919 URL: https://issues.apache.org/jira/browse/OPENJPA-2919 Project: OpenJPA Issue Type: Bug Components: jdbc Affects Versions: 3.2.2 Reporter: Dénes Bodó Apache Oozie 5.2.1 uses OpenJPA 2.4.2 and commons-dbcp 1.4 and commons-pool 1.5.4. These are ancient versions, I know. h1. Description The issue is that when due to some network issues or "maintenance work" on the DB side (especially PostgreSQL) which causes the DB connection to be closed, it results exhausted Pool on the client side. Many threads are waiting at this point: {noformat} "pool-2-thread-4" #20 prio=5 os_prio=31 tid=0x7faf7903b800 nid=0x8603 waiting on condition [0x00030f3e7000] java.lang.Thread.State: WAITING (parking) at sun.misc.Unsafe.park(Native Method) - parking to wait for <0x00066aca8e70> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject) at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175) at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039) at org.apache.commons.pool2.impl.LinkedBlockingDeque.takeFirst(LinkedBlockingDeque.java:1324) {noformat} According to my observation this is because the JDBC driver does not get closed on the client side, nor the abstract DBCP connection _org.apache.commons.dbcp2.PoolableConnection_ . h1. Repro (Un)Fortunately I can reproduce the issue using the latest and greatest commons-dbcp 2.11.0 and commons-pool 2.12.0 along with OpenJPA 3.2.2. I've just created a Java application to reproduce the issue: [https://github.com/dionusos/pool_exhausted_repro] . See README.md for detailed repro steps. h1. What we tried so far I got in touch with DBCP team who confirmed that in case of an error in the connection the client (in this case OpenJPA is the client of DBCP) should handle the exception like closing the connection: DBCP-595. I agree with them as based on the investigation I did I can also confirm that DBCP is really robust when the client releases the broken connection object after catching SQLException. Please check the 4 comments on DBCP-595 for extra details. h1. Ask OpenJPA team! * Could you please confirm that my findings are valid? * Did I do anything wrong in my repro program? * Oozie has retry logic implemented: [https://github.com/apache/oozie/blob/318fac5/core/src/main/java/org/apache/oozie/service/JPAService.java#L397L427] but this cannot avoid the reported dead lock. * Do you have any questions I can answer to help in the investigation? -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2898) Cannot resolve the name 'orm:versionType'
[ https://issues.apache.org/jira/browse/OPENJPA-2898?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17816699#comment-17816699 ] Romain Manni-Bucau commented on OPENJPA-2898: - looks good to me, just misses a test. side note: you can do a PR, can be easier to review > Cannot resolve the name 'orm:versionType' > - > > Key: OPENJPA-2898 > URL: https://issues.apache.org/jira/browse/OPENJPA-2898 > Project: OpenJPA > Issue Type: Bug > Components: Enhance >Affects Versions: 3.2.1, 3.2.2 >Reporter: Patrice DUROUX >Priority: Major > Attachments: openjpa.patch > > > Hi, > Switching from 3.2.0 to 3.2.1 to not face anymore issue OPENJPA-2881 and > without any change in the source code, I am getting the following one: > {noformat} > [ERROR] Failed to execute goal > org.apache.openjpa:openjpa-maven-plugin:3.2.1:enhance (enhancer) on project > IMGTPersistence: Execution enhancer of goal > org.apache.openjpa:openjpa-maven-plugin:3.2.1:enhance failed: > org.xml.sax.SAXException: > file:/home/patrice/workspace-imgt/imgt/api/IMGTPersistence/target/classes/META-INF/taxonomy_orm.xml > [Location:Line: 6, C: 16]: org.xml.sax.SAXParseException; lineNumber: 73; > columnNumber: 46; src-resolve: Cannot resolve the name 'orm:versionType' to > a(n) 'type definition' component. -> [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal org.apache.openjpa:openjpa-maven-plugin:3.2.1:enhance (enhancer) on > project IMGTPersistence: Execution enhancer of goal > org.apache.openjpa:openjpa-maven-plugin:3.2.1:enhance failed: > org.xml.sax.SAXException: > file:/home/patrice/workspace-imgt/imgt/api/IMGTPersistence/target/classes/META-INF/taxonomy_orm.xml > [Location:Line: 6, C: 16]: org.xml.sax.SAXParseException; lineNumber: 73; > columnNumber: 46; src-resolve: Cannot resolve the name 'orm:versionType' to > a(n) 'type definition' component. > at org.apache.maven.lifecycle.internal.MojoExecutor.execute > (MojoExecutor.java:215) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute > (MojoExecutor.java:156) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute > (MojoExecutor.java:148) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject > (LifecycleModuleBuilder.java:117) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject > (LifecycleModuleBuilder.java:81) > at > org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build > (SingleThreadedBuilder.java:56) > at org.apache.maven.lifecycle.internal.LifecycleStarter.execute > (LifecycleStarter.java:128) > at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) > at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) > at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) > at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957) > at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289) > at org.apache.maven.cli.MavenCli.main (MavenCli.java:193) > at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) > at jdk.internal.reflect.NativeMethodAccessorImpl.invoke > (NativeMethodAccessorImpl.java:62) > at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke > (DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke (Method.java:566) > at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced > (Launcher.java:282) > at org.codehaus.plexus.classworlds.launcher.Launcher.launch > (Launcher.java:225) > at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode > (Launcher.java:406) > at org.codehaus.plexus.classworlds.launcher.Launcher.main > (Launcher.java:347) > Caused by: org.apache.maven.plugin.PluginExecutionException: Execution > enhancer of goal org.apache.openjpa:openjpa-maven-plugin:3.2.1:enhance > failed: org.xml.sax.SAXException: > file:/home/patrice/workspace-imgt/imgt/api/IMGTPersistence/target/classes/META-INF/taxonomy_orm.xml > [Location:Line: 6, C: 16]: org.xml.sax.SAXParseException; lineNumber: 73; > columnNumber: 46; src-resolve: Cannot resolve the name 'orm:versionType' to > a(n) 'type definition' component. > at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo > (DefaultBuildPluginManager.java:148) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute > (MojoExecutor.java:210) > at org.apache.maven.lifecycle.internal.Mo
[jira] [Commented] (OPENJPA-2898) Cannot resolve the name 'orm:versionType'
[ https://issues.apache.org/jira/browse/OPENJPA-2898?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17816692#comment-17816692 ] Patrice DUROUX commented on OPENJPA-2898: - Hi Could you please consider this patch? Thanks! [^openjpa.patch] > Cannot resolve the name 'orm:versionType' > - > > Key: OPENJPA-2898 > URL: https://issues.apache.org/jira/browse/OPENJPA-2898 > Project: OpenJPA > Issue Type: Bug > Components: Enhance >Affects Versions: 3.2.1, 3.2.2 >Reporter: Patrice DUROUX >Priority: Major > Attachments: openjpa.patch > > > Hi, > Switching from 3.2.0 to 3.2.1 to not face anymore issue OPENJPA-2881 and > without any change in the source code, I am getting the following one: > {noformat} > [ERROR] Failed to execute goal > org.apache.openjpa:openjpa-maven-plugin:3.2.1:enhance (enhancer) on project > IMGTPersistence: Execution enhancer of goal > org.apache.openjpa:openjpa-maven-plugin:3.2.1:enhance failed: > org.xml.sax.SAXException: > file:/home/patrice/workspace-imgt/imgt/api/IMGTPersistence/target/classes/META-INF/taxonomy_orm.xml > [Location:Line: 6, C: 16]: org.xml.sax.SAXParseException; lineNumber: 73; > columnNumber: 46; src-resolve: Cannot resolve the name 'orm:versionType' to > a(n) 'type definition' component. -> [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal org.apache.openjpa:openjpa-maven-plugin:3.2.1:enhance (enhancer) on > project IMGTPersistence: Execution enhancer of goal > org.apache.openjpa:openjpa-maven-plugin:3.2.1:enhance failed: > org.xml.sax.SAXException: > file:/home/patrice/workspace-imgt/imgt/api/IMGTPersistence/target/classes/META-INF/taxonomy_orm.xml > [Location:Line: 6, C: 16]: org.xml.sax.SAXParseException; lineNumber: 73; > columnNumber: 46; src-resolve: Cannot resolve the name 'orm:versionType' to > a(n) 'type definition' component. > at org.apache.maven.lifecycle.internal.MojoExecutor.execute > (MojoExecutor.java:215) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute > (MojoExecutor.java:156) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute > (MojoExecutor.java:148) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject > (LifecycleModuleBuilder.java:117) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject > (LifecycleModuleBuilder.java:81) > at > org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build > (SingleThreadedBuilder.java:56) > at org.apache.maven.lifecycle.internal.LifecycleStarter.execute > (LifecycleStarter.java:128) > at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) > at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) > at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) > at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957) > at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289) > at org.apache.maven.cli.MavenCli.main (MavenCli.java:193) > at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) > at jdk.internal.reflect.NativeMethodAccessorImpl.invoke > (NativeMethodAccessorImpl.java:62) > at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke > (DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke (Method.java:566) > at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced > (Launcher.java:282) > at org.codehaus.plexus.classworlds.launcher.Launcher.launch > (Launcher.java:225) > at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode > (Launcher.java:406) > at org.codehaus.plexus.classworlds.launcher.Launcher.main > (Launcher.java:347) > Caused by: org.apache.maven.plugin.PluginExecutionException: Execution > enhancer of goal org.apache.openjpa:openjpa-maven-plugin:3.2.1:enhance > failed: org.xml.sax.SAXException: > file:/home/patrice/workspace-imgt/imgt/api/IMGTPersistence/target/classes/META-INF/taxonomy_orm.xml > [Location:Line: 6, C: 16]: org.xml.sax.SAXParseException; lineNumber: 73; > columnNumber: 46; src-resolve: Cannot resolve the name 'orm:versionType' to > a(n) 'type definition' component. > at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo > (DefaultBuildPluginManager.java:148) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute > (MojoExecutor.java:210) > at org.apache.maven.lifecycle.internal.Mo
[jira] [Updated] (OPENJPA-2898) Cannot resolve the name 'orm:versionType'
[ https://issues.apache.org/jira/browse/OPENJPA-2898?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Patrice DUROUX updated OPENJPA-2898: Attachment: openjpa.patch > Cannot resolve the name 'orm:versionType' > - > > Key: OPENJPA-2898 > URL: https://issues.apache.org/jira/browse/OPENJPA-2898 > Project: OpenJPA > Issue Type: Bug > Components: Enhance >Affects Versions: 3.2.1, 3.2.2 >Reporter: Patrice DUROUX >Priority: Major > Attachments: openjpa.patch > > > Hi, > Switching from 3.2.0 to 3.2.1 to not face anymore issue OPENJPA-2881 and > without any change in the source code, I am getting the following one: > {noformat} > [ERROR] Failed to execute goal > org.apache.openjpa:openjpa-maven-plugin:3.2.1:enhance (enhancer) on project > IMGTPersistence: Execution enhancer of goal > org.apache.openjpa:openjpa-maven-plugin:3.2.1:enhance failed: > org.xml.sax.SAXException: > file:/home/patrice/workspace-imgt/imgt/api/IMGTPersistence/target/classes/META-INF/taxonomy_orm.xml > [Location:Line: 6, C: 16]: org.xml.sax.SAXParseException; lineNumber: 73; > columnNumber: 46; src-resolve: Cannot resolve the name 'orm:versionType' to > a(n) 'type definition' component. -> [Help 1] > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute > goal org.apache.openjpa:openjpa-maven-plugin:3.2.1:enhance (enhancer) on > project IMGTPersistence: Execution enhancer of goal > org.apache.openjpa:openjpa-maven-plugin:3.2.1:enhance failed: > org.xml.sax.SAXException: > file:/home/patrice/workspace-imgt/imgt/api/IMGTPersistence/target/classes/META-INF/taxonomy_orm.xml > [Location:Line: 6, C: 16]: org.xml.sax.SAXParseException; lineNumber: 73; > columnNumber: 46; src-resolve: Cannot resolve the name 'orm:versionType' to > a(n) 'type definition' component. > at org.apache.maven.lifecycle.internal.MojoExecutor.execute > (MojoExecutor.java:215) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute > (MojoExecutor.java:156) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute > (MojoExecutor.java:148) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject > (LifecycleModuleBuilder.java:117) > at > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject > (LifecycleModuleBuilder.java:81) > at > org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build > (SingleThreadedBuilder.java:56) > at org.apache.maven.lifecycle.internal.LifecycleStarter.execute > (LifecycleStarter.java:128) > at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) > at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) > at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) > at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957) > at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289) > at org.apache.maven.cli.MavenCli.main (MavenCli.java:193) > at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) > at jdk.internal.reflect.NativeMethodAccessorImpl.invoke > (NativeMethodAccessorImpl.java:62) > at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke > (DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke (Method.java:566) > at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced > (Launcher.java:282) > at org.codehaus.plexus.classworlds.launcher.Launcher.launch > (Launcher.java:225) > at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode > (Launcher.java:406) > at org.codehaus.plexus.classworlds.launcher.Launcher.main > (Launcher.java:347) > Caused by: org.apache.maven.plugin.PluginExecutionException: Execution > enhancer of goal org.apache.openjpa:openjpa-maven-plugin:3.2.1:enhance > failed: org.xml.sax.SAXException: > file:/home/patrice/workspace-imgt/imgt/api/IMGTPersistence/target/classes/META-INF/taxonomy_orm.xml > [Location:Line: 6, C: 16]: org.xml.sax.SAXParseException; lineNumber: 73; > columnNumber: 46; src-resolve: Cannot resolve the name 'orm:versionType' to > a(n) 'type definition' component. > at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo > (DefaultBuildPluginManager.java:148) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute > (MojoExecutor.java:210) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute > (MojoExecutor.java:156) > at org.apache.maven.lifecycle.internal.MojoExecutor.execute &
[jira] [Commented] (OPENJPA-2898) Cannot resolve the name 'orm:versionType'
[ https://issues.apache.org/jira/browse/OPENJPA-2898?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17807722#comment-17807722 ] Patrice DUROUX commented on OPENJPA-2898: - Hi, I have tried again to look at this deeply by switching again from 3.2.0 to 3.2.2. What is strange is that the naming of the XSD ressource files are not all on the same schema when looking into the .jar content: $ find 3.2.2 -name "*.rsrc" 3.2.2/org/apache/openjpa/persistence/persistence_2_1.xsd.rsrc 3.2.2/org/apache/openjpa/persistence/orm-xsd.rsrc 3.2.2/org/apache/openjpa/persistence/persistence_2_2.xsd.rsrc 3.2.2/org/apache/openjpa/persistence/orm_2_2.xsd.rsrc 3.2.2/org/apache/openjpa/persistence/orm_2_1.xsd.rsrc 3.2.2/org/apache/openjpa/persistence/persistence-xsd.rsrc 3.2.2/org/apache/openjpa/persistence/persistence_2_0-xsd.rsrc 3.2.2/org/apache/openjpa/persistence/orm_2_0-xsd.rsrc 3.2.2/org/apache/openjpa/jdbc/sql/sql-keywords.rsrc 3.2.2/org/apache/openjpa/jdbc/sql/sql-invalid-column-names.rsrc 3.2.2/org/apache/openjpa/jdbc/meta/java-keywords.rsrc 3.2.2/org/apache/openjpa/jdbc/schema/schemas-doctype.rsrc Some have suffix '-xsd.rsrc' and some '.xsd.rsrc'. Searching into the source (current git clone), I found: $ rgrep "xsd.rsrc" openjpa-persistence/src/main/appended-resources/META-INF/LICENSE.vm: orm-xsd.rsrc - CDDL 1.0 - included in the openjpa jar, taken from: openjpa-persistence/src/main/appended-resources/META-INF/LICENSE.vm: orm_2_0-xsd.rsrc - CDDL 1.0 - included in the openjpa jar, taken from: openjpa-persistence/src/main/appended-resources/META-INF/LICENSE.vm: orm_2_1-xsd.rsrc - Eclipse Public License v1.0 - included in the openjpa jar, taken from: openjpa-persistence/src/main/appended-resources/META-INF/LICENSE.vm: orm_2_2-xsd.rsrc - Eclipse Public License v1.0 - included in the openjpa jar, taken from: openjpa-persistence/src/main/appended-resources/META-INF/LICENSE.vm: persistence-xsd.rsrc - CDDL 1.0 - included in the openjpa jar, taken from: openjpa-persistence/src/main/appended-resources/META-INF/LICENSE.vm: persistence_2_0-xsd.rsrc - CDDL 1.0 - included in the openjpa jar, taken from: openjpa-persistence/src/main/appended-resources/META-INF/LICENSE.vm: persistence_2_1-xsd.rsrc - Eclipse Public License v1.0 - included in the openjpa jar, taken from: openjpa-persistence/src/main/appended-resources/META-INF/LICENSE.vm: persistence_2_2-xsd.rsrc - Eclipse Public License v1.0 - included in the openjpa jar, taken from: openjpa-persistence/src/main/java/org/apache/openjpa/persistence/XMLPersistenceMetaDataParser.java: String ormxsd = "orm_2_0-xsd.rsrc"; openjpa-persistence/src/main/java/org/apache/openjpa/persistence/XMLPersistenceMetaDataParser.java: ormxsd = "orm-xsd.rsrc"; openjpa-persistence/src/main/java/org/apache/openjpa/persistence/XMLPersistenceMetaDataParser.java: ormxsd = "orm_2_0-xsd.rsrc"; openjpa-persistence/src/main/java/org/apache/openjpa/persistence/XMLPersistenceMetaDataParser.java: ormxsd = "orm_2_1.xsd.rsrc"; openjpa-persistence/src/main/java/org/apache/openjpa/persistence/XMLPersistenceMetaDataParser.java: ormxsd = "orm_2_2.xsd.rsrc"; openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceProductDerivation.java: String persistencexsd = "persistence-xsd.rsrc"; openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceProductDerivation.java: persistencexsd = "persistence_2_0-xsd.rsrc"; openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceProductDerivation.java: persistencexsd = "persistence_2_1-xsd.rsrc"; openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceProductDerivation.java: persistencexsd = "persistence_2_2-xsd.rsrc"; openjpa-project/LICENSE: orm-xsd.rsrc - included in the openjpa jar, taken from: openjpa-project/LICENSE: orm_2_0-xsd.rsrc - included in the openjpa jar, taken from: openjpa-project/LICENSE: orm_2_1-xsd.rsrc - Eclipse Public License v1.0 - included in the openjpa jar, taken from: openjpa-project/LICENSE: orm_2_2-xsd.rsrc - Eclipse Public License v1.0 - included in the openjpa jar, taken from: openjpa-project/LICENSE: persistence-xsd.rsrc - included in the openjpa jar, taken from: openjpa-project/LICENSE: persistence_2_0-xsd.rsrc - included in the openjpa jar, taken from: openjpa-project/LICENSE: persistence_2_1-xsd.rsrc - Eclipse Public License v1.0 - included in the openjpa jar, taken from: openjpa-project/LICENSE: persistence_2_2-xsd.rsrc - Eclipse Public License v1.0 - included in the openjpa jar, taken from: openjpa-all/src/main/appended-resources/META-INF/LICENSE.vm: orm-xsd.rsrc - CDDL 1.0 - included in the openjpa jar, taken from: openjpa-all/src/m
[jira] [Closed] (OPENJPA-2918) Support for Java 21
[ https://issues.apache.org/jira/browse/OPENJPA-2918?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Benoit Tellier closed OPENJPA-2918. --- Resolution: Fixed Thanks all for the kind suggestions. Fully solved my troubbles. > Support for Java 21 > --- > > Key: OPENJPA-2918 > URL: https://issues.apache.org/jira/browse/OPENJPA-2918 > Project: OpenJPA > Issue Type: Bug >Reporter: Benoit Tellier >Priority: Major > > While trying to add Java 21 support in Apache James, the OpenJPA maven plugin > (version 3.2.2) throw the following exception: > {code:java} > [ERROR] Failed to execute goal > org.apache.openjpa:openjpa-maven-plugin:3.2.2:enhance (enhancer) on project > james-server-data-jpa: Execution enhancer of goal > org.apache.openjpa:openjpa-maven-plugin:3.2.2:enhance failed: Unsupported > class file major version 65 -> [Help 1] > {code} > Maybe this could be as easy as updating the maven-plugin-plugin version? > Updating it aggressively solved a similar issue wit Apache James mailet > documentation maven plugin... -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2918) Support for Java 21
[ https://issues.apache.org/jira/browse/OPENJPA-2918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17792293#comment-17792293 ] Pawel Veselov commented on OPENJPA-2918: Forcing this dependency should also work: {code:xml} org.apache.xbean xbean-asm9-shaded 4.23 {code} > Support for Java 21 > --- > > Key: OPENJPA-2918 > URL: https://issues.apache.org/jira/browse/OPENJPA-2918 > Project: OpenJPA > Issue Type: Bug >Reporter: Benoit Tellier >Priority: Major > > While trying to add Java 21 support in Apache James, the OpenJPA maven plugin > (version 3.2.2) throw the following exception: > {code:java} > [ERROR] Failed to execute goal > org.apache.openjpa:openjpa-maven-plugin:3.2.2:enhance (enhancer) on project > james-server-data-jpa: Execution enhancer of goal > org.apache.openjpa:openjpa-maven-plugin:3.2.2:enhance failed: Unsupported > class file major version 65 -> [Help 1] > {code} > Maybe this could be as easy as updating the maven-plugin-plugin version? > Updating it aggressively solved a similar issue wit Apache James mailet > documentation maven plugin... -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2918) Support for Java 21
[ https://issues.apache.org/jira/browse/OPENJPA-2918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17792151#comment-17792151 ] Benoit Tellier commented on OPENJPA-2918: - > Just upgrade to OpenJPA 4.0.0-SNAPSHOT and it should work flawlessly. Cool. FYI tested with success. Thanks. > Check the full exception trace. Full stack trace: {code:java} [ERROR] Failed to execute goal org.apache.openjpa:openjpa-maven-plugin:3.2.0:enhance (enhancer) on project james-server-data-jpa: Execution enhancer of goal org.apache.openjpa:openjpa-maven-plugin:3.2.0:enhance failed: Unsupported class file major version 65 -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.openjpa:openjpa-maven-plugin:3.2.0:enhance (enhancer) on project james-server-data-jpa: Execution enhancer of goal org.apache.openjpa:openjpa-maven-plugin:3.2.0:enhance failed: Unsupported class file major version 65 at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289) at org.apache.maven.cli.MavenCli.main (MavenCli.java:193) at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:103) at java.lang.reflect.Method.invoke (Method.java:580) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) Caused by: org.apache.maven.plugin.PluginExecutionException: Execution enhancer of goal org.apache.openjpa:openjpa-maven-plugin:3.2.0:enhance failed: Unsupported class file major version 65 at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:148) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289) at org.apache.maven.cli.MavenCli.main (MavenCli.java:193) at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:103) at java.lang.reflect.Method.invoke (Method.java:580) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347) Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 65 at org.apache.xbean.asm9.ClassReader. (ClassReader.java:196) at org.apache.xbean.asm9.ClassReader. (ClassReader.java:177) at org.apache.xbean.asm9.ClassReader. (ClassReader.java:163) at org.apache.xbean.asm9.ClassReader. (ClassReader.java:284) at org.apache.openjpa.enhance.asm.AsmSpi9.toJava7
[jira] [Commented] (OPENJPA-2918) Support for Java 21
[ https://issues.apache.org/jira/browse/OPENJPA-2918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17792149#comment-17792149 ] Romain Manni-Bucau commented on OPENJPA-2918: - It is xbean-asm-shaded whuch must be upgraded, can be done in consumer poms. > Support for Java 21 > --- > > Key: OPENJPA-2918 > URL: https://issues.apache.org/jira/browse/OPENJPA-2918 > Project: OpenJPA > Issue Type: Bug >Reporter: Benoit Tellier >Priority: Major > > While trying to add Java 21 support in Apache James, the OpenJPA maven plugin > (version 3.2.2) throw the following exception: > {code:java} > [ERROR] Failed to execute goal > org.apache.openjpa:openjpa-maven-plugin:3.2.2:enhance (enhancer) on project > james-server-data-jpa: Execution enhancer of goal > org.apache.openjpa:openjpa-maven-plugin:3.2.2:enhance failed: Unsupported > class file major version 65 -> [Help 1] > {code} > Maybe this could be as easy as updating the maven-plugin-plugin version? > Updating it aggressively solved a similar issue wit Apache James mailet > documentation maven plugin... -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2918) Support for Java 21
[ https://issues.apache.org/jira/browse/OPENJPA-2918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17792119#comment-17792119 ] Francesco Chicchiriccò commented on OPENJPA-2918: - Just upgrade to OpenJPA 4.0.0-SNAPSHOT and it should work flawlessly. Hopefully, RC1 will be out soon: https://lists.apache.org/thread/mgfq4z3lyyc0nvy04890426k6b7y1724 > Support for Java 21 > --- > > Key: OPENJPA-2918 > URL: https://issues.apache.org/jira/browse/OPENJPA-2918 > Project: OpenJPA > Issue Type: Bug >Reporter: Benoit Tellier >Priority: Major > > While trying to add Java 21 support in Apache James, the OpenJPA maven plugin > (version 3.2.2) throw the following exception: > {code:java} > [ERROR] Failed to execute goal > org.apache.openjpa:openjpa-maven-plugin:3.2.2:enhance (enhancer) on project > james-server-data-jpa: Execution enhancer of goal > org.apache.openjpa:openjpa-maven-plugin:3.2.2:enhance failed: Unsupported > class file major version 65 -> [Help 1] > {code} > Maybe this could be as easy as updating the maven-plugin-plugin version? > Updating it aggressively solved a similar issue wit Apache James mailet > documentation maven plugin... -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2918) Support for Java 21
[ https://issues.apache.org/jira/browse/OPENJPA-2918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17792116#comment-17792116 ] Pawel Veselov commented on OPENJPA-2918: Check the full exception trace. It's probably coming from some class parsing library. Forcing plugin dependencies to using the latest version of that library should solve this. We are using JDK 21, and it works. Unfortunately, we are using our own Maven plugin to do the enhancement, so it pull its own dependencies list, and I'm not sure which exact library needs to be updated. > Support for Java 21 > --- > > Key: OPENJPA-2918 > URL: https://issues.apache.org/jira/browse/OPENJPA-2918 > Project: OpenJPA > Issue Type: Bug >Reporter: Benoit Tellier >Priority: Major > > While trying to add Java 21 support in Apache James, the OpenJPA maven plugin > (version 3.2.2) throw the following exception: > {code:java} > [ERROR] Failed to execute goal > org.apache.openjpa:openjpa-maven-plugin:3.2.2:enhance (enhancer) on project > james-server-data-jpa: Execution enhancer of goal > org.apache.openjpa:openjpa-maven-plugin:3.2.2:enhance failed: Unsupported > class file major version 65 -> [Help 1] > {code} > Maybe this could be as easy as updating the maven-plugin-plugin version? > Updating it aggressively solved a similar issue wit Apache James mailet > documentation maven plugin... -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2918) Support for Java 21
[ https://issues.apache.org/jira/browse/OPENJPA-2918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17792084#comment-17792084 ] Benoit Tellier commented on OPENJPA-2918: - CF https://issues.apache.org/jira/browse/JAMES-3961 > Support for Java 21 > --- > > Key: OPENJPA-2918 > URL: https://issues.apache.org/jira/browse/OPENJPA-2918 > Project: OpenJPA > Issue Type: Bug >Reporter: Benoit Tellier >Priority: Major > > While trying to add Java 21 support in Apache James, the OpenJPA maven plugin > (version 3.2.2) throw the following exception: > {code:java} > [ERROR] Failed to execute goal > org.apache.openjpa:openjpa-maven-plugin:3.2.2:enhance (enhancer) on project > james-server-data-jpa: Execution enhancer of goal > org.apache.openjpa:openjpa-maven-plugin:3.2.2:enhance failed: Unsupported > class file major version 65 -> [Help 1] > {code} > Maybe this could be as easy as updating the maven-plugin-plugin version? > Updating it aggressively solved a similar issue wit Apache James mailet > documentation maven plugin... -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Created] (OPENJPA-2918) Support for Java 21
Benoit Tellier created OPENJPA-2918: --- Summary: Support for Java 21 Key: OPENJPA-2918 URL: https://issues.apache.org/jira/browse/OPENJPA-2918 Project: OpenJPA Issue Type: Bug Reporter: Benoit Tellier While trying to add Java 21 support in Apache James, the OpenJPA maven plugin (version 3.2.2) throw the following exception: {code:java} [ERROR] Failed to execute goal org.apache.openjpa:openjpa-maven-plugin:3.2.2:enhance (enhancer) on project james-server-data-jpa: Execution enhancer of goal org.apache.openjpa:openjpa-maven-plugin:3.2.2:enhance failed: Unsupported class file major version 65 -> [Help 1] {code} Maybe this could be as easy as updating the maven-plugin-plugin version? Updating it aggressively solved a similar issue wit Apache James mailet documentation maven plugin... -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Resolved] (OPENJPA-2917) Subclass enhancement might fail on long fields
[ https://issues.apache.org/jira/browse/OPENJPA-2917?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mark Struberg resolved OPENJPA-2917. Resolution: Fixed > Subclass enhancement might fail on long fields > -- > > Key: OPENJPA-2917 > URL: https://issues.apache.org/jira/browse/OPENJPA-2917 > Project: OpenJPA > Issue Type: Improvement > Components: Enhance >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > When using subclass enhancement we fail on certain long field scenarios as we > had a fixed offset stack calculation instead of taking into account that long > uses 2 bytes on the stack. This just affects the new ASM based enhancement. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2917) Subclass enhancement might fail on long fields
[ https://issues.apache.org/jira/browse/OPENJPA-2917?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17776214#comment-17776214 ] ASF subversion and git services commented on OPENJPA-2917: -- Commit 815ef2349f5857f1ad017020d6d84f60261839cd in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=815ef2349 ] OPENJPA-2917 fix off-by-1 issue on java stack long parameters take up 2 byte on the call stack > Subclass enhancement might fail on long fields > -- > > Key: OPENJPA-2917 > URL: https://issues.apache.org/jira/browse/OPENJPA-2917 > Project: OpenJPA > Issue Type: Improvement > Components: Enhance >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > When using subclass enhancement we fail on certain long field scenarios as we > had a fixed offset stack calculation instead of taking into account that long > uses 2 bytes on the stack. This just affects the new ASM based enhancement. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Created] (OPENJPA-2917) Subclass enhancement might fail on long fields
Mark Struberg created OPENJPA-2917: -- Summary: Subclass enhancement might fail on long fields Key: OPENJPA-2917 URL: https://issues.apache.org/jira/browse/OPENJPA-2917 Project: OpenJPA Issue Type: Improvement Components: Enhance Affects Versions: 4.0.0 Reporter: Mark Struberg Assignee: Mark Struberg Fix For: 4.0.0 When using subclass enhancement we fail on certain long field scenarios as we had a fixed offset stack calculation instead of taking into account that long uses 2 bytes on the stack. This just affects the new ASM based enhancement. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2915) commons-dbcp2 2.10.0 breaks OpenJPA because of changed configuration methods
[ https://issues.apache.org/jira/browse/OPENJPA-2915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17774085#comment-17774085 ] ASF subversion and git services commented on OPENJPA-2915: -- Commit 7892f4baec56af950e464e2d0e477e1aaa1ff945 in openjpa's branch refs/heads/3.2.x from Maxim Solodovnik [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=7892f4bae ] [OPENJPA-2915] properties of type Duration can be set as expected (#114) > commons-dbcp2 2.10.0 breaks OpenJPA because of changed configuration methods > > > Key: OPENJPA-2915 > URL: https://issues.apache.org/jira/browse/OPENJPA-2915 > Project: OpenJPA > Issue Type: Bug > Components: third-party >Affects Versions: 3.2.2 >Reporter: Dominik Stadler >Assignee: Maxim Solodovnik >Priority: Minor > Labels: patch > Fix For: 3.2.3, 4.0.0 > > > When upgrading commons-dbcp2 to the latest version 2.10.0, OpenJPA fails with > exceptions when it tries to provide options to commons-dbcp2. > It seems this happens because dbcp2 moved from Integer-Duration to using > java.time.Duration. > See > [https://github.com/apache/commons-dbcp/commit/93207813fd6b6c0230cfcebb0e9f5b19e9fa72b9] > It seems that even though the change in dbcp2 was done in a > backwards-compatible way, the automatic configuration handling in OpenJPA > stumbles and throws an exception when latest commons-dbcp2 (and > commons-pool2) are used: > {noformat} > Caused by: org.apache.openjpa.lib.util.ParseException: > org.apache.commons.dbcp2.BasicDataSource@72eed4db.MaxWait = 1 > at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:234) > at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:187) > at > app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:502) > at > app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:456) > at > app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:436) > at > app//org.apache.openjpa.lib.conf.Configurations.newInstance(Configurations.java:169) > at > app//org.apache.openjpa.jdbc.schema.DataSourceFactory.newDataSource(DataSourceFactory.java:112) > ... 63 more > Caused by: org.apache.openjpa.lib.util.ParseException: Error initializing > configuration. Failed to create an instance of class java.time.Duration for > plugin property 1. > at > app//org.apache.openjpa.lib.util.Options.stringToObject(Options.java:449) > at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:226) > ... 69 more > Caused by: java.lang.ClassNotFoundException: 1 > at > java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) > at > java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) > at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:527) > at java.base/java.lang.Class.forName0(Native Method) > at java.base/java.lang.Class.forName(Class.java:315) > at org.apache.openjpa.lib.util.Options.stringToObject(Options.java:446) > ... 70 more > {noformat} > > It should be possible to reproduce with a small OpenJPA sample project and > adding the following two newer Gradle dependencies: > {noformat} > implementation 'org.apache.commons:commons-dbcp2:2.10.0' > implementation 'org.apache.commons:commons-pool2:2.11.1'{noformat} > > Edit: Fixed version to "2.10.0" -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Resolved] (OPENJPA-2915) commons-dbcp2 2.10.0 breaks OpenJPA because of changed configuration methods
[ https://issues.apache.org/jira/browse/OPENJPA-2915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Maxim Solodovnik resolved OPENJPA-2915. --- Resolution: Fixed > commons-dbcp2 2.10.0 breaks OpenJPA because of changed configuration methods > > > Key: OPENJPA-2915 > URL: https://issues.apache.org/jira/browse/OPENJPA-2915 > Project: OpenJPA > Issue Type: Bug > Components: third-party >Affects Versions: 3.2.2 >Reporter: Dominik Stadler >Assignee: Maxim Solodovnik >Priority: Minor > Labels: patch > Fix For: 3.2.3, 4.0.0 > > > When upgrading commons-dbcp2 to the latest version 2.10.0, OpenJPA fails with > exceptions when it tries to provide options to commons-dbcp2. > It seems this happens because dbcp2 moved from Integer-Duration to using > java.time.Duration. > See > [https://github.com/apache/commons-dbcp/commit/93207813fd6b6c0230cfcebb0e9f5b19e9fa72b9] > It seems that even though the change in dbcp2 was done in a > backwards-compatible way, the automatic configuration handling in OpenJPA > stumbles and throws an exception when latest commons-dbcp2 (and > commons-pool2) are used: > {noformat} > Caused by: org.apache.openjpa.lib.util.ParseException: > org.apache.commons.dbcp2.BasicDataSource@72eed4db.MaxWait = 1 > at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:234) > at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:187) > at > app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:502) > at > app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:456) > at > app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:436) > at > app//org.apache.openjpa.lib.conf.Configurations.newInstance(Configurations.java:169) > at > app//org.apache.openjpa.jdbc.schema.DataSourceFactory.newDataSource(DataSourceFactory.java:112) > ... 63 more > Caused by: org.apache.openjpa.lib.util.ParseException: Error initializing > configuration. Failed to create an instance of class java.time.Duration for > plugin property 1. > at > app//org.apache.openjpa.lib.util.Options.stringToObject(Options.java:449) > at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:226) > ... 69 more > Caused by: java.lang.ClassNotFoundException: 1 > at > java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) > at > java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) > at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:527) > at java.base/java.lang.Class.forName0(Native Method) > at java.base/java.lang.Class.forName(Class.java:315) > at org.apache.openjpa.lib.util.Options.stringToObject(Options.java:446) > ... 70 more > {noformat} > > It should be possible to reproduce with a small OpenJPA sample project and > adding the following two newer Gradle dependencies: > {noformat} > implementation 'org.apache.commons:commons-dbcp2:2.10.0' > implementation 'org.apache.commons:commons-pool2:2.11.1'{noformat} > > Edit: Fixed version to "2.10.0" -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Assigned] (OPENJPA-2915) commons-dbcp2 2.10.0 breaks OpenJPA because of changed configuration methods
[ https://issues.apache.org/jira/browse/OPENJPA-2915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Maxim Solodovnik reassigned OPENJPA-2915: - Assignee: Maxim Solodovnik (was: Mark Struberg) > commons-dbcp2 2.10.0 breaks OpenJPA because of changed configuration methods > > > Key: OPENJPA-2915 > URL: https://issues.apache.org/jira/browse/OPENJPA-2915 > Project: OpenJPA > Issue Type: Bug > Components: third-party >Affects Versions: 3.2.2 >Reporter: Dominik Stadler >Assignee: Maxim Solodovnik >Priority: Minor > Labels: patch > Fix For: 3.2.3, 4.0.0 > > > When upgrading commons-dbcp2 to the latest version 2.10.0, OpenJPA fails with > exceptions when it tries to provide options to commons-dbcp2. > It seems this happens because dbcp2 moved from Integer-Duration to using > java.time.Duration. > See > [https://github.com/apache/commons-dbcp/commit/93207813fd6b6c0230cfcebb0e9f5b19e9fa72b9] > It seems that even though the change in dbcp2 was done in a > backwards-compatible way, the automatic configuration handling in OpenJPA > stumbles and throws an exception when latest commons-dbcp2 (and > commons-pool2) are used: > {noformat} > Caused by: org.apache.openjpa.lib.util.ParseException: > org.apache.commons.dbcp2.BasicDataSource@72eed4db.MaxWait = 1 > at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:234) > at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:187) > at > app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:502) > at > app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:456) > at > app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:436) > at > app//org.apache.openjpa.lib.conf.Configurations.newInstance(Configurations.java:169) > at > app//org.apache.openjpa.jdbc.schema.DataSourceFactory.newDataSource(DataSourceFactory.java:112) > ... 63 more > Caused by: org.apache.openjpa.lib.util.ParseException: Error initializing > configuration. Failed to create an instance of class java.time.Duration for > plugin property 1. > at > app//org.apache.openjpa.lib.util.Options.stringToObject(Options.java:449) > at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:226) > ... 69 more > Caused by: java.lang.ClassNotFoundException: 1 > at > java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) > at > java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) > at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:527) > at java.base/java.lang.Class.forName0(Native Method) > at java.base/java.lang.Class.forName(Class.java:315) > at org.apache.openjpa.lib.util.Options.stringToObject(Options.java:446) > ... 70 more > {noformat} > > It should be possible to reproduce with a small OpenJPA sample project and > adding the following two newer Gradle dependencies: > {noformat} > implementation 'org.apache.commons:commons-dbcp2:2.10.0' > implementation 'org.apache.commons:commons-pool2:2.11.1'{noformat} > > Edit: Fixed version to "2.10.0" -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (OPENJPA-2915) commons-dbcp2 2.10.0 breaks OpenJPA because of changed configuration methods
[ https://issues.apache.org/jira/browse/OPENJPA-2915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Maxim Solodovnik updated OPENJPA-2915: -- Fix Version/s: 3.2.3 4.0.0 > commons-dbcp2 2.10.0 breaks OpenJPA because of changed configuration methods > > > Key: OPENJPA-2915 > URL: https://issues.apache.org/jira/browse/OPENJPA-2915 > Project: OpenJPA > Issue Type: Bug > Components: third-party >Affects Versions: 3.2.2 >Reporter: Dominik Stadler >Assignee: Mark Struberg >Priority: Minor > Labels: patch > Fix For: 3.2.3, 4.0.0 > > > When upgrading commons-dbcp2 to the latest version 2.10.0, OpenJPA fails with > exceptions when it tries to provide options to commons-dbcp2. > It seems this happens because dbcp2 moved from Integer-Duration to using > java.time.Duration. > See > [https://github.com/apache/commons-dbcp/commit/93207813fd6b6c0230cfcebb0e9f5b19e9fa72b9] > It seems that even though the change in dbcp2 was done in a > backwards-compatible way, the automatic configuration handling in OpenJPA > stumbles and throws an exception when latest commons-dbcp2 (and > commons-pool2) are used: > {noformat} > Caused by: org.apache.openjpa.lib.util.ParseException: > org.apache.commons.dbcp2.BasicDataSource@72eed4db.MaxWait = 1 > at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:234) > at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:187) > at > app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:502) > at > app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:456) > at > app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:436) > at > app//org.apache.openjpa.lib.conf.Configurations.newInstance(Configurations.java:169) > at > app//org.apache.openjpa.jdbc.schema.DataSourceFactory.newDataSource(DataSourceFactory.java:112) > ... 63 more > Caused by: org.apache.openjpa.lib.util.ParseException: Error initializing > configuration. Failed to create an instance of class java.time.Duration for > plugin property 1. > at > app//org.apache.openjpa.lib.util.Options.stringToObject(Options.java:449) > at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:226) > ... 69 more > Caused by: java.lang.ClassNotFoundException: 1 > at > java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) > at > java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) > at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:527) > at java.base/java.lang.Class.forName0(Native Method) > at java.base/java.lang.Class.forName(Class.java:315) > at org.apache.openjpa.lib.util.Options.stringToObject(Options.java:446) > ... 70 more > {noformat} > > It should be possible to reproduce with a small OpenJPA sample project and > adding the following two newer Gradle dependencies: > {noformat} > implementation 'org.apache.commons:commons-dbcp2:2.10.0' > implementation 'org.apache.commons:commons-pool2:2.11.1'{noformat} > > Edit: Fixed version to "2.10.0" -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2915) commons-dbcp2 2.10.0 breaks OpenJPA because of changed configuration methods
[ https://issues.apache.org/jira/browse/OPENJPA-2915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17773947#comment-17773947 ] ASF subversion and git services commented on OPENJPA-2915: -- Commit 33372a718ef48243f7774af43c4172d8407dfe18 in openjpa's branch refs/heads/master from Maxim Solodovnik [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=33372a718 ] [OPENJPA-2915] properties of type Duration can be set as expected (#114) > commons-dbcp2 2.10.0 breaks OpenJPA because of changed configuration methods > > > Key: OPENJPA-2915 > URL: https://issues.apache.org/jira/browse/OPENJPA-2915 > Project: OpenJPA > Issue Type: Bug > Components: third-party >Affects Versions: 3.2.2 >Reporter: Dominik Stadler >Assignee: Mark Struberg >Priority: Minor > Labels: patch > > When upgrading commons-dbcp2 to the latest version 2.10.0, OpenJPA fails with > exceptions when it tries to provide options to commons-dbcp2. > It seems this happens because dbcp2 moved from Integer-Duration to using > java.time.Duration. > See > [https://github.com/apache/commons-dbcp/commit/93207813fd6b6c0230cfcebb0e9f5b19e9fa72b9] > It seems that even though the change in dbcp2 was done in a > backwards-compatible way, the automatic configuration handling in OpenJPA > stumbles and throws an exception when latest commons-dbcp2 (and > commons-pool2) are used: > {noformat} > Caused by: org.apache.openjpa.lib.util.ParseException: > org.apache.commons.dbcp2.BasicDataSource@72eed4db.MaxWait = 1 > at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:234) > at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:187) > at > app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:502) > at > app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:456) > at > app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:436) > at > app//org.apache.openjpa.lib.conf.Configurations.newInstance(Configurations.java:169) > at > app//org.apache.openjpa.jdbc.schema.DataSourceFactory.newDataSource(DataSourceFactory.java:112) > ... 63 more > Caused by: org.apache.openjpa.lib.util.ParseException: Error initializing > configuration. Failed to create an instance of class java.time.Duration for > plugin property 1. > at > app//org.apache.openjpa.lib.util.Options.stringToObject(Options.java:449) > at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:226) > ... 69 more > Caused by: java.lang.ClassNotFoundException: 1 > at > java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) > at > java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) > at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:527) > at java.base/java.lang.Class.forName0(Native Method) > at java.base/java.lang.Class.forName(Class.java:315) > at org.apache.openjpa.lib.util.Options.stringToObject(Options.java:446) > ... 70 more > {noformat} > > It should be possible to reproduce with a small OpenJPA sample project and > adding the following two newer Gradle dependencies: > {noformat} > implementation 'org.apache.commons:commons-dbcp2:2.10.0' > implementation 'org.apache.commons:commons-pool2:2.11.1'{noformat} > > Edit: Fixed version to "2.10.0" -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Created] (OPENJPA-2916) Website: documentation page is not showing openjpa 3.1.x
Christoph Giera created OPENJPA-2916: Summary: Website: documentation page is not showing openjpa 3.1.x Key: OPENJPA-2916 URL: https://issues.apache.org/jira/browse/OPENJPA-2916 Project: OpenJPA Issue Type: Bug Components: site Reporter: Christoph Giera Attachments: openjpa.PNG On the documentation page of the website there is a double section for 3.2.x but no 3.1.x anymore, Maybe an copy paste error. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2915) commons-dbcp2 2.10.0 breaks OpenJPA because of changed configuration methods
[ https://issues.apache.org/jira/browse/OPENJPA-2915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17769430#comment-17769430 ] Dominik Stadler commented on OPENJPA-2915: -- Thanks for the links and the workaround, I can confirm that using "MaxWaitMillis" makes it work again with latest dbcp2 in my projects. > commons-dbcp2 2.10.0 breaks OpenJPA because of changed configuration methods > > > Key: OPENJPA-2915 > URL: https://issues.apache.org/jira/browse/OPENJPA-2915 > Project: OpenJPA > Issue Type: Bug > Components: third-party >Affects Versions: 3.2.2 >Reporter: Dominik Stadler >Assignee: Mark Struberg >Priority: Minor > Labels: patch > > When upgrading commons-dbcp2 to the latest version 2.10.0, OpenJPA fails with > exceptions when it tries to provide options to commons-dbcp2. > It seems this happens because dbcp2 moved from Integer-Duration to using > java.time.Duration. > See > [https://github.com/apache/commons-dbcp/commit/93207813fd6b6c0230cfcebb0e9f5b19e9fa72b9] > It seems that even though the change in dbcp2 was done in a > backwards-compatible way, the automatic configuration handling in OpenJPA > stumbles and throws an exception when latest commons-dbcp2 (and > commons-pool2) are used: > {noformat} > Caused by: org.apache.openjpa.lib.util.ParseException: > org.apache.commons.dbcp2.BasicDataSource@72eed4db.MaxWait = 1 > at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:234) > at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:187) > at > app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:502) > at > app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:456) > at > app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:436) > at > app//org.apache.openjpa.lib.conf.Configurations.newInstance(Configurations.java:169) > at > app//org.apache.openjpa.jdbc.schema.DataSourceFactory.newDataSource(DataSourceFactory.java:112) > ... 63 more > Caused by: org.apache.openjpa.lib.util.ParseException: Error initializing > configuration. Failed to create an instance of class java.time.Duration for > plugin property 1. > at > app//org.apache.openjpa.lib.util.Options.stringToObject(Options.java:449) > at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:226) > ... 69 more > Caused by: java.lang.ClassNotFoundException: 1 > at > java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) > at > java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) > at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:527) > at java.base/java.lang.Class.forName0(Native Method) > at java.base/java.lang.Class.forName(Class.java:315) > at org.apache.openjpa.lib.util.Options.stringToObject(Options.java:446) > ... 70 more > {noformat} > > It should be possible to reproduce with a small OpenJPA sample project and > adding the following two newer Gradle dependencies: > {noformat} > implementation 'org.apache.commons:commons-dbcp2:2.10.0' > implementation 'org.apache.commons:commons-pool2:2.11.1'{noformat} > > Edit: Fixed version to "2.10.0" -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2915) commons-dbcp2 2.10.0 breaks OpenJPA because of changed configuration methods
[ https://issues.apache.org/jira/browse/OPENJPA-2915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17769413#comment-17769413 ] ASF subversion and git services commented on OPENJPA-2915: -- Commit b933f58dcc35f6bdb2a6d0c83a2651b53a8e89d4 in openjpa's branch refs/heads/OPENJPA-2915-duration-props from Maxim Solodovnik [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=b933f58dc ] [OPENJPA-2915] properties of type Duration can be set as expected > commons-dbcp2 2.10.0 breaks OpenJPA because of changed configuration methods > > > Key: OPENJPA-2915 > URL: https://issues.apache.org/jira/browse/OPENJPA-2915 > Project: OpenJPA > Issue Type: Bug > Components: third-party >Affects Versions: 3.2.2 >Reporter: Dominik Stadler >Assignee: Mark Struberg >Priority: Minor > > When upgrading commons-dbcp2 to the latest version 2.10.0, OpenJPA fails with > exceptions when it tries to provide options to commons-dbcp2. > It seems this happens because dbcp2 moved from Integer-Duration to using > java.time.Duration. > See > [https://github.com/apache/commons-dbcp/commit/93207813fd6b6c0230cfcebb0e9f5b19e9fa72b9] > It seems that even though the change in dbcp2 was done in a > backwards-compatible way, the automatic configuration handling in OpenJPA > stumbles and throws an exception when latest commons-dbcp2 (and > commons-pool2) are used: > {noformat} > Caused by: org.apache.openjpa.lib.util.ParseException: > org.apache.commons.dbcp2.BasicDataSource@72eed4db.MaxWait = 1 > at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:234) > at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:187) > at > app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:502) > at > app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:456) > at > app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:436) > at > app//org.apache.openjpa.lib.conf.Configurations.newInstance(Configurations.java:169) > at > app//org.apache.openjpa.jdbc.schema.DataSourceFactory.newDataSource(DataSourceFactory.java:112) > ... 63 more > Caused by: org.apache.openjpa.lib.util.ParseException: Error initializing > configuration. Failed to create an instance of class java.time.Duration for > plugin property 1. > at > app//org.apache.openjpa.lib.util.Options.stringToObject(Options.java:449) > at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:226) > ... 69 more > Caused by: java.lang.ClassNotFoundException: 1 > at > java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) > at > java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) > at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:527) > at java.base/java.lang.Class.forName0(Native Method) > at java.base/java.lang.Class.forName(Class.java:315) > at org.apache.openjpa.lib.util.Options.stringToObject(Options.java:446) > ... 70 more > {noformat} > > It should be possible to reproduce with a small OpenJPA sample project and > adding the following two newer Gradle dependencies: > {noformat} > implementation 'org.apache.commons:commons-dbcp2:2.10.0' > implementation 'org.apache.commons:commons-pool2:2.11.1'{noformat} > > Edit: Fixed version to "2.10.0" -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2915) commons-dbcp2 2.10.0 breaks OpenJPA because of changed configuration methods
[ https://issues.apache.org/jira/browse/OPENJPA-2915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17769410#comment-17769410 ] Maxim Solodovnik commented on OPENJPA-2915: --- Hello [~dominik.stad...@gmx.at], sorry for my quick and inaccurate answer, I have to read bug description before posting :( My answer is based on these 2 discussions: https://lists.apache.org/thread/g99k2d07k95o8rwph7sdtol8j91n90t8 https://lists.apache.org/thread/5qq1pdcn13y392vpdpnvmvcd3fs5mnt3 According to the issue: I was able to reproduce it using our application The code need to tweaked, I'll try to create PR :) meanwhile as a simple workaround you can use {{maxWaitMillis=1}} instead of {{MaxWait=1}} > commons-dbcp2 2.10.0 breaks OpenJPA because of changed configuration methods > > > Key: OPENJPA-2915 > URL: https://issues.apache.org/jira/browse/OPENJPA-2915 > Project: OpenJPA > Issue Type: Bug > Components: third-party >Affects Versions: 3.2.2 >Reporter: Dominik Stadler >Assignee: Mark Struberg >Priority: Minor > > When upgrading commons-dbcp2 to the latest version 2.10.0, OpenJPA fails with > exceptions when it tries to provide options to commons-dbcp2. > It seems this happens because dbcp2 moved from Integer-Duration to using > java.time.Duration. > See > [https://github.com/apache/commons-dbcp/commit/93207813fd6b6c0230cfcebb0e9f5b19e9fa72b9] > It seems that even though the change in dbcp2 was done in a > backwards-compatible way, the automatic configuration handling in OpenJPA > stumbles and throws an exception when latest commons-dbcp2 (and > commons-pool2) are used: > {noformat} > Caused by: org.apache.openjpa.lib.util.ParseException: > org.apache.commons.dbcp2.BasicDataSource@72eed4db.MaxWait = 1 > at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:234) > at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:187) > at > app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:502) > at > app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:456) > at > app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:436) > at > app//org.apache.openjpa.lib.conf.Configurations.newInstance(Configurations.java:169) > at > app//org.apache.openjpa.jdbc.schema.DataSourceFactory.newDataSource(DataSourceFactory.java:112) > ... 63 more > Caused by: org.apache.openjpa.lib.util.ParseException: Error initializing > configuration. Failed to create an instance of class java.time.Duration for > plugin property 1. > at > app//org.apache.openjpa.lib.util.Options.stringToObject(Options.java:449) > at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:226) > ... 69 more > Caused by: java.lang.ClassNotFoundException: 1 > at > java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) > at > java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) > at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:527) > at java.base/java.lang.Class.forName0(Native Method) > at java.base/java.lang.Class.forName(Class.java:315) > at org.apache.openjpa.lib.util.Options.stringToObject(Options.java:446) > ... 70 more > {noformat} > > It should be possible to reproduce with a small OpenJPA sample project and > adding the following two newer Gradle dependencies: > {noformat} > implementation 'org.apache.commons:commons-dbcp2:2.10.0' > implementation 'org.apache.commons:commons-pool2:2.11.1'{noformat} > > Edit: Fixed version to "2.10.0" -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2915) commons-dbcp2 2.10.0 breaks OpenJPA because of changed configuration methods
[ https://issues.apache.org/jira/browse/OPENJPA-2915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17769024#comment-17769024 ] Dominik Stadler commented on OPENJPA-2915: -- Not sure what the comment about "jakarta" means and which branch this is. In order to make it easy to reproduce, I have put everything that is needed at [https://github.com/centic9/openjpa-reproduce] Use either version of commons-dbcp2 in build.gradle to show the problem or make it work again. > commons-dbcp2 2.10.0 breaks OpenJPA because of changed configuration methods > > > Key: OPENJPA-2915 > URL: https://issues.apache.org/jira/browse/OPENJPA-2915 > Project: OpenJPA > Issue Type: Bug > Components: third-party >Affects Versions: 3.2.2 >Reporter: Dominik Stadler >Assignee: Mark Struberg >Priority: Minor > > When upgrading commons-dbcp2 to the latest version 2.10.0, OpenJPA fails with > exceptions when it tries to provide options to commons-dbcp2. > It seems this happens because dbcp2 moved from Integer-Duration to using > java.time.Duration. > See > [https://github.com/apache/commons-dbcp/commit/93207813fd6b6c0230cfcebb0e9f5b19e9fa72b9] > It seems that even though the change in dbcp2 was done in a > backwards-compatible way, the automatic configuration handling in OpenJPA > stumbles and throws an exception when latest commons-dbcp2 (and > commons-pool2) are used: > {noformat} > Caused by: org.apache.openjpa.lib.util.ParseException: > org.apache.commons.dbcp2.BasicDataSource@72eed4db.MaxWait = 1 > at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:234) > at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:187) > at > app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:502) > at > app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:456) > at > app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:436) > at > app//org.apache.openjpa.lib.conf.Configurations.newInstance(Configurations.java:169) > at > app//org.apache.openjpa.jdbc.schema.DataSourceFactory.newDataSource(DataSourceFactory.java:112) > ... 63 more > Caused by: org.apache.openjpa.lib.util.ParseException: Error initializing > configuration. Failed to create an instance of class java.time.Duration for > plugin property 1. > at > app//org.apache.openjpa.lib.util.Options.stringToObject(Options.java:449) > at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:226) > ... 69 more > Caused by: java.lang.ClassNotFoundException: 1 > at > java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) > at > java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) > at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:527) > at java.base/java.lang.Class.forName0(Native Method) > at java.base/java.lang.Class.forName(Class.java:315) > at org.apache.openjpa.lib.util.Options.stringToObject(Options.java:446) > ... 70 more > {noformat} > > It should be possible to reproduce with a small OpenJPA sample project and > adding the following two newer Gradle dependencies: > {noformat} > implementation 'org.apache.commons:commons-dbcp2:2.10.0' > implementation 'org.apache.commons:commons-pool2:2.11.1'{noformat} > > Edit: Fixed version to "2.10.0" -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (OPENJPA-2915) commons-dbcp2 2.10.0 breaks OpenJPA because of changed configuration methods
[ https://issues.apache.org/jira/browse/OPENJPA-2915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dominik Stadler updated OPENJPA-2915: - Description: When upgrading commons-dbcp2 to the latest version 2.10.0, OpenJPA fails with exceptions when it tries to provide options to commons-dbcp2. It seems this happens because dbcp2 moved from Integer-Duration to using java.time.Duration. See [https://github.com/apache/commons-dbcp/commit/93207813fd6b6c0230cfcebb0e9f5b19e9fa72b9] It seems that even though the change in dbcp2 was done in a backwards-compatible way, the automatic configuration handling in OpenJPA stumbles and throws an exception when latest commons-dbcp2 (and commons-pool2) are used: {noformat} Caused by: org.apache.openjpa.lib.util.ParseException: org.apache.commons.dbcp2.BasicDataSource@72eed4db.MaxWait = 1 at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:234) at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:187) at app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:502) at app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:456) at app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:436) at app//org.apache.openjpa.lib.conf.Configurations.newInstance(Configurations.java:169) at app//org.apache.openjpa.jdbc.schema.DataSourceFactory.newDataSource(DataSourceFactory.java:112) ... 63 more Caused by: org.apache.openjpa.lib.util.ParseException: Error initializing configuration. Failed to create an instance of class java.time.Duration for plugin property 1. at app//org.apache.openjpa.lib.util.Options.stringToObject(Options.java:449) at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:226) ... 69 more Caused by: java.lang.ClassNotFoundException: 1 at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:527) at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Class.java:315) at org.apache.openjpa.lib.util.Options.stringToObject(Options.java:446) ... 70 more {noformat} It should be possible to reproduce with a small OpenJPA sample project and adding the following two newer Gradle dependencies: {noformat} implementation 'org.apache.commons:commons-dbcp2:2.10.0' implementation 'org.apache.commons:commons-pool2:2.11.1'{noformat} Edit: Fixed version to "2.10.0" was: When upgrading commons-dbcp2 to the latest version 2.10.0, OpenJPA fails with exceptions when it tries to provide options to commons-dbcp2. It seems this happens because dbcp2 moved from Integer-Duration to using java.time.Duration. See [https://github.com/apache/commons-dbcp/commit/93207813fd6b6c0230cfcebb0e9f5b19e9fa72b9] It seems that even though the change in dbcp2 was done in a backwards-compatible way, the automatic configuration handling in OpenJPA stumbles and throws an exception when latest commons-dbcp2 (and commons-pool2) are used: {noformat} Caused by: org.apache.openjpa.lib.util.ParseException: org.apache.commons.dbcp2.BasicDataSource@72eed4db.MaxWait = 1 at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:234) at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:187) at app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:502) at app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:456) at app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:436) at app//org.apache.openjpa.lib.conf.Configurations.newInstance(Configurations.java:169) at app//org.apache.openjpa.jdbc.schema.DataSourceFactory.newDataSource(DataSourceFactory.java:112) ... 63 more Caused by: org.apache.openjpa.lib.util.ParseException: Error initializing configuration. Failed to create an instance of class java.time.Duration for plugin property 1. at app//org.apache.openjpa.lib.util.Options.stringToObject(Options.java:449) at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:226) ... 69 more Caused by: java.lang.ClassNotFoundException: 1 at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:527) at java.base/java.lang.Class.forName0(Native Method) at
[jira] [Commented] (OPENJPA-2915) commons-dbcp2 2.10.0 breaks OpenJPA because of changed configuration methods
[ https://issues.apache.org/jira/browse/OPENJPA-2915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17768986#comment-17768986 ] Maxim Solodovnik commented on OPENJPA-2915: --- {{commons-dbcp:2.10.0}} switched to jakarta I've just tried it in our "jakarta" branch: works as expected > commons-dbcp2 2.10.0 breaks OpenJPA because of changed configuration methods > > > Key: OPENJPA-2915 > URL: https://issues.apache.org/jira/browse/OPENJPA-2915 > Project: OpenJPA > Issue Type: Bug > Components: third-party >Affects Versions: 3.2.2 >Reporter: Dominik Stadler >Assignee: Mark Struberg >Priority: Minor > > When upgrading commons-dbcp2 to the latest version 2.10.0, OpenJPA fails with > exceptions when it tries to provide options to commons-dbcp2. > It seems this happens because dbcp2 moved from Integer-Duration to using > java.time.Duration. > See > [https://github.com/apache/commons-dbcp/commit/93207813fd6b6c0230cfcebb0e9f5b19e9fa72b9] > It seems that even though the change in dbcp2 was done in a > backwards-compatible way, the automatic configuration handling in OpenJPA > stumbles and throws an exception when latest commons-dbcp2 (and > commons-pool2) are used: > {noformat} > Caused by: org.apache.openjpa.lib.util.ParseException: > org.apache.commons.dbcp2.BasicDataSource@72eed4db.MaxWait = 1 > at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:234) > at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:187) > at > app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:502) > at > app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:456) > at > app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:436) > at > app//org.apache.openjpa.lib.conf.Configurations.newInstance(Configurations.java:169) > at > app//org.apache.openjpa.jdbc.schema.DataSourceFactory.newDataSource(DataSourceFactory.java:112) > ... 63 more > Caused by: org.apache.openjpa.lib.util.ParseException: Error initializing > configuration. Failed to create an instance of class java.time.Duration for > plugin property 1. > at > app//org.apache.openjpa.lib.util.Options.stringToObject(Options.java:449) > at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:226) > ... 69 more > Caused by: java.lang.ClassNotFoundException: 1 > at > java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) > at > java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) > at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:527) > at java.base/java.lang.Class.forName0(Native Method) > at java.base/java.lang.Class.forName(Class.java:315) > at org.apache.openjpa.lib.util.Options.stringToObject(Options.java:446) > ... 70 more > {noformat} > > It should be possible to reproduce with a small OpenJPA sample project and > adding the following two newer Gradle dependencies: > {noformat} > implementation 'org.apache.commons:commons-dbcp2:2.9.0' > implementation 'org.apache.commons:commons-pool2:2.11.1'{noformat} -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Assigned] (OPENJPA-2915) commons-dbcp2 2.10.0 breaks OpenJPA because of changed configuration methods
[ https://issues.apache.org/jira/browse/OPENJPA-2915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mark Struberg reassigned OPENJPA-2915: -- Assignee: Mark Struberg > commons-dbcp2 2.10.0 breaks OpenJPA because of changed configuration methods > > > Key: OPENJPA-2915 > URL: https://issues.apache.org/jira/browse/OPENJPA-2915 > Project: OpenJPA > Issue Type: Bug > Components: third-party >Affects Versions: 3.2.2 >Reporter: Dominik Stadler >Assignee: Mark Struberg >Priority: Minor > > When upgrading commons-dbcp2 to the latest version 2.10.0, OpenJPA fails with > exceptions when it tries to provide options to commons-dbcp2. > It seems this happens because dbcp2 moved from Integer-Duration to using > java.time.Duration. > See > [https://github.com/apache/commons-dbcp/commit/93207813fd6b6c0230cfcebb0e9f5b19e9fa72b9] > It seems that even though the change in dbcp2 was done in a > backwards-compatible way, the automatic configuration handling in OpenJPA > stumbles and throws an exception when latest commons-dbcp2 (and > commons-pool2) are used: > {noformat} > Caused by: org.apache.openjpa.lib.util.ParseException: > org.apache.commons.dbcp2.BasicDataSource@72eed4db.MaxWait = 1 > at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:234) > at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:187) > at > app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:502) > at > app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:456) > at > app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:436) > at > app//org.apache.openjpa.lib.conf.Configurations.newInstance(Configurations.java:169) > at > app//org.apache.openjpa.jdbc.schema.DataSourceFactory.newDataSource(DataSourceFactory.java:112) > ... 63 more > Caused by: org.apache.openjpa.lib.util.ParseException: Error initializing > configuration. Failed to create an instance of class java.time.Duration for > plugin property 1. > at > app//org.apache.openjpa.lib.util.Options.stringToObject(Options.java:449) > at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:226) > ... 69 more > Caused by: java.lang.ClassNotFoundException: 1 > at > java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) > at > java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) > at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:527) > at java.base/java.lang.Class.forName0(Native Method) > at java.base/java.lang.Class.forName(Class.java:315) > at org.apache.openjpa.lib.util.Options.stringToObject(Options.java:446) > ... 70 more > {noformat} > > It should be possible to reproduce with a small OpenJPA sample project and > adding the following two newer Gradle dependencies: > {noformat} > implementation 'org.apache.commons:commons-dbcp2:2.9.0' > implementation 'org.apache.commons:commons-pool2:2.11.1'{noformat} -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (OPENJPA-2915) commons-dbcp2 2.10.0 breaks OpenJPA because of changed configuration methods
[ https://issues.apache.org/jira/browse/OPENJPA-2915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dominik Stadler updated OPENJPA-2915: - Summary: commons-dbcp2 2.10.0 breaks OpenJPA because of changed configuration methods (was: Newer commons-dbcp2 breaks OpenJPa) > commons-dbcp2 2.10.0 breaks OpenJPA because of changed configuration methods > > > Key: OPENJPA-2915 > URL: https://issues.apache.org/jira/browse/OPENJPA-2915 > Project: OpenJPA > Issue Type: Bug > Components: third-party >Affects Versions: 3.2.2 >Reporter: Dominik Stadler >Priority: Minor > > When upgrading commons-dbcp2 to the latest version 2.10.0, OpenJPA fails with > exceptions when it tries to provide options to commons-dbcp2. > It seems this happens because dbcp2 moved from Integer-Duration to using > java.time.Duration. > See > [https://github.com/apache/commons-dbcp/commit/93207813fd6b6c0230cfcebb0e9f5b19e9fa72b9] > It seems that even though the change in dbcp2 was done in a > backwards-compatible way, the automatic configuration handling in OpenJPA > stumbles and throws an exception when latest commons-dbcp2 (and > commons-pool2) are used: > {noformat} > Caused by: org.apache.openjpa.lib.util.ParseException: > org.apache.commons.dbcp2.BasicDataSource@72eed4db.MaxWait = 1 > at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:234) > at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:187) > at > app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:502) > at > app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:456) > at > app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:436) > at > app//org.apache.openjpa.lib.conf.Configurations.newInstance(Configurations.java:169) > at > app//org.apache.openjpa.jdbc.schema.DataSourceFactory.newDataSource(DataSourceFactory.java:112) > ... 63 more > Caused by: org.apache.openjpa.lib.util.ParseException: Error initializing > configuration. Failed to create an instance of class java.time.Duration for > plugin property 1. > at > app//org.apache.openjpa.lib.util.Options.stringToObject(Options.java:449) > at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:226) > ... 69 more > Caused by: java.lang.ClassNotFoundException: 1 > at > java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) > at > java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) > at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:527) > at java.base/java.lang.Class.forName0(Native Method) > at java.base/java.lang.Class.forName(Class.java:315) > at org.apache.openjpa.lib.util.Options.stringToObject(Options.java:446) > ... 70 more > {noformat} > > It should be possible to reproduce with a small OpenJPA sample project and > adding the following two newer Gradle dependencies: > {noformat} > implementation 'org.apache.commons:commons-dbcp2:2.9.0' > implementation 'org.apache.commons:commons-pool2:2.11.1'{noformat} -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (OPENJPA-2915) Newer commons-dbcp2 breaks OpenJPa
[ https://issues.apache.org/jira/browse/OPENJPA-2915?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dominik Stadler updated OPENJPA-2915: - Description: When upgrading commons-dbcp2 to the latest version 2.10.0, OpenJPA fails with exceptions when it tries to provide options to commons-dbcp2. It seems this happens because dbcp2 moved from Integer-Duration to using java.time.Duration. See [https://github.com/apache/commons-dbcp/commit/93207813fd6b6c0230cfcebb0e9f5b19e9fa72b9] It seems that even though the change in dbcp2 was done in a backwards-compatible way, the automatic configuration handling in OpenJPA stumbles and throws an exception when latest commons-dbcp2 (and commons-pool2) are used: {noformat} Caused by: org.apache.openjpa.lib.util.ParseException: org.apache.commons.dbcp2.BasicDataSource@72eed4db.MaxWait = 1 at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:234) at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:187) at app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:502) at app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:456) at app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:436) at app//org.apache.openjpa.lib.conf.Configurations.newInstance(Configurations.java:169) at app//org.apache.openjpa.jdbc.schema.DataSourceFactory.newDataSource(DataSourceFactory.java:112) ... 63 more Caused by: org.apache.openjpa.lib.util.ParseException: Error initializing configuration. Failed to create an instance of class java.time.Duration for plugin property 1. at app//org.apache.openjpa.lib.util.Options.stringToObject(Options.java:449) at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:226) ... 69 more Caused by: java.lang.ClassNotFoundException: 1 at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:527) at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Class.java:315) at org.apache.openjpa.lib.util.Options.stringToObject(Options.java:446) ... 70 more {noformat} It should be possible to reproduce with a small OpenJPA sample project and adding the following two newer Gradle dependencies: {noformat} implementation 'org.apache.commons:commons-dbcp2:2.9.0' implementation 'org.apache.commons:commons-pool2:2.11.1'{noformat} was: When upgrading commons-dbcp2 to the latest version 2.10.0, OpenJPA fails with exceptions when it tries to provide options to commons-dbcp2. It seems this happens because dbcp2 moved from Integer-Duration to using java.time.Duration. See https://github.com/apache/commons-dbcp/commit/93207813fd6b6c0230cfcebb0e9f5b19e9fa72b9 It seems that even though the change in dbcp2 was done in a backwards-compatible way, the automatic configuration handling in OpenJPA stumbles and throws an exception when latest commons-dbcp2 (and commons-pool2) are used: {noformat} Caused by: org.apache.openjpa.lib.util.ParseException: org.apache.commons.dbcp2.BasicDataSource@72eed4db.MaxWait = 1 at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:234) at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:187) at app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:502) at app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:456) at app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:436) at app//org.apache.openjpa.lib.conf.Configurations.newInstance(Configurations.java:169) at app//org.apache.openjpa.jdbc.schema.DataSourceFactory.newDataSource(DataSourceFactory.java:112) ... 63 more Caused by: org.apache.openjpa.lib.util.ParseException: Error initializing configuration. Failed to create an instance of class java.time.Duration for plugin property 1. at app//org.apache.openjpa.lib.util.Options.stringToObject(Options.java:449) at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:226) ... 69 more Caused by: java.lang.ClassNotFoundException: 1 at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:527) at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Class.java:315
[jira] [Created] (OPENJPA-2915) Newer commons-dbcp2 breaks OpenJPa
Dominik Stadler created OPENJPA-2915: Summary: Newer commons-dbcp2 breaks OpenJPa Key: OPENJPA-2915 URL: https://issues.apache.org/jira/browse/OPENJPA-2915 Project: OpenJPA Issue Type: Bug Components: third-party Affects Versions: 3.2.2 Reporter: Dominik Stadler When upgrading commons-dbcp2 to the latest version 2.10.0, OpenJPA fails with exceptions when it tries to provide options to commons-dbcp2. It seems this happens because dbcp2 moved from Integer-Duration to using java.time.Duration. See https://github.com/apache/commons-dbcp/commit/93207813fd6b6c0230cfcebb0e9f5b19e9fa72b9 It seems that even though the change in dbcp2 was done in a backwards-compatible way, the automatic configuration handling in OpenJPA stumbles and throws an exception when latest commons-dbcp2 (and commons-pool2) are used: {noformat} Caused by: org.apache.openjpa.lib.util.ParseException: org.apache.commons.dbcp2.BasicDataSource@72eed4db.MaxWait = 1 at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:234) at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:187) at app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:502) at app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:456) at app//org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:436) at app//org.apache.openjpa.lib.conf.Configurations.newInstance(Configurations.java:169) at app//org.apache.openjpa.jdbc.schema.DataSourceFactory.newDataSource(DataSourceFactory.java:112) ... 63 more Caused by: org.apache.openjpa.lib.util.ParseException: Error initializing configuration. Failed to create an instance of class java.time.Duration for plugin property 1. at app//org.apache.openjpa.lib.util.Options.stringToObject(Options.java:449) at app//org.apache.openjpa.lib.util.Options.setInto(Options.java:226) ... 69 more Caused by: java.lang.ClassNotFoundException: 1 at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:527) at java.base/java.lang.Class.forName0(Native Method) at java.base/java.lang.Class.forName(Class.java:315) at org.apache.openjpa.lib.util.Options.stringToObject(Options.java:446) ... 70 more {noformat} -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Resolved] (OPENJPA-2914) upgrade xbean to 4.23
[ https://issues.apache.org/jira/browse/OPENJPA-2914?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mark Struberg resolved OPENJPA-2914. Resolution: Fixed > upgrade xbean to 4.23 > - > > Key: OPENJPA-2914 > URL: https://issues.apache.org/jira/browse/OPENJPA-2914 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 3.2.2 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > upgrade xbean from 4.22 to 4.23 -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2914) upgrade xbean to 4.23
[ https://issues.apache.org/jira/browse/OPENJPA-2914?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17746997#comment-17746997 ] ASF subversion and git services commented on OPENJPA-2914: -- Commit a1e46a10c68c8176cda82db3d1b60e97ca412b75 in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=a1e46a10c ] OPENJPA-2914 upgrade xbean to 4.23 > upgrade xbean to 4.23 > - > > Key: OPENJPA-2914 > URL: https://issues.apache.org/jira/browse/OPENJPA-2914 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 3.2.2 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > upgrade xbean from 4.22 to 4.23 -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Created] (OPENJPA-2914) upgrade xbean to 4.23
Mark Struberg created OPENJPA-2914: -- Summary: upgrade xbean to 4.23 Key: OPENJPA-2914 URL: https://issues.apache.org/jira/browse/OPENJPA-2914 Project: OpenJPA Issue Type: Improvement Components: kernel Affects Versions: 3.2.2 Reporter: Mark Struberg Assignee: Mark Struberg Fix For: 4.0.0 upgrade xbean from 4.22 to 4.23 -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Resolved] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mark Struberg resolved OPENJPA-2911. Resolution: Fixed We finally got rid of Serp and moved all the parts to Geronimo xbean-asm. > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17746892#comment-17746892 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit 0729141c31e8aad297b0cdc7cfb651363e84dfd9 in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=0729141c3 ] OPENJPA-2911 finish Serp removal > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17746876#comment-17746876 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit bb11f022d8ad03c1289d0d65d08201969132ca46 in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=bb11f022d ] OPENJPA-2911 addGetData via ASM > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17746875#comment-17746875 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit 0ea92f44a4e2044d6c76461a3396f66f741ffc6e in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=0ea92f44a ] OPENJPA-2911 newEmbeddedPCData via ASM > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17746832#comment-17746832 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit 1f8db2ade4bb46ab42ca1f2602e76545cdaebac2 in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=1f8db2ade ] OPENJPA-2911 remove unused methods > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17746831#comment-17746831 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit 8759f6fa7eebb4ed3f5a1cc7d0aa5e8c12197bbc in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=8759f6fa7 ] OPENJPA-2911 PCDataGenerator#store via ASM > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17746646#comment-17746646 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit 07edae25bf11bd496fcc94bebbc57cd5f6e27f75 in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=07edae25b ] OPENJPA-2911 addLoadWithFieldsMethod via ASM > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17746615#comment-17746615 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit 1fa918c8611c4f3a774e126d22f90912b0b92d6f in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=1fa918c86 ] OPENJPA-2911 addLoadMethod via ASM > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17746565#comment-17746565 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit e62e7eaa7c656ee5c900395c5d450dc30d642467 in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=e62e7eaa7 ] OPENJPA-2911 addFieldImplDataMethods via ASM > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17746310#comment-17746310 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit c75e666452b386535c98baee3b481be07b272c8e in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=c75e66645 ] OPENJPA-2911 remove unused Serp fragments > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17746309#comment-17746309 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit f009f39150c3d8f30dd601a4048580ded5f0bddd in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=f009f3915 ] OPENJPA-2911 remove now unused SerpPrivacyHelper > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17746306#comment-17746306 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit f1993f14628580737bfa0f4b46238d2c72ccee43 in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=f1993f146 ] OPENJPA-2911 timeout via ASM > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17746305#comment-17746305 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit 71b0f0b2c63d1f84b88c9598f996fd9258eabec1 in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=71b0f0b2c ] OPENJPA-2911 isLoaded via ASM > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17746261#comment-17746261 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit a8cb9d9d3d0ff07032a8d68b2712c2b46daa6d4b in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=a8cb9d9d3 ] OPENJPA-2911 newEmbeddedPCData in ASM > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17746233#comment-17746233 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit 279412c71a2b9ef93d3452db6640cc47b0eb0f7c in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=279412c71 ] OPENJPA-2911 toNestedData in ASM > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17746232#comment-17746232 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit 9244250865277711aa95f6a9a379c1a3acc4fe4d in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=924425086 ] OPENJPA-2911 enhanceToData in ASM > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17746101#comment-17746101 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit 60ccb2605072307ddf123e499c458a34685d8e17 in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=60ccb2605 ] OPENJPA-2911 start removing Serp from PCDataGenerator wip > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (OPENJPA-2913) TableJDBCSeq can generate duplicate IDs if allocate() is called
[ https://issues.apache.org/jira/browse/OPENJPA-2913?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dario Napolitano updated OPENJPA-2913: -- Description: When using the allocate() method of the ID generator of an entity using table based generation (TableJDBCSeq), the generator will start from 1 no matter what is the current value of the sequence, if it's the first allocation. If a new allocation takes place, the generator is likely to use values already allocated to other entities. Example: OpenJPAEntityManager oem = (OpenJPAEntityManager) em; Generator idGenerator = oem.getIdGenerator(User.class); idGenerator.allocate(1000); This is because TableJDBCSeq does not update the current sequence value during allocate() calls, but only during next() calls. However, the allocate() method is exposed via the Generator interface to request preallocation for efficiency. was: When using the allocate() method of the ID generator of an entity using table based generation (TableJDBCSeq), the generator will start from 1 no matter what is the current value of the sequence, if it's the first allocation. If a new allocation takes place, the generator is likely to use values already allocated to other entities. Example: OpenJPAEntityManager oem = (OpenJPAEntityManager) em; Generator idGenerator = oem.getIdGenerator(User.class); idGenerator.allocate(1000); This is because the TableJDBCSeq does not update the current sequence value during allocate() calls, but only during next() calls. However, the allocate() method is exposed via the Generator interface to request preallocation for efficiency. > TableJDBCSeq can generate duplicate IDs if allocate() is called > --- > > Key: OPENJPA-2913 > URL: https://issues.apache.org/jira/browse/OPENJPA-2913 > Project: OpenJPA > Issue Type: Bug > Components: kernel >Affects Versions: 3.1.2 >Reporter: Dario Napolitano >Priority: Major > > When using the allocate() method of the ID generator of an entity using table > based generation (TableJDBCSeq), the generator will start from 1 no matter > what is the current value of the sequence, if it's the first allocation. If a > new allocation takes place, the generator is likely to use values already > allocated to other entities. > Example: > OpenJPAEntityManager oem = (OpenJPAEntityManager) em; > Generator idGenerator = oem.getIdGenerator(User.class); > idGenerator.allocate(1000); > > This is because TableJDBCSeq does not update the current sequence value > during allocate() calls, but only during next() calls. However, the > allocate() method is exposed via the Generator interface to request > preallocation for efficiency. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Updated] (OPENJPA-2913) TableJDBCSeq can generate duplicate IDs if allocate() is called
[ https://issues.apache.org/jira/browse/OPENJPA-2913?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dario Napolitano updated OPENJPA-2913: -- Summary: TableJDBCSeq can generate duplicate IDs if allocate() is called (was: TableJDBCSeq can genarate duplicate IDs if allocate() is called) > TableJDBCSeq can generate duplicate IDs if allocate() is called > --- > > Key: OPENJPA-2913 > URL: https://issues.apache.org/jira/browse/OPENJPA-2913 > Project: OpenJPA > Issue Type: Bug > Components: kernel >Affects Versions: 3.1.2 >Reporter: Dario Napolitano >Priority: Major > > When using the allocate() method of the ID generator of an entity using table > based generation (TableJDBCSeq), the generator will start from 1 no matter > what is the current value of the sequence, if it's the first allocation. If a > new allocation takes place, the generator is likely to use values already > allocated to other entities. > Example: > OpenJPAEntityManager oem = (OpenJPAEntityManager) em; > Generator idGenerator = oem.getIdGenerator(User.class); > idGenerator.allocate(1000); > > This is because the TableJDBCSeq does not update the current sequence value > during allocate() calls, but only during next() calls. However, the > allocate() method is exposed via the Generator interface to request > preallocation for efficiency. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Created] (OPENJPA-2913) TableJDBCSeq can genarate duplicate IDs if allocate() is called
Dario Napolitano created OPENJPA-2913: - Summary: TableJDBCSeq can genarate duplicate IDs if allocate() is called Key: OPENJPA-2913 URL: https://issues.apache.org/jira/browse/OPENJPA-2913 Project: OpenJPA Issue Type: Bug Components: kernel Affects Versions: 3.1.2 Reporter: Dario Napolitano When using the allocate() method of the ID generator of an entity using table based generation (TableJDBCSeq), the generator will start from 1 no matter what is the current value of the sequence, if it's the first allocation. If a new allocation takes place, the generator is likely to use values already allocated to other entities. Example: OpenJPAEntityManager oem = (OpenJPAEntityManager) em; Generator idGenerator = oem.getIdGenerator(User.class); idGenerator.allocate(1000); This is because the TableJDBCSeq does not update the current sequence value during allocate() calls, but only during next() calls. However, the allocate() method is exposed via the Generator interface to request preallocation for efficiency. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17744713#comment-17744713 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit b04c985956815dc3c50d2593c075197a6120ee73 in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=b04c98595 ] OPENJPA-2911 code cleanup for InterfaceImplGenerator > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17744712#comment-17744712 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit bc63865aac831946f17b4b12a771e09d8226eaad in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=bc63865aa ] OPENJPA-2911 ReverseMapping in ASM > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17744693#comment-17744693 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit f83cb62c54e7401c8161c7ba513a941963055468 in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=f83cb62c5 ] OPENJPA-2911 fix ClassLoader issue with temporary bytecode > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17744681#comment-17744681 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit 6eeb025cf3e771da8461633813e1926d912d2aab in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=6eeb025cf ] OPENJPA-2911 migrate InterfaceImplGenerator wip Still not really there. There is still some very weirdo ClassLoader mixup which gets 'fixed' as sideeffect of using a roundtrip to BCClass. Not yet 100% sure yet, still digging > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17744570#comment-17744570 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit b4bc2c4965487298bdf825508e0f416f97f1bc3b in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=b4bc2c496 ] OPENJPA-2911 remove unused imports > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17744553#comment-17744553 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit 0a81c3de7b8c590bf54b9d4138c51744684d369a in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=0a81c3de7 ] OPENJPA-2911 move PCEnhancer off Serp > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17744195#comment-17744195 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit dfaf8da48e9d01af1911cb6effb5362013e03d14 in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=dfaf8da48 ] OPENJPA-2911 move ASM stuff to one place > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17744194#comment-17744194 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit f26fa179cc831ec570340aac77b961929934235e in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=f26fa179c ] OPENJPA-2911 more _managedType removal, code cleanup > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17744117#comment-17744117 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit b5a6424f2b4e867c99335fded8f5f5d2c7209708 in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=b5a6424f2 ] OPENJPA-2911 isCloneable via ClassNodeTracker > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17744094#comment-17744094 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit eabceb69f43f28e2ac2698bc40e1044dd3f80331 in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=eabceb69f ] OPENJPA-2911 inline ASM adapter handling > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17744095#comment-17744095 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit eba1637454cf1cfa25903f8ab6eb5dda14da3750 in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=eba163745 ] OPENJPA-2911 move more BCClass usage to ASM > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17743965#comment-17743965 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit 86c266df7a2d2840c0f413ef3ea70741ae1bef3a in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=86c266df7 ] OPENJPA-2911 openjpa-lib without Serp > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17743905#comment-17743905 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit 37c114c7241db3c9e5842855718941b95c487de3 in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=37c114c72 ] OPENJPA-2911 getPCBytecode now returns ClassNodeTracker > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17743863#comment-17743863 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit 11367cfbeae7e71c22804fc7c1040989388ea5cb in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=11367cfbe ] OPENJPA-2911 ByteCodeWriter with ASM > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17743862#comment-17743862 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit bcb00d890976ac19e7969858aba3ed235ebcfea9 in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=bcb00d890 ] OPENJPA-2911 move BytecodeWriter to openjpa-kernel had no usage in openjpa-lib but introduced dependeny to Serp over there > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17743551#comment-17743551 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit 96a64bcebaf921c7f25053040ba9a18e1cac62a9 in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=96a64bceb ] OPENJPA-2911 simplification and more modern code > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17743550#comment-17743550 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit a25ad4fc95bc0d23ba22634a771c330df363017b in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=a25ad4fc9 ] OPENJPA-2911 getIdClassConstructorParmOrder in ASM > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17743085#comment-17743085 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit 0ab02d696593b1507e0fcfdbfd2af50e1ed5e74b in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=0ab02d696 ] OPENJPA-2911 AuxilaryEnhancer in ASM > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17743073#comment-17743073 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit fb20da5063e79bfc91214abdaff1acc718c69405 in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=fb20da506 ] OPENJPA-2911 add clone support in ASM > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17743072#comment-17743072 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit 4d505987c39858af3431768189c28204c59536d8 in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=4d505987c ] OPENJPA-2911 addSerialization in ASM > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17742721#comment-17742721 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit 62b14584fbf6781164f5a01f8784cf79a0e493a6 in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=62b14584f ] OPENJPA-2911 Externalizable in ASM > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17742327#comment-17742327 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit 7700fdfd45d0f1995d7e4592d5a8c6c713c05faa in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=7700fdfd4 ] OPENJPA-2911 DetachedState as ASM > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17742149#comment-17742149 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit d7571386696353fd43e999d2a5a0b3f5631cc285 in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=d75713866 ] OPENJPA-2911 remove unused code > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17742148#comment-17742148 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit 58db135c5eb430edbc657a47d3c186fb51e0c1e7 in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=58db135c5 ] OPENJPA-2911 isDetached via ASM > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17739678#comment-17739678 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit e718fc8b5133ae1bcc3f43442bc9f2644e49359f in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=e718fc8b5 ] OPENJPA-2911 using BCClassWriter The standard ASM ClassWriter uses Class.forName but does not leverage our custom ClassLoader which we use to isolate away classes during enhancement. BCClassWriter extends ClassWriter to use the given ClassLoader. > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17739544#comment-17739544 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit cd194bb72e75e3ab1a47d486e9cbd129eefc6175 in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=cd194bb72 ] OPENJPA-2911 addReplaceField in ASM note that this code right now cannot handle subclasses as we now generate ldc classconstant code which Serp is unable to understand. The generated bytecode itself should be correct though! > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17739548#comment-17739548 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit f0fe08baaa4626e9d1cc67c207b0278eb4169566 in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=f0fe08baa ] OPENJPA-2911 _pc was missing the Java Version This die lead to always generating classes only at Java-1.1 bytecode level. > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17739554#comment-17739554 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit 77d8a8e05b3b22d598c4061c56bdb726e67f8d9c in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=77d8a8e05 ] OPENJPA-2911 few more internal methods in ASM * pcGetVersion * translateFromStateManagerMethod > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17739549#comment-17739549 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit 810f85ff9f6a8aa3962270cd9929ad1396b67dbe in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=810f85ff9 ] OPENJPA-2911 fix findField > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17739551#comment-17739551 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit 1a287b267f86079aa79348e9d24f93469522d07a in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=1a287b267 ] OPENJPA-2911 fix pcClearFields for mixed access subclassing > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17739552#comment-17739552 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit a95530b4e6bc00a82077313c7aa876ec1cf12f75 in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=a95530b4e ] OPENJPA-2911 attributeTranslation via ASM > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17739559#comment-17739559 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit 5d63179b480a152b4e56d21c7f059b0c1727fa55 in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=5d63179b4 ] OPENJPA-2911 addCopyKeyFieldsFromObjectIdMethod in ASM > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17739562#comment-17739562 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit 2b9b024f273d63e479a02cad751c28b8ef974ace in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=2b9b024f2 ] OPENJPA-2911 addAccessors in ASM > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17739560#comment-17739560 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit 4b6a38ec1bea4ae3b961f3ecc2186d90a79a5c29 in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=4b6a38ec1 ] OPENJPA-2911 addNewObjectIdInstanceMethod in ASM > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17739561#comment-17739561 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit 5e89853664d46ed7505efd37a3eddcc53d110e38 in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=5e8985366 ] OPENJPA-2911 use ASM static initialiser solved frame problems by fording java bytecode version 49 on Serp as Java5 already supports LDC for Classes but doesn't require frame calculation which Serp is not capable of. > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17739539#comment-17739539 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit f2d27aa15fca7c04f47dfca3770948f3015e17ad in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=f2d27aa15 ] OPENJPA-2911 move from Serp to ASM > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (OPENJPA-2911) Replace Serp with native ASM code
[ https://issues.apache.org/jira/browse/OPENJPA-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17739542#comment-17739542 ] ASF subversion and git services commented on OPENJPA-2911: -- Commit 972b5d0e62451b6b79ea82d4e7fd57c93f77835f in openjpa's branch refs/heads/master from Mark Struberg [ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=972b5d0e6 ] OPENJPA-2911 migrate addNewInstance to ASM > Replace Serp with native ASM code > - > > Key: OPENJPA-2911 > URL: https://issues.apache.org/jira/browse/OPENJPA-2911 > Project: OpenJPA > Issue Type: Improvement > Components: kernel >Affects Versions: 4.0.0 >Reporter: Mark Struberg >Assignee: Mark Struberg >Priority: Major > Fix For: 4.0.0 > > > We have a lot of Code leveraging Serp to create Java bytecode. But Serp is > unmaintained and is only able to create Java5 bytecode. Thus we shall replace > it with ASM. -- This message was sent by Atlassian Jira (v8.20.10#820010)