[Hibernate] hibernate-oracle10-testsuite Build Completed With Testsuite Errors

2006-06-09 Thread qa

View results here -> http://cruisecontrol.jboss.com/cc/buildresults/hibernate-oracle10-testsuite?log=log20060610012532
TESTS FAILEDAnt Error Message: /home/cruisecontrol/work/scripts/build-hibernate-db-matrix.xml:100: The following error occurred while executing this line: /home/cruisecontrol/work/scripts/build-hibernate-db-matrix.xml:77: The following error occurred while executing this line: /home/cruisecontrol/work/scripts/build-common-targets.xml:11: Build Successful - Tests completed with errors or failures.Date of build: 06/10/2006 01:25:32Time to build: 22 minutes 14 seconds




    Unit Tests: (850)    Total Errors and Failures: (12)testSequenceIdentityGeneratororg.hibernate.test.generatedkeys.seqidentity.SequenceIdentityTesttestParameterTypeMismatchFailsorg.hibernate.test.hql.ASTParserLoadingTesttestCriteriaAggregationReturnTypeFailureExpectedorg.hibernate.test.hql.CriteriaHQLAlignmentTesttestReturnPropertyComponentRenameorg.hibernate.test.legacy.SQLLoaderTesttestReadOnlyOnProxiesFailureExpectedorg.hibernate.test.readonly.ReadOnlyTesttestEmptyInListFailureExpectedorg.hibernate.test.hql.HQLTesttestMaxindexHqlFunctionInElementAccessorFailureExpectedorg.hibernate.test.hql.HQLTesttestMultipleElementAccessorOperatorsFailureExpectedorg.hibernate.test.hql.HQLTesttestKeyManyToOneJoinFailureExpectedorg.hibernate.test.hql.HQLTesttestDuplicateExplicitJoinFailureExpectedorg.hibernate.test.hql.HQLTesttestOptimisticLockDirtyDeleteFailureExpectedorg.hibernate.test.optlock.OptimisticLockTesttestOptimisticLockAllDeleteFailureExpectedorg.hibernate.test.optlock.OptimisticLockTest 
 Modifications since last build: (first 50 of 0)

___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] hibernate-sybase-testsuite Build Timed Out

2006-06-09 Thread qa

View results here -> http://cruisecontrol.jboss.com/cc/buildresults/hibernate-sybase-testsuite?log=log20060609222520
BUILD TIMED OUTAnt Error Message: build timeoutDate of build: 06/09/2006 22:25:20Time to build: 




    Unit Tests: (0)    Total Errors and Failures: (0) 
 Modifications since last build: (first 50 of 0)

___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] hibernate-timesten-testsuite Build Completed With Testsuite Errors

2006-06-09 Thread qa

View results here -> http://cruisecontrol.jboss.com/cc/buildresults/hibernate-timesten-testsuite?log=log20060609215952
TESTS FAILEDAnt Error Message: /home/cruisecontrol/work/scripts/build-hibernate-db-matrix.xml:93: The following error occurred while executing this line: /home/cruisecontrol/work/scripts/build-hibernate-db-matrix.xml:77: The following error occurred while executing this line: /home/cruisecontrol/work/scripts/build-common-targets.xml:11: Build Successful - Tests completed with errors or failures.Date of build: 06/09/2006 21:59:52Time to build: 24 minutes 45 seconds




    Unit Tests: (848)    Total Errors and Failures: (213)testCompositeIdsorg.hibernate.test.cid.CompositeIdTesttestNonLazyFetchorg.hibernate.test.cid.CompositeIdTesttestMultipleCollectionFetchorg.hibernate.test.cid.CompositeIdTesttestUpdateFalseorg.hibernate.test.component.ComponentTesttestComponentorg.hibernate.test.component.ComponentTesttestComponentFormulaQueryorg.hibernate.test.component.ComponentTesttestNamedQueryorg.hibernate.test.component.ComponentTesttestSerializationFailsOnAfterStatementAggressiveReleaseWithOpenResourcesorg.hibernate.test.connections.AggressiveReleaseTesttestQueryScrollingorg.hibernate.test.connections.AggressiveReleaseTesttestConnectedSerializationorg.hibernate.test.connections.AggressiveReleaseTesttestManualDisconnectWithOpenResourcesorg.hibernate.test.connections.AggressiveReleaseTesttestConnectedSerializationorg.hibernate.test.connections.BasicConnectionProviderTesttestManualDisconnectWithOpenResourcesorg.hibernate.test.connections.BasicConnectionProviderTesttestSerializationFailsOnAfterStatementAggressiveReleaseWithOpenResourcesorg.hibernate.test.connections.CurrentSessionConnectionTesttestQueryScrollingorg.hibernate.test.connections.CurrentSessionConnectionTesttestConnectedSerializationorg.hibernate.test.connections.CurrentSessionConnectionTesttestManualDisconnectWithOpenResourcesorg.hibernate.test.connections.CurrentSessionConnectionTesttestConnectedSerializationorg.hibernate.test.connections.SuppliedConnectionTesttestManualDisconnectWithOpenResourcesorg.hibernate.test.connections.SuppliedConnectionTesttestScrollCriteriaorg.hibernate.test.criteria.CriteriaQueryTesttestRestrictionOnSubclassCollectionorg.hibernate.test.criteria.CriteriaQueryTesttestClassPropertyorg.hibernate.test.criteria.CriteriaQueryTesttestCompositeUserTypeorg.hibernate.test.cut.CompositeUserTypeTesttestDom4jorg.hibernate.test.dom4j.Dom4jTesttestMapIndexEmisionorg.hibernate.test.dom4j.Dom4jTesttestOrphanDeleteorg.hibernate.test.extralazy.ExtraLazyTesttestIndexFormulaMaporg.hibernate.test.extralazy.ExtraLazyTesttestJdkEnumStyleEnumConstantorg.hibernate.test.hql.ASTParserLoadingTesttestParameterTypeMismatchFailsorg.hibernate.test.hql.ASTParserLoadingTesttestCollectionJoinsInSubselectorg.hibernate.test.hql.ASTParserLoadingTesttestCollectionFetchWithDistinctionAndLimitorg.hibernate.test.hql.ASTParserLoadingTesttestNestedCollectionFetchorg.hibernate.test.hql.ASTParserLoadingTesttestSelectClauseSubselectorg.hibernate.test.hql.ASTParserLoadingTesttestImplicitPolymorphismorg.hibernate.test.hql.ASTParserLoadingTesttestCoalesceorg.hibernate.test.hql.ASTParserLoadingTesttestStrorg.hibernate.test.hql.ASTParserLoadingTesttestCastorg.hibernate.test.hql.ASTParserLoadingTesttestExtractorg.hibernate.test.hql.ASTParserLoadingTesttestOneToManyFilterorg.hibernate.test.hql.ASTParserLoadingTesttestSelectExpressionsorg.hibernate.test.hql.ASTParserLoadingTesttestWhereorg.hibernate.test.hql.ASTParserLoadingTesttestEntityFetchingorg.hibernate.test.hql.ASTParserLoadingTesttestCollectionFetchingorg.hibernate.test.hql.ASTParserLoadingTesttestStandardFunctionsorg.hibernate.test.hql.ASTParserLoadingTesttestDynamicInstantiationQueriesorg.hibernate.test.hql.ASTParserLoadingTesttestResultTransformerScalarQueriesorg.hibernate.test.hql.ASTParserLoadingTesttestResultTransformerEntityQueriesorg.hibernate.test.hql.ASTParserLoadingTesttestEJBQLFunctionsorg.hibernate.test.hql.ASTParserLoadingTesttestSubselectBetweenorg.hibernate.test.hql.ASTParserLoadingTesttestTempTableGenerationIsolationorg.hibernate.test.hql.BulkManipulationTesttestSimpleInsertorg.hibernate.test.hql.BulkManipulationTesttestSimpleNativeSQLInsertorg.hibernate.test.hql.BulkManipulationTesttestInsertWithManyToOneorg.hibernate.test.hql.BulkManipulationTesttestInsertWithMismatchedTypesorg.hibernate.test.hql.BulkManipulationTesttestInsertIntoSuperclassPropertiesFailsorg.hibernate.test.hql.BulkManipulationTesttestInsertAcrossMappedJoinFailsorg.hibernate.test.hql.BulkManipulationTesttestInsertWithGeneratedIdorg.hibernate.test.hql.BulkManipulationTesttestInsertWithGeneratedVersionAndIdorg.hibernate.test.hql.BulkManipulationTesttestInsertWithGeneratedTimestampVersionorg.hibernate.test.hql.BulkManipulationTesttestUpdateOnDiscriminatorSubclassorg.hibernate.test.hql.BulkManipulationTesttestUpdateOnAnimalorg.hibernate.test.hql.BulkManipulationTesttestUpdateOnMa

