[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Weird HQL IllegalStateException

d-rock do-not-reply at jboss.com
Mon Feb 26 14:50:06 EST 2007


OK, I did a little debugging inside JBoss and confirmed that the HQL statement causing the exception was this one:


  | from EscalationGroup as escGrp where escGrp.class = com.cpicorp.roster.objects.EscalationGroup order by escGrp.description
  | 

It looks like the error is being thrown when it's resolving the fully qualified classname (com.cpicorp.roster.objects.EscalationGroup) in


  | where escGrp.class = com.cpicorp.roster.objects.EscalationGroup
  | 

I removed the package name to make the HQL read


  | from EscalationGroup as escGrp where escGrp.class = EscalationGroup order by escGrp.description
  | 

And this works fine now. Is this a bug? It seems that a fully qualified classname should be accepted. The fully qualified name worked under whatever version comes with JBoss 4.0.4GA.

Thanks,

Derek

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022646#4022646

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022646



More information about the jboss-user mailing list