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 2004/06/20 07:24:40 UTC

OJB fail under J2SDk 1.3?

Hi:

I was tried to compile using Sun Java 1.3.1_12 and failed. Here is the
output:

$ bin/build.sh jar
Buildfile: build.xml

jar:

set-archive-name:

set-archive-name-date:

detect-jdk:

check-jdk12proxy-classes:

check-jndi-classes:

use-jdk12:

use-jdk13:
     [echo] detected JDK 1.3

use-jdk14:

init:

prepare:
    [mkdir] Created dir: /home/agallardo/workspace/db-ojb/target
    [mkdir] Created dir: /home/agallardo/workspace/db-ojb/target/classes
    [mkdir] Created dir: /home/agallardo/workspace/db-ojb/target/classestest
    [mkdir] Created dir: /home/agallardo/workspace/db-ojb/target/classestools
    [mkdir] Created dir: /home/agallardo/workspace/db-ojb/target/classesjca
    [mkdir] Created dir: /home/agallardo/workspace/db-ojb/dist
     [copy] Copying 575 files to /home/agallardo/workspace/db-ojb/target/src
     [copy] Copying 301 files to
/home/agallardo/workspace/db-ojb/target/srctest
     [copy] Copying 106 files to
/home/agallardo/workspace/db-ojb/target/srctools
     [copy] Copying 10 files to
/home/agallardo/workspace/db-ojb/target/srcjca

preprocess:
     [echo] using switches: +JDK13, -JDBC30
     [java]
..........................................................................................
     [java] ERROR: null
     [java] in file
/home/agallardo/workspace/db-ojb/target/src/org/apache/ojb/broker/util/BrokerHelper.java
!
     [java]
...........................................................................................................................................................................................................................................................................................
     [java] ERROR: null
     [java] in file
/home/agallardo/workspace/db-ojb/target/src/org/apache/ojb/broker/platforms/PlatformMySQLImpl.java
!
     [java] ...........
     [java] ERROR: null
     [java] in file
/home/agallardo/workspace/db-ojb/target/src/org/apache/ojb/broker/platforms/PlatformMsAccessImpl.java
!
     [java]
.....................................................................................................................................................
     [java] ERROR: null
     [java] in file
/home/agallardo/workspace/db-ojb/target/src/org/odmg/Transaction.java
!
     [java] ........
     [java] ERROR: null
     [java] in file
/home/agallardo/workspace/db-ojb/target/src/org/odmg/DCollection.java
!
     [java] ............
     [java]
..........................................................................................................................................................................................................................................................................
     [java]
.....................................................................................

BUILD FAILED
/home/agallardo/workspace/db-ojb/build.xml:408: Following error occured
while executing this line
/home/agallardo/workspace/db-ojb/build.xml:198: IOException in
/home/agallardo/workspace/db-ojb/target/src/org/apache/ojb/broker/cache/package.gif
- sun.io.MalformedInputException:null

Total time: 9 seconds

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


Re: OJB fail under J2SDk 1.3?

Posted by Brian McCallister <mc...@forthillcompany.com>.
After all the trouble with using a preprocessor to get around dynamic 
proxies in 1.2 ... we better be 1.2 compatible for 1.0 ;-)

Anyone actually have a 1.2 jdk installed?!

-Brian

On Jun 20, 2004, at 8:26 PM, Antonio Gallardo wrote:

> Thomas Dudziak dijo:
>> Brian McCallister wrote:
>>
>>> If we postpone, we will need someone else to handle pushing the 
>>> actual
>>> release. I am going to be away from Weds after work until Monday 
>>> morning
>>> when I get to JavaOne.
>>
>> The problems with JDK 1.3 (and 1.2, havn't tested that yet) are IMO a
>> showstopper, so we should sort them out before releasing, even if it
>> takes another week or so. Though it would be great to have released in
>> time for JavaOne even though Apache is not explicitly present with a
>> booth (or have I missed something ?).
>
> I am +1 for 1.3 compatibility. I am not sure in the case of 1.2. 
> Perhaps
> we can poll the user base asking if they are using 1.2.
>
> Best Regards,
>
> Antonio 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: OJB fail under J2SDk 1.3?

Posted by Antonio Gallardo <ag...@agssa.net>.
Thomas Dudziak dijo:
> Brian McCallister wrote:
>
>> If we postpone, we will need someone else to handle pushing the actual
>> release. I am going to be away from Weds after work until Monday morning
>> when I get to JavaOne.
>
> The problems with JDK 1.3 (and 1.2, havn't tested that yet) are IMO a
> showstopper, so we should sort them out before releasing, even if it
> takes another week or so. Though it would be great to have released in
> time for JavaOne even though Apache is not explicitly present with a
> booth (or have I missed something ?).

I am +1 for 1.3 compatibility. I am not sure in the case of 1.2. Perhaps
we can poll the user base asking if they are using 1.2.

Best Regards,

Antonio Gallardo


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


Re: OJB fail under J2SDk 1.3?

Posted by Thomas Dudziak <to...@first.fhg.de>.
Brian McCallister wrote:

> If we postpone, we will need someone else to handle pushing the actual 
> release. I am going to be away from Weds after work until Monday morning 
> when I get to JavaOne.

The problems with JDK 1.3 (and 1.2, havn't tested that yet) are IMO a 
showstopper, so we should sort them out before releasing, even if it 
takes another week or so. Though it would be great to have released in 
time for JavaOne even though Apache is not explicitly present with a 
booth (or have I missed something ?).

Tom


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


Re: OJB fail under J2SDk 1.3?

Posted by Brian McCallister <mc...@forthillcompany.com>.
On Jun 20, 2004, at 9:07 AM, Armin Waibel wrote:
> yes (if apache server allows to pass the attachments ;-)).
> I will have a look at this stuff tomorrow.
> Shift release date to Wednesday, 23 June?

If we postpone, we will need someone else to handle pushing the actual 
release. I am going to be away from Weds after work until Monday 
morning when I get to JavaOne.

-Brian





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


Re: OJB fail under J2SDk 1.3?

Posted by Antonio Gallardo <ag...@agssa.net>.
Armin Waibel dijo:
> yes (if apache server allows to pass the attachments ;-)).
> I will have a look at this stuff tomorrow.
> Shift release date to Wednesday, 23 June?

Please don't do this!
Instead fill a bug report zip it and attach it there. I think it is
better, it will save a lot of resources everywhere (ASF mail distribution,
mail archives, etc.).

Best Regards,

Antonio Gallardo


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


Re: OJB fail under J2SDk 1.3?

Posted by "Robert S. Sfeir" <ro...@codepuccino.com>.


On 6/20/04 9:07 AM, "Armin Waibel" <ar...@apache.org> wrote:

> 
> yes (if apache server allows to pass the attachments ;-)).
> I will have a look at this stuff tomorrow.
> Shift release date to Wednesday, 23 June?

+1, will also give us time to figure out what the heck is going on with
Postgresql.

Has anyone run the tests on MySQL, if not I'll install and run them.

R



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


Re: OJB fail under J2SDk 1.3?

Posted by Armin Waibel <ar...@apache.org>.
Thomas Dudziak wrote:

> Compiles now with JDK 1.3, but I get a couple of errors in the unit tests:
> 
> [junit] Running org.apache.ojb.broker.AllTests
> [junit] Tests run: 402, Failures: 3, Errors: 0, Time elapsed: 30,484 sec
> 
> [junit] TEST org.apache.ojb.broker.AllTests FAILED
> [junit] Running org.apache.ojb.odmg.AllTests
> [junit] [BOOT] INFO: No value for key 'InterceptorClass'
> [junit] Tests run: 196, Failures: 2, Errors: 0, Time elapsed: 11,36 sec
> 
> [junit] TEST org.apache.ojb.odmg.AllTests FAILED
> [junit] Running org.apache.ojb.soda.AllTests
> [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 5,656 sec
> 
> [junit] Running org.apache.ojb.otm.AllTests
> [junit] Tests run: 79, Failures: 0, Errors: 13, Time elapsed: 15,344 sec
> 
> And I cannot create a report for the tests due to a problem in the 
> stylesheet (probably because of JDK 1.3):
> 
> [junitreport] Using Xalan version: Xalan Java 2.3.1
> [junitreport] 
> jar:file:/E:/development/apache-ant/lib/ant-junit.jar!/org/apache/
> tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl; Line 135; Column 
> 74; java.lang.reflect.InvocationTargetException
> [junitreport] Transform time: 1656ms
> 
> The logs are a bit long to attach them directly (2meg), but I can send 
> them to you directly if you want.
> 

yes (if apache server allows to pass the attachments ;-)).
I will have a look at this stuff tomorrow.
Shift release date to Wednesday, 23 June?