Re: [Hibernate] Query failing

2006-06-09 Thread Steve Ebersole
Still not able to reproduce this...

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Steve Ebersole
Sent: Friday, June 09, 2006 9:44 AM
To: Hibernate development
Subject: Re: [Hibernate] Query failing

I'll take a look.  That code block should only actually be executing on
"dot structures", which an alias is definitely not...

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Max
Rydahl Andersen
Sent: Friday, June 09, 2006 9:21 AM
To: Emmanuel Bernard
Cc: Hibernate development
Subject: Re: [Hibernate] Query failing

On Fri, 09 Jun 2006 16:16:44 +0200, Emmanuel Bernard  
<[EMAIL PROTECTED]> wrote:

> But it *is* working if item the alias is renamed i.

yes, because you don't have a class named org.hibernate.ejb.test.i

Note, i can't see why it actually tries to load  
org.hibernate.ejb.test.item and not just item.

/max

> Max Rydahl Andersen wrote:
>>
>> > No, this is a pure Hibernate EntityManager test, it has nothing to
do  
>> > with app servers.
>>
>> ah - i didn't see that getConstantValue thingy.
>> that error is because of terrible windows that forces the
classloaders
>> to have case ignored for lookups ;)
>>
>> /max
>>
>> > Max Rydahl Andersen wrote:
>> >>
>> >> I have seen similar NoClassDef when dealing with classloaders in
>>  
>> eclipse.
>> >>
>> >> It looks like the current context thread might not be behaving as
it  
>> >> should ?
>> >> Does this happen only under GlassFish or ?
>> >>
>> >> (but weird that changing the alias makes a difference?)
>> >>
>> >> /max
>> >>
>> >> > Steve,
>> >> > JPA compliance + the literal thing seems to give trouble to
>> >> >
>> >> > Query q = em.createQuery( "select item from Item item where  
>> item.descr
>> >> > like 'Microk_oft mouse' escape 'k' " );
>> >> >
>> >> > |ava.lang.NoClassDefFoundError: item (wrong name:
>> >> > org/hibernate/ejb/test/Item) at
>> >> > java.lang.ClassLoader.defineClass1(Native Method) at
>> >> > java.lang.ClassLoader.defineClass(ClassLoader.java:620) at
>> >> > >>  
>>
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>> >> > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at
>> >> > java.net.URLClassLoader.access$100(URLClassLoader.java:56) at
>> >> > java.net.URLClassLoader$1.run(URLClassLoader.java:195) at
>> >> > java.security.AccessController.doPrivileged(Native Method) at
>> >> > java.net.URLClassLoader.findClass(URLClassLoader.java:188) at
>> >> > java.lang.ClassLoader.loadClass(ClassLoader.java:306) at
>> >> > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at
>> >> > java.lang.ClassLoader.loadClass(ClassLoader.java:251) at
>> >> >  
>> org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:95)
>>  
>> at
>> >> > >>  
>>
org.hibernate.util.ReflectHelper.getConstantValue(ReflectHelper.java:128
)
>> >> > at
>> >> > >>  
>>
org.hibernate.hql.ast.QueryTranslatorImpl$JavaConstantConverter.handleDo
tStructure(QueryTranslatorImpl.java:569)
>> >> > at
>> >> > >>  
>>
org.hibernate.hql.ast.QueryTranslatorImpl$JavaConstantConverter.visit(Qu
eryTranslatorImpl.java:564)
>> >> > at
>> >> > >>  
>>
org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.j
ava:40)
>> >> > at
>> >> > >>  
>>
org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.j
ava:41)
>> >> > at
>> >> > >>  
>>
org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.j
ava:41)
>> >> > at
>> >> > >>  
>>
org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.j
ava:42)
>> >> > at
>> >> > >>  
>>
org.hibernate.hql.ast.util.NodeTraverser.traverseDepthFirst(NodeTraverse
r.java:33)
>> >> > at
>> >> > >>  
>>
org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java
:254)
>> >> > at
>> >> > >>  
>>
org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.
java:157)
>> >> > at
>> >> > >>  
>>
org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.ja
va:111)
>> >> > at >>  
>> org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:77)
>> >> > at >>  
>> org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:56)
>> >> > at
>> >> > >>  
>>
org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache
.java:71)
>> >> > at
>> >> > >>  
>>
org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionIm
pl.java:133)
>> >> > at
>> >> > >>  
>>
org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.j
ava:112)
>> >> > at  
>> org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1623) >>
at
>> >> > >>  
>>
org.hibernate.ejb.AbstractEntityManagerImpl.createQuery(AbstractEntityMa
nagerImpl.java:79)
>> >> > at > >>  
>>
org.hibernate.ejb.test.QueryTest.testEscapeCharacter(QueryTest.java:133)
|
>> >> >
>> >> > Note that if I change the alias, it works.
>> >> > Query q = em.createQuery( "select i from Item i where i.descr
like
>> >> > 'Microk_oft mouse' escape 'k' " );
>> >>
>> >>
>> >>
>> >> 

Re: [Hibernate] questions regarding development setup

2006-06-09 Thread Max Rydahl Andersen

>> The day you write a (needed and usefull!) unittest that is not possible
>> in our current setup then lets talk ;)
>
> I've already created patch with couple testcases using same package  
> layout
> on purpose.

ok.

>> No reason to change what just works.
>
> reasons: every time the developer cannot unit test non-public method /  
> class
> w/o public constructor. (every day :) ?)

well, it has never been an issue since we have more than enough tests that
does this, so again it just works.

> Anyway I will just contribute a patch and let's see what you say...

ok.

> PS
> Whatever you say, the failing tests / unreasonable test packaging just
> impact the project credibility. But it's just my opinion and my  
> collegues.

unreasonable test packaging ? Nothing *prevents* you from using another  
layout - and
since our testsuite contains considerable more test than I've seen  
compared to other
applications/frameworks it doesn't seem to be an issue in real life vs.  
theoretical rants.

And do you rather want us to remove tests for known issues ? That sounds  
like you want
us to hide the fact we know some part has a bug/issue ? how is that for  
credibility ?

/max

