Re: Help Required In Writing a New SDBC Driver For LDAP
Rohit Kulkarni <[email protected]> Wed, 30 Mar 2011 23:32:21 -0500
| Newsgroups | gmane.comp.openoffice.dba.devel |
|---|---|
| Message-ID | <[email protected]> |
--000e0ce07ffa85d27a049fbfc706 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Oj, I had updated the scp2 module, both the files you mentioned. I also do a build --all after my changes which must have done the registration. I still cannot see my driver loaded; as I said it wont find my driver name "org.openoffice.comp.connectivity.skeleton.SkeletonDriver" in its list of names in OSDBCDriverManager::implGetDriverForURL function. Is there any way to debug this ? also for dbaccess code it have too many files with sdbc: what exactly am I looking for here ? thanks, Rohit On Wed, Mar 30, 2011 at 12:43 AM, Ocke Janssen <[email protected]>wro= te: > Hello Rohit, > > > On 30.03.2011 03:01, Rohit Kulkarni wrote: > >> Hello Oj, >> >> I an not writing the sdbcx driver, also I can debug everything else but >> my driver code. I am guessing I am not registering the driver properly. >> >> I have written the .xml file for the driver and also made changes to >> DataAccess.xcu. Should this be sufficient to register the driver? if not >> what else do I need to do ? >> > Do have changed the module scp2 and added lines like > STD_LIB_FILE(gid_File_Lib_Mysql,mysql) in file_library_ooo.scp > and > gid_File_Lib_Mysql, in module_hidden_ooo.scp ? > > You have to build OOo instset because your registration is done there. > If the driver should not be an extension than we you could remove your > dataaccess.xcu changes and adjust the code in dbaccess (look for sdbc: ) > > Best regards, > > oj > >> >> Here are excerpts from those files: >> >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D DriverSkeleton.xml =3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> >> <?xml version=3D'1.0' encoding=3D"UTF-8"?> >> <!DOCTYPE COMPONENTDESCRIPTION PUBLIC "-//W3C//DTD HTML 3.2//EN" >> "module-description.dtd"> >> <module-description xmlns:xlink=3D"http://www.w3.org/1999/xlink"> >> <module-name> skeleton1 </module-name> >> <component-description> >> <Author>rohit</Author> >> <Name>org.openoffice.comp.connectivity.skeleton.SkeletonDriver</Name> >> <description>This library implements the database driver for >> Skeleton.</description> >> <loader-name>com.sun.star.loader.SharedLibrary</loader-name> >> <language>c++</language> >> <status value=3D"alpha"/> >> <supported-service>com.sun.star.sdbc.Driver</supported-service> >> <service-dependency> ... </service-dependency> >> </component-description> >> <project-build-dependency>cppuhelper</project-build-dependency> >> <project-build-dependency>cppu</project-build-dependency> >> <project-build-dependency>sal</project-build-dependency> >> <project-build-dependency>vos</project-build-dependency> >> <runtime-module-dependency>cppuhelper</runtime-module-dependency> >> <runtime-module-dependency>cppu1</runtime-module-dependency> >> <runtime-module-dependency>sal1 </runtime-module-dependency> >> <runtime-module-dependency>vos</runtime-module-dependency> >> </module-description> >> >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D DataAccess.xcu =3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> >> <!DOCTYPE oor:component-data SYSTEM "../../../../component-update.dtd"> >> <oor:component-data oor:name=3D"DataAccess" >> oor:package=3D"org.openoffice.Office" >> xmlns:oor=3D"http://openoffice.org/2001/registry" >> xmlns:xs=3D"http://www.w3.org/2001/XMLSchema" >> xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"> >> <node oor:name=3D"UserDefinedDriverSettings"> >> <node oor:name=3D"Driver Skeleton" oor:op=3D"replace"> >> <prop oor:name=3D"DriverTypeDisplayName"> >> <value>Driver Skeleton</value> >> </prop> >> <prop oor:name=3D"DriverPageDisplayName"> >> <value>Driver Skeleton Page</value> >> </prop> >> <prop oor:name=3D"DriverDsnPrefix"> >> <value>sdbc:skeleton:</value> >> </prop> >> </node> >> </node> >> <node oor:name=3D"ConnectionPool"> >> <node oor:name=3D"DriverSettings"> >> <node >> oor:name=3D"org.openoffice.comp.connectivity.skeleton.SkeletonDriver" >> oor:op=3D"replace"> >> <prop oor:name=3D"DriverName"> >> <value>org.openoffice.comp.connectivity.skeleton.SkeletonDriver</value> >> </prop> >> <prop oor:name=3D"Enable"> >> <value>false</value> >> </prop> >> <prop oor:name=3D"Timeout"> >> <value>60</value> >> </prop> >> </node> >> <node oor:name=3D"com.sun.star.comp.sdbcx.adabas.ODriver" oor:op=3D"repl= ace"> >> <prop oor:name=3D"DriverName"> >> <value>com.sun.star.comp.sdbcx.adabas.ODriver</value> >> </prop> ........... >> : >> >> ---------- >> >> there is also a DriverSkeleton.xcu as below: >> >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D DriverSkeleton.xcu =3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D >> <oor:component-data oor:name=3D"Drivers" >> oor:package=3D"org.openoffice.Office.DataAccess" >> xmlns:oor=3D"http://openoffice.org/2001/registry" >> xmlns:xs=3D"http://www.w3.org/2001/XMLSchema"> >> <node oor:name=3D"Installed"> >> <node oor:name=3D"sdbc:skeleton:*" oor:op=3D"replace"> >> <prop oor:name=3D"Driver"> >> <value>org.openoffice.comp.connectivity.skeleton.SkeletonDriver</value> >> </prop> >> <prop oor:name=3D"DriverTypeDisplayName" oor:type=3D"xs:string"> >> <value xml:lang=3D"en-US">Skeleton Driver</value> >> </prop> >> <node oor:name=3D"Features"> >> <node oor:name=3D"EscapeDateTime" oor:op=3D"replace"> >> <prop oor:name=3D"Value" oor:type=3D"xs:boolean"> >> <value>true</value> >> </prop> >> </node> >> </node> >> </node> >> </node> >> </oor:component-data> >> >> as for this I have updated the "build.lst and d.lst" files so that it >> builds the "libDriverSkeletonli.so" file and copies it into the >> installation set. >> But when I debug this I can see that my driver is not returned as part >> of enumeration by "createContentEnumeration()" >> >> Could you suggest any way I can fix this? >> thanks in advance. >> >> -Rohit >> >> On Tue, Mar 29, 2011 at 12:06 AM, Ocke Janssen <[email protected] >> <mailto:[email protected]>> wrote: >> >> Hi Rohit, >> >> >> On 28.03.2011 17:43, Rohit Kulkarni wrote: >> >> Hello, >> 1) I built whole openoffice and installed it.(normal build >> i.e build >> --all) >> 2) I built only dbaccess and connectivity modules with >> debug=3Dtrue >> dbglevel=3D2 >> 3) Copied .so files from ../connectivity/unxlngi6.pro/lib/* >> <http://unxlngi6.pro/lib/*> >> <http://unxlngi6.pro/lib/*> and ../dbaccess/unxlngi6.pr/lib/* >> <http://unxlngi6.pr/lib/*> >> <http://unxlngi6.pr/lib/*> to >> ../../openoffice3/basis-link/program/ >> >> 4) Now I set breakpoint to " b >> connectivity::flat::ODriver::acceptsURL " >> 5) Run base through gdb. >> 6) Execution stopped at breakpoint, whatever I select flat or >> skeleton driver or any other from available driver list. >> 7) When I set breakpoint at " b >> connectivity::skeleton::SkeletonDriver::acceptsURL ", it >> wont stop >> at breakpoint. >> 8) That means execution of program never goes to SDriver.cxx >> (skeleton driver file) file which has acceptsURL function. >> >> The things I have noticed after some more debugging in gdb >> are -- >> >> 1) I saw the function named >> OSDBCDriverManager::bootstrapDrivers() >> 2) I think this is the function where it populates the list >> of all >> drivers using >> " createContentEnumeration " function. >> 3) And this function is not returning my driver. >> 4) I saw this after watching the value of " aDriverDescriptor= " >> variable which is used for pushback in vector " m_aDriverBS >> " , I >> saw various strings for example , for flat it is >> "com.sun.star.comp.sdbc.flat.ODriver" but not my driver name. >> >> What do I need to do so that createContentEnumeration will return >> my >> driver object in the list ? >> >> >> Do you register the driver as an extension? If so the lib are not >> located in basis-link/program they are located in your user folder >> 3/user/uno_package/cache/uno_package/... >> That would also explain why you can't set any breakpoint. >> Another reason could be that your driver doesn't support >> "com.sun.star.sdbc.Driver" or the driver was not registered. >> >> If that doesn't work I could look at the code if you want to. >> >> Best regards, >> >> Ocke >> >> >> >> Regards, >> Rohit >> >> >> On Mon, Mar 28, 2011 at 1:16 PM, Ocke Janssen >> <[email protected] <mailto:[email protected]> >> <mailto:[email protected] >> <mailto:[email protected]>>> wrote: >> >> Hi, >> >> >> >> On 26.03.2011 06 <tel:26.03.2011%2006>:47, Rohit Kulkarni >> wrote: >> >> Hello, >> I have successfully built skeleton driver and I can see >> it in >> available >> list. >> Now , I tried to debug it using gdb. For this I followed >> instructions on >> http://wiki.services.openoffice.org/wiki/Debugging >> Build using debug=3Dtrue and copied .so files to >> installation set. >> >> I added a breakpoint at >> connectivity::skeleton::SkeletonDriver::acceptsURL then, >> run base -> select Skeleton Driver -> Datasource url >> window appears >> (typed any string in it) -> saved ->finish >> In this process debugger wont stop at breakpoint. >> >> Another thing is that I added breakpoint at >> connectivity::flat::ODriver::acceptsURL then, all same >> steps above. >> Debugger stopped at breakpoint where I can see flat file >> EDriver.cxx >> code with acceptsURL function. >> >> So, do you have any idea why it wouldn't call >> connectivity::skeleton::SkeletonDriver::acceptsURL >> function? >> >> May be you copied the wrong files or you built them not with >> debug=3Dt >> ? When you can set a break point for flat it should also >> work for >> your driver. No guess so far. Or may be set the break point >> when the >> library was loaded. I'm not the gdb expert. >> >> - oj >> >> >> Regards, >> Rohit >> On Tue, Mar 15, 2011 at 11:53 AM, Ocke Janssen >> <[email protected] <mailto:[email protected]> >> <mailto:[email protected] <mailto:[email protected]>> >> <mailto:[email protected] <mailto:[email protected]> >> <mailto:[email protected] >> <mailto:[email protected]>>>> wrote: >> >> On 14.03.2011 18:45, Rohit Kulkarni wrote: >> >> I could successfully built the skeleton driver >> and now I >> can see >> it in >> the list of available drivers as well! >> Thanks a lot for your help. I really appreciate i= t. >> >> :-) >> >> >> I have a quick question. >> >> >> >> Any idea on how to solve this? >> >> No, sorry. I think that's a question for the normal >> [email protected] <mailto:[email protected]> >> <mailto:[email protected] <mailto:[email protected]>> >> <mailto:[email protected] <mailto:[email protected]> >> <mailto:[email protected] <mailto:[email protected]>>> list. >> >> May be a build >> >> problem or a bug. >> >> >> Also, Now, if I make any changes to the skeleton >> driver, >> do I >> have to >> build and install open office every time? >> >> No, just replace your copy of the .so file in your >> office >> installation. >> >> - oj >> >> >> -- >> >> >> Ocke Janssen | Software Developer >> Phone: +40 23646500 >> Oracle Office >> >> ORACLE Deutschland B.V. & Co. KG | Nagelsweg 55 | >> 20097 Hamburg >> >> ORACLE Deutschland B.V. & Co. KG >> Hauptverwaltung: Riesstr. 25, D-80992 M=FCnchen >> Registergericht: Amtsgericht M=FCnchen, HRA 95603 >> >> Komplement=E4rin: ORACLE Deutschland Verwaltung B.V. >> Rijnzathe 6, 3454PV De Meern, Niederlande >> Handelsregister der Handelskammer >> Midden-Niederlande, Nr. >> 30143697 >> Gesch=E4ftsf=FChrer: J=FCrgen Kunz, Marcel van de Mol= en, >> Alexander >> van der Ven >> >> >> >> Oracle is committed to developing practices and >> products >> that help >> protect the environment >> >> -- >> >> >> ---------------------------------------------------------------= -- >> To unsubscribe send email to >> [email protected] >> <mailto:[email protected]> >> <mailto:[email protected] >> <mailto:[email protected]>> >> <mailto:[email protected] >> <mailto:[email protected]> >> <mailto:[email protected] >> <mailto:[email protected]>>> >> >> For additional commands send email to >> [email protected] <mailto:[email protected]> >> <mailto:[email protected] <mailto:[email protected] >> >> >> <mailto:[email protected] >> <mailto:[email protected]> >> <mailto:[email protected] <mailto:[email protected] >> >>> >> >> with Subject: help >> >> >> >> -- >> >> ---------------------------------------------------------------= -- >> To unsubscribe send email to >> [email protected] >> <mailto:[email protected]> >> <mailto:[email protected] >> <mailto:[email protected]>> >> For additional commands send email to >> [email protected] <mailto:[email protected]> >> <mailto:[email protected] <mailto:[email protected] >> >> >> with Subject: help >> >> >> >> -- >> ----------------------------------------------------------------- >> To unsubscribe send email to [email protected] >> <mailto:[email protected]> >> For additional commands send email to [email protected] >> <mailto:[email protected]> >> with Subject: help >> >> >> > -- > ----------------------------------------------------------------- > To unsubscribe send email to [email protected] > For additional commands send email to [email protected] > with Subject: help > -- ----------------------------------------------------------------- To unsubscribe send email to [email protected] For additional commands send email to [email protected] with Subject: help --000e0ce07ffa85d27a049fbfc706 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Oj,<div><br></div><div>I had updated the scp2 module, both the files you me= ntioned. I also do a build --all after my changes which must have done the = registration. I still cannot see my driver loaded; as I said it wont find m= y driver name "org.openoffice.comp.connectivity.skeleton.SkeletonDrive= r" in its list of names in=A0OSDBCDriverManager::implGetDriverForURL f= unction.</div> <div><br></div><div>Is there any way to debug this ?</div><div><br></div><d= iv>also for dbaccess code it have too many files with sdbc: what exactly am= I looking for here ?</div><div><br></div><div>thanks,</div><div>Rohit<br> <br><div class=3D"gmail_quote">On Wed, Mar 30, 2011 at 12:43 AM, Ocke Janss= en <span dir=3D"ltr"><<a href=3D"mailto:[email protected]">Ocke.Ja= [email protected]</a>></span> wrote:<br><blockquote class=3D"gmail_quote"= style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"> Hello Rohit,<div class=3D"im"><br> <br> On 30.03.2011 03:01, Rohit Kulkarni wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"> Hello Oj,<br> <br> I an not writing the sdbcx driver, also I can debug everything else but<br> my driver code. I am guessing I am not registering the driver properly.<br> <br> I have written the .xml file for the driver and also made changes to<br> DataAccess.xcu. Should this be sufficient to register the driver? if not<br> what else do I need to do ?<br> </blockquote></div> Do have changed the module scp2 and added lines like<br> STD_LIB_FILE(gid_File_Lib_Mysql,mysql) in file_library_ooo.scp<br> and<br> gid_File_Lib_Mysql, in module_hidden_ooo.scp ?<br> <br> You have to build OOo instset because your registration is done there.<br> If the driver should not be an extension than we you could remove your data= access.xcu changes and adjust the code in dbaccess (look for sdbc: )<br> <br> Best regards,<br> <br> oj<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"><div><div></div><div class=3D"h5"> <br> Here are excerpts from those files:<br> <br> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D DriverSkeleton.xml =3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br> <br> <?xml version=3D'1.0' encoding=3D"UTF-8"?><br> <!DOCTYPE COMPONENTDESCRIPTION PUBLIC "-//W3C//DTD HTML 3.2//EN&quo= t;<br> "module-description.dtd"><br> <module-description xmlns:xlink=3D"<a href=3D"http://www.w3.org/199= 9/xlink" target=3D"_blank">http://www.w3.org/1999/xlink</a>"><br> <module-name> =A0 skeleton1 </module-name><br> <component-description><br> <Author>rohit</Author><br> <Name>org.openoffice.comp.connectivity.skeleton.SkeletonDriver</Na= me><br> <description>This library implements the database driver for<br> Skeleton.</description><br> <loader-name>com.sun.star.loader.SharedLibrary</loader-name><br> <language>c++</language><br> <status value=3D"alpha"/><br> <supported-service>com.sun.star.sdbc.Driver</supported-service>= <br> <service-dependency> =A0 =A0... </service-dependency><br> </component-description><br> <project-build-dependency>cppuhelper</project-build-dependency>= <br> <project-build-dependency>cppu</project-build-dependency><br> <project-build-dependency>sal</project-build-dependency><br> <project-build-dependency>vos</project-build-dependency><br> <runtime-module-dependency>cppuhelper</runtime-module-dependency&g= t;<br> <runtime-module-dependency>cppu1</runtime-module-dependency><br> <runtime-module-dependency>sal1 </runtime-module-dependency><br> <runtime-module-dependency>vos</runtime-module-dependency><br> </module-description><br> <br> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D DataAccess.xcu =3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br> <br> <!DOCTYPE oor:component-data SYSTEM "../../../../component-update.d= td"><br> <oor:component-data oor:name=3D"DataAccess"<br> oor:package=3D"org.openoffice.Office"<br> xmlns:oor=3D"<a href=3D"http://openoffice.org/2001/registry" target=3D= "_blank">http://openoffice.org/2001/registry</a>"<br> xmlns:xs=3D"<a href=3D"http://www.w3.org/2001/XMLSchema" target=3D"_bl= ank">http://www.w3.org/2001/XMLSchema</a>"<br> xmlns:xsi=3D"<a href=3D"http://www.w3.org/2001/XMLSchema-instance" tar= get=3D"_blank">http://www.w3.org/2001/XMLSchema-instance</a>"><br> <node oor:name=3D"UserDefinedDriverSettings"><br> <node oor:name=3D"Driver Skeleton" oor:op=3D"replace"= ;><br> <prop oor:name=3D"DriverTypeDisplayName"><br> <value>Driver Skeleton</value><br> </prop><br> <prop oor:name=3D"DriverPageDisplayName"><br> <value>Driver Skeleton Page</value><br> </prop><br> <prop oor:name=3D"DriverDsnPrefix"><br> <value>sdbc:skeleton:</value><br> </prop><br> </node><br> </node><br> <node oor:name=3D"ConnectionPool"><br> <node oor:name=3D"DriverSettings"><br> <node<br> oor:name=3D"org.openoffice.comp.connectivity.skeleton.SkeletonDriver&q= uot;<br> oor:op=3D"replace"><br> <prop oor:name=3D"DriverName"><br> <value>org.openoffice.comp.connectivity.skeleton.SkeletonDriver</v= alue><br> </prop><br> <prop oor:name=3D"Enable"><br> <value>false</value><br> </prop><br> <prop oor:name=3D"Timeout"><br> <value>60</value><br> </prop><br> </node><br> <node oor:name=3D"com.sun.star.comp.sdbcx.adabas.ODriver" oor:= op=3D"replace"><br> <prop oor:name=3D"DriverName"><br> <value>com.sun.star.comp.sdbcx.adabas.ODriver</value><br> </prop> ...........<br> =A0 =A0 =A0 =A0 =A0 :<br> <br> ----------<br> <br> there is also a DriverSkeleton.xcu as below:<br> <br> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D DriverSkeleton.xcu =3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D<br> <oor:component-data oor:name=3D"Drivers"<br> oor:package=3D"org.openoffice.Office.DataAccess"<br> xmlns:oor=3D"<a href=3D"http://openoffice.org/2001/registry" target=3D= "_blank">http://openoffice.org/2001/registry</a>"<br> xmlns:xs=3D"<a href=3D"http://www.w3.org/2001/XMLSchema" target=3D"_bl= ank">http://www.w3.org/2001/XMLSchema</a>"><br> <node oor:name=3D"Installed"><br> <node oor:name=3D"sdbc:skeleton:*" oor:op=3D"replace"= ;><br> <prop oor:name=3D"Driver"><br> <value>org.openoffice.comp.connectivity.skeleton.SkeletonDriver</v= alue><br> </prop><br> <prop oor:name=3D"DriverTypeDisplayName" oor:type=3D"xs:s= tring"><br> <value xml:lang=3D"en-US">Skeleton Driver</value><br> </prop><br> <node oor:name=3D"Features"><br> <node oor:name=3D"EscapeDateTime" oor:op=3D"replace"= ><br> <prop oor:name=3D"Value" oor:type=3D"xs:boolean">= <br> <value>true</value><br> </prop><br> </node><br> </node><br> </node><br> </node><br> </oor:component-data><br> <br> as for this I have updated the "build.lst and d.lst" files so tha= t it<br> builds the "libDriverSkeletonli.so" file and copies it into the<b= r> installation set.<br> But when I debug this I can see that my driver is not returned as part<br> of enumeration by "createContentEnumeration()"<br> <br> Could you suggest any way I can fix this?<br> thanks in advance.<br> <br> -Rohit<br> <br> On Tue, Mar 29, 2011 at 12:06 AM, Ocke Janssen <<a href=3D"mailto:Ocke.J= [email protected]" target=3D"_blank">[email protected]</a><br></div><= /div><div class=3D"im"> <mailto:<a href=3D"mailto:[email protected]" target=3D"_blank">Ock= [email protected]</a>>> wrote:<br> <br></div><div><div></div><div class=3D"h5"> =A0 =A0Hi Rohit,<br> <br> <br> =A0 =A0On 28.03.2011 17:43, Rohit Kulkarni wrote:<br> <br> =A0 =A0 =A0 =A0 =A0 =A0Hello,<br> =A0 =A0 =A0 =A0 =A0 =A01) I built whole openoffice and installed it.(norma= l build<br> =A0 =A0 =A0 =A0i.e build<br> =A0 =A0 =A0 =A0 =A0 =A0--all)<br> =A0 =A0 =A0 =A0 =A0 =A02) I built only dbaccess and connectivity modules w= ith<br> =A0 =A0 =A0 =A0debug=3Dtrue<br> =A0 =A0 =A0 =A0 =A0 =A0dbglevel=3D2<br> =A0 =A0 =A0 =A0 =A0 =A03) Copied .so files from ../connectivity/<a href=3D= "http://unxlngi6.pro/lib/*" target=3D"_blank">unxlngi6.pro/lib/*</a><br> =A0 =A0 =A0 =A0<<a href=3D"http://unxlngi6.pro/lib/*" target=3D"_blank"= >http://unxlngi6.pro/lib/*</a>><br> =A0 =A0 =A0 =A0<<a href=3D"http://unxlngi6.pro/lib/*" target=3D"_blank"= >http://unxlngi6.pro/lib/*</a>> and ../dbaccess/<a href=3D"http://unxlng= i6.pr/lib/*" target=3D"_blank">unxlngi6.pr/lib/*</a><br> =A0 =A0 =A0 =A0<<a href=3D"http://unxlngi6.pr/lib/*" target=3D"_blank">= http://unxlngi6.pr/lib/*</a>><br> =A0 =A0 =A0 =A0<<a href=3D"http://unxlngi6.pr/lib/*" target=3D"_blank">= http://unxlngi6.pr/lib/*</a>> =A0to ../../openoffice3/basis-link/program= /<br> <br> =A0 =A0 =A0 =A0 =A0 =A04) Now I set breakpoint to " b<br> =A0 =A0 =A0 =A0 =A0 =A0connectivity::flat::ODriver::acceptsURL "<br> =A0 =A0 =A0 =A0 =A0 =A05) Run base through gdb.<br> =A0 =A0 =A0 =A0 =A0 =A06) Execution stopped at breakpoint, whatever I sele= ct flat or<br> =A0 =A0 =A0 =A0 =A0 =A0skeleton driver or any other from available driver = list.<br> =A0 =A0 =A0 =A0 =A0 =A07) When I set breakpoint at " b<br> =A0 =A0 =A0 =A0 =A0 =A0connectivity::skeleton::SkeletonDriver::acceptsURL = ", it<br> =A0 =A0 =A0 =A0wont stop<br> =A0 =A0 =A0 =A0 =A0 =A0at breakpoint.<br> =A0 =A0 =A0 =A0 =A0 =A08) That means execution of program never goes to SD= river.cxx<br> =A0 =A0 =A0 =A0 =A0 =A0(skeleton driver file) file which has acceptsURL fu= nction.<br> <br> =A0 =A0 =A0 =A0 =A0 =A0The things I have noticed after some more debugging= in gdb<br> =A0 =A0 =A0 =A0are --<br> <br> =A0 =A0 =A0 =A0 =A0 =A01) I saw the function named<br> =A0 =A0 =A0 =A0OSDBCDriverManager::bootstrapDrivers()<br> =A0 =A0 =A0 =A0 =A0 =A02) I think this is the function where it populates = the list<br> =A0 =A0 =A0 =A0of all<br> =A0 =A0 =A0 =A0 =A0 =A0drivers using<br> =A0 =A0 =A0 =A0" createContentEnumeration " function.<br> =A0 =A0 =A0 =A0 =A0 =A03) And this function is not returning my driver.<br> =A0 =A0 =A0 =A0 =A0 =A04) I saw this after watching the value of " aD= riverDescriptor "<br> =A0 =A0 =A0 =A0 =A0 =A0variable which is used for pushback in vector "= ; m_aDriverBS<br> =A0 =A0 =A0 =A0" , I<br> =A0 =A0 =A0 =A0 =A0 =A0saw various strings for example , for flat it is<br> =A0 =A0 =A0 =A0"com.sun.star.comp.sdbc.flat.ODriver" but not my = driver name.<br> <br> =A0 =A0 =A0 =A0What do I need to do so that createContentEnumeration will = return my<br> =A0 =A0 =A0 =A0driver object in the list ?<br> <br> <br> =A0 =A0Do you register the driver as an extension? If so the lib are not<b= r> =A0 =A0located in basis-link/program they are located in your user folder<= br> =A0 =A03/user/uno_package/cache/uno_package/...<br> =A0 =A0That would also explain why you can't set any breakpoint.<br> =A0 =A0Another reason could be that your driver doesn't support<br> =A0 =A0"com.sun.star.sdbc.Driver" or the driver was not register= ed.<br> <br> =A0 =A0If that doesn't work I could look at the code if you want to.<b= r> <br> =A0 =A0Best regards,<br> <br> =A0 =A0Ocke<br> <br> <br> <br> =A0 =A0 =A0 =A0Regards,<br> =A0 =A0 =A0 =A0Rohit<br> <br> <br> =A0 =A0 =A0 =A0On Mon, Mar 28, 2011 at 1:16 PM, Ocke Janssen<br> =A0 =A0 =A0 =A0<<a href=3D"mailto:[email protected]" target=3D"_b= lank">[email protected]</a> <mailto:<a href=3D"mailto:Ocke.Janssen= @oracle.com" target=3D"_blank">[email protected]</a>><br></div></d= iv><div class=3D"im"> =A0 =A0 =A0 =A0<mailto:<a href=3D"mailto:[email protected]" targe= t=3D"_blank">[email protected]</a><br> =A0 =A0 =A0 =A0<mailto:<a href=3D"mailto:[email protected]" targe= t=3D"_blank">[email protected]</a>>>> wrote:<br> <br></div> =A0 =A0 =A0 =A0 =A0 =A0Hi,<div><div></div><div class=3D"h5"><br> <br> <br> =A0 =A0 =A0 =A0 =A0 =A0On <a href=3D"tel:26.03.2011%2006" target=3D"_blank= ">26.03.2011 06</a> <tel:26.03.2011%2006>:47, Rohit Kulkarni wrote:<b= r> <br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Hello,<br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0I have successfully built skeleton driver a= nd I can see<br> =A0 =A0 =A0 =A0it in<br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0available<br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0list.<br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Now , I tried to debug it using gdb. For th= is I followed<br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0instructions on<br> =A0 =A0 =A0 =A0<a href=3D"http://wiki.services.openoffice.org/wiki/Debuggi= ng" target=3D"_blank">http://wiki.services.openoffice.org/wiki/Debugging</a= ><br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Build using debug=3Dtrue and copied .so fil= es to<br> =A0 =A0 =A0 =A0installation set.<br> <br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0I added a breakpoint at<br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0connectivity::skeleton::SkeletonDriver::acc= eptsURL then,<br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0run base -> select Skeleton Driver ->= Datasource url<br> =A0 =A0 =A0 =A0window appears<br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0(typed any string in it) -> saved ->f= inish<br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0In this process debugger wont stop at break= point.<br> <br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Another thing is that I added breakpoint at= <br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0connectivity::flat::ODriver::acceptsURL the= n, all same<br> =A0 =A0 =A0 =A0steps above.<br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Debugger stopped at breakpoint where I can = see flat file<br> =A0 =A0 =A0 =A0EDriver.cxx<br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0code with acceptsURL function.<br> <br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0So, do you have any idea why it wouldn'= t call<br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0connectivity::skeleton::SkeletonDriver::acc= eptsURL function?<br> <br> =A0 =A0 =A0 =A0 =A0 =A0May be you copied the wrong files or you built them= not with<br> =A0 =A0 =A0 =A0debug=3Dt<br> =A0 =A0 =A0 =A0 =A0 =A0? When you can set a break point for flat it should= also<br> =A0 =A0 =A0 =A0work for<br> =A0 =A0 =A0 =A0 =A0 =A0your driver. No guess so far. Or may be set the bre= ak point<br> =A0 =A0 =A0 =A0when the<br> =A0 =A0 =A0 =A0 =A0 =A0library was loaded. I'm not the gdb expert.<br> <br> =A0 =A0 =A0 =A0 =A0 =A0- oj<br> <br> <br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Regards,<br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Rohit<br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0On Tue, Mar 15, 2011 at 11:53 AM, Ocke Jans= sen<br> =A0 =A0 =A0 =A0<<a href=3D"mailto:[email protected]" target=3D"_b= lank">[email protected]</a> <mailto:<a href=3D"mailto:Ocke.Janssen= @oracle.com" target=3D"_blank">[email protected]</a>><br> =A0 =A0 =A0 =A0<mailto:<a href=3D"mailto:[email protected]" targe= t=3D"_blank">[email protected]</a> <mailto:<a href=3D"mailto:Ocke.= [email protected]" target=3D"_blank">[email protected]</a>>><b= r> =A0 =A0 =A0 =A0<mailto:<a href=3D"mailto:[email protected]" targe= t=3D"_blank">[email protected]</a> <mailto:<a href=3D"mailto:Ocke.= [email protected]" target=3D"_blank">[email protected]</a>><br> =A0 =A0 =A0 =A0<mailto:<a href=3D"mailto:[email protected]" targe= t=3D"_blank">[email protected]</a><br> =A0 =A0 =A0 =A0<mailto:<a href=3D"mailto:[email protected]" targe= t=3D"_blank">[email protected]</a>>>>> wrote:<br> <br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0On 14.03.2011 18:45, Rohit Kulkarni= wrote:<br> <br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0I could successfully built = the skeleton driver<br> =A0 =A0 =A0 =A0and now I<br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0can see<br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0it in<br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0the list of available drive= rs as well!<br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Thanks a lot for your help.= I really appreciate it.<br> <br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0:-)<br> <br> <br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0I have a quick question.<br> <br> <br> <br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Any idea on how to solve th= is?<br> <br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0No, sorry. I think that's a que= stion for the normal<br> =A0 =A0 =A0 =A0<a href=3D"mailto:[email protected]" target=3D"_blank">dev= @openoffice.org</a> <mailto:<a href=3D"mailto:[email protected]" target= =3D"_blank">[email protected]</a>><br> =A0 =A0 =A0 =A0<mailto:<a href=3D"mailto:[email protected]" target=3D"= _blank">[email protected]</a> <mailto:<a href=3D"mailto:dev@openoffice.= org" target=3D"_blank">[email protected]</a>>><br> =A0 =A0 =A0 =A0<mailto:<a href=3D"mailto:[email protected]" target=3D"= _blank">[email protected]</a> <mailto:<a href=3D"mailto:dev@openoffice.= org" target=3D"_blank">[email protected]</a>><br> =A0 =A0 =A0 =A0<mailto:<a href=3D"mailto:[email protected]" target=3D"= _blank">[email protected]</a> <mailto:<a href=3D"mailto:dev@openoffice.= org" target=3D"_blank">[email protected]</a>>>> list.<br> <br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0May be a build<br> <br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0problem or a bug.<br> <br> <br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Also, Now, if I make any ch= anges to the skeleton<br> =A0 =A0 =A0 =A0driver,<br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0do I<br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0have to<br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0build and install open offi= ce every time?<br> <br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0No, just replace your copy of the .= so file in your<br> =A0 =A0 =A0 =A0office<br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0installation.<br> <br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0- oj<br> <br> <br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0--<br> <br> <br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Ocke Janssen | Software Developer<b= r> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Phone: +40 23646500<br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Oracle Office<br> <br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0ORACLE Deutschland B.V. & Co. K= G | Nagelsweg 55 |<br> =A0 =A0 =A0 =A020097 Hamburg<br> <br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0ORACLE Deutschland B.V. & Co. K= G<br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Hauptverwaltung: Riesstr. 25, D-809= 92 M=FCnchen<br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Registergericht: Amtsgericht M=FCnc= hen, HRA 95603<br> <br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Komplement=E4rin: ORACLE Deutschlan= d Verwaltung B.V.<br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Rijnzathe 6, 3454PV De Meern, Niede= rlande<br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Handelsregister der Handelskammer<b= r> =A0 =A0 =A0 =A0Midden-Niederlande, Nr.<br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A030143697<br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Gesch=E4ftsf=FChrer: J=FCrgen Kunz,= Marcel van de Molen,<br> =A0 =A0 =A0 =A0Alexander<br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0van der Ven<br> <br> <br> <br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Oracle is committed to developing p= ractices and products<br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0that help<br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0protect the environment<br> <br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0--<br> <br> <br> =A0 =A0 =A0 =A0 =A0-------------------------------------------------------= ----------<br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0To unsubscribe send email to<br> =A0 =A0 =A0 =A0<a href=3D"mailto:[email protected]" targe= t=3D"_blank">[email protected]</a><br> =A0 =A0 =A0 =A0<mailto:<a href=3D"mailto:[email protected]= .org" target=3D"_blank">[email protected]</a>><br> =A0 =A0 =A0 =A0<mailto:<a href=3D"mailto:[email protected]= .org" target=3D"_blank">[email protected]</a><br> =A0 =A0 =A0 =A0<mailto:<a href=3D"mailto:[email protected]= .org" target=3D"_blank">[email protected]</a>>><br> =A0 =A0 =A0 =A0<mailto:<a href=3D"mailto:[email protected]= .org" target=3D"_blank">[email protected]</a><br> =A0 =A0 =A0 =A0<mailto:<a href=3D"mailto:[email protected]= .org" target=3D"_blank">[email protected]</a>><br> =A0 =A0 =A0 =A0<mailto:<a href=3D"mailto:[email protected]= .org" target=3D"_blank">[email protected]</a><br> =A0 =A0 =A0 =A0<mailto:<a href=3D"mailto:[email protected]= .org" target=3D"_blank">[email protected]</a>>>><= br> <br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0For additional commands send email = to<br> =A0 =A0 =A0 =A0<a href=3D"mailto:[email protected]" target=3D"_blan= k">[email protected]</a> <mailto:<a href=3D"mailto:[email protected]= office.org" target=3D"_blank">[email protected]</a>><br> =A0 =A0 =A0 =A0<mailto:<a href=3D"mailto:[email protected]" targ= et=3D"_blank">[email protected]</a> <mailto:<a href=3D"mailto:sym= [email protected]" target=3D"_blank">[email protected]</a>>&g= t;<br> =A0 =A0 =A0 =A0<mailto:<a href=3D"mailto:[email protected]" targ= et=3D"_blank">[email protected]</a><br> =A0 =A0 =A0 =A0<mailto:<a href=3D"mailto:[email protected]" targ= et=3D"_blank">[email protected]</a>><br> =A0 =A0 =A0 =A0<mailto:<a href=3D"mailto:[email protected]" targ= et=3D"_blank">[email protected]</a> <mailto:<a href=3D"mailto:sym= [email protected]" target=3D"_blank">[email protected]</a>>&g= t;><br> <br> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0with Subject: help<br> <br> <br> <br> =A0 =A0 =A0 =A0 =A0 =A0--<br> <br> =A0 =A0 =A0 =A0 =A0-------------------------------------------------------= ----------<br> =A0 =A0 =A0 =A0 =A0 =A0To unsubscribe send email to<br> =A0 =A0 =A0 =A0<a href=3D"mailto:[email protected]" targe= t=3D"_blank">[email protected]</a><br> =A0 =A0 =A0 =A0<mailto:<a href=3D"mailto:[email protected]= .org" target=3D"_blank">[email protected]</a>><br> =A0 =A0 =A0 =A0<mailto:<a href=3D"mailto:[email protected]= .org" target=3D"_blank">[email protected]</a><br> =A0 =A0 =A0 =A0<mailto:<a href=3D"mailto:[email protected]= .org" target=3D"_blank">[email protected]</a>>><br> =A0 =A0 =A0 =A0 =A0 =A0For additional commands send email to<br> =A0 =A0 =A0 =A0<a href=3D"mailto:[email protected]" target=3D"_blan= k">[email protected]</a> <mailto:<a href=3D"mailto:[email protected]= office.org" target=3D"_blank">[email protected]</a>><br> =A0 =A0 =A0 =A0<mailto:<a href=3D"mailto:[email protected]" targ= et=3D"_blank">[email protected]</a> <mailto:<a href=3D"mailto:sym= [email protected]" target=3D"_blank">[email protected]</a>>&g= t;<br> =A0 =A0 =A0 =A0 =A0 =A0with Subject: help<br> <br> <br> <br> =A0 =A0--<br> =A0 =A0-----------------------------------------------------------------<b= r> =A0 =A0To unsubscribe send email to <a href=3D"mailto:dev-unsubscribe@dba.= openoffice.org" target=3D"_blank">[email protected]</a><br> =A0 =A0<mailto:<a href=3D"mailto:[email protected]" ta= rget=3D"_blank">[email protected]</a>><br> =A0 =A0For additional commands send email to <a href=3D"mailto:[email protected]= penoffice.org" target=3D"_blank">[email protected]</a><br> =A0 =A0<mailto:<a href=3D"mailto:[email protected]" target=3D"_b= lank">[email protected]</a>><br> =A0 =A0with Subject: help<br> <br> <br> </div></div></blockquote><div><div></div><div class=3D"h5"> <br> --<br> -----------------------------------------------------------------<br> To unsubscribe send email to <a href=3D"mailto:[email protected]= ce.org" target=3D"_blank">[email protected]</a><br> For additional commands send email to <a href=3D"mailto:[email protected]= e.org" target=3D"_blank">[email protected]</a><br> with Subject: help<br> </div></div></blockquote></div><br></div> --000e0ce07ffa85d27a049fbfc706--