-->
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.  [ 5 posts ] 
Author Message
 Post subject: net.sf.hibernate.QueryException: unexpected token: Error
PostPosted: Wed Oct 22, 2003 3:23 pm 
Beginner
Beginner

Joined: Wed Oct 22, 2003 11:26 am
Posts: 31
Hi,

I am trying to persist one class but getting the errors.
First stack trace is :

[10/22/03 15:20:58:065 EDT] 303299af SystemErr R java.lang.ArrayIndexOutOfBoundsException: 1
[10/22/03 15:20:58:065 EDT] 303299af SystemErr R at net.sf.hibernate.persister.EntityPersister.initPropertyPaths(EntityPersister.java:918)
[10/22/03 15:20:58:065 EDT] 303299af SystemErr R at net.sf.hibernate.persister.EntityPersister.initPropertyPaths(EntityPersister.java:892)
[10/22/03 15:20:58:065 EDT] 303299af SystemErr R at net.sf.hibernate.persister.EntityPersister.postInstantiate(EntityPersister.java:113)
[10/22/03 15:20:58:065 EDT] 303299af SystemErr R at net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:223)
[10/22/03 15:20:58:065 EDT] 303299af SystemErr R at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:627)
[10/22/03 15:20:58:065 EDT] 303299af SystemErr R at com.bunge.bgm.contract.business.domain.user.UserMain.configure(UserMain.java:28)
[10/22/03 15:20:58:080 EDT] 303299af SystemErr R at com.ep.TestServlet.doGet(TestServlet.java:61)
[10/22/03 15:20:58:080 EDT] 303299af SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
[10/22/03 15:20:58:080 EDT] 303299af SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[10/22/03 15:20:58:080 EDT] 303299af SystemErr R at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
[10/22/03 15:20:58:080 EDT] 303299af SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
[10/22/03 15:20:58:080 EDT] 303299af SystemErr R at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
[10/22/03 15:20:58:080 EDT] 303299af SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
[10/22/03 15:20:58:080 EDT] 303299af SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
[10/22/03 15:20:58:080 EDT] 303299af SystemErr R at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
[10/22/03 15:20:58:080 EDT] 303299af SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
[10/22/03 15:20:58:080 EDT] 303299af SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:948)
[10/22/03 15:20:58:080 EDT] 303299af SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:530)
[10/22/03 15:20:58:080 EDT] 303299af SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:176)
[10/22/03 15:20:58:080 EDT] 303299af SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
[10/22/03 15:20:58:080 EDT] 303299af SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:201)
[10/22/03 15:20:58:080 EDT] 303299af SystemErr R at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
[10/22/03 15:20:58:080 EDT] 303299af SystemErr R at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:114)
[10/22/03 15:20:58:080 EDT] 303299af SystemErr R at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
[10/22/03 15:20:58:080 EDT] 303299af SystemErr R at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
[10/22/03 15:20:58:080 EDT] 303299af SystemErr R at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
[10/22/03 15:20:58:080 EDT] 303299af SystemErr R at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:610)
[10/22/03 15:20:58:080 EDT] 303299af SystemErr R at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:435)
[10/22/03 15:20:58:080 EDT] 303299af SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)

This is displayed when i am adding ProfitCenter.class to configuration. How can i debug the error using log4j ? all suggestions are welcome.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 22, 2003 3:30 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
what version?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 22, 2003 3:39 pm 
Beginner
Beginner

Joined: Wed Oct 22, 2003 11:26 am
Posts: 31
Hibernate2.0.3


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 22, 2003 3:41 pm 
Beginner
Beginner

Joined: Wed Oct 22, 2003 11:26 am
Posts: 31
gavin wrote:
what version?


Hibernate2.0.3


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 22, 2003 3:43 pm 
Beginner
Beginner

Joined: Wed Oct 22, 2003 11:26 am
Posts: 31
gavin wrote:
what version?


the error is thrown when i add ProfitCenter.class in configure() method.

public void configure() throws HibernateException {
_sessions = new Configuration().addClass(CommodityGroup.class).addClass(Commodity.class).addClass(ProfitCenterContext.class).addClass(UserProfitCenter.class).addClass(ProfitCenter.class).buildSessionFactory();
}

If i remove addClass(ProfitCenter.class) then it works fine.


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