regards,
Armin


> Tom
> 
> 
> ---------------------------------------------------------------------
> 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: OJB fail under J2SDk 1.3?

Posted by Thomas Dudziak <to...@first.fhg.de>.
Armin Waibel wrote:

> Hi Tom, Antonio,
> 
> sorry this was my fault. I checked in this stuff without a compatibility 
> check (after my hard disk crash I don't install JDK 1.3 again).
> 
> I try to fix the errors listed by Tom. Is in CVS now.
> Please try again to compile with JDK 1.3

Compiles now with JDK 1.3, but I get a couple of errors in the unit tests:

[junit] Running org.apache.ojb.broker.AllTests
[junit] Tests run: 402, Failures: 3, Errors: 0, Time elapsed: 30,484 sec

[junit] TEST org.apache.ojb.broker.AllTests FAILED
[junit] Running org.apache.ojb.odmg.AllTests
[junit] [BOOT] INFO: No value for key 'InterceptorClass'
[junit] Tests run: 196, Failures: 2, Errors: 0, Time elapsed: 11,36 sec

[junit] TEST org.apache.ojb.odmg.AllTests FAILED
[junit] Running org.apache.ojb.soda.AllTests
[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 5,656 sec

[junit] Running org.apache.ojb.otm.AllTests
[junit] Tests run: 79, Failures: 0, Errors: 13, Time elapsed: 15,344 sec

And I cannot create a report for the tests due to a problem in the 
stylesheet (probably because of JDK 1.3):

[junitreport] Using Xalan version: Xalan Java 2.3.1
[junitreport] 
jar:file:/E:/development/apache-ant/lib/ant-junit.jar!/org/apache/
tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl; Line 135; Column 
74; java.lang.reflect.InvocationTargetException
[junitreport] Transform time: 1656ms

The logs are a bit long to attach them directly (2meg), but I can send 
them to you directly if you want.

Tom


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


Re: OJB fail under J2SDk 1.3?

Posted by Armin Waibel <ar...@apache.org>.
Hi Tom, Antonio,

sorry this was my fault. I checked in this stuff without a compatibility 
check (after my hard disk crash I don't install JDK 1.3 again).

I try to fix the errors listed by Tom. Is in CVS now.
Please try again to compile with JDK 1.3

regards,
Armin

Thomas Dudziak wrote:

> Antonio Gallardo wrote:
> 
>> Hi:
>>
>> I was tried to compile using Sun Java 1.3.1_12 and failed. Here is the
>> output:
> 
> 
> <snip/>
> 
>> preprocess:
>>      [echo] using switches: +JDK13, -JDBC30
>>      [java]
>> .......................................................................................... 
>>
>>      [java] ERROR: null
>>      [java] in file
>> /home/agallardo/workspace/db-ojb/target/src/org/apache/ojb/broker/util/BrokerHelper.java 
>>
>> !
>>      [java]
>> ........................................................................................................................................................................................................................................................................................... 
>>
>>      [java] ERROR: null
>>      [java] in file
>> /home/agallardo/workspace/db-ojb/target/src/org/apache/ojb/broker/platforms/PlatformMySQLImpl.java 
>>
>> !
>>      [java] ...........
>>      [java] ERROR: null
>>      [java] in file
>> /home/agallardo/workspace/db-ojb/target/src/org/apache/ojb/broker/platforms/PlatformMsAccessImpl.java 
>>
>> !
>>      [java]
>> ..................................................................................................................................................... 
>>
>>      [java] ERROR: null
>>      [java] in file
>> /home/agallardo/workspace/db-ojb/target/src/org/odmg/Transaction.java
>> !
>>      [java] ........
>>      [java] ERROR: null
>>      [java] in file
>> /home/agallardo/workspace/db-ojb/target/src/org/odmg/DCollection.java
>> !
>>      [java] ............
>>      [java]
>> .......................................................................................................................................................................................................................................................................... 
>>
>>      [java]
>> ..................................................................................... 
>>
>>
>> BUILD FAILED
>> /home/agallardo/workspace/db-ojb/build.xml:408: Following error occured
>> while executing this line
>> /home/agallardo/workspace/db-ojb/build.xml:198: IOException in
>> /home/agallardo/workspace/db-ojb/target/src/org/apache/ojb/broker/cache/package.gif 
>>
>> - sun.io.MalformedInputException:null
> 
> 
> Don't know about the "ERROR: null" problem (never seen that before, 
> perhaps some problem in your environment ?), but OJB won't compile with 
> JDK 1.3 (or 1.2 for that matter) due to the following problems:
> 
>     [javac] 
> E:\projects\ojb\DB-OJB~1\target\src\org\apache\ojb\broker\accesslaye
> r\conversions\Calendar2DateFieldConversion.java:40: getTimeInMillis() 
> has protected access in java.util.Calendar
>     [javac]             return new Date(((Calendar) 
> source).getTimeInMillis());
>     [javac]                             ^
>     [javac] 
> E:\projects\ojb\DB-OJB~1\target\src\org\apache\ojb\broker\accesslaye
> r\conversions\Calendar2DateFieldConversion.java:56: 
> setTimeInMillis(long) has protected access in java.util.Calendar
>     [javac]             cal.setTimeInMillis(((Date) source).getTime());
>     [javac]                ^
>     [javac] 
> E:\projects\ojb\DB-OJB~1\target\src\org\apache\ojb\broker\accesslaye
> r\conversions\Calendar2TimestampFieldConversion.java:40: 
> getTimeInMillis() has protected access in java.util.Calendar
>     [javac]             return new Timestamp(((Calendar) 
> source).getTimeInMillis());
>     [javac]                                  ^
>     [javac] 
> E:\projects\ojb\DB-OJB~1\target\src\org\apache\ojb\broker\accesslaye
> r\conversions\Calendar2TimestampFieldConversion.java:56: 
> setTimeInMillis(long) has protected access in java.util.Calendar
>     [javac]             cal.setTimeInMillis(((Timestamp) 
> source).getTime());
>     [javac]                ^
>     [javac] 
> E:\projects\ojb\DB-OJB~1\target\src\org\apache\ojb\broker\accesslaye
> r\conversions\IntList2VarcharFieldConversion.java:62: cannot resolve symbol
>     [javac] symbol  : method replaceAll (java.lang.String,java.lang.String)
>     [javac] location: class java.lang.String
>     [javac]                 newSt = newSt.replaceAll("#", "##");
>     [javac]                              ^
>     [javac] 
> E:\projects\ojb\DB-OJB~1\target\src\org\apache\ojb\broker\accesslaye
> r\conversions\StringList2VarcharFieldConversion.java:64: cannot resolve 
> symbol
>     [javac] symbol  : method replaceAll (java.lang.String,java.lang.String)
>     [javac] location: class java.lang.String
>     [javac]                 newSt = newSt.replaceAll("#", "##");
>     [javac]                              ^
>     [javac] 
> E:\projects\ojb\DB-OJB~1\target\src\org\apache\ojb\broker\accesslaye
> r\conversions\TimeList2VarcharFieldConversion.java:63: cannot resolve 
> symbol
>     [javac] symbol  : method replaceAll (java.lang.String,java.lang.String)
>     [javac] location: class java.lang.String
>     [javac]                 newSt = newSt.replaceAll("#", "##");
> 
> (tested on Windows, JDK 1.3.1_11)
> 
> Tom
> 
> ---------------------------------------------------------------------
> 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: OJB fail under J2SDk 1.3?

Posted by Thomas Dudziak <to...@first.fhg.de>.
Antonio Gallardo wrote:
> Hi:
> 
> I was tried to compile using Sun Java 1.3.1_12 and failed. Here is the
> output:

<snip/>

> preprocess:
>      [echo] using switches: +JDK13, -JDBC30
>      [java]
> ..........................................................................................
>      [java] ERROR: null
>      [java] in file
> /home/agallardo/workspace/db-ojb/target/src/org/apache/ojb/broker/util/BrokerHelper.java
> !
>      [java]
> ...........................................................................................................................................................................................................................................................................................
>      [java] ERROR: null
>      [java] in file
> /home/agallardo/workspace/db-ojb/target/src/org/apache/ojb/broker/platforms/PlatformMySQLImpl.java
> !
>      [java] ...........
>      [java] ERROR: null
>      [java] in file
> /home/agallardo/workspace/db-ojb/target/src/org/apache/ojb/broker/platforms/PlatformMsAccessImpl.java
> !
>      [java]
> .....................................................................................................................................................
>      [java] ERROR: null
>      [java] in file
> /home/agallardo/workspace/db-ojb/target/src/org/odmg/Transaction.java
> !
>      [java] ........
>      [java] ERROR: null
>      [java] in file
> /home/agallardo/workspace/db-ojb/target/src/org/odmg/DCollection.java
> !
>      [java] ............
>      [java]
> ..........................................................................................................................................................................................................................................................................
>      [java]
> .....................................................................................
> 
> BUILD FAILED
> /home/agallardo/workspace/db-ojb/build.xml:408: Following error occured
> while executing this line
> /home/agallardo/workspace/db-ojb/build.xml:198: IOException in
> /home/agallardo/workspace/db-ojb/target/src/org/apache/ojb/broker/cache/package.gif
> - sun.io.MalformedInputException:null

Don't know about the "ERROR: null" problem (never seen that before, 
perhaps some problem in your environment ?), but OJB won't compile with 
JDK 1.3 (or 1.2 for that matter) due to the following problems:

     [javac] 
E:\projects\ojb\DB-OJB~1\target\src\org\apache\ojb\broker\accesslaye
r\conversions\Calendar2DateFieldConversion.java:40: getTimeInMillis() 
has protected access in java.util.Calendar
     [javac]             return new Date(((Calendar) 
source).getTimeInMillis());
     [javac]                             ^
     [javac] 
E:\projects\ojb\DB-OJB~1\target\src\org\apache\ojb\broker\accesslaye
r\conversions\Calendar2DateFieldConversion.java:56: 
setTimeInMillis(long) has protected access in java.util.Calendar
     [javac]             cal.setTimeInMillis(((Date) source).getTime());
     [javac]                ^
     [javac] 
E:\projects\ojb\DB-OJB~1\target\src\org\apache\ojb\broker\accesslaye
r\conversions\Calendar2TimestampFieldConversion.java:40: 
getTimeInMillis() has protected access in java.util.Calendar
     [javac]             return new Timestamp(((Calendar) 
source).getTimeInMillis());
     [javac]                                  ^
     [javac] 
E:\projects\ojb\DB-OJB~1\target\src\org\apache\ojb\broker\accesslaye
r\conversions\Calendar2TimestampFieldConversion.java:56: 
setTimeInMillis(long) has protected access in java.util.Calendar
     [javac]             cal.setTimeInMillis(((Timestamp) 
source).getTime());
     [javac]                ^
     [javac] 
E:\projects\ojb\DB-OJB~1\target\src\org\apache\ojb\broker\accesslaye
r\conversions\IntList2VarcharFieldConversion.java:62: cannot resolve symbol
     [javac] symbol  : method replaceAll (java.lang.String,java.lang.String)
     [javac] location: class java.lang.String
     [javac]                 newSt = newSt.replaceAll("#", "##");
     [javac]                              ^
     [javac] 
E:\projects\ojb\DB-OJB~1\target\src\org\apache\ojb\broker\accesslaye
r\conversions\StringList2VarcharFieldConversion.java:64: cannot resolve 
symbol
     [javac] symbol  : method replaceAll 
(java.lang.String,java.lang.String)
     [javac] location: class java.lang.String
     [javac]                 newSt = newSt.replaceAll("#", "##");
     [javac]                              ^
     [javac] 
E:\projects\ojb\DB-OJB~1\target\src\org\apache\ojb\broker\accesslaye
r\conversions\TimeList2VarcharFieldConversion.java:63: cannot resolve symbol
     [javac] symbol  : method replaceAll 
(java.lang.String,java.lang.String)
     [javac] location: class java.lang.String
     [javac]                 newSt = newSt.replaceAll("#", "##");

(tested on Windows, JDK 1.3.1_11)

Tom

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