#1 2012-04-24 13:36:31

anja
New member
Registered: 2012-04-23
Posts: 3

postgresql jar version

hi
I have a data warehouse project.
To implement my DW i use postgres plus 9.0 .
I have finish loading data to my dimensions table.
Now i'm tring to aliment my fact table.
but i have problem :when using tPostgresInput to load data from my dimension i have exception.
i found the problem, actully the jar version  used by talend is 8.3 but  i need 9.0.

do you have any idea to solve my problem and upgrade the jar version
regards/tks  a lot

Offline

#2 2012-04-25 04:34:58

pedro
Member
Registered: 2011-11-17
Posts: 3682

Re: postgresql jar version

Hi

Talend is using postgresql-8.3-603.jdbc3.jar to support postgresql.
At postgresql website, I get a suggestion.

Code:

If you are using the 1.6 or 1.7 JVM, then you should use the JDBC4 version for Version 9.1-901

So i'm not sure whether updating this jar file manually might cause unexpected errors.
It seems that jdbc3 and jdbc4 use different API.

Anyway, you might have a try.
Find tPostgresqlInput_java.xml in TOS directory.
Modify the code.

Code:

<IMPORT NAME="Driver-Postgres" MODULE="postgresql-8.3-603.jdbc3.jar" REQUIRED="true" /> // old code
<IMPORT NAME="Driver-Postgres" MODULE="postgresql-9.1-901.jdbc4.jar" REQUIRED="true" /> // new code

Then copy this new jar file into <TOS installation>\lib\java directory.

Or just choose the simplest way.
Report it on BugTracker.

Regards,
Pedro


Only Paranoid Survive.

Offline

#3 2012-04-25 13:19:26

anja
New member
Registered: 2012-04-23
Posts: 3

Re: postgresql jar version

Hi
thx Pedro for your help
i tried your solution but it doesn't work  so i modified the file index.xml of the talend as following

<jarsToRelativePath key="postgresql-8.3-603.jdbc3.jar" value="org.talend.designer.components.localprovider_5.0.2.r78327/components/tGreenplumInput/postgresql-8.3-603.jdbc3.jar"/>
<jarsToRelativePath key="postgresql-9.1-901.jdbc4.jar" value="org.talend.designer.components.localprovider_5.0.2.r78327/components/tGreenplumInput/postgresql-9.1-901.jdbc4.jar"/>

and i place postgresql-9.1-901.jdbc4.jar in org.talend.designer.components.localprovider_5.0.2.r78327/components/tGreenplumInput
but the error is


Uploaded Images

Offline

#4 2012-04-26 04:06:29

pedro
Member
Registered: 2011-11-17
Posts: 3682

Re: postgresql jar version

Hi

Find tPostgresqlInput_java.xml in TOS directory.
Modify the code as I mentioned above.

Code:

<IMPORT NAME="Driver-Postgres" MODULE="postgresql-9.1-901.jdbc4.jar" REQUIRED="true" />  code

But I think you'd better report it on BugTracker.

Regards
Pedro


Only Paranoid Survive.

Offline

#5 2012-06-14 06:07:22

danreb
Member
Registered: 2009-03-18
Posts: 17

Re: postgresql jar version

this is a recurrent problem since TOS 3.1.1

cfr. http://www.talendforge.org/forum/viewtopic.php?id=15594

the only quick (and dirty) solution I am thinking of

Offline

Board footer

Powered by FluxBB