-->
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.  [ 15 posts ] 
Author Message
 Post subject: mapped error and invalid path
PostPosted: Wed Sep 10, 2008 2:09 am 
Newbie

Joined: Wed Sep 10, 2008 2:04 am
Posts: 10
i had this kind of error at my server log file.
i had mapped all the model file.
but i still have this kind of error:

2008-09-10 13:40:17,183 DEBUG [org.hibernate.hql.ast.ErrorCounter] throwQueryException() : no errors
2008-09-10 13:40:17,183 DEBUG [org.hibernate.hql.antlr.HqlSqlBaseWalker] query() << begin, level = 1
2008-09-10 13:40:17,199 ERROR [org.hibernate.hql.PARSER] *** ERROR: SpInvRec is not mapped.
2008-09-10 13:40:17,199 DEBUG [org.hibernate.hql.ast.ErrorCounter] SpInvRec is not mapped.
SpInvRec is not mapped.
at org.hibernate.hql.ast.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:85)
at org.hibernate.hql.ast.FromElementFactory.addFromElement(FromElementFactory.java:77)
at org.hibernate.hql.ast.FromClause.addFromElement(FromClause.java:67)
at org.hibernate.hql.ast.HqlSqlWalker.createFromElement(HqlSqlWalker.java:217)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElement(HqlSqlBaseWalker.java:2830)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElementList(HqlSqlBaseWalker.java:2719)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromClause(HqlSqlBaseWalker.java:513)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:371)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:201)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:151)
at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:189)
at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:130)
at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:83)
at org.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:427)
at org.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:884)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:834)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
at my.com.shinyang.ilms.service.UtilitiesBean.synchronizeHubDB(UtilitiesBean.java:617)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:130)
at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:51)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:139)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
at org.jboss.ejb.Container.invoke(Container.java:873)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:805)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:406)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:534)
2008-09-10 13:40:17,199 ERROR [org.hibernate.hql.PARSER] *** ERROR: Invalid path: 'sp.invoiceNo'
2008-09-10 13:40:17,199 DEBUG [org.hibernate.hql.ast.ErrorCounter] Invalid path: 'sp.invoiceNo'
Invalid path: 'sp.invoiceNo'
at org.hibernate.hql.ast.LiteralProcessor.lookupConstant(LiteralProcessor.java:85)
at org.hibernate.hql.ast.DotNode.resolve(DotNode.java:172)
at org.hibernate.hql.ast.FromReferenceNode.resolve(FromReferenceNode.java:87)
at org.hibernate.hql.ast.FromReferenceNode.resolve(FromReferenceNode.java:83)
at org.hibernate.hql.ast.HqlSqlWalker.resolve(HqlSqlWalker.java:463)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.expr(HqlSqlBaseWalker.java:863)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.exprOrSubquery(HqlSqlBaseWalker.java:3713)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.comparisonExpr(HqlSqlBaseWalker.java:3190)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.logicalExpr(HqlSqlBaseWalker.java:1405)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.logicalExpr(HqlSqlBaseWalker.java:1330)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.whereClause(HqlSqlBaseWalker.java:599)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:404)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:201)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:151)
at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:189)
at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:130)
at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:83)
at org.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:427)
at org.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:884)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:834)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
at my.com.shinyang.ilms.service.UtilitiesBean.synchronizeHubDB(UtilitiesBean.java:617)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:130)
at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:51)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:139)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
at org.jboss.ejb.Container.invoke(Container.java:873)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:805)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:406)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:534)
2008-09-10 13:40:17,199 ERROR [org.hibernate.hql.PARSER] *** ERROR: <AST>:0:0: unexpected end of subtree
2008-09-10 13:40:17,199 DEBUG [org.hibernate.hql.ast.ErrorCounter] <AST>:0:0: unexpected end of subtree
<AST>:0:0: unexpected end of subtree
at org.hibernate.hql.antlr.HqlSqlBaseWalker.exprOrSubquery(HqlSqlBaseWalker.java:3795)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.comparisonExpr(HqlSqlBaseWalker.java:3193)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.logicalExpr(HqlSqlBaseWalker.java:1405)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.logicalExpr(HqlSqlBaseWalker.java:1330)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.whereClause(HqlSqlBaseWalker.java:599)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:404)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:201)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:151)
at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:189)
at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:130)
at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:83)
at org.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:427)
at org.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:884)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:834)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
at my.com.shinyang.ilms.service.UtilitiesBean.synchronizeHubDB(UtilitiesBean.java:617)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:130)
at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:51)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:139)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
at org.jboss.ejb.Container.invoke(Container.java:873)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:805)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:406)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:534)
2008-09-10 13:40:17,199 ERROR [org.hibernate.hql.PARSER] *** ERROR: Invalid path: 'sp.point'
2008-09-10 13:40:17,199 DEBUG [org.hibernate.hql.ast.ErrorCounter] Invalid path: 'sp.point'
Invalid path: 'sp.point'
at org.hibernate.hql.ast.LiteralProcessor.lookupConstant(LiteralProcessor.java:85)
at org.hibernate.hql.ast.DotNode.resolve(DotNode.java:172)
at org.hibernate.hql.ast.FromReferenceNode.resolve(FromReferenceNode.java:87)
at org.hibernate.hql.ast.FromReferenceNode.resolve(FromReferenceNode.java:83)
at org.hibernate.hql.ast.HqlSqlWalker.resolve(HqlSqlWalker.java:463)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.expr(HqlSqlBaseWalker.java:863)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.exprOrSubquery(HqlSqlBaseWalker.java:3713)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.comparisonExpr(HqlSqlBaseWalker.java:3190)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.logicalExpr(HqlSqlBaseWalker.java:1405)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.logicalExpr(HqlSqlBaseWalker.java:1333)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.whereClause(HqlSqlBaseWalker.java:599)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:404)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:201)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:151)
at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:189)
at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:130)
at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:83)
at org.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:427)
at org.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:884)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:834)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
at my.com.shinyang.ilms.service.UtilitiesBean.synchronizeHubDB(UtilitiesBean.java:617)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:130)
at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:51)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:139)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
at org.jboss.ejb.Container.invoke(Container.java:873)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:805)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:406)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:534)
2008-09-10 13:40:17,199 ERROR [org.hibernate.hql.PARSER] *** ERROR: <AST>:0:0: unexpected end of subtree
2008-09-10 13:40:17,199 DEBUG [org.hibernate.hql.ast.ErrorCounter] <AST>:0:0: unexpected end of subtree
<AST>:0:0: unexpected end of subtree
at org.hibernate.hql.antlr.HqlSqlBaseWalker.exprOrSubquery(HqlSqlBaseWalker.java:3795)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.comparisonExpr(HqlSqlBaseWalker.java:3193)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.logicalExpr(HqlSqlBaseWalker.java:1405)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.logicalExpr(HqlSqlBaseWalker.java:1333)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.whereClause(HqlSqlBaseWalker.java:599)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:404)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:201)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:151)
at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:189)
at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:130)
at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:83)
at org.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:427)
at org.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:884)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:834)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
at my.com.shinyang.ilms.service.UtilitiesBean.synchronizeHubDB(UtilitiesBean.java:617)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:130)
at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:51)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:139)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
at org.jboss.ejb.Container.invoke(Container.java:873)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:805)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:406)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:534)
2008-09-10 13:40:17,199 DEBUG [org.hibernate.hql.antlr.HqlSqlBaseWalker] query() : finishing up , level = 1
2008-09-10 13:40:17,199 DEBUG [org.hibernate.hql.ast.HqlSqlWalker] processQuery() : ( SELECT FromClause{level=1} ( where ( and = = ) ) )
2008-09-10 13:40:17,199 DEBUG [org.hibernate.hql.ast.HqlSqlWalker] Derived SELECT clause created.
2008-09-10 13:40:17,199 DEBUG [org.hibernate.hql.antlr.HqlSqlBaseWalker] query() >> end, level = 1
2008-09-10 13:40:17,199 DEBUG [org.hibernate.hql.ast.AST] --- SQL AST ---
\-[SELECT] QueryNode: 'SELECT'
+-[SELECT_CLAUSE] SelectClause: '{derived select clause}'
+-[FROM] FromClause: 'from' FromClause{level=1, fromElementCounter=0, fromElements=0, fromElementByClassAlias=[], fromElementByTableAlias=[], fromElementsByPath=[], collectionJoinFromElementsByPath=[], impliedElements=[]}
\-[WHERE] SqlNode: 'where'
\-[AND] SqlNode: 'and'
+-[EQ] SqlNode: '='
\-[EQ] SqlNode: '='