> Thanks,
> Szczepan
>
>
> On 6/9/06, Max Rydahl Andersen <[EMAIL PROTECTED]> wrote:
>>
>>
>> > b) But what's the reason of making surprising test subpackage (I've
>> never
>> > seen something like that)? You can still have integration/acceptance
>> test
>> > cases in 'normal' package or even in different source folder.
>> > Unreasonable
>> > subpackage makes it hard to write real unit test, you cannot test non
>> > public methods, you cannot instantiate some classes etc. Don't you  
>> have
>> a
>> > refactoring plan to remove test subpackage?
>>
>> No reason to change what just works.
>>
>> The day you write a (needed and usefull!) unittest that is not possible
>> in our current setup then lets talk ;)
>>
>> /max
>>
>> >
>> > Thanks,
>> > Szczepan
>> >
>> >
>> > On 6/8/06, Max Rydahl Andersen <[EMAIL PROTECTED]> wrote:
>> >>
>> >> > 1. Why there are about 10 failing test after getting project from
>> svn?
>> >>
>> >> a) if the method ends in "FailureExpected", then it is an expected
>> >> failure
>> >> which represents a known bug/issue.
>> >> To make the test pass, fix the bug ;)
>> >>
>> >> b) others depend on your db, but for the moment I only have
>> >> failureExpected methods.
>> >>
>> >> > 2. Why do you keep test files in strange org.hibernate.test  
>> package?
>> >> > Shouldn't it be same package as sources (e.g. org.hibernate...)
>> >>
>> >> Not strange at all and there is no need to have them in the same
>> >> package.
>> >> Alot of our tests is "usecase" based tests which does not fit 100%  
>> into
>>
>> >> the implmentation "layout".
>> >>
>> >> --
>> >> --
>> >> Max Rydahl Andersen
>> >> callto://max.rydahl.andersen
>> >>
>> >> Hibernate
>> >> [EMAIL PROTECTED]
>> >> http://hibernate.org
>> >>
>> >> JBoss Inc
>> >> [EMAIL PROTECTED]
>> >>
>>
>>
>>
>> --
>> --
>> Max Rydahl Andersen
>> callto://max.rydahl.andersen
>>
>> Hibernate
>> [EMAIL PROTECTED]
>> http://hibernate.org
>>
>> JBoss Inc
>> [EMAIL PROTECTED]
>>



-- 
--
Max Rydahl Andersen
callto://max.rydahl.andersen

Hibernate
[EMAIL PROTECTED]
http://hibernate.org

JBoss Inc
[EMAIL PROTECTED]


___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] mistach of libs for 3.2 CR 1 and 2 - lava.lang.NoSuchMethodError:

2006-06-09 Thread hanasaki
hibernate-annotations-3.2.0.CR1.tar.gz
hibernate-entitymanager-3.2.0.CR1.tar.gz
hibernate-3.2.0.cr2.tar.gz

Guess the method is missing because some are CR1 and some CR2?  Those
are the only files on sourceforge to download Thoughts?

Error:
1) testOne(com.test.HibernateEJB3TestSuite)java.lang.NoSuchMethodError:
org.hibernate.cfg.AnnotationConfiguration.setEntityNotFoundDelegate(Lorg/hibernate/proxy/EntityNotFoundDelegate;)V
at
org.hibernate.ejb.Ejb3Configuration.(Ejb3Configuration.java:94)
at
org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:113)
at
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:37)
at
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:27)
at
com.empathicsolutions.ejb3.HibernateEJB3Util.(HibernateEJB3Util.java:31)
at
com.test.HibernateEJB3TestSuite.testOne(HibernateEJB3TestSuite.java:42)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)


___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] questions regarding development setup

2006-06-09 Thread Steve Ebersole








You’re right.  We should never have “expected
failure” type tests in a test suite so that we can get back to things we
know we want to fix.  That is so crazy; what are we thinking here…

 

And as for a projects choice of how to define
tests impacting that projects credibility in *your
projects* mind…  Well, lets just say I now have a severe
impacting regarding your project’s credibility ;)

 









From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Szczepan Faber
Sent: Friday, June 09, 2006 11:08
AM
To: Max Andersen
Cc:
hibernate-devel@lists.sourceforge.net
Subject: Re: [Hibernate] questions
regarding development setup



 

> The day you write a
(needed and usefull!) unittest that is not possible
> in our current setup then lets talk ;)

I've already created patch with couple testcases using same package layout on
purpose.

> No reason to change what just works.

reasons: every time the developer cannot unit test non-public method / class
w/o public constructor. (every day :) ?)

Anyway I will just contribute a patch and let's see what you say... 

PS
Whatever you say, the failing tests / unreasonable test packaging just impact
the project credibility. But it's just my opinion and my collegues.

Thanks,
Szczepan





On 6/9/06, Max
Rydahl Andersen <[EMAIL PROTECTED]> wrote:


> b) But what's the reason of making surprising test subpackage (I've never
> seen something like that)? You can still have integration/acceptance test
> cases in 'normal' package or even in different source folder. 
> Unreasonable
> subpackage makes it hard to write real unit test, you cannot test non
> public methods, you cannot instantiate some classes etc. Don't you have a
> refactoring plan to remove test subpackage? 

No reason to change what just works.

The day you write a (needed and usefull!) unittest that is not possible
in our current setup then lets talk ;)

/max

>
> Thanks,
> Szczepan 
>
>
> On 6/8/06, Max Rydahl Andersen <[EMAIL PROTECTED]> wrote:
>> 
>> > 1. Why there are about 10 failing test after getting project from
svn? 
>>
>> a) if the method ends in "FailureExpected", then it is an
expected
>> failure
>> which represents a known bug/issue.
>> To make the test pass, fix the bug ;) 
>>
>> b) others depend on your db, but for the moment I only have
>> failureExpected methods.
>>
>> > 2. Why do you keep test files in strange org.hibernate.test
package?
>> > Shouldn't it be same package as sources (e.g. org.hibernate...)
>>
>> Not strange at all and there is no need to have them in the same
>> package.
>> Alot of our tests is "usecase" based tests which does not
fit 100% into 
>> the implmentation "layout".
>>
>> --
>> --
>> Max Rydahl Andersen
>> callto://max.rydahl.andersen
>>
>> Hibernate
>> [EMAIL PROTECTED]
>> http://hibernate.org
>>
>> JBoss Inc
>> [EMAIL PROTECTED]
>>



--
--
Max Rydahl Andersen
callto://max.rydahl.andersen

Hibernate
[EMAIL PROTECTED]
http://hibernate.org

JBoss Inc 
[EMAIL PROTECTED]



 






___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] questions regarding development setup

2006-06-09 Thread Christian Bauer

On Jun 9, 2006, at 6:07 PM, Szczepan Faber wrote:

> Whatever you say, the failing tests / unreasonable test packaging  
> just impact the project credibility.

This is the most bizarre thing I've heard in quite a while...


___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] questions regarding development setup

2006-06-09 Thread Szczepan Faber
> The day you write a (needed and usefull!) unittest that is not possible> in our current setup then lets talk ;)I've already created patch with couple testcases using same package layout on purpose.
> No reason to change what just works.reasons: every time the developer cannot unit test non-public method / class w/o public constructor. (every day :) ?)Anyway I will just contribute a patch and let's see what you say...
PSWhatever you say, the failing tests / unreasonable test packaging just impact the project credibility. But it's just my opinion and my collegues.Thanks,Szczepan
On 6/9/06, Max Rydahl Andersen
 <[EMAIL PROTECTED]> wrote:

> b) But what's the reason of making surprising test subpackage (I've never> seen something like that)? You can still have integration/acceptance test> cases in 'normal' package or even in different source folder.
> Unreasonable> subpackage makes it hard to write real unit test, you cannot test non> public methods, you cannot instantiate some classes etc. Don't you have a> refactoring plan to remove test subpackage?
No reason to change what just works.The day you write a (needed and usefull!) unittest that is not possiblein our current setup then lets talk ;)/max>> Thanks,> Szczepan
>>> On 6/8/06, Max Rydahl Andersen <[EMAIL PROTECTED]> wrote:>>
>> > 1. Why there are about 10 failing test after getting project from svn?
 a) if the method ends in "FailureExpected", then it is an expected>> failure>> which represents a known bug/issue.>> To make the test pass, fix the bug ;)
 b) others depend on your db, but for the moment I only have>> failureExpected methods. > 2. Why do you keep test files in strange org.hibernate.test package?

>> > Shouldn't it be same package as sources (e.g. org.hibernate...) Not strange at all and there is no need to have them in the same>> package.>> Alot of our tests is "usecase" based tests which does not fit 100% into
>> the implmentation "layout". -->> -->> Max Rydahl Andersen>> callto://max.rydahl.andersen Hibernate>> 

[EMAIL PROTECTED]>> http://hibernate.org JBoss Inc>> 
[EMAIL PROTECTED]>>
Max Rydahl Andersencallto://max.rydahl.andersenHibernate[EMAIL PROTECTED]
http://hibernate.orgJBoss Inc
[EMAIL PROTECTED]

