-->
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: Hibernate on Derby
PostPosted: Tue Feb 22, 2005 9:23 pm 
Newbie

Joined: Tue Feb 22, 2005 8:43 pm
Posts: 3
Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:
Hibernate 2.1.8

Name and version of the database you are using:
Derby

The generated SQL (show_sql=true):
08:56:34,937 INFO [Environment] Hibernate 2.1.8
08:56:34,937 INFO [Environment] loaded properties from resource hibernate.prope
rties: {hibernate.connection.username=, hibernate.connection.password=, hibernat
e.cglib.use_reflection_optimizer=true, hibernate.jdbc.use_streams_for_binary=tru
e, hibernate.dialect=net.sf.hibernate.dialect.DerbyDialect, hibernate.connection
.url=jdbc:derby:/xpetstore;create=true, hibernate.connection.driver_class=org.ap
ache.derby.jdbc.EmbeddedDriver, hibernate.connection.datasource=java:/comp/env/j
dbc/xpetstore}
08:56:34,947 INFO [Environment] using java.io streams to persist binary types
08:56:34,947 INFO [Environment] using CGLIB reflection optimizer
08:56:34,947 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
08:56:34,957 INFO [Configuration] Mapping resource: xpetstore/domain/Item.hbm.x
ml
08:56:39,573 INFO [Binder] Mapping class: xpetstore.domain.Item -> T_ITEM
08:56:39,944 INFO [Configuration] Mapping resource: xpetstore/domain/Order.hbm.
xml
08:57:02,494 INFO [Binder] Mapping class: xpetstore.domain.Order -> T_ORDER
08:57:02,694 ERROR [Configuration] Could not configure datastore from input stre
am
java.lang.NullPointerException
at net.sf.hibernate.util.StringHelper.qualify(StringHelper.java:249)
at net.sf.hibernate.cfg.Binder.bindCollection(Binder.java:509)
at net.sf.hibernate.cfg.Binder$2.create(Binder.java:1434)
at net.sf.hibernate.cfg.Binder.propertiesFromXML(Binder.java:1028)
at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:362)
at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1256)
at net.sf.hibernate.cfg.Configuration.add(Configuration.java:253)
at net.sf.hibernate.cfg.Configuration.addInputStream(Configuration.java:
289)
at net.sf.hibernate.cfg.Configuration.addClass(Configuration.java:355)
at xpetstore.web.servlet.ActionServlet.init(ActionServlet.java:84)
at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.jav
a:383)
at org.mortbay.jetty.servlet.ServletHolder.start(ServletHolder.java:243)

at org.mortbay.jetty.servlet.ServletHandler.initializeServlets(ServletHa
ndler.java:445)
at org.mortbay.jetty.servlet.WebApplicationHandler.initializeServlets(We
bApplicationHandler.java:317)
at org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicatio
nContext.java:512)
at org.apache.geronimo.jetty.JettyWebAppContext.doStart(JettyWebAppConte
xt.java:166)
at org.mortbay.util.Container.start(Container.java:72)
at org.apache.geronimo.jetty.JettyWebAppContext.doStart(JettyWebAppConte
xt.java:153)
at org.apache.geronimo.gbean.jmx.GBeanMBean.doStart(GBeanMBean.java:616)

at org.apache.geronimo.gbean.jmx.AbstractManagedObject.attemptFullStart(
AbstractManagedObject.java:511)