2008-09-10 13:40:17,199 INFO [STDOUT] org.hibernate.hql.ast.QuerySyntaxError: SpInvRec is not mapped. [from SpInvRec as sp where sp.invoiceNo='22222' and sp.point='KJA']
at org.hibernate.hql.ast.ErrorCounter.throwQueryException(ErrorCounter.java:63)
at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:196)
at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:130)
at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:83)
at org.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:427)
at org.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:884)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:834)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
at my.com.shinyang.ilms.service.UtilitiesBean.synchronizeHubDB(UtilitiesBean.java:617)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:130)
at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:51)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:139)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
at org.jboss.ejb.Container.invoke(Container.java:873)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:805)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:406)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:534)
Caused by: SpInvRec is not mapped.
at org.hibernate.hql.ast.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:85)
at org.hibernate.hql.ast.FromElementFactory.addFromElement(FromElementFactory.java:77)
at org.hibernate.hql.ast.FromClause.addFromElement(FromClause.java:67)
at org.hibernate.hql.ast.HqlSqlWalker.createFromElement(HqlSqlWalker.java:217)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElement(HqlSqlBaseWalker.java:2830)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromElementList(HqlSqlBaseWalker.java:2719)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.fromClause(HqlSqlBaseWalker.java:513)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:371)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:201)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:151)
at org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:189)