___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] Query failing

2006-06-09 Thread Steve Ebersole
I'll take a look.  That code block should only actually be executing on
"dot structures", which an alias is definitely not...

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Max
Rydahl Andersen
Sent: Friday, June 09, 2006 9:21 AM
To: Emmanuel Bernard
Cc: Hibernate development
Subject: Re: [Hibernate] Query failing

On Fri, 09 Jun 2006 16:16:44 +0200, Emmanuel Bernard  
<[EMAIL PROTECTED]> wrote:

> But it *is* working if item the alias is renamed i.

yes, because you don't have a class named org.hibernate.ejb.test.i

Note, i can't see why it actually tries to load  
org.hibernate.ejb.test.item and not just item.

/max

> Max Rydahl Andersen wrote:
>>
>> > No, this is a pure Hibernate EntityManager test, it has nothing to
do  
>> > with app servers.
>>
>> ah - i didn't see that getConstantValue thingy.
>> that error is because of terrible windows that forces the
classloaders
>> to have case ignored for lookups ;)
>>
>> /max
>>
>> > Max Rydahl Andersen wrote:
>> >>
>> >> I have seen similar NoClassDef when dealing with classloaders in
>>  
>> eclipse.
>> >>
>> >> It looks like the current context thread might not be behaving as
it  
>> >> should ?
>> >> Does this happen only under GlassFish or ?
>> >>
>> >> (but weird that changing the alias makes a difference?)
>> >>
>> >> /max
>> >>
>> >> > Steve,
>> >> > JPA compliance + the literal thing seems to give trouble to
>> >> >
>> >> > Query q = em.createQuery( "select item from Item item where  
>> item.descr
>> >> > like 'Microk_oft mouse' escape 'k' " );
>> >> >
>> >> > |ava.lang.NoClassDefFoundError: item (wrong name:
>> >> > org/hibernate/ejb/test/Item) at
>> >> > java.lang.ClassLoader.defineClass1(Native Method) at
>> >> > java.lang.ClassLoader.defineClass(ClassLoader.java:620) at
>> >> > >>  
>>
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>> >> > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at
>> >> > java.net.URLClassLoader.access$100(URLClassLoader.java:56) at
>> >> > java.net.URLClassLoader$1.run(URLClassLoader.java:195) at
>> >> > java.security.AccessController.doPrivileged(Native Method) at
>> >> > java.net.URLClassLoader.findClass(URLClassLoader.java:188) at
>> >> > java.lang.ClassLoader.loadClass(ClassLoader.java:306) at
>> >> > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at
>> >> > java.lang.ClassLoader.loadClass(ClassLoader.java:251) at
>> >> >  
>> org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:95)
>>  
>> at
>> >> > >>  
>>
org.hibernate.util.ReflectHelper.getConstantValue(ReflectHelper.java:128
)
>> >> > at
>> >> > >>  
>>
org.hibernate.hql.ast.QueryTranslatorImpl$JavaConstantConverter.handleDo
tStructure(QueryTranslatorImpl.java:569)
>> >> > at
>> >> > >>  
>>
org.hibernate.hql.ast.QueryTranslatorImpl$JavaConstantConverter.visit(Qu
eryTranslatorImpl.java:564)
>> >> > at
>> >> > >>  
>>
org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.j
ava:40)
>> >> > at
>> >> > >>  
>>
org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.j
ava:41)
>> >> > at
>> >> > >>  
>>
org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.j
ava:41)
>> >> > at
>> >> > >>  
>>
org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.j
ava:42)
>> >> > at
>> >> > >>  
>>
org.hibernate.hql.ast.util.NodeTraverser.traverseDepthFirst(NodeTraverse
r.java:33)
>> >> > at
>> >> > >>  
>>
org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java
:254)
>> >> > at
>> >> > >>  
>>
org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.
java:157)
>> >> > at
>> >> > >>  
>>
org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.ja
va:111)
>> >> > at >>  
>> org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:77)
>> >> > at >>  
>> org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:56)
>> >> > at
>> >> > >>  
>>
org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache
.java:71)
>> >> > at
>> >> > >>  
>>
org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionIm
pl.java:133)
>> >> > at
>> >> > >>  
>>
org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.j
ava:112)
>> >> > at  
>> org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1623) >>
at
>> >> > >>  
>>
org.hibernate.ejb.AbstractEntityManagerImpl.createQuery(AbstractEntityMa
nagerImpl.java:79)
>> >> > at > >>  
>>
org.hibernate.ejb.test.QueryTest.testEscapeCharacter(QueryTest.java:133)
|
>> >> >
>> >> > Note that if I change the alias, it works.
>> >> > Query q = em.createQuery( "select i from Item i where i.descr
like
>> >> > 'Microk_oft mouse' escape 'k' " );
>> >>
>> >>
>> >>
>> >> --
>> >> --
>> >> Max Rydahl Andersen
>> >> callto://max.rydahl.andersen
>> >>
>> >> Hibernate
>> >> [EMAIL PROTECTED]
>> >> http://hibernate.org
>> >>
>> >> JBoss Inc
>> >> [EMAIL PROTECTED]
>> >>
>> >>
>> >> __

Re: [Hibernate] Query failing

2006-06-09 Thread Max Rydahl Andersen

which test is this ? Trying to reproduce it here but no luck.
/max

>
>> But it *is* working if item the alias is renamed i.
>
> yes, because you don't have a class named org.hibernate.ejb.test.i
>
> Note, i can't see why it actually tries to load
> org.hibernate.ejb.test.item and not just item.
>
> /max
>
>> Max Rydahl Andersen wrote:
>>>
>>> > No, this is a pure Hibernate EntityManager test, it has nothing to do
>>> > with app servers.
>>>
>>> ah - i didn't see that getConstantValue thingy.
>>> that error is because of terrible windows that forces the classloaders
>>> to have case ignored for lookups ;)
>>>
>>> /max
>>>
>>> > Max Rydahl Andersen wrote:
>>> >>
>>> >> I have seen similar NoClassDef when dealing with classloaders in >>
>>> eclipse.
>>> >>
>>> >> It looks like the current context thread might not be behaving as it
>>> >> should ?
>>> >> Does this happen only under GlassFish or ?
>>> >>
>>> >> (but weird that changing the alias makes a difference?)
>>> >>
>>> >> /max
>>> >>
>>> >> > Steve,
>>> >> > JPA compliance + the literal thing seems to give trouble to
>>> >> >
>>> >> > Query q = em.createQuery( "select item from Item item where
>>> item.descr
>>> >> > like 'Microk_oft mouse' escape 'k' " );
>>> >> >
>>> >> > |ava.lang.NoClassDefFoundError: item (wrong name:
>>> >> > org/hibernate/ejb/test/Item) at
>>> >> > java.lang.ClassLoader.defineClass1(Native Method) at
>>> >> > java.lang.ClassLoader.defineClass(ClassLoader.java:620) at
>>> >> > >>
>>> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>>> >> > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at
>>> >> > java.net.URLClassLoader.access$100(URLClassLoader.java:56) at
>>> >> > java.net.URLClassLoader$1.run(URLClassLoader.java:195) at
>>> >> > java.security.AccessController.doPrivileged(Native Method) at
>>> >> > java.net.URLClassLoader.findClass(URLClassLoader.java:188) at
>>> >> > java.lang.ClassLoader.loadClass(ClassLoader.java:306) at
>>> >> > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at
>>> >> > java.lang.ClassLoader.loadClass(ClassLoader.java:251) at
>>> >> >
>>> org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:95) >>
>>> at
>>> >> > >>
>>> org.hibernate.util.ReflectHelper.getConstantValue(ReflectHelper.java:128)
>>> >> > at
>>> >> > >>
>>> org.hibernate.hql.ast.QueryTranslatorImpl$JavaConstantConverter.handleDotStructure(QueryTranslatorImpl.java:569)
>>> >> > at
>>> >> > >>
>>> org.hibernate.hql.ast.QueryTranslatorImpl$JavaConstantConverter.visit(QueryTranslatorImpl.java:564)
>>> >> > at
>>> >> > >>
>>> org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.java:40)
>>> >> > at
>>> >> > >>
>>> org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.java:41)
>>> >> > at
>>> >> > >>
>>> org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.java:41)
>>> >> > at
>>> >> > >>
>>> org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.java:42)
>>> >> > at
>>> >> > >>
>>> org.hibernate.hql.ast.util.NodeTraverser.traverseDepthFirst(NodeTraverser.java:33)
>>> >> > at
>>> >> > >>
>>> org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:254)
>>> >> > at
>>> >> > >>
>>> org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:157)
>>> >> > at
>>> >> > >>
>>> org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111)
>>> >> > at >>
>>> org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:77)
>>> >> > at >>
>>> org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:56)
>>> >> > at
>>> >> > >>
>>> org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:71)
>>> >> > at
>>> >> > >>
>>> org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133)
>>> >> > at
>>> >> > >>
>>> org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:112)
>>> >> > at
>>> org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1623) >> at
>>> >> > >>
>>> org.hibernate.ejb.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:79)
>>> >> > at > >>
>>> org.hibernate.ejb.test.QueryTest.testEscapeCharacter(QueryTest.java:133)|
>>> >> >
>>> >> > Note that if I change the alias, it works.
>>> >> > Query q = em.createQuery( "select i from Item i where i.descr like
>>> >> > 'Microk_oft mouse' escape 'k' " );
>>> >>
>>> >>
>>> >>
>>> >> --
>>> >> --
>>> >> Max Rydahl Andersen
>>> >> callto://max.rydahl.andersen
>>> >>
>>> >> Hibernate
>>> >> [EMAIL PROTECTED]
>>> >> http://hibernate.org
>>> >>
>>> >> JBoss Inc
>>> >> [EMAIL PROTECTED]
>>> >>
>>> >>
>>> >> ___
>>> >> hibernate-devel mailing list
>>> >> hibernate-devel@lists.sourceforge.net
>>> >> https://lists.sourceforge.net/lists/listinfo/hibernate-devel
>>> >>
>>> >
>>>
>>>
>>>
>>> --
>>> --
>>> Max Rydahl Andersen
>>> callto://max.rydahl.andersen
>>>
>>> Hibernate
>>> [EMAIL PROTECTED]
>>> http:/

Re: [Hibernate] Query failing

2006-06-09 Thread Max Rydahl Andersen
On Fri, 09 Jun 2006 16:16:44 +0200, Emmanuel Bernard  
<[EMAIL PROTECTED]> wrote:

> But it *is* working if item the alias is renamed i.

yes, because you don't have a class named org.hibernate.ejb.test.i

Note, i can't see why it actually tries to load  
org.hibernate.ejb.test.item and not just item.

/max

> Max Rydahl Andersen wrote:
>>
>> > No, this is a pure Hibernate EntityManager test, it has nothing to do  
>> > with app servers.
>>
>> ah - i didn't see that getConstantValue thingy.
>> that error is because of terrible windows that forces the classloaders
>> to have case ignored for lookups ;)
>>
>> /max
>>
>> > Max Rydahl Andersen wrote:
>> >>
>> >> I have seen similar NoClassDef when dealing with classloaders in >>  
>> eclipse.
>> >>
>> >> It looks like the current context thread might not be behaving as it  
>> >> should ?
>> >> Does this happen only under GlassFish or ?
>> >>
>> >> (but weird that changing the alias makes a difference?)
>> >>
>> >> /max
>> >>
>> >> > Steve,
>> >> > JPA compliance + the literal thing seems to give trouble to
>> >> >
>> >> > Query q = em.createQuery( "select item from Item item where  
>> item.descr
>> >> > like 'Microk_oft mouse' escape 'k' " );
>> >> >
>> >> > |ava.lang.NoClassDefFoundError: item (wrong name:
>> >> > org/hibernate/ejb/test/Item) at
>> >> > java.lang.ClassLoader.defineClass1(Native Method) at
>> >> > java.lang.ClassLoader.defineClass(ClassLoader.java:620) at
>> >> > >>  
>> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>> >> > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at
>> >> > java.net.URLClassLoader.access$100(URLClassLoader.java:56) at
>> >> > java.net.URLClassLoader$1.run(URLClassLoader.java:195) at
>> >> > java.security.AccessController.doPrivileged(Native Method) at
>> >> > java.net.URLClassLoader.findClass(URLClassLoader.java:188) at
>> >> > java.lang.ClassLoader.loadClass(ClassLoader.java:306) at
>> >> > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at
>> >> > java.lang.ClassLoader.loadClass(ClassLoader.java:251) at
>> >> >  
>> org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:95) >>  
>> at
>> >> > >>  
>> org.hibernate.util.ReflectHelper.getConstantValue(ReflectHelper.java:128)
>> >> > at
>> >> > >>  
>> org.hibernate.hql.ast.QueryTranslatorImpl$JavaConstantConverter.handleDotStructure(QueryTranslatorImpl.java:569)
>> >> > at
>> >> > >>  
>> org.hibernate.hql.ast.QueryTranslatorImpl$JavaConstantConverter.visit(QueryTranslatorImpl.java:564)
>> >> > at
>> >> > >>  
>> org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.java:40)
>> >> > at
>> >> > >>  
>> org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.java:41)
>> >> > at
>> >> > >>  
>> org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.java:41)
>> >> > at
>> >> > >>  
>> org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.java:42)
>> >> > at
>> >> > >>  
>> org.hibernate.hql.ast.util.NodeTraverser.traverseDepthFirst(NodeTraverser.java:33)
>> >> > at
>> >> > >>  
>> org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:254)
>> >> > at
>> >> > >>  
>> org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:157)
>> >> > at
>> >> > >>  
>> org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111)
>> >> > at >>  
>> org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:77)
>> >> > at >>  
>> org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:56)
>> >> > at
>> >> > >>  
>> org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:71)
>> >> > at
>> >> > >>  
>> org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133)
>> >> > at
>> >> > >>  
>> org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:112)
>> >> > at  
>> org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1623) >> at
>> >> > >>  
>> org.hibernate.ejb.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:79)
>> >> > at > >>  
>> org.hibernate.ejb.test.QueryTest.testEscapeCharacter(QueryTest.java:133)|
>> >> >
>> >> > Note that if I change the alias, it works.
>> >> > Query q = em.createQuery( "select i from Item i where i.descr like
>> >> > 'Microk_oft mouse' escape 'k' " );
>> >>
>> >>
>> >>
>> >> --
>> >> --
>> >> Max Rydahl Andersen
>> >> callto://max.rydahl.andersen
>> >>
>> >> Hibernate
>> >> [EMAIL PROTECTED]
>> >> http://hibernate.org
>> >>
>> >> JBoss Inc
>> >> [EMAIL PROTECTED]
>> >>
>> >>
>> >> ___
>> >> hibernate-devel mailing list
>> >> hibernate-devel@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/hibernate-devel
>> >>
>> >
>>
>>
>>
>> --
>> --
>> Max Rydahl Andersen
>> callto://max.rydahl.andersen
>>
>> Hibernate
>> [EMAIL PROTECTED]
>> http://hibernate.org
>>
>> JBoss Inc
>> [EMAIL PROTECTED]
>>
>



-- 
--
Max Rydahl Ander

Re: [Hibernate] Query failing

2006-06-09 Thread Emmanuel Bernard
But it *is* working if item the alias is renamed i.

Max Rydahl Andersen wrote:
>
> > No, this is a pure Hibernate EntityManager test, it has nothing to do 
> > with app servers.
>
> ah - i didn't see that getConstantValue thingy.
> that error is because of terrible windows that forces the classloaders
> to have case ignored for lookups ;)
>
> /max
>
> > Max Rydahl Andersen wrote:
> >>
> >> I have seen similar NoClassDef when dealing with classloaders in 
> >> eclipse.
> >>
> >> It looks like the current context thread might not be behaving as it 
> >> should ?
> >> Does this happen only under GlassFish or ?
> >>
> >> (but weird that changing the alias makes a difference?)
> >>
> >> /max
> >>
> >> > Steve,
> >> > JPA compliance + the literal thing seems to give trouble to
> >> >
> >> > Query q = em.createQuery( "select item from Item item where 
> item.descr
> >> > like 'Microk_oft mouse' escape 'k' " );
> >> >
> >> > |ava.lang.NoClassDefFoundError: item (wrong name:
> >> > org/hibernate/ejb/test/Item) at
> >> > java.lang.ClassLoader.defineClass1(Native Method) at
> >> > java.lang.ClassLoader.defineClass(ClassLoader.java:620) at
> >> > 
> >> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
> >> > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at
> >> > java.net.URLClassLoader.access$100(URLClassLoader.java:56) at
> >> > java.net.URLClassLoader$1.run(URLClassLoader.java:195) at
> >> > java.security.AccessController.doPrivileged(Native Method) at
> >> > java.net.URLClassLoader.findClass(URLClassLoader.java:188) at
> >> > java.lang.ClassLoader.loadClass(ClassLoader.java:306) at
> >> > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at
> >> > java.lang.ClassLoader.loadClass(ClassLoader.java:251) at
> >> > org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:95) 
> >> at
> >> > 
> >> 
> org.hibernate.util.ReflectHelper.getConstantValue(ReflectHelper.java:128)
> >> > at
> >> > 
> >> 
> org.hibernate.hql.ast.QueryTranslatorImpl$JavaConstantConverter.handleDotStructure(QueryTranslatorImpl.java:569)
> >> > at
> >> > 
> >> 
> org.hibernate.hql.ast.QueryTranslatorImpl$JavaConstantConverter.visit(QueryTranslatorImpl.java:564)
> >> > at
> >> > 
> >> 
> org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.java:40)
> >> > at
> >> > 
> >> 
> org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.java:41)
> >> > at
> >> > 
> >> 
> org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.java:41)
> >> > at
> >> > 
> >> 
> org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.java:42)
> >> > at
> >> > 
> >> 
> org.hibernate.hql.ast.util.NodeTraverser.traverseDepthFirst(NodeTraverser.java:33)
> >> > at
> >> > 
> >> 
> org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:254)
> >> > at
> >> > 
> >> 
> org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:157)
> >> > at
> >> > 
> >> 
> org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111)
> >> > at 
> >> org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:77)
> >> > at 
> >> org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:56)
> >> > at
> >> > 
> >> 
> org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:71)
> >> > at
> >> > 
> >> 
> org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133)
> >> > at
> >> > 
> >> 
> org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:112)
> >> > at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1623) 
> >> at
> >> > 
> >> 
> org.hibernate.ejb.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:79)
> >> > at > 
> >> 
> org.hibernate.ejb.test.QueryTest.testEscapeCharacter(QueryTest.java:133)|
> >> >
> >> > Note that if I change the alias, it works.
> >> > Query q = em.createQuery( "select i from Item i where i.descr like
> >> > 'Microk_oft mouse' escape 'k' " );
> >>
> >>
> >>
> >> --
> >> --
> >> Max Rydahl Andersen
> >> callto://max.rydahl.andersen
> >>
> >> Hibernate
> >> [EMAIL PROTECTED]
> >> http://hibernate.org
> >>
> >> JBoss Inc
> >> [EMAIL PROTECTED]
> >>
> >>
> >> ___
> >> hibernate-devel mailing list
> >> hibernate-devel@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/hibernate-devel
> >>
> >
>
>
>
> --
> --
> Max Rydahl Andersen
> callto://max.rydahl.andersen
>
> Hibernate
> [EMAIL PROTECTED]
> http://hibernate.org
>
> JBoss Inc
> [EMAIL PROTECTED]
>



___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] Query failing

