Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366622 - java.lang.IllegalArgumentException: null when invoking EntityManagerFactoryBuilder.createEntityManagerFactory twice
Summary: java.lang.IllegalArgumentException: null when invoking EntityManagerFactoryBu...
Status: CLOSED DUPLICATE of bug 352708
Alias: None
Product: Gemini.JPA
Classification: RT
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: 1.1.0 M1   Edit
Assignee: Michael Keith CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-13 15:40 EST by Christoph Laeubrich CLA
Modified: 2012-03-29 12:06 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Laeubrich CLA 2011-12-13 15:40:09 EST
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
Comment 1 Michael Keith CLA 2012-03-29 12:06:09 EDT

*** This bug has been marked as a duplicate of bug 352708 ***