-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: I don't know how to deal with this exception.
PostPosted: Sat Aug 29, 2015 10:40 pm 
Newbie

Joined: Sat Aug 29, 2015 9:33 am
Posts: 6
Caused by: java.lang.IllegalArgumentException: Invalid logger interface org.hibernate.ogm.util.impl.Log (implementation not found in sun.misc.Launcher$AppClassLoader@14dad5dc)
at org.jboss.logging.Logger$1.run(Logger.java:2556)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.logging.Logger.getMessageLogger(Logger.java:2529)
at org.jboss.logging.Logger.getMessageLogger(Logger.java:2516)
at org.hibernate.ogm.util.impl.LoggerFactory.make(LoggerFactory.java:21)
at org.hibernate.ogm.datastore.impl.DatastoreProviderInitiator.<clinit>(DatastoreProviderInitiator.java:32)
... 14 more


Top
 Profile  
 
 Post subject: Re: I don't know how to deal with this exception.
PostPosted: Mon Aug 31, 2015 2:54 am 
Hibernate Team
Hibernate Team

Joined: Sat Jan 24, 2009 12:46 pm
Posts: 388
Hi,

It seems your are compiling the Hibernate OGM core module yourself from source?

We use JBoss Logging as a logging abstraction layer (https://github.com/jboss-logging). This is an annotation processor which creates log wrappers based on interfaces such as org.hibernate.ogm.util.impl.Log. Are you running a test from within your IDE by any chance? Then the issue may be that target/generated-sources/annotations is missing as a source folder in your IDE, in which case the logger implementation can not be found at (test) runtime.

If that is not the issue, some more context (what are you trying to do, how are you running this code etc.) would be helpful.

Cheers,

--Gunnar

_________________
Visit my blog at http://musingsofaprogrammingaddict.blogspot.com/


Top
 Profile  
 
 Post subject: Re: I don't know how to deal with this exception.
PostPosted: Mon Jan 04, 2016 6:41 am 
Hi Gunnar ,
I am getting the same error .
I am pasting code snippet with it.

"
@BeforeClass
public static void setUpEntityManagerFactory() {
try{
entityManagerFactory = Persistence.createEntityManagerFactory("hikePu");
}catch(Exception exception){
exception.printStackTrace();
}
}

@AfterClass
public static void closeEntityManagerFactory() {
entityManagerFactory.close();
}

@Test
public void canPersistAndLoadPersonAndHikes() {
EntityManager entityManager = entityManagerFactory.createEntityManager();
}
"

Please let me know where the error is.


Top
  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.