2006-06-09 Thread Max Rydahl Andersen

the fix is either to add an extra catch or somehow improve the parser so it
doesn't try to resolve a classname out of an alias.

/max

>> No, this is a pure Hibernate EntityManager test, it has nothing to do
>> with app servers.
>
> ah - i didn't see that getConstantValue thingy.
> that error is because of terrible windows that forces the classloaders
> to have case ignored for lookups ;)
>
> /max
>
>> Max Rydahl Andersen wrote:
>>>
>>> I have seen similar NoClassDef when dealing with classloaders in
>>> eclipse.
>>>
>>> It looks like the current context thread might not be behaving as it
>>> should ?
>>> Does this happen only under GlassFish or ?
>>>
>>> (but weird that changing the alias makes a difference?)
>>>
>>> /max
>>>
>>> > Steve,
>>> > JPA compliance + the literal thing seems to give trouble to
>>> >
>>> > Query q = em.createQuery( "select item from Item item where  
>>> item.descr
>>> > like 'Microk_oft mouse' escape 'k' " );
>>> >
>>> > |ava.lang.NoClassDefFoundError: item (wrong name:
>>> > org/hibernate/ejb/test/Item) at
>>> > java.lang.ClassLoader.defineClass1(Native Method) at
>>> > java.lang.ClassLoader.defineClass(ClassLoader.java:620) at
>>> >
>>> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>>> > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at
>>> > java.net.URLClassLoader.access$100(URLClassLoader.java:56) at
>>> > java.net.URLClassLoader$1.run(URLClassLoader.java:195) at
>>> > java.security.AccessController.doPrivileged(Native Method) at
>>> > java.net.URLClassLoader.findClass(URLClassLoader.java:188) at
>>> > java.lang.ClassLoader.loadClass(ClassLoader.java:306) at
>>> > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at
>>> > java.lang.ClassLoader.loadClass(ClassLoader.java:251) at
>>> > org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:95)
>>> at
>>> >
>>> org.hibernate.util.ReflectHelper.getConstantValue(ReflectHelper.java:128)
>>> > at
>>> >
>>> org.hibernate.hql.ast.QueryTranslatorImpl$JavaConstantConverter.handleDotStructure(QueryTranslatorImpl.java:569)
>>> > at
>>> >
>>> org.hibernate.hql.ast.QueryTranslatorImpl$JavaConstantConverter.visit(QueryTranslatorImpl.java:564)
>>> > at
>>> >
>>> org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.java:40)
>>> > at
>>> >
>>> org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.java:41)
>>> > at
>>> >
>>> org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.java:41)
>>> > at
>>> >
>>> org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.java:42)
>>> > at
>>> >
>>> org.hibernate.hql.ast.util.NodeTraverser.traverseDepthFirst(NodeTraverser.java:33)
>>> > at
>>> >
>>> org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:254)
>>> > at
>>> >
>>> org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:157)
>>> > at
>>> >
>>> org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111)
>>> > at
>>> org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:77)
>>> > at
>>> org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:56)
>>> > at
>>> >
>>> org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:71)
>>> > at
>>> >
>>> org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133)
>>> > at
>>> >
>>> org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:112)
>>> > at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1623)
>>> at
>>> >
>>> org.hibernate.ejb.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:79)
>>> > at >
>>> org.hibernate.ejb.test.QueryTest.testEscapeCharacter(QueryTest.java:133)|
>>> >
>>> > Note that if I change the alias, it works.
>>> > Query q = em.createQuery( "select i from Item i where i.descr like
>>> > 'Microk_oft mouse' escape 'k' " );
>>>
>>>
>>>
>>> --
>>> --
>>> Max Rydahl Andersen
>>> callto://max.rydahl.andersen
>>>
>>> Hibernate
>>> [EMAIL PROTECTED]
>>> http://hibernate.org
>>>
>>> JBoss Inc
>>> [EMAIL PROTECTED]
>>>
>>>
>>> ___
>>> hibernate-devel mailing list
>>> hibernate-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/hibernate-devel
>>>
>>
>
>
>



-- 
--
Max Rydahl Andersen
callto://max.rydahl.andersen

Hibernate
[EMAIL PROTECTED]
http://hibernate.org

JBoss Inc
[EMAIL PROTECTED]


___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] Query failing

