[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Same query doesn't work on jboss-4.0.5.GA

2007-01-11 Thread andydale
seems like you managed it :-)

I did not manage to get it to buiild via ant from eclipse.  I also got some 
other error with the junit tasks in the build file, but running "ant jar" or 
"ant dist" work fine

Andy 

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000514
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Same query doesn't work on jboss-4.0.5.GA

2007-01-11 Thread andydale
Hi Andreas,

First off you need to open the offending class 
(org.hibernate.hql.ast.tree.FromClause) and then locate addDuplicateAlias 
method, and then just put the fromElementByClassAlias.put( alias, element ); 
call into an if statement like so:


  | void addDuplicateAlias(String alias, FromElement element) { 
  | if(alias != null) {
  | fromElementByClassAlias.put( alias, element );
  | }
  | }
  | 
This solution has not been verified by the hibernate people, but if you look in 
the method above addDuplicateAlias(registerFromElement) they always perform the 
hashmap.put() calls in an if statement checking that the "key" (classAlias) is 
not null.  This got rid of my problem, hopefully it should do the same for you.

After you have modified the source, rebuild with ant,  i would use the target 
"jar" or "dist"

Let me know how you get on with it.

Cheers,

Andy

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000511
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Same query doesn't work on jboss-4.0.5.GA

2007-01-11 Thread hispeedsurfer
Ok it works 
Thanks to andydale.

First I extracted hibernate-3.2.0.ga.zip. From the hibernate directory with ant 
I executed with 5 errors.
Then I have copied the directory to eclipse workspace and make a new project 
from existing ant. build.xml -> Run as ant build: Error.

Now from workspace/hibernate directory I started ant from console over again. 
Yeaaah

And the query execute successful!!!

Is there a easier way to get this started?


Thanks
andreas

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000502
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Same query doesn't work on jboss-4.0.5.GA

2007-01-11 Thread hispeedsurfer
Hi Andy,

thank you for response. 

Can you tell me in few words what I have to do build a hibernate.jar with 
modified FromClause.java?

hibernate-3.2.1.ga.zip I have allready downloaded. Ant and JDK is installed. 



Thanks
Andreas

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000407
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Same query doesn't work on jboss-4.0.5.GA

2007-01-11 Thread andydale
Hi Andreas,

I think this is a problem with the newer version (3.2.0.GA) of hibernate that 
ships with 4.0.5GA.

I had a query that worked with Hibernate version 3.2.0CR2 but on "upgrading" to 
the final release the query did not work, because i was also getting a null 
pointer exception (exactly the same as yours).  There is a bug for it in the 
Hibernate JIRA 
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2159, it is a 
really simple fix if you want to do it yourself.

Here is the link to the thread on the hibernate forum 
http://forum.hibernate.org/viewtopic.php?t=966031&highlight=breaks. 

Also please vote for the bug as well.

Cheers,

Andy

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000319
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Same query doesn't work on jboss-4.0.5.GA

2007-01-10 Thread hispeedsurfer
Is there an other configuration on jboss-4.0.5.GA as on jboss-4.0.4.GA for 
peristance access or what the problem 

here the stack trace


08:31:52,743 ERROR [STDERR] java.lang.NullPointerException
  | 08:31:52,743 ERROR [STDERR] at 
org.hibernate.hql.ast.tree.FromClause.findIntendedAliasedFromElementBasedOnCrazyJPARequirements(FromClause.java:120)
  | 08:31:52,759 ERROR [STDERR] at 
org.hibernate.hql.ast.tree.FromClause.containsClassAlias(FromClause.java:247)
  | 08:31:52,759 ERROR [STDERR] at 
org.hibernate.hql.ast.tree.FromClause.isFromElementAlias(FromClause.java:135)
  | 08:31:52,759 ERROR [STDERR] at 
org.hibernate.hql.ast.HqlSqlWalker.isNonQualifiedPropertyRef(HqlSqlWalker.java:474)
  | 08:31:52,759 ERROR [STDERR] at 
org.hibernate.hql.antlr.HqlSqlBaseWalker.addrExpr(HqlSqlBaseWalker.java:4382)
  | 08:31:52,790 ERROR [STDERR] at 
org.hibernate.hql.antlr.HqlSqlBaseWalker.addrExprLhs(HqlSqlBaseWalker.java:4830)
  | 08:31:52,790 ERROR [STDERR] at 
