Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0006247Openbravo ERPY. DBSourceManagerpublic2008-11-28 10:342009-05-25 11:59
iperdomo 
marvintm 
normalmajoralways
closedfixed 
202.6.23-gentoo-r9
 
 
Core
No
0006247: DBSM is compiled with jdk 1.6 instead of 1.5
Trying to update my database I got:

ant database.lib
Buildfile: build.xml

init:

database.lib:

clean:
   [delete] Deleting directory /home/iperdomo/workspaces/branches/r2.40performance/openbravo/src-db/build/classes
   [delete] Deleting directory /home/iperdomo/workspaces/branches/r2.40performance/openbravo/src-db/build/lib
   [delete] Deleting directory /home/iperdomo/workspaces/branches/r2.40performance/openbravo/src-db/docs

init:
    [mkdir] Created dir: /home/iperdomo/workspaces/branches/r2.40performance/openbravo/src-db/build/classes
    [mkdir] Created dir: /home/iperdomo/workspaces/branches/r2.40performance/openbravo/src-db/build/lib
    [mkdir] Created dir: /home/iperdomo/workspaces/branches/r2.40performance/openbravo/src-db/docs

compile:
    [javac] Compiling 4 source files to /home/iperdomo/workspaces/branches/r2.40performance/openbravo/src-db/build/classes
    [javac] /home/iperdomo/workspaces/branches/r2.40performance/openbravo/src-db/src/com/openbravo/db/OpenbravoDataFilter.java:15: cannot access org.apache.ddlutils.io.AbstractDatabaseFilter
    [javac] bad class file: /home/iperdomo/workspaces/branches/r2.40performance/openbravo/src-db/database/lib/dbsourcemanager.jar(org/apache/ddlutils/io/AbstractDatabaseFilter.class)
    [javac] class file has wrong version 50.0, should be 49.0
    [javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
    [javac] import org.apache.ddlutils.io.AbstractDatabaseFilter;
    [javac] ^
    [javac] 1 error

BUILD FAILED
/home/iperdomo/workspaces/branches/r2.40performance/openbravo/build.xml:229: The following error occurred while executing this line:
/home/iperdomo/workspaces/branches/r2.40performance/openbravo/src-db/build.xml:39: Compile failed; see the compiler error output for details.

Total time: 0 seconds
dbsm_migrate
Issue History
2008-11-28 10:34iperdomoNew Issue
2008-11-28 10:38iperdomoStatusnew => scheduled
2008-11-28 10:38iperdomofix_in_branch => trunk
2008-11-28 10:39svnbotCheckin
2008-11-28 10:39svnbotNote Added: 0010803
2008-11-28 10:39svnbotStatusscheduled => resolved
2008-11-28 10:39svnbotResolutionopen => fixed
2008-11-28 10:39svnbotsvn_revision => 10729
2008-11-28 12:54jpabloaeAssigned To => marvintm
2008-12-02 12:56svnbotCheckin
2008-12-02 12:56svnbotNote Added: 0010883
2008-12-02 12:56svnbotsvn_revision10729 => 10845
2008-12-18 12:38jpabloaeSticky IssueNo => Yes
2008-12-18 12:39jpabloaeSticky IssueYes => No
2008-12-18 12:39jpabloaeTag Attached: dbsm_migrate
2008-12-18 12:41jpabloaeProject@4@ => Openbravo ERP
2008-12-18 12:41jpabloaeCategory => Y. DBSourceManager
2009-01-02 08:16skoonNote Added: 0011826
2009-01-02 09:09iperdomoNote Added: 0011830
2009-04-21 11:09psarobeStatusresolved => closed
2009-04-22 00:00anonymoussf_bug_id0 => 2777916
2009-05-25 11:38spradeepmadhankumarNote Added: 0016616
2009-05-25 11:59iperdomoNote Added: 0016620

Notes
(0010803)
svnbot   
2008-11-28 10:39   
Repository: openbravo
Revision: 10729
Author: marvintm
Date: 2008-11-28 10:39:21 +0100 (Fri, 28 Nov 2008)

Fixed issue 6247. DBSourceManager is now compiled with Java 5

---
U branches/r2.40/src-db/database/lib/dbsourcemanager.jar
---

https://dev.openbravo.com/websvn/openbravo/?rev=10729&sc=1 [^]
(0010883)
svnbot   
2008-12-02 12:56   
Repository: openbravo
Revision: 10845
Author: villind
Date: 2008-12-02 12:55:59 +0100 (Tue, 02 Dec 2008)

Merged r10729. Fixed issue 6247. DBSourceManager is now compiled with Java 5

---
_U branches/bonware/r2.40/
_U branches/bonware/r2.40/config/setup-tool/
_U branches/bonware/r2.40/eclipse.install.source.launch
_U branches/bonware/r2.40/export.database.launch
_U branches/bonware/r2.40/src-core/src/org/openbravo/database/OpenbravoDriverManagerConnectionFactory.java
U branches/bonware/r2.40/src-db/database/lib/dbsourcemanager.jar
_U branches/bonware/r2.40/update.database.launch
---

https://dev.openbravo.com/websvn/openbravo/?rev=10845&sc=1 [^]
(0011826)
skoon   
2009-01-02 08:16   
but same happens AGAIN in 2.50alpha-R4
(0011830)
iperdomo   
2009-01-02 09:09   
@skoon:
If you are using 2.50 you must use sun jdk 1.6
This issue is related to 2.40 release, that should use 1.5

Cheers,

Iván
(0016616)
spradeepmadhankumar   
2009-05-25 11:38   
hi,

even i use sun jdk 1.6 for 2.50 am getting the same error as given below.

Buildfile: F:\opws\openbravo\build.xml

init:

set.code.rev:

code.rev:

core.lib:

init:

compile:

build.jar:

build:

copy.core.lib:

create.database:

init:

database.lib:

init:

compile:
       [javac] Compiling 4 source files to F:\opws\openbravo\src-db\build\classes
       [javac] F:\opws\openbravo\src-db\src\com\openbravo\db\OpenbravoDataFilter.java:15: cannot access org.apache.ddlutils.io.AbstractDatabaseFilter
       [javac] bad class file: F:\opws\openbravo\src-db\database\lib\dbsourcemanager.jar(org/apache/ddlutils/io/AbstractDatabaseFilter.class)
       [javac] class file has wrong version 50.0, should be 49.0
       [javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
       [javac] import org.apache.ddlutils.io.AbstractDatabaseFilter;
       [javac] ^
       [javac] 1 error

BUILD FAILED
F:\opws\openbravo\build.xml:473: The following error occurred while executing this line:
F:\opws\openbravo\build.xml:416: The following error occurred while executing this line:
F:\opws\openbravo\src-db\build.xml:42: Compile failed; see the compiler error output for details.

Total time: 8 seconds


can anyone come out with some solutions will be helpful for me. thanks.
(0016620)
iperdomo   
2009-05-25 11:59   
@spradeepmadhankumar:

That is a problem related to 2.40 release not 2.50
2.50 must use jdk 1.6

If you have problems, please ask help in the forums.

Cheers,

Iván