| Summary: | java.lang.IllegalArgumentException: null when invoking EntityManagerFactoryBuilder.createEntityManagerFactory twice | ||
|---|---|---|---|
| Product: | [RT] Gemini.JPA | Reporter: | Christoph Laeubrich <laeubi> |
| Component: | Core | Assignee: | Michael Keith <michael.keith> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | 1.1.0 M1 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
*** This bug has been marked as a duplicate of bug 352708 *** |
Build Identifier: org.eclipse.gemini.jpa_1.0.0.RC3 trying to create two (distinct) instances with EMFB fails. First call: [TRACE] open connection with properties: {javax.persistence.jdbc.url=jdbc:h2:/home/laeubi/data/test comp/db/database;CIPHER=AES;TRACE_LEVEL_FILE=4, javax.persistence.jdbc.password=filepwd userpwd, javax.persistence.jdbc.driver=org.h2.Driver, javax.persistence.jdbc.user=sa} [de.laeubisoft.company.internal.CompanyLoader] [EL Info]: 2011-12-13 21:35:19.579--ServerSession(20002533)--EclipseLink, version: Eclipse Persistence Services - 2.3.1.v20110928-r10176 second call: [TRACE] open connection with properties: {javax.persistence.jdbc.url=jdbc:h2:/home/laeubi/data/test2/db/database;CIPHER=AES;TRACE_LEVEL_FILE=4, javax.persistence.jdbc.password=filepwd userpwd, javax.persistence.jdbc.driver=org.h2.Driver, javax.persistence.jdbc.user=sa} [de.laeubisoft.company.internal.CompanyLoader] [ERROR] creation failed [de.laeubisoft.company.internal.CompanyLoader] java.lang.IllegalArgumentException: null at org.eclipse.gemini.jpa.proxy.EMFBuilderServiceProxyHandler.verifyJDBCProperties(EMFBuilderServiceProxyHandler.java:122) ~[na:na] at org.eclipse.gemini.jpa.proxy.EMFBuilderServiceProxyHandler.invoke(EMFBuilderServiceProxyHandler.java:79) ~[na:na] at $Proxy1.createEntityManagerFactory(Unknown Source) ~[na:na] It works when I comment out one of both create statements, but not with bot together. Reproducible: Always Steps to Reproduce: 1. create an EMF with properties set 'A' 2. create an EMF with properties set 'B' 3. sencond call fails