2006-06-09 Thread Max Rydahl Andersen
> No, this is a pure Hibernate EntityManager test, it has nothing to do  
> with app servers.

ah - i didn't see that getConstantValue thingy.
that error is because of terrible windows that forces the classloaders
to have case ignored for lookups ;)

/max

> Max Rydahl Andersen wrote:
>>
>> I have seen similar NoClassDef when dealing with classloaders in  
>> eclipse.
>>
>> It looks like the current context thread might not be behaving as it  
>> should ?
>> Does this happen only under GlassFish or ?
>>
>> (but weird that changing the alias makes a difference?)
>>
>> /max
>>
>> > Steve,
>> > JPA compliance + the literal thing seems to give trouble to
>> >
>> > Query q = em.createQuery( "select item from Item item where item.descr
>> > like 'Microk_oft mouse' escape 'k' " );
>> >
>> > |ava.lang.NoClassDefFoundError: item (wrong name:
>> > org/hibernate/ejb/test/Item) at
>> > java.lang.ClassLoader.defineClass1(Native Method) at
>> > java.lang.ClassLoader.defineClass(ClassLoader.java:620) at
>> >  
>> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>> > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at
>> > java.net.URLClassLoader.access$100(URLClassLoader.java:56) at
>> > java.net.URLClassLoader$1.run(URLClassLoader.java:195) at
>> > java.security.AccessController.doPrivileged(Native Method) at
>> > java.net.URLClassLoader.findClass(URLClassLoader.java:188) at
>> > java.lang.ClassLoader.loadClass(ClassLoader.java:306) at
>> > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at
>> > java.lang.ClassLoader.loadClass(ClassLoader.java:251) at
>> > org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:95)  
>> at
>> >  
>> org.hibernate.util.ReflectHelper.getConstantValue(ReflectHelper.java:128)
>> > at
>> >  
>> org.hibernate.hql.ast.QueryTranslatorImpl$JavaConstantConverter.handleDotStructure(QueryTranslatorImpl.java:569)
>> > at
>> >  
>> org.hibernate.hql.ast.QueryTranslatorImpl$JavaConstantConverter.visit(QueryTranslatorImpl.java:564)
>> > at
>> >  
>> org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.java:40)
>> > at
>> >  
>> org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.java:41)
>> > at
>> >  
>> org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.java:41)
>> > at
>> >  
>> org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.java:42)
>> > at
>> >  
>> org.hibernate.hql.ast.util.NodeTraverser.traverseDepthFirst(NodeTraverser.java:33)
>> > at
>> >  
>> org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:254)
>> > at
>> >  
>> org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:157)
>> > at
>> >  
>> org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111)
>> > at  
>> org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:77)
>> > at  
>> org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:56)
>> > at
>> >  
>> org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:71)
>> > at
>> >  
>> org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133)
>> > at
>> >  
>> org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:112)
>> > at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1623)  
>> at
>> >  
>> org.hibernate.ejb.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:79)
>> > at >  
>> org.hibernate.ejb.test.QueryTest.testEscapeCharacter(QueryTest.java:133)|
>> >
>> > Note that if I change the alias, it works.
>> > Query q = em.createQuery( "select i from Item i where i.descr like
>> > 'Microk_oft mouse' escape 'k' " );
>>
>>
>>
>> --
>> --
>> Max Rydahl Andersen
>> callto://max.rydahl.andersen
>>
>> Hibernate
>> [EMAIL PROTECTED]
>> http://hibernate.org
>>
>> JBoss Inc
>> [EMAIL PROTECTED]
>>
>>
>> ___
>> hibernate-devel mailing list
>> hibernate-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/hibernate-devel
>>
>



-- 
--
Max Rydahl Andersen
callto://max.rydahl.andersen

Hibernate
[EMAIL PROTECTED]
http://hibernate.org

JBoss Inc
[EMAIL PROTECTED]


___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] Query failing