anyone have idea on this?
thanks for reply.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 10, 2008 9:19 am 
Regular
Regular

Joined: Mon Apr 19, 2004 6:54 pm
Posts: 79
it looks like you don't have a class SpInvRec:

Code:
SpInvRec is not mapped. [from SpInvRec as sp where sp.invoiceNo='22222' and sp.point='KJA']


show us your mapping file.

Christophe


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 10, 2008 8:04 pm 
Newbie

Joined: Wed Sep 10, 2008 2:04 am
Posts: 10
this is my mapping file


<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="connection.url">jdbc:mysql://127.0.0.1:3306/ilms</property>
<property name="connection.username">ilms</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="connection.password">123</property>
<property name="transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</property>
<!-- thread is the short name for
org.hibernate.context.ThreadLocalSessionContext
and let Hibernate bind the session automatically to the thread
-->
<property name="current_session_context_class">thread</property>
<!-- this will show us all sql statements -->
<property name="hibernate.show_sql">false</property>

<!-- mapping files -->
<mapping resource="my/com/shinyang/ilms/model/FAsset.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/FAssetMovement.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/MCutOffDate.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/MSelectCode.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/MOrigin.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/MProdGroup.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/MModel.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/MBrand.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/MSubCate.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/MCategory.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/MUom.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/MRolesPrivileges.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/MRoles.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/MUserRoles.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/MUser.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/MBlockEntry.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/MCode.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/MVendor.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/MAdjustmentCode.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/MReturnCode.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/MCustomer.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/MCurrency.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/MSetting.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/MShipTo.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/MTarget.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/MWorkRate.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/MEmployee.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/MTripRate.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/MSpecies.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/MGrade.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/MTrip.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/MPoint.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/MCamp.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/MBlock.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/MCoupe.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/MLicense.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/MArea.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/PLogRec.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/PLogIss.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/PLog.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/PLogTransit.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/PLogIssTransit.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/PLogBin.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/PLogPostHistory.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/PLogRIItem.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/SpInventory.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/MEmpGroup.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/SpAdjustment.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/SpAdjustmentItem.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/SpCustGrntNote.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/SpCustGrtnNoteItem.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/SpDoRec.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/SpDoRecItem.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/SpGrtnNote.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/SpGrtnNoteItem.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/SpInvIss.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/SpInvIssItem.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/SpInvRec.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/SpInvRecItem.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/SpPo.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/SpPoItem.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/SpReq.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/SpReqItem.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/SpAprv.hbm.xml" />
<mapping resource="my/com/shinyang/ilms/model/XmlHeader.hbm.xml" />

</session-factory>
</hibernate-configuration>


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 11, 2008 10:26 am 
Regular
Regular

Joined: Mon Apr 19, 2004 6:54 pm
Posts: 79
This is your configuration file not you mapping file.
And please you 'code' tags.

Show us SpInvRec.hbm.xml

Christophe


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 11, 2008 8:05 pm 
Newbie

Joined: Wed Sep 10, 2008 2:04 am
Posts: 10
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated Jun 9, 2006 3:52:41 PM by Hibernate Tools 3.1.0 beta3 -->
<hibernate-mapping>
<class name="my.com.shinyang.ilms.model.SpInvRec" table="sp_inv_rec">
<id name="id" type="long">
<column name="ID" />
<generator class="native" />
</id>
<property name="point" type="string">
<column name="POINT" length="20" not-null="true" />
</property>
<property name="vendorType" type="string">
<column name="VENDOR_TYPE" length="20" />
</property>
<property name="vendorId" type="string">
<column name="VENDOR_ID" length="20" not-null="true" />
</property>
<property name="invoiceNo" type="string">
<column name="INVOICE_NO" length="100" not-null="true" />
</property>
<property name="createDate" type="date">
<column name="CREATE_DATE" length="10" />
</property>
<property name="dueDate" type="date">
<column name="DUE_DATE" length="10" />
</property>
<property name="termCode" type="string">
<column name="TERM_CODE" length="20" not-null="true" />
</property>
<property name="currencyId" type="string">
<column name="CURRENCY_ID" length="20" not-null="true" />
</property>
<property name="receivedBy" type="string">
<column name="RECEIVED_BY" length="20" not-null="true" />
</property>
<property name="charges1" type="big_decimal">
<column name="CHARGES1" sql-type="decimal(10,2)" />
</property>
<property name="charges2" type="big_decimal">
<column name="CHARGES2" sql-type="decimal(10,2)" />
</property>
<property name="charges3" type="big_decimal">
<column name="CHARGES3" sql-type="decimal(10,2)" />
</property>
<property name="charges4" type="big_decimal">
<column name="CHARGES4" sql-type="decimal(10,2)" />
</property>
<property name="charges5" type="big_decimal">
<column name="CHARGES5" sql-type="decimal(10,2)" />
</property>
<property name="charges6" type="big_decimal">
<column name="CHARGES6" sql-type="decimal(10,2)" />
</property>
<property name="charges7" type="big_decimal">
<column name="CHARGES7" sql-type="decimal(10,2)" />
</property>
<property name="charges8" type="big_decimal">
<column name="CHARGES8" sql-type="decimal(10,2)" />
</property>
<property name="remark" type="string">
<column name="REMARK" length="200" />
</property>
<property name="regNo" type="string">
<column name="REG_NO" length="20" />
</property>
<property name="post" type="boolean">
<column name="POST" not-null="true" />
</property>
<property name="updateBy" type="string">
<column name="UPDATE_BY" length="100" />
</property>
<property name="updateOn" type="timestamp">
<column name="UPDATE_ON" length="19" />
</property>
<property name="readyBackup" type="boolean">
<column name="READY_BACKUP" />
</property>
<property name="backupOn" type="timestamp">
<column name="BACKUP_ON" length="19" />
</property>
<list name="spInvRecItems" inverse="true" lazy="false" cascade="none">
<key>
<column name="INV_REC_ID" not-null="true" />
</key>
<index column="ITEM_INDEX" type="integer"/>
<one-to-many class="my.com.shinyang.ilms.model.SpInvRecItem" />
</list>
</class>
</hibernate-mapping>


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 12, 2008 8:21 am 
Regular
Regular