at org.apache.geronimo.gbean.jmx.AbstractManagedObject.start(AbstractMan
agedObject.java:305)
at org.apache.geronimo.gbean.jmx.AbstractManagedObject.startRecursive(Ab
stractManagedObject.java:329)
at org.apache.geronimo.gbean.jmx.GBeanMBean$11.invoke(GBeanMBean.java:10
36)
at org.apache.geronimo.gbean.jmx.GBeanMBeanOperation.invoke(GBeanMBeanOp
eration.java:142)
at org.apache.geronimo.gbean.jmx.GBeanMBean.invoke(GBeanMBean.java:844)
at mx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke(InvokerM
BeanServerInterceptor.java:218)
at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultM
BeanServerInterceptor.java:121)
at mx4j.server.interceptor.SecurityMBeanServerInterceptor.invoke(Securit
yMBeanServerInterceptor.java:86)
at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultM
BeanServerInterceptor.java:121)
at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultM
BeanServerInterceptor.java:121)
at mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.invo
ke(ContextClassLoaderMBeanServerInterceptor.java:205)
at mx4j.server.MX4JMBeanServer.invoke(MX4JMBeanServer.java:1079)
at org.apache.geronimo.gbean.jmx.AbstractManagedObject.startRecursive(Ab
stractManagedObject.java:343)
at org.apache.geronimo.gbean.jmx.GBeanMBean$11.invoke(GBeanMBean.java:10
36)
at org.apache.geronimo.gbean.jmx.GBeanMBeanOperation.invoke(GBeanMBeanOp
eration.java:142)
at org.apache.geronimo.gbean.jmx.GBeanMBean.invoke(GBeanMBean.java:844)
at mx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke(InvokerM
BeanServerInterceptor.java:218)
at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultM
BeanServerInterceptor.java:121)
at mx4j.server.interceptor.SecurityMBeanServerInterceptor.invoke(Securit
yMBeanServerInterceptor.java:86)
at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultM
BeanServerInterceptor.java:121)
at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultM
BeanServerInterceptor.java:121)
at mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.invo
ke(ContextClassLoaderMBeanServerInterceptor.java:205)
at mx4j.server.MX4JMBeanServer.invoke(MX4JMBeanServer.java:1079)
at org.apache.geronimo.kernel.Kernel.invoke(Kernel.java:288)
at org.apache.geronimo.kernel.Kernel.invoke(Kernel.java:283)
at org.apache.geronimo.kernel.Kernel.startRecursiveGBean(Kernel.java:375
)
at org.apache.geronimo.kernel.Kernel.startConfiguration(Kernel.java:418)

at com.gluecode.joe.console.standard.configmanager.ConfigManagerPortlet.
processAction(ConfigManagerPortlet.java:75)
at org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:216
)
at org.apache.pluto.core.PortletServlet.doGet(PortletServlet.java:145)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
at org.apache.pluto.core.PortletServlet.service(PortletServlet.java:140)

at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427
)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
WebApplicationHandler.java:816)
at org.mortbay.jetty.servlet.JSR154Filter.doFilter(JSR154Filter.java:169
)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
WebApplicationHandler.java:807)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicati
onHandler.java:488)
at org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:260)
at org.mortbay.jetty.servlet.Dispatcher.include(Dispatcher.java:149)
at org.apache.pluto.invoker.impl.PortletInvokerImpl.invoke(PortletInvoke
rImpl.java:120)
at org.apache.pluto.invoker.impl.PortletInvokerImpl.action(PortletInvoke
rImpl.java:68)
at org.apache.pluto.PortletContainerImpl.processPortletAction(PortletCon
tainerImpl.java:148)
at org.apache.pluto.portalImpl.core.PortletContainerWrapperImpl.processP
ortletAction(PortletContainerWrapperImpl.java:82)
at org.apache.pluto.portalImpl.Servlet.doGet(Servlet.java:128)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427
)
at org.apache.geronimo.jetty.JettyServletHolder.handle(JettyServletHolde
r.java:64)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
WebApplicationHandler.java:816)
at org.mortbay.jetty.servlet.JSR154Filter.doFilter(JSR154Filter.java:169
)
at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(
WebApplicationHandler.java:807)
at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicati
onHandler.java:488)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:5
69)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplication
Context.java:624)
at org.mortbay.http.HttpContext.handle(HttpContext.java:1434)
at org.mortbay.http.HttpServer.service(HttpServer.java:896)
at org.mortbay.http.HttpConnection.service(HttpConnection.java:814)
at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:981)
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:831)
at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:
244)
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:366)
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 23, 2005 2:22 am 
Newbie

Joined: Mon Sep 06, 2004 1:39 pm
Posts: 18
Location: Utah, USA
where is your mapping?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 23, 2005 3:52 am 
Newbie

Joined: Tue Feb 22, 2005 8:43 pm
Posts: 3
i've placed all my mapping in this directory

..\xpetstore\WEB-INF\classes\xpetstore\domain


Top
 Profile  
 
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.