2006-06-09 Thread Emmanuel Bernard
No, this is a pure Hibernate EntityManager test, it has nothing to do 
with app servers.

Max Rydahl Andersen wrote:
>
> I have seen similar NoClassDef when dealing with classloaders in eclipse.
>
> It looks like the current context thread might not be behaving as it 
> should ?
> Does this happen only under GlassFish or ?
>
> (but weird that changing the alias makes a difference?)
>
> /max
>
> > Steve,
> > JPA compliance + the literal thing seems to give trouble to
> >
> > Query q = em.createQuery( "select item from Item item where item.descr
> > like 'Microk_oft mouse' escape 'k' " );
> >
> > |ava.lang.NoClassDefFoundError: item (wrong name:
> > org/hibernate/ejb/test/Item) at
> > java.lang.ClassLoader.defineClass1(Native Method) at
> > java.lang.ClassLoader.defineClass(ClassLoader.java:620) at
> > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
> > at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at
> > java.net.URLClassLoader.access$100(URLClassLoader.java:56) at
> > java.net.URLClassLoader$1.run(URLClassLoader.java:195) at
> > java.security.AccessController.doPrivileged(Native Method) at
> > java.net.URLClassLoader.findClass(URLClassLoader.java:188) at
> > java.lang.ClassLoader.loadClass(ClassLoader.java:306) at
> > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at
> > java.lang.ClassLoader.loadClass(ClassLoader.java:251) at
> > org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:95) at
> > 
> org.hibernate.util.ReflectHelper.getConstantValue(ReflectHelper.java:128)
> > at
> > 
> org.hibernate.hql.ast.QueryTranslatorImpl$JavaConstantConverter.handleDotStructure(QueryTranslatorImpl.java:569)
> > at
> > 
> org.hibernate.hql.ast.QueryTranslatorImpl$JavaConstantConverter.visit(QueryTranslatorImpl.java:564)
> > at
> > 
> org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.java:40)
> > at
> > 
> org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.java:41)
> > at
> > 
> org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.java:41)
> > at
> > 
> org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.java:42)
> > at
> > 
> org.hibernate.hql.ast.util.NodeTraverser.traverseDepthFirst(NodeTraverser.java:33)
> > at
> > 
> org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:254)
> > at
> > 
> org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:157)
> > at
> > 
> org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111)
> > at org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:77)
> > at org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:56)
> > at
> > 
> org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:71)
> > at
> > 
> org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133)
> > at
> > 
> org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:112)
> > at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1623) at
> > 
> org.hibernate.ejb.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:79)
> > at 
> > 
> org.hibernate.ejb.test.QueryTest.testEscapeCharacter(QueryTest.java:133)|
> >
> > Note that if I change the alias, it works.
> > Query q = em.createQuery( "select i from Item i where i.descr like
> > 'Microk_oft mouse' escape 'k' " );
>
>
>
> --
> --
> Max Rydahl Andersen
> callto://max.rydahl.andersen
>
> Hibernate
> [EMAIL PROTECTED]
> http://hibernate.org
>
> JBoss Inc
> [EMAIL PROTECTED]
>
>
> ___
> hibernate-devel mailing list
> hibernate-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/hibernate-devel
>



___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] hibernate-oracle10-testsuite Build Completed With Testsuite Errors

2006-06-09 Thread qa

