You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by Antonio Gallardo <ag...@agssa.net> on 2005/03/09 07:01:29 UTC

Test on Fedora Core 3 and postgresql 7.4.7 => 2 Failures.

Hi:

Here are the results of the junits tests using the lastest CVS. Platform:

Fedora Core 3, Java 1.4.2_07, postgresql-7.4.7-3.FC3.1:

The 2 failures are:

***Package o.a.o.broker*************************************************
1-testReportPathExpressionForExtents2

check size expected:<0> but was:<2>

 junit.framework.AssertionFailedError: check size expected:<0> but was:<2>
at
org.apache.ojb.broker.QueryTest.testReportPathExpressionForExtents2(QueryTest.java:1679)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

*** Package o.a.o.otm *************************************************
2-testSwizzle1toN

should be equal expected:<0> but was:<1>

 junit.framework.AssertionFailedError: should be equal expected:<0> but
was:<1> at
org.apache.ojb.otm.SwizzleTests.testSwizzle1toN(SwizzleTests.java:351) at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

If you need more info, please let me know. :-)

Best Regards,

Antoino Gallardo

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Re: Test on Fedora Core 3 and postgresql 7.4.7 => 2 Failures.

Posted by Thomas Dudziak <to...@gmail.com>.
See also here:

http://lists.debian.org/debian-devel/2003/06/msg00604.html
http://www.postgresql.org/docs/current/static/multibyte.html

It seems you can only specify the encoding at creation time (does
Torque specify UNICODE or UTF-8 or somesuch ?), and then you're set to
this. If not specified, it will probably use the default which may or
may not be multibyte/utf-8 on windows and/or newer versions.

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Re: Test on Fedora Core 3 and postgresql 7.4.7 => 2 Failures.

Posted by Brian McCallister <br...@apache.org>.
Hmm, I thought the first was an Apple JVM thing as others couldn't  
replicate it. A thought on it, are you setting a UTF-8 character set  
for postgres in the jdbc url? I have hit things in the past where  
postgres borks if you don't tell it a character set it presumes ASCII.

-Brian

On Mar 9, 2005, at 1:01 AM, Antonio Gallardo wrote:

> Hi:
>
> Here are the results of the junits tests using the lastest CVS.  
> Platform:
>
> Fedora Core 3, Java 1.4.2_07, postgresql-7.4.7-3.FC3.1:
>
> The 2 failures are:
>
> ***Package  
> o.a.o.broker*************************************************
> 1-testReportPathExpressionForExtents2
>
> check size expected:<0> but was:<2>
>
>  junit.framework.AssertionFailedError: check size expected:<0> but  
> was:<2>
> at
> org.apache.ojb.broker.QueryTest.testReportPathExpressionForExtents2(Que 
> ryTest.java:1679)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja 
> va:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso 
> rImpl.java:25)
>
> *** Package o.a.o.otm *************************************************
> 2-testSwizzle1toN
>
> should be equal expected:<0> but was:<1>
>
>  junit.framework.AssertionFailedError: should be equal expected:<0> but
> was:<1> at
> org.apache.ojb.otm.SwizzleTests.testSwizzle1toN(SwizzleTests.java:351)  
> at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja 
> va:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso 
> rImpl.java:25)
>
> If you need more info, please let me know. :-)
>
> Best Regards,
>
> Antoino Gallardo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-dev-help@db.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Re: Test on Fedora Core 3 and postgresql 7.4.7 => 2 Failures.

Posted by Antonio Gallardo <ag...@agssa.net>.
Hi:

I got exactly the same results using the hsqldb database.

Best Regards,

Antonio Gallardo

On Mie, 9 de Marzo de 2005, 0:01, Antonio Gallardo dijo:
> Hi:
>
> Here are the results of the junits tests using the lastest CVS. Platform:
>
> Fedora Core 3, Java 1.4.2_07, postgresql-7.4.7-3.FC3.1:
>
> The 2 failures are:
>
> ***Package o.a.o.broker*************************************************
> 1-testReportPathExpressionForExtents2
>
> check size expected:<0> but was:<2>
>
>  junit.framework.AssertionFailedError: check size expected:<0> but was:<2>
> at
> org.apache.ojb.broker.QueryTest.testReportPathExpressionForExtents2(QueryTest.java:1679)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>
> *** Package o.a.o.otm *************************************************
> 2-testSwizzle1toN
>
> should be equal expected:<0> but was:<1>
>
>  junit.framework.AssertionFailedError: should be equal expected:<0> but
> was:<1> at
> org.apache.ojb.otm.SwizzleTests.testSwizzle1toN(SwizzleTests.java:351) at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>
> If you need more info, please let me know. :-)
>
> Best Regards,
>
> Antoino Gallardo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-dev-help@db.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Re: Test on Fedora Core 3 and postgresql 7.4.7 => 2 Failures.

Posted by Martin Kalén <mk...@apache.org>.
Antonio Gallardo wrote:
> Here are the results of the junits tests using the lastest CVS. Platform:
> 
> Fedora Core 3, Java 1.4.2_07, postgresql-7.4.7-3.FC3.1:

Thanks for running the tests Antonio! I will se if I can extend the 
PostgreSQL platform implementation in OJB a bit so that the encoding 
problems shown in testReportPathExpressionForExtents2 are not so 
sensitive to db and/or O/S encoding settings.

> 2-testSwizzle1toN

Still haven't had time to investigate this more... It fails for most 
people but Jakob. ;) Could be an inter-tests-relation issue that makes 
it pass on a blank testdb, but fail when run in the full test suite 
because of previous tests.

Regards,
  Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org