Joined: Mon Apr 19, 2004 6:54 pm
Posts: 79
With hql you have to used class name in your queries, try

Code:
from my.com.shinyang.ilms.model.SpInvRec sp where sp.invoiceNo='22222' and sp.point='KJA'


and please use 'code' tag.

Chrsitophe


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 17, 2008 10:28 pm 
Newbie

Joined: Wed Sep 10, 2008 2:04 am
Posts: 10
What do you mean by the 'code' tag??
i try to use from my.com.shinyang.ilms.model.SpInvRec sp where sp.invoiceNo='22222' and sp.point='KJA' but not work fine also.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 20, 2008 8:21 am 
Regular
Regular

Joined: Mon Apr 19, 2004 6:54 pm
Posts: 79
When you post code use [code][/code] tags.

What is the new error?

Christophe


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 20, 2008 8:07 pm 
Newbie

Joined: Wed Sep 10, 2008 2:04 am
Posts: 10
no new error, the error message still same.


croudet wrote:
When you post code use [code][/code] tags.

What is the new error?

Christophe


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 21, 2008 8:54 am 
Regular
Regular

Joined: Mon Apr 19, 2004 6:54 pm
Posts: 79
Post again your query and the error message.

Christophe


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 29, 2008 11:31 pm 
Newbie

Joined: Wed Sep 10, 2008 2:04 am
Posts: 10
Dear Christophe, thanks for your response on my error.

but now i am found out that is cause by the different database.
In my system, i have two different database.
let said database A and database B.
All tables in database B are exists in database A.
and the problem occur when i add another table in database B.

Database A Database B
------------- -------------
table 1 table 1
table 2 table 2
table 3 table 4(new added table)
table 4
table 5
table 6
table 7

the problem occur when i add the table 4 in database B.
and the error said that the hibernate cannot recognize the table 4.
but i had done all the mapping for database A and everything work fine.
is that i missed out some configuration for managing the multiple database setting??

thanks


Top
 Profile  
 
 Post subject: Database mapping problem
PostPosted: Thu Oct 30, 2008 12:43 am 
Newbie

Joined: Wed Oct 29, 2008 3:00 am
Posts: 4
Location: India
Hi,

can you provide that mapping and java class for new Table that you created in database B ? I suspect there is something wrong here thats why hibernate is not able to work with new Table.


You can try one more thing,instead of creating Table in database manully,create it with hibernate feauture of automatically schema generation.You need to specify

<property name="hibernate.hbm2ddl.auto" value="update"/>
in hibernate.cfg.xml.It updates the database according to hibernate mapping files.Please take your database backup before running it.

_________________
Vikas Jindal


Top
 Profile  
 
 Post subject: Re: Database mapping problem
PostPosted: Thu Oct 30, 2008 2:18 am 
Newbie

Joined: Wed Sep 10, 2008 2:04 am
Posts: 10
there is the error near the value="update" when i wish to set the
<property name="hibernate.hbm2ddl.auto" value="update"/>


Top
 Profile  
 
 Post subject: Re: Database mapping problem
PostPosted: Thu Oct 30, 2008 3:44 am 
Newbie

Joined: Wed Sep 10, 2008 2:04 am
Posts: 10
i had try the
<property name="hibernate.hbm2ddl.auto" value="update"/>[/quote]

but it still got the same error where the entity not recognize.
i do not have separate mapping file for the database B. All mapping file for database B is same with the database A.

is that will cause any error??


Top
 Profile  
 
 Post subject: Problem with update property
PostPosted: Fri Oct 31, 2008 12:19 am 
Newbie

Joined: Wed Oct 29, 2008 3:00 am
Posts: 4
Location: India
Where are you trying to mention:

<property name="hibernate.hbm2ddl.auto" value="update">

in mapping files (.hbm.xml) or in configuration files (.cfg.xml).You need to mention this property in (.cfg.xml).

_________________
Vikas Jindal


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