View results here -> http://cruisecontrol.jboss.com/cc/buildresults/hibernate-oracle10-testsuite?log=log20060609050821
TESTS FAILEDAnt Error Message: /home/cruisecontrol/work/scripts/build-hibernate-db-matrix.xml:100: The following error occurred while executing this line: /home/cruisecontrol/work/scripts/build-hibernate-db-matrix.xml:77: The following error occurred while executing this line: /home/cruisecontrol/work/scripts/build-common-targets.xml:11: Build Successful - Tests completed with errors or failures.Date of build: 06/09/2006 05:08:21Time to build: 22 minutes 16 seconds




    Unit Tests: (849)    Total Errors and Failures: (12)testSequenceIdentityGeneratororg.hibernate.test.generatedkeys.seqidentity.SequenceIdentityTesttestParameterTypeMismatchFailsorg.hibernate.test.hql.ASTParserLoadingTesttestCriteriaAggregationReturnTypeFailureExpectedorg.hibernate.test.hql.CriteriaHQLAlignmentTesttestReturnPropertyComponentRenameorg.hibernate.test.legacy.SQLLoaderTesttestReadOnlyOnProxiesFailureExpectedorg.hibernate.test.readonly.ReadOnlyTesttestEmptyInListFailureExpectedorg.hibernate.test.hql.HQLTesttestMaxindexHqlFunctionInElementAccessorFailureExpectedorg.hibernate.test.hql.HQLTesttestMultipleElementAccessorOperatorsFailureExpectedorg.hibernate.test.hql.HQLTesttestKeyManyToOneJoinFailureExpectedorg.hibernate.test.hql.HQLTesttestDuplicateExplicitJoinFailureExpectedorg.hibernate.test.hql.HQLTesttestOptimisticLockDirtyDeleteFailureExpectedorg.hibernate.test.optlock.OptimisticLockTesttestOptimisticLockAllDeleteFailureExpectedorg.hibernate.test.optlock.OptimisticLockTest 
 Modifications since last build: (first 50 of 0)

___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] hibernate-hsqldb-testsuite Build Completed With Testsuite Errors

2006-06-09 Thread qa

View results here -> http://cruisecontrol.jboss.com/cc/buildresults/hibernate-hsqldb-testsuite?log=log20060609045819
TESTS FAILEDAnt Error Message: /home/cruisecontrol/work/scripts/build-hibernate-db-matrix.xml:86: The following error occurred while executing this line: /home/cruisecontrol/work/scripts/build-hibernate-db-matrix.xml:77: The following error occurred while executing this line: /home/cruisecontrol/work/scripts/build-common-targets.xml:11: Build Successful - Tests completed with errors or failures.Date of build: 06/09/2006 04:58:19Time to build: 9 minutes 11 seconds




    Unit Tests: (847)    Total Errors and Failures: (11)testParameterTypeMismatchFailsorg.hibernate.test.hql.ASTParserLoadingTesttestCriteriaAggregationReturnTypeFailureExpectedorg.hibernate.test.hql.CriteriaHQLAlignmentTesttestReturnPropertyComponentRenameorg.hibernate.test.legacy.SQLLoaderTesttestReadOnlyOnProxiesFailureExpectedorg.hibernate.test.readonly.ReadOnlyTesttestEmptyInListFailureExpectedorg.hibernate.test.hql.HQLTesttestMaxindexHqlFunctionInElementAccessorFailureExpectedorg.hibernate.test.hql.HQLTesttestMultipleElementAccessorOperatorsFailureExpectedorg.hibernate.test.hql.HQLTesttestKeyManyToOneJoinFailureExpectedorg.hibernate.test.hql.HQLTesttestDuplicateExplicitJoinFailureExpectedorg.hibernate.test.hql.HQLTesttestOptimisticLockDirtyDeleteFailureExpectedorg.hibernate.test.optlock.OptimisticLockTesttestOptimisticLockAllDeleteFailureExpectedorg.hibernate.test.optlock.OptimisticLockTest 
 Modifications since last build: (first 50 of 0)

___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] Query failing

2006-06-09 Thread Max Rydahl Andersen

I have seen similar NoClassDef when dealing with classloaders in eclipse.

It looks like the current context thread might not be behaving as it  
should ?
Does this happen only under GlassFish or ?

(but weird that changing the alias makes a difference?)

/max

> Steve,
> JPA compliance + the literal thing seems to give trouble to
>
> Query q = em.createQuery( "select item from Item item where item.descr
> like 'Microk_oft mouse' escape 'k' " );
>
> |ava.lang.NoClassDefFoundError: item (wrong name:
> org/hibernate/ejb/test/Item) at
> java.lang.ClassLoader.defineClass1(Native Method) at
> java.lang.ClassLoader.defineClass(ClassLoader.java:620) at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at
> java.net.URLClassLoader.access$100(URLClassLoader.java:56) at
> java.net.URLClassLoader$1.run(URLClassLoader.java:195) at
> java.security.AccessController.doPrivileged(Native Method) at
> java.net.URLClassLoader.findClass(URLClassLoader.java:188) at
> java.lang.ClassLoader.loadClass(ClassLoader.java:306) at
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at
> java.lang.ClassLoader.loadClass(ClassLoader.java:251) at
> org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:95) at
> org.hibernate.util.ReflectHelper.getConstantValue(ReflectHelper.java:128)
> at
> org.hibernate.hql.ast.QueryTranslatorImpl$JavaConstantConverter.handleDotStructure(QueryTranslatorImpl.java:569)
> at
> org.hibernate.hql.ast.QueryTranslatorImpl$JavaConstantConverter.visit(QueryTranslatorImpl.java:564)
> at
> org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.java:40)
> at
> org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.java:41)
> at
> org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.java:41)
> at
> org.hibernate.hql.ast.util.NodeTraverser.visitDepthFirst(NodeTraverser.java:42)
> at
> org.hibernate.hql.ast.util.NodeTraverser.traverseDepthFirst(NodeTraverser.java:33)
> at
> org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:254)
> at
> org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:157)
> at
> org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:111)
> at org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:77)
> at org.hibernate.engine.query.HQLQueryPlan.(HQLQueryPlan.java:56)
> at
> org.hibernate.engine.query.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:71)
> at
> org.hibernate.impl.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:133)
> at
> org.hibernate.impl.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:112)
> at org.hibernate.impl.SessionImpl.createQuery(SessionImpl.java:1623) at
> org.hibernate.ejb.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:79)
> at  
> org.hibernate.ejb.test.QueryTest.testEscapeCharacter(QueryTest.java:133)|
>
> Note that if I change the alias, it works.
> Query q = em.createQuery( "select i from Item i where i.descr like
> 'Microk_oft mouse' escape 'k' " );



-- 
--
Max Rydahl Andersen
callto://max.rydahl.andersen

Hibernate
[EMAIL PROTECTED]
http://hibernate.org

JBoss Inc
[EMAIL PROTECTED]


___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


Re: [Hibernate] questions regarding development setup

2006-06-09 Thread Max Rydahl Andersen

> b) But what's the reason of making surprising test subpackage (I've never
> seen something like that)? You can still have integration/acceptance test
> cases in 'normal' package or even in different source folder.  
> Unreasonable
> subpackage makes it hard to write real unit test, you cannot test non  
> public methods, you cannot instantiate some classes etc. Don't you have a
> refactoring plan to remove test subpackage?

No reason to change what just works.

The day you write a (needed and usefull!) unittest that is not possible
in our current setup then lets talk ;)

/max

>
> Thanks,
> Szczepan
>
>
> On 6/8/06, Max Rydahl Andersen <[EMAIL PROTECTED]> wrote:
>>
>> > 1. Why there are about 10 failing test after getting project from svn?
>>
>> a) if the method ends in "FailureExpected", then it is an expected  
>> failure
>> which represents a known bug/issue.
>> To make the test pass, fix the bug ;)
>>
>> b) others depend on your db, but for the moment I only have
>> failureExpected methods.
>>
>> > 2. Why do you keep test files in strange org.hibernate.test package?
>> > Shouldn't it be same package as sources (e.g. org.hibernate...)
>>
>> Not strange at all and there is no need to have them in the same  
>> package.
>> Alot of our tests is "usecase" based tests which does not fit 100% into
>> the implmentation "layout".
>>
>> --
>> --
>> Max Rydahl Andersen
>> callto://max.rydahl.andersen
>>
>> Hibernate
>> [EMAIL PROTECTED]
>> http://hibernate.org
>>
>> JBoss Inc
>> [EMAIL PROTECTED]
>>



-- 
--
Max Rydahl Andersen
callto://max.rydahl.andersen

Hibernate
[EMAIL PROTECTED]
http://hibernate.org

JBoss Inc
[EMAIL PROTECTED]


___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel