on 12-04-2006 4:38 AM
Hi,
I am trying to build a scenario where the data has to flow from a file in SAP Application server to a MS Access Database table. So I have put the File in SAP Application Server and created corresponding objects in IR & ID and when I checked the communication channel for FileAdapter in Communication Channel Monitoring Tools the status is Green.
Then I created a Technical & Business System for my local machine( I have given my local machine's hostname in XI system ) and created all corresponding objects in IR & ID, but when I check the Communication Channel it always gives the following error
Error during database connection to the database URL 'jdbc:odbc:DRIVER={Microsoft Access Driver (.mdb)};DBQ=
kumsathlap\jdbc\DB1.mdb' using the JDBC driver 'sun.jdbc.odbc.JdbcOdbcDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:odbc:DRIVER={Microsoft Access Driver (.mdb)};DBQ=
kumsathlap\jdbc\DB1.mdb': java.lang.NullPointerException'
<b>I referred all the threads and weblogs related to this issue</b> and changed the DBQ path with IP Address and directly only the path without IP Address and hostname, but nothing works. I tried to ping my local machine from XI server with my hostname, it is pinging. The folder in which the mdb file presents in shared with full control. I am using PI 7.0 of NW04s.
So what could be the reason for this error message? I am very new to XI so please tell me if any further steps has to be done for this scenario.
Regards,
Sathish Kumar
I think your JDBC configuration is incorrect in the reciever.check ur configuration using https://weblogs.sdn.sap.com/pub/wlg/1924. [original link is broken] [original link is broken] [original link is broken] [original link is broken]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I have checked all the configuration, everything is working fine except the last step, that is updating the MS Access table. I have written a Java Program in the XI server itself to access the MS Access database, even that says NullPointerException. My Server is running in AIX.
What I want to know is how to access a file which is in Windows based system, from AIX system. Now I am giving the path as '
192.9.206.69\jdbc\db1.mdb' , it is giving error.
But if I execute my Java Program with the same path mentioned above from another Windows based system, it is working perfectly.
How to solve this problem.?
Regards,
Sathish
Jai Shankar, XI Server is running from AIX OS, so I made the hostentry in the host file of the server and ping the windows based system from the server, it was pinging. So it is able to connect to the windows based system, but how to check whether it is able to access the folder I have in the windows system?
Regards,
Sathish
Hi,
Did you check it in communication channel monitoring?
Check the error message.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Since it is throwing NullPointer Exception... your DB name or path may be wrong. Check your folder name and DB name and also its case.
Regards,
Uma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sathish,
Check your JDBC adapter in adapter monitoring.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sathish,
this is a eg url:
jdbc:microsoft:sqlserver://infwcf1583:1527;DatabaseName=Northwind
here ://infwcf1583:1527 is the host name and port of the machine on which database is there,then Northwind is the database name.
In your case for MS Access you would need to create one DSN for your database on your machine and then give correct host name port and give that DSN in your DatabaseName input field.
Thanks,
Shweta.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sathish,
Your jdbc driver connection url might not be the correct one,plz check your url,because this connection url will be used to establish connection between XI and database.
As url is not correct it is unable to establish connection.
Thanks,
Shweta.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.