-->
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.  [ 1 post ] 
Author Message
 Post subject: Nullpointer in Netweaver.
PostPosted: Mon Jul 26, 2010 1:36 pm 
Newbie

Joined: Wed Jul 07, 2010 10:01 am
Posts: 5
Hello
I'm trying to deploy a simple POC (proof of concept) in several application servers. My POC uses jsf (richfaces) + spring + jpa (hibernate).
So far I was successful in deploying in Tomcat, Glasfish, Weblogic and Websphere. My last application server is Netweaver. And despite the different configuration files (applications.xml and etc) that each application server has, I was able to deploy this POC without any changes in the code. Now in Netweaver I'm getting the following error:
Code:
Caused by: java.lang.NullPointerException: while trying to invoke the method org.hibernate.mapping.PersistentClass.getTable() of an object loaded from local variable 'classMapping'
   at org.hibernate.cfg.AnnotationConfiguration.processFkSecondPassInOrder(AnnotationConfiguration.java:416)
   at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:309)
   at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1162)
   at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1226)
   at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:173)
   at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:854)
   at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:425)
   at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:131)
   at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:225)
   at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:308)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1460)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1400)
   ... 32 more


This doesn't help me. It does suggest that there is something wrong with a relationship mapping, but I can't figure out what and how to fix it.
Can anybody help me with this ?

thanks a lot.

sincerely,

John


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

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.