Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Gemini » I don't get any exceptions from EclipseLink
icon3.gif  I don't get any exceptions from EclipseLink [message #1731579] Sat, 07 May 2016 05:09 Go to next message
Pavel No is currently offline Pavel NoFriend
Messages: 47
Registered: May 2016
Member
I use eclipse link with gemini.jpa in osgi env. This is the list of bunles I install:
	    <bundle name="javax.persistence-2.1.1.jar"/>
	    <bundle name="org.eclipse.persistence.asm-2.6.3-M1.jar"/>
	    <bundle name="org.eclipse.persistence.antlr-2.6.3-M1.jar"/>
	    <bundle name="org.eclipse.persistence.core-2.6.3-M1.jar"/>
	    <bundle name="org.eclipse.persistence.jpa-2.6.3-M1.jar"/>
	    <bundle name="org.eclipse.persistence.jpa.jpql-2.6.3-M1.jar"/>
	    <bundle name="org.eclipse.gemini.jpa_1.2.0.M1.jar"/>
	    <bundle name="org.eclipse.gemini.dbaccess.h2-1.1.0.RELEASE.jar"/>
	    <bundle name="org.eclipse.gemini.dbaccess.util_1.1.0.201206011559.jar"/>


The problem is that I don't get any exceptions from jpa provider. Istead of this the execution of the thread just stops and nothing. For example:

System.out.println("#5");
em=getEntityManager();
System.out.println("#7");
Query query = em.createQuery("Select BLABLABLA distinct p from PersonItem p left join fetch p.contacts WHERE p.guid IN ('398f98dlk3','gfdhhgf5gf')");
System.out.println("#8");


The programs never reaches #8. No exception. On console I see only the following:
...
#7
[EL Config]: connection: 2016-05-07 08:01:33.051--ServerSession(1717159844)--Connection(379332424)--Thread(Thread[FelixFrameworkWiring,5,main])--disconnect
[EL Info]: connection: 2016-05-07 08:01:33.051--ServerSession(1717159844)--Thread(Thread[FelixFrameworkWiring,5,main])--/myPersistenceUnit_nonJtaDataSource=856082737 logout successful


In my persistence.xml I have
<property name="eclipselink.logging.level" value="FINE"/>
<property name="eclipselink.logging.thread" value="false"/>
<property name="eclipselink.logging.exceptions" value="true"/>
<property name="eclipselink.orm.throw.exceptions" value="true"/>


There are also sutuations when I must get exception but get nothing. Please, help to solve this problem.

[Updated on: Sat, 07 May 2016 10:05]

Report message to a moderator

Re: I don't get any exceptions from EclipseLink [message #1731616 is a reply to message #1731579] Sun, 08 May 2016 01:50 Go to previous messageGo to next message
Michael Keith is currently offline Michael KeithFriend
Messages: 243
Registered: July 2009
Senior Member
It looks something else is going on there. Why don't you try FINEST?
You might also try setting Gemini JPA to debug mode just to make sure nothing is happening at the OSGi level:
https://wiki.eclipse.org/Gemini/JPA/Documentation/Troubleshooting
Re: I don't get any exceptions from EclipseLink [message #1731619 is a reply to message #1731616] Sun, 08 May 2016 04:44 Go to previous messageGo to next message
Pavel No is currently offline Pavel NoFriend
Messages: 47
Registered: May 2016
Member
Thank you for your answer. I set to finnest and added -Dorg.eclipse.gemini.debug to java runtime command. However, it didn't help. This is the full ouput from console:

[EL Finest]: properties: 2016-05-08 07:36:52.662--ServerSession(601732110)--Thread(Thread[FelixFrameworkWiring,5,main])--property=eclipselink.logging.thread; value=false
[EL Finest]: properties: 2016-05-08 07:36:52.683--ServerSession(601732110)--property=eclipselink.logging.exceptions; value=true
[EL Fine]: server: 2016-05-08 07:36:52.683--Configured server platform: org.eclipse.persistence.platform.server.NoServerPlatform
[EL Finest]: jpa: 2016-05-08 07:36:52.684--ServerSession(601732110)--Begin predeploying Persistence Unit myPersistenceUnit; session /myPersistenceUnit; state Initial; factoryCount 0
[EL Finest]: properties: 2016-05-08 07:36:52.684--ServerSession(601732110)--property=eclipselink.orm.throw.exceptions; value=true
[EL Finest]: properties: 2016-05-08 07:36:52.685--ServerSession(601732110)--property=eclipselink.weaving.changetracking; default value=true
[EL Finest]: properties: 2016-05-08 07:36:52.685--ServerSession(601732110)--property=eclipselink.weaving.lazy; default value=true
[EL Finest]: properties: 2016-05-08 07:36:52.685--ServerSession(601732110)--property=eclipselink.weaving.eager; default value=false
[EL Finest]: properties: 2016-05-08 07:36:52.686--ServerSession(601732110)--property=eclipselink.weaving.fetchgroups; default value=true
[EL Finest]: properties: 2016-05-08 07:36:52.686--ServerSession(601732110)--property=eclipselink.weaving.internal; default value=true
[EL Finest]: properties: 2016-05-08 07:36:52.686--ServerSession(601732110)--property=eclipselink.weaving.rest; default value=true
[EL Finest]: properties: 2016-05-08 07:36:52.688--ServerSession(601732110)--property=eclipselink.multitenant.tenants-share-emf; default value=true
[EL Finest]: properties: 2016-05-08 07:36:52.688--ServerSession(601732110)--property=eclipselink.multitenant.tenants-share-cache; default value=false
[EL Finer]: metadata: 2016-05-08 07:36:52.709--Searching for mapping file: [META-INF/orm.xml] at root URL: [bundle://18.0:0/].
[EL Finer]: metadata: 2016-05-08 07:36:52.71--Searching for mapping file: [META-INF/eclipselink-orm.xml] at root URL: [bundle://18.0:0/].
[EL Config]: metadata: 2016-05-08 07:36:52.942--ServerSession(601732110)--The access type for the persistent class [class com.temp.PersonItem] is set to [FIELD].
[EL Config]: metadata: 2016-05-08 07:36:52.982--ServerSession(601732110)--The access type for the persistent class [class com.temp.ContactItem] is set to [FIELD].
[EL Config]: metadata: 2016-05-08 07:36:52.984--ServerSession(601732110)--The alias name for the entity class [class com.temp.PersonItem] is being defaulted to: PersonItem.
[EL Config]: metadata: 2016-05-08 07:36:53.043--ServerSession(601732110)--The primary key column name for the mapping element [field contacts] is being defaulted to: col1.
[EL Finer]: weaver: 2016-05-08 07:36:53.047--ServerSession(601732110)--Class [com.temp.ContactItem] registered to be processed by weaver.
[EL Finer]: weaver: 2016-05-08 07:36:53.051--ServerSession(601732110)--Class [com.temp.PersonItem] registered to be processed by weaver.
[EL Config]: weaver: 2016-05-08 07:36:53.051--ServerSession(601732110)--Class com.temp.PersonItem could not be weaved for change tracking as it is not supported by its mappings.
[EL Finest]: jpa: 2016-05-08 07:36:53.075--ServerSession(601732110)--End predeploying Persistence Unit myPersistenceUnit; session /myPersistenceUnit; state Predeployed; factoryCount 0
[EL Finest]: weaver: 2016-05-08 07:36:53.115--Missing class details for [com.temp.Activator].
[EL Finest]: weaver: 2016-05-08 07:36:53.116--Using existing class bytes for [com.temp.Activator].
Gemini JPA Sample started
#1
#2
#3
[EL Finest]: weaver: 2016-05-08 07:36:53.118--Missing class details for [com.temp.PersonDirectoryService].
[EL Finest]: weaver: 2016-05-08 07:36:53.118--Using existing class bytes for [com.temp.PersonDirectoryService].
#4
#5
[EL Finer]: jpa: 2016-05-08 07:36:53.127--JavaSECMPInitializer - predeploying myPersistenceUnit.
[EL Finest]: properties: 2016-05-08 07:36:53.128--ServerSession(2066626242)--Thread(Thread[FelixFrameworkWiring,5,main])--property=eclipselink.logging.thread; value=false
[EL Finest]: properties: 2016-05-08 07:36:53.128--ServerSession(2066626242)--property=eclipselink.logging.exceptions; value=true
[EL Fine]: server: 2016-05-08 07:36:53.129--Configured server platform: org.eclipse.persistence.platform.server.NoServerPlatform
[EL Finest]: jpa: 2016-05-08 07:36:53.129--ServerSession(2066626242)--Begin predeploying Persistence Unit myPersistenceUnit; session /myPersistenceUnit_nonJtaDataSource=562265558; state Initial; factoryCount 0
[EL Finest]: properties: 2016-05-08 07:36:53.129--ServerSession(2066626242)--property=eclipselink.orm.throw.exceptions; value=true
[EL Finest]: properties: 2016-05-08 07:36:53.129--ServerSession(2066626242)--property=eclipselink.weaving.changetracking; default value=true
[EL Finest]: properties: 2016-05-08 07:36:53.129--ServerSession(2066626242)--property=eclipselink.weaving.lazy; default value=true
[EL Finest]: properties: 2016-05-08 07:36:53.13--ServerSession(2066626242)--property=eclipselink.weaving.eager; default value=false
[EL Finest]: properties: 2016-05-08 07:36:53.13--ServerSession(2066626242)--property=eclipselink.weaving.fetchgroups; default value=true
[EL Finest]: properties: 2016-05-08 07:36:53.13--ServerSession(2066626242)--property=eclipselink.weaving.internal; default value=true
[EL Finest]: properties: 2016-05-08 07:36:53.13--ServerSession(2066626242)--property=eclipselink.weaving.rest; default value=true
[EL Finest]: properties: 2016-05-08 07:36:53.13--ServerSession(2066626242)--property=eclipselink.multitenant.tenants-share-emf; default value=true
[EL Finest]: properties: 2016-05-08 07:36:53.13--ServerSession(2066626242)--property=eclipselink.multitenant.tenants-share-cache; default value=false
[EL Finer]: metadata: 2016-05-08 07:36:53.13--Searching for mapping file: [META-INF/orm.xml] at root URL: [bundle://18.0:1/].
[EL Finer]: metadata: 2016-05-08 07:36:53.131--Searching for mapping file: [META-INF/eclipselink-orm.xml] at root URL: [bundle://18.0:1/].
[EL Config]: metadata: 2016-05-08 07:36:53.133--ServerSession(2066626242)--The access type for the persistent class [class com.temp.PersonItem] is set to [FIELD].
[EL Config]: metadata: 2016-05-08 07:36:53.136--ServerSession(2066626242)--The access type for the persistent class [class com.temp.ContactItem] is set to [FIELD].
[EL Config]: metadata: 2016-05-08 07:36:53.136--ServerSession(2066626242)--The alias name for the entity class [class com.temp.PersonItem] is being defaulted to: PersonItem.
[EL Config]: metadata: 2016-05-08 07:36:53.137--ServerSession(2066626242)--The primary key column name for the mapping element [field contacts] is being defaulted to: col1.
[EL Finer]: weaver: 2016-05-08 07:36:53.138--ServerSession(2066626242)--Class [com.temp.ContactItem] registered to be processed by weaver.
[EL Finer]: weaver: 2016-05-08 07:36:53.138--ServerSession(2066626242)--Class [com.temp.PersonItem] registered to be processed by weaver.
[EL Config]: weaver: 2016-05-08 07:36:53.138--ServerSession(2066626242)--Class com.temp.PersonItem could not be weaved for change tracking as it is not supported by its mappings.
[EL Finest]: jpa: 2016-05-08 07:36:53.139--ServerSession(2066626242)--End predeploying Persistence Unit myPersistenceUnit; session /myPersistenceUnit_nonJtaDataSource=562265558; state Predeployed; factoryCount 0
[EL Finest]: jpa: 2016-05-08 07:36:53.139--ServerSession(2066626242)--Begin predeploying Persistence Unit myPersistenceUnit; session /myPersistenceUnit_nonJtaDataSource=562265558; state Predeployed; factoryCount 0
[EL Finest]: jpa: 2016-05-08 07:36:53.139--ServerSession(2066626242)--End predeploying Persistence Unit myPersistenceUnit; session /myPersistenceUnit_nonJtaDataSource=562265558; state Predeployed; factoryCount 1
[EL Finer]: metamodel: 2016-05-08 07:36:53.148--ServerSession(2066626242)--Canonical Metamodel class [com.temp.PersonItem_] not found during initialization.
[EL Finer]: metamodel: 2016-05-08 07:36:53.149--ServerSession(2066626242)--Canonical Metamodel class [com.temp.ContactItem_] not found during initialization.
[EL Finest]: jpa: 2016-05-08 07:36:53.149--ServerSession(2066626242)--Begin deploying Persistence Unit myPersistenceUnit; session /myPersistenceUnit_nonJtaDataSource=562265558; state Predeployed; factoryCount 1
[EL Finest]: weaver: 2016-05-08 07:36:53.155--Begin weaver class transformer processing class [com.temp.PersonItem].
[EL Finest]: weaver: 2016-05-08 07:36:53.155--Initializing compute class writer for [com.temp.PersonItem]. Class loaders: context [4e25154f] argument [5d13c79f].
[EL Finest]: weaver: 2016-05-08 07:36:53.17--Visiting the end of the class [com/temp/PersonItem].
[EL Finest]: weaver: 2016-05-08 07:36:53.171--Adding _persistence_get() method into [com/temp/PersonItem].
[EL Finest]: weaver: 2016-05-08 07:36:53.172--Adding _persistence_set() method into [com/temp/PersonItem].
[EL Finest]: weaver: 2016-05-08 07:36:53.175--Weaved persistence (PersistenceEntity) [com.temp.PersonItem].
[EL Finest]: weaver: 2016-05-08 07:36:53.175--Weaved fetch groups (FetchGroupTracker) [com.temp.PersonItem].
[EL Finest]: weaver: 2016-05-08 07:36:53.175--Weaved REST [com.temp.PersonItem].
[EL Finest]: weaver: 2016-05-08 07:36:53.175--End weaver class transformer processing class [com.temp.PersonItem].
[EL Finest]: weaver: 2016-05-08 07:36:53.206--Begin weaver class transformer processing class [com.temp.ContactItem].
[EL Finest]: weaver: 2016-05-08 07:36:53.206--Initializing compute class writer for [com.temp.ContactItem]. Class loaders: context [4e25154f] argument [5d13c79f].
[EL Finest]: weaver: 2016-05-08 07:36:53.207--Visiting the end of the class [com/temp/ContactItem].
[EL Finest]: weaver: 2016-05-08 07:36:53.208--Adding _persistence_get() method into [com/temp/ContactItem].
[EL Finest]: weaver: 2016-05-08 07:36:53.208--Adding _persistence_set() method into [com/temp/ContactItem].
[EL Finest]: weaver: 2016-05-08 07:36:53.21--Weaved change tracking (ChangeTracker) [com.temp.ContactItem].
[EL Finest]: weaver: 2016-05-08 07:36:53.21--Weaved fetch groups (FetchGroupTracker) [com.temp.ContactItem].
[EL Finest]: weaver: 2016-05-08 07:36:53.21--Weaved REST [com.temp.ContactItem].
[EL Finest]: weaver: 2016-05-08 07:36:53.21--End weaver class transformer processing class [com.temp.ContactItem].
[EL Finest]: jpa: 2016-05-08 07:36:53.216--ServerSession(2066626242)--Bean Validation Factory was not initialized: [javax/validation/Validation].
[EL Finer]: 2016-05-08 07:36:53.219--initializing session manager
[EL Finest]: properties: 2016-05-08 07:36:53.22--ServerSession(2066626242)--property=eclipselink.logging.level; value=FINEST; translated value=FINEST
[EL Finest]: properties: 2016-05-08 07:36:53.22--ServerSession(2066626242)--property=eclipselink.logging.thread; value=false
[EL Finest]: properties: 2016-05-08 07:36:53.22--ServerSession(2066626242)--property=eclipselink.logging.exceptions; value=true
[EL Finest]: properties: 2016-05-08 07:36:53.221--ServerSession(2066626242)--property=eclipselink.logging.level; value=FINEST; translated value=FINEST
[EL Finest]: properties: 2016-05-08 07:36:53.221--ServerSession(2066626242)--property=eclipselink.logging.thread; value=false
[EL Finest]: properties: 2016-05-08 07:36:53.221--ServerSession(2066626242)--property=eclipselink.logging.exceptions; value=true
[EL Finest]: properties: 2016-05-08 07:36:53.222--ServerSession(2066626242)--property=javax.persistence.jdbc.user; value=sa
[EL Finest]: properties: 2016-05-08 07:36:53.222--ServerSession(2066626242)--property=javax.persistence.jdbc.password; value=xxxxxx
[EL Finest]: properties: 2016-05-08 07:36:53.223--ServerSession(2066626242)--property=javax.persistence.nonJtaDataSource; value=org.eclipse.gemini.jpa.datasource.PlainDriverDataSource@21837dd6
[EL Info]: 2016-05-08 07:36:53.227--ServerSession(2066626242)--EclipseLink, version: Eclipse Persistence Services - 2.6.3.v20160218-180e602
[EL Finest]: connection: 2016-05-08 07:36:53.444--Database platform: org.eclipse.persistence.platform.database.oracle.Oracle12Platform, regular expression: (?is)oracle.*12.*
[EL Finest]: connection: 2016-05-08 07:36:53.445--Database platform: org.eclipse.persistence.platform.database.oracle.Oracle11Platform, regular expression: (?is)oracle.*11.*
[EL Finest]: connection: 2016-05-08 07:36:53.445--Database platform: org.eclipse.persistence.platform.database.oracle.Oracle10Platform, regular expression: (?is)oracle.*10.*
[EL Finest]: connection: 2016-05-08 07:36:53.445--Database platform: org.eclipse.persistence.platform.database.oracle.Oracle9Platform, regular expression: (?is)oracle.*9.*
[EL Finest]: connection: 2016-05-08 07:36:53.445--Database platform: org.eclipse.persistence.platform.database.oracle.OraclePlatform, regular expression: (?is)oracle.*
[EL Finest]: connection: 2016-05-08 07:36:53.445--Database platform: org.eclipse.persistence.platform.database.SQLAnywherePlatform, regular expression: SQL\ Anywhere.*
[EL Finest]: connection: 2016-05-08 07:36:53.446--Database platform: org.eclipse.persistence.platform.database.SybasePlatform, regular expression: (?i)(sybase.*)|(adaptive\ server\ enterprise.*)|(SQL\ Server.*)
[EL Finest]: connection: 2016-05-08 07:36:53.446--Database platform: org.eclipse.persistence.platform.database.SQLServerPlatform, regular expression: (?i)microsoft.*
[EL Finest]: connection: 2016-05-08 07:36:53.447--Database platform: org.eclipse.persistence.platform.database.JavaDBPlatform, regular expression: (?i).*derby.*
[EL Finest]: connection: 2016-05-08 07:36:53.447--Database platform: org.eclipse.persistence.platform.database.DB2ZPlatform, regular expression: (?i).*db2.*dsn.*
[EL Finest]: connection: 2016-05-08 07:36:53.447--Database platform: org.eclipse.persistence.platform.database.DB2MainframePlatform, regular expression: (?i).*db2.*qsq.*
[EL Finest]: connection: 2016-05-08 07:36:53.447--Database platform: org.eclipse.persistence.platform.database.DB2Platform, regular expression: (?i).*db2.*
[EL Finest]: connection: 2016-05-08 07:36:53.447--Database platform: org.eclipse.persistence.platform.database.PointBasePlatform, regular expression: (?is)pointbase.*
[EL Finest]: connection: 2016-05-08 07:36:53.448--Database platform: org.eclipse.persistence.platform.database.MySQLPlatform, regular expression: (?i)mysql.*
[EL Finest]: connection: 2016-05-08 07:36:53.448--Database platform: org.eclipse.persistence.platform.database.Informix11Platform, regular expression: (?i)(informix.*)|(ids.*)
[EL Finest]: connection: 2016-05-08 07:36:53.448--Database platform: org.eclipse.persistence.platform.database.PostgreSQLPlatform, regular expression: (?is)postgresql.*
[EL Finest]: connection: 2016-05-08 07:36:53.448--Database platform: org.eclipse.persistence.platform.database.H2Platform, regular expression: (?is)h2.*
[EL Fine]: connection: 2016-05-08 07:36:53.448--Detected database platform: org.eclipse.persistence.platform.database.H2Platform
[EL Config]: connection: 2016-05-08 07:36:53.728--ServerSession(2066626242)--Connection(1167901552)--connecting(DatabaseLogin(
	platform=>H2Platform
	user name=> "sa"
	connector=>JNDIConnector datasource name=>null
))
[EL Config]: connection: 2016-05-08 07:36:53.927--ServerSession(2066626242)--Connection(40721473)--Connected: jdbc:h2:tcp://localhost//data/database
	User: SA
	Database: H2  Version: 1.3.176 (2014-04-05)
	Driver: H2 JDBC Driver  Version: 1.3.176 (2014-04-05)
[EL Finest]: connection: 2016-05-08 07:36:54.219--ServerSession(2066626242)--Connection(730596770)--Connection acquired from connection pool [read].
[EL Finest]: connection: 2016-05-08 07:36:54.219--ServerSession(2066626242)--Connection(730596770)--Connection released to connection pool [read].
[EL Config]: connection: 2016-05-08 07:36:54.22--ServerSession(2066626242)--Connection(145282272)--connecting(DatabaseLogin(
	platform=>H2Platform
	user name=> "sa"
	connector=>JNDIConnector datasource name=>null
))
[EL Config]: connection: 2016-05-08 07:36:54.398--ServerSession(2066626242)--Connection(1005877998)--Connected: jdbc:h2:tcp://localhost//data/database
	User: SA
	Database: H2  Version: 1.3.176 (2014-04-05)
	Driver: H2 JDBC Driver  Version: 1.3.176 (2014-04-05)
[EL Info]: connection: 2016-05-08 07:36:54.741--ServerSession(2066626242)--/myPersistenceUnit_nonJtaDataSource=562265558 login successful
[EL Finer]: metamodel: 2016-05-08 07:36:54.746--ServerSession(2066626242)--Canonical Metamodel class [com.temp.PersonItem_] not found during initialization.
[EL Finer]: metamodel: 2016-05-08 07:36:54.747--ServerSession(2066626242)--Canonical Metamodel class [com.temp.ContactItem_] not found during initialization.
[EL Finest]: jpa: 2016-05-08 07:36:54.747--ServerSession(2066626242)--End deploying Persistence Unit myPersistenceUnit; session /myPersistenceUnit_nonJtaDataSource=562265558; state Deployed; factoryCount 1
#7
[EL Finest]: jpa: 2016-05-08 07:36:55.041--ServerSession(2066626242)--Begin undeploying Persistence Unit myPersistenceUnit; session /myPersistenceUnit_nonJtaDataSource=562265558; state Deployed; factoryCount 1
[EL Config]: connection: 2016-05-08 07:36:55.041--ServerSession(2066626242)--Connection(730596770)--disconnect
[EL Finer]: cache: 2016-05-08 07:36:55.042--ServerSession(2066626242)--initialize identitymaps
[EL Info]: connection: 2016-05-08 07:36:55.042--ServerSession(2066626242)--/myPersistenceUnit_nonJtaDataSource=562265558 logout successful
[EL Finest]: jpa: 2016-05-08 07:36:55.042--ServerSession(2066626242)--End undeploying Persistence Unit myPersistenceUnit; session /myPersistenceUnit_nonJtaDataSource=562265558; state Undeployed; factoryCount 0

Re: I don't get any exceptions from EclipseLink [message #1731669 is a reply to message #1731619] Mon, 09 May 2016 07:04 Go to previous messageGo to next message
Pavel No is currently offline Pavel NoFriend
Messages: 47
Registered: May 2016
Member
Please, help me. The problem still is not solved.
Re: I don't get any exceptions from EclipseLink [message #1785201 is a reply to message #1731669] Tue, 10 April 2018 17:29 Go to previous message
Dominic Hilsbos is currently offline Dominic HilsbosFriend
Messages: 9
Registered: May 2012
Junior Member
If you're still having this problem, could you post the code for the getEntityManager() method?
When I run Gemini JPA and EclipseLink i don't see the logout successful message until the application stops and the entity bundle is stopped.I
Previous Topic:Gemini Blueprint 2.1.0 released
Next Topic:Needs help on migration from spring-dm to gemini blueprint
Goto Forum:
  


Current Time: Sat Oct 05 03:37:18 GMT 2024

Powered by FUDForum. Page generated in 0.04543 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top