on 06-01-2012 10:19 AM
Hi,
I am trying to connect to SQL server(2008 R2) through an UDF inside a message mapping(a kind of lookup). When I execute the mapping I am getting error in operation mapping.
More info: This SQL server was upgraded from 2005 to 2008 R2. It was running in 32 bit but now it is running in 64 bit. The same mapping was working fine in older versions. I have also upgraded the JDBC driver version from 1.1 to 4.0.
Any ideas why is this error coming? Could it be possible because of drivers or the drivers are not installed properly?
Thanks,
Arivarasu S
As we are connecting the SQL DB through UDF(JAVA), we have to change the driver version whis is being used in imported Archive. After the changing the driver version in IA issue is resolved.
Thanks,
Arivarasu S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Arivarasu S,
It appears to be java version mismatch error. Try writing a java code to connect to SQL server from any local system in client network. Check if you are getting same error nor not. If you are getting same error then there is something wrong with JDBC driver you are using. If the connection works from external program and not for SAP-PI check for parameters maintained in SAP-PI for connecting to database.
Regards
Anupam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Few cents... What is your PI version? As you know JDBC drivers are depending on java version, if your PI version is 7.1 or above , you need to use 64 bit jvm and sql upgrade from 2005 to 2008 would help. If your pi version is 7.0 or below and if you just upgrade sql drivers the jdbc would conflict.
I see few exceptions in the log
a) Chcek whether you installed the latest driver for 2008 and deployed successfully?
b) The error shows SQLServerResource_en.properties the class is not available at run time. Check whether your jar contains that file.
Hi Arivarasu S,
Is the java version in client system (from where you tested it successfully) same as that maintained PI server then this is not a version mismatch problem. In case the java versions are different, then you might not be using correct JDBC drivers in PI server. PI server is searching for a specific file SQLServerResource_en.properties but not finding it. The error indicates the directory where PI is searching for the file. Please check if this file is existing somehwere else in the server. Also "MappingClassNotFoundException" suggest that correct classes are not in PI server.
Regards
Anupam
This is purely Microsoft SQL server area question. I have seen the link and it shows that you need JDBC Driver 3.0 for your SQL Server version
refer this link
http://www.microsoft.com/en-us/download/details.aspx?id=21599
Hi Baskar,
Now we have deployed driver version 3.0. Now the error is different,
"java.lang.UnsupportedClassVersionError:com/microsoft/sqlserver/jdbc/SqlServerDriver:
Unsupported major.minor version 50.0"
You have any idea why is this error? Can't I use the same path of 2005 to 2008 R2?
Thanks,
Arivarasu S
Use java version 1.5 or 1.6. You are using lower version like jdk 1.4.
Please refer this link and also carefully maximize details icon for the similar error you face..
Take help from BASIS
Hi Baskar,
We are using 1.5(JVM 5) ,
In note 1615198, it shows 1.5 java version should use 49 class format version. But the error shows classVerison 50.0. It looks like our PI is having the class format version 50 though it is using 1.5 JVM. Would it be because of class version is 50 instead of 49?
Thanks,
Arivarasu S
>Would it be because of class version is 50 instead of 49?
That is possible.
Questions:
a) Have you deleted old version jdbc jar for sql server and deployed only the latest one?
IMO, also check with microsoft whether for this jdbc driver version are they suggesting any service pack version for jdk 1.5. This is purely version incompatible between java and sql server jdbc driver.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.