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.  [ 6 posts ] 
Author Message
 Post subject: Can't query: in expected: <end-of-text>
PostPosted: Mon Aug 20, 2007 1:53 pm 
Newbie

Joined: Mon Aug 13, 2007 8:49 pm
Posts: 9
Message: in expected: <end-of-text> (possibly an invalid or unmapped class name was used in the query) [from prf_ProfileSection]

Basically ALL my queries are failing with this error, difference being in between the brackets [ ]

I started getting this error after adding bag mapping in different type though...

Any thoughts?

It seems pretty bizarre to me.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 20, 2007 2:50 pm 
Newbie

Joined: Tue Aug 15, 2006 3:43 pm
Posts: 5
Do you have any mapping files or traces you can post?


Top
 Profile  
 
 Post subject: Solution
PostPosted: Fri May 02, 2008 1:30 pm 
Newbie

Joined: Fri May 02, 2008 1:27 pm
Posts: 4
Location: Mexico
I had this problem with NHibernate, and I Put the complete package o namespace in the source.


IQuery myQuery = Sesion.CreateQuery("from AONSusy.Vo.Seguridad.UsuarioVo");
lista = myQuery.List();


And it works.

I hope this solution works for you.

See you


Top
 Profile  
 
 Post subject: Re: Solution
PostPosted: Sat May 03, 2008 5:22 am 
Newbie

Joined: Sat May 03, 2008 1:57 am
Posts: 3
Location: Nagpur, India
jmosco wrote:
I had this problem with NHibernate, and I Put the complete package o namespace in the source.


IQuery myQuery = Sesion.CreateQuery("from AONSusy.Vo.Seguridad.UsuarioVo");
lista = myQuery.List();


And it works.

I hope this solution works for you.

See you


Did you set your xmls Buld Action to 'Embedded Resource'? It works for me serveral times. Bag is really diffucult to use. but check this out first.


Top
 Profile  
 
 Post subject: Yes
PostPosted: Mon May 05, 2008 9:31 am 
Newbie

Joined: Fri May 02, 2008 1:27 pm
Posts: 4
Location: Mexico
Hi, My hmb file is Embedded Resource, this is my hbm file complete.

<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0" auto-import="false">
<class name="AONSusy.Vo.Seguridad.UsuarioVo, AONSusy" table="Usuario">
<id name="ClaveUsuario">
<column name="ClaveUsuario" not-null="true"/>
<generator class="increment" />
</id>

<property name="CorreoElectronico"
column="CorreoElectronico"/>

<property name="Contrasena"
column="Contrasena"/>

<many-to-one name="Estatus" class="AONSusy.Vo.Catalogo.EstatusVo, AONSusy"
column="ClaveEstatus"/>

<many-to-one name="Persona" class="AONSusy.Vo.Catalogo.PersonaVo, AONSusy"
column="ClavePersona"/>

<many-to-one name="TipoUsuario" class="AONSusy.Vo.Catalogo.TipoUsuarioVo, AONSusy"
column="ClaveTipoUsuario" ></many-to-one>

<property name="Autenticado"
column="Autenticado"/>
</class>
</hibernate-mapping>


See you.


Top
 Profile  
 
 Post subject: Re: Solution
PostPosted: Mon Aug 18, 2008 12:22 pm 
Newbie

Joined: Mon Jun 30, 2008 12:56 pm
Posts: 6
Thanks for the tip about "embedded resource". I forgot this one! It works like a charm now.

Steven Ho

amarnath01 wrote:
jmosco wrote:
I had this problem with NHibernate, and I Put the complete package o namespace in the source.


IQuery myQuery = Sesion.CreateQuery("from AONSusy.Vo.Seguridad.UsuarioVo");
lista = myQuery.List();


And it works.

I hope this solution works for you.

See you


Did you set your xmls Buld Action to 'Embedded Resource'? It works for me serveral times. Bag is really diffucult to use. but check this out first.


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