org.hibernate.hql.antlr.HqlSqlBaseWalker.addrExpr(HqlSqlBaseWalker.java:4311)
  | 08:31:52,790 ERROR [STDERR] at 
org.hibernate.hql.antlr.HqlSqlBaseWalker.expr(HqlSqlBaseWalker.java:1212)
  | 08:31:52,790 ERROR [STDERR] at 
org.hibernate.hql.antlr.HqlSqlBaseWalker.orderExprs(HqlSqlBaseWalker.java:1545)
  | 08:31:52,790 ERROR [STDERR] at 
org.hibernate.hql.antlr.HqlSqlBaseWalker.orderExprs(HqlSqlBaseWalker.java:1639)
  | 08:31:52,790 ERROR [STDERR] at 
org.hibernate.hql.antlr.HqlSqlBaseWalker.orderClause(HqlSqlBaseWalker.java:1521)
  | 08:31:52,790 ERROR [STDERR] at 
org.hibernate.hql.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:622)
  | 08:31:52,790 ERROR [STDERR] at 
org.hibernate.hql.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:281)
  | 08:31:52,790 ERROR [STDERR] at 
org.hibernate.hql.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:229)
  | 08:31:52,790 ERROR [STDERR] at 
org.hibernate.hql.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:228)
  | 08:31:52,790 ERROR [STDERR] at 
org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:160)
  | 08:31:52,790 ERROR [STDERR] at 
org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111)
  | 08:31:52,790 ERROR [STDERR] at 
org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:77)
  | 08:31:52,790 ERROR [STDERR] at 
org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:56)
  | 08:31:52,790 ERROR [STDERR] at 
org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:72)
  | 08:31:52,790 ERROR [STDERR] at 
org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133)
  | 08:31:52,806 ERROR [STDERR] at 
org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:112)
  | 08:31:52,806 ERROR [STDERR] at 
org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1623)
  | 08:31:52,806 ERROR [STDERR] at 
org.hibernate.ejb.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:92)
  | 08:31:52,806 ERROR [STDERR] at 
de.beffo.seam.helper.SelectItemHelfer.listeHolen(SelectItemHelfer.java:139)
  | 08:31:52,806 ERROR [STDERR] at 
de.beffo.seam.helper.SelectItemHelfer.getSelectItemsMitBlank(SelectItemHelfer.java:112)
  | 08:31:52,806 ERROR [STDERR] at 
de.beffo.seam.helper.SelectItemHelfer$$FastClassByCGLIB$$bed44e52.invoke()
  | 08:31:52,806 ERROR [STDERR] at 
net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
  | 08:31:52,806 ERROR [STDERR] at 
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:45)
  | 08:31:52,806 ERROR [STDERR] at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:55)
  | 08:31:52,806 ERROR [STDERR] at 
org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:23)
  | 08:31:52,806 ERROR [STDERR] at 
sun.reflect.GeneratedMethodAccessor943.invoke(Unknown Source)
  | 08:31:52,806 ERROR [STDERR] at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 08:31:52,806 ERROR [STDERR] at 
java.lang.reflect.Method.invoke(Method.java:597)
  | 08:31:52,806 ERROR [STDERR] at 
org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
  | 08:31:52,806 ERROR [STDERR] at 
org.jboss.seam.intercept.Interceptor.aroundInvoke(Interceptor.java:169)
  | 08:31:52,837 ERROR [STDERR] at 
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:64)
  | 08:31:52,837 ERROR [STDERR] at 
org.jboss.seam.interceptors.RollbackInterceptor.rollbackIfNecessary(RollbackInterceptor.java:33)
  | 08:31:52,837 ERROR [STDERR] at 
sun.reflect.GeneratedMethodAccessor956.invoke(Unknown Source)
  | 08:31:52,837 ERROR [STDERR

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Same query doesn't work on jboss-4.0.5.GA

2007-01-10 Thread hispeedsurfer
additional info.


  | same app.ear deployed on both servers. 
  | database: mysql (xampp)
  | entities mapped to database an filled with values
  | other lists from database tables are displayed in my app 
  | mysql libraries placed in lib jbossas/server/default/lib
  | 
  | 
  | only on the new server the getResultList() is empty - but why?
  | 
  | Thanks
  | Andreas

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=425
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user