-->
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.  [ 4 posts ] 
Author Message
 Post subject: Persistance problem?
PostPosted: Sun May 13, 2007 2:22 pm 
Newbie

Joined: Tue Aug 22, 2006 3:32 am
Posts: 17
I have an application uses JPA , it runs on localhost but when i uploaded it rented host it generates an error:
javax.persistence.PersistenceException: java.lang.NullPointerException
org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:258)
org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:120)
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:51)
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:33)
com.enuygun.DAO.DAOHelper.createEntityManagerFactory(DAOHelper.java:11)
com.enuygun.livesearch.Admin.doInit(Admin.java:158)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
bsh.Reflect.invokeMethod(Unknown Source)
bsh.Reflect.invokeObjectMethod(Unknown Source)
bsh.Name.invokeMethod(Unknown Source)
bsh.BSHMethodInvocation.eval(Unknown Source)
bsh.BSHPrimaryExpression.eval(Unknown Source)
bsh.BSHPrimaryExpression.eval(Unknown Source)
bsh.Interpreter.eval(Unknown Source)
bsh.Interpreter.eval(Unknown Source)
org.zkoss.zk.scripting.bsh.BSHInterpreter.exec(BSHInterpreter.java:80)
org.zkoss.zk.scripting.util.GenericInterpreter.interpret(GenericInterpreter.java:205)
org.zkoss.zk.ui.impl.PageImpl.interpret(PageImpl.java:694)
org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:424)
org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:462)
org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:401)
org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:449)
org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:401)
org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage0(UiEngineImpl.java:318)
org.zkoss.zk.ui.impl.UiEngineImpl.execNewPage(UiEngineImpl.java:259)
org.zkoss.zk.ui.http.DHtmlLayoutServlet.process(DHtmlLayoutServlet.java:174)
org.zkoss.zk.ui.http.DHtmlLayoutServlet.doGet(DHtmlLayoutServlet.java:124)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

on DAOHelper line 11, i am creating entity manager(Persistence.createEntityManagerFactory(UnitName))
I am using mysql dialect, and all needed libs are on host. I cant understand problem.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 14, 2007 1:29 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Which HEM version are you running on?

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 14, 2007 3:32 pm 
Newbie

Joined: Tue Aug 22, 2006 3:32 am
Posts: 17
HEM version is 3.3.1.GA.


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 15, 2007 12:27 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
You should have a Caused By: in your stack trace, that's what is really useful. Can you post it?

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.