aspose file tools*
The moose likes Object Relational Mapping and the fly likes org.hibernate.hql.ast.QuerySyntaxException: unexpected token: com near line 1, column 6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "org.hibernate.hql.ast.QuerySyntaxException: unexpected token: com near line 1, column 6" Watch "org.hibernate.hql.ast.QuerySyntaxException: unexpected token: com near line 1, column 6" New topic
Author

org.hibernate.hql.ast.QuerySyntaxException: unexpected token: com near line 1, column 6

Tamilvanan Govindarajan
Greenhorn

Joined: Sep 14, 2011
Posts: 8
I have facing following Error please any one help me?




org.hibernate.hql.ast.QuerySyntaxException: unexpected token: com near line 1, column 6 [FROM com.ssc.soareg.db.infomodel.ConfigurationHBM config WHERE config.name = 'security.auth.url']
org.hibernate.hql.ast.QuerySyntaxException: unexpected token: com near line 1, column 6 [FROM com.ssc.soareg.db.infomodel.ConfigurationHBM config WHERE config.name = 'security.auth.url']
at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:54)
at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:47)
at org.hibernate.hql.ast.ErrorCounter.throwQueryException(ErrorCounter.java:82)
at org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:284)
at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:182)
at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:136)
at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:101)
at org.hibernate.engine.query.HQLQueryPlan.<init>(HQLQueryPlan.java:80)
at org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:94)
at org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:156)
at org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:135)
at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1651)
at com.ssc.soareg.db.dao.impl.ConfigurationDAOOracleImpl.findConfigurationByName(ConfigurationDAOOracleImpl.java:57)
at com.ssc.soareg.governance.client.infomodel.ConfigurationImpl.findConfigurationByName(ConfigurationImpl.java:46)
at com.ssc.soareg.governance.client.SOAQueryManagerImpl.findConfigurationByName(SOAQueryManagerImpl.java:3758)
at com.ssc.soareg.registry.server.ConfigurationServlet.init(ConfigurationServlet.java:87)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:199)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.init(ServletWrapper.java:319)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1230)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:152)
at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:99)
at com.ibm.ws.webcontainer.webapp.WebApp.initializeTargetMappings(WebApp.java:549)
at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:328)
at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:290)
at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:90)
at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:157)
at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:665)
at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:618)
at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:335)
at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:551)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1303)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1138)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:569)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:817)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:949)
at com.ibm.ws.runtime.component.ApplicationMgrImpl$AppInitializer.run(ApplicationMgrImpl.java:2122)
at com.ibm.wsspi.runtime.component.WsComponentImpl$_AsynchInitializer.run(WsComponentImpl.java:342)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
ntumba lobo
Ranch Hand

Joined: Oct 21, 2008
Posts: 180
If you havent found a solution yet, you can show your code building the Hibernate query.
It will be easier to help


SCJP 5 , SCWCD 5, SCEA 5
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: org.hibernate.hql.ast.QuerySyntaxException: unexpected token: com near line 1, column 6
 
Similar Threads
simple question
Max length of a query
Difference in session.createQuery() and session.createSqlQuery()
error in running HQL Query
subquery sql to hql