Hello Ariel, I changed: registration.classname=org.apache.aoo.ucp.cmisucp.ucp.CMISContentProvider central.registration.class=org.apache.aoo.ucp.cmisucp.ucp.CentralRegistrationClass
I created the .oxt. Reinstalled. Still have the same problem.! Also, I did not understand what you mean by component factory implementation. I have not implemented any component factory! Please clarify. Sorry, for repeated questions! On Thu, Jun 13, 2013 at 10:48 AM, Ariel Constenla-Haile <[email protected]>wrote: > On Thu, Jun 13, 2013 at 09:30:58AM +0530, Rajath Shashidhara wrote: > > Hello Ariel, > > > > Thanks for your input. > > Lately, I'm experiencing an error with installing .oxt. > > As per the suggestion of Juergen, I changed the package name of my code > for > > apache.ooffice.gsoc.cmisucp.ucp. to org.apache.aoo.cmisucp.ucp. > > I deleted the previously installed extension and installed the new one. > > after installation it shows an error dialog with both the package names > and > > exits. > > > > How do i resolve this? > > You have to adapt a properties file named project-uno.properties, > located inside the nbproject folder (Ctrl-2, window "Files"): > > > central.registration.class=apache.ooffice.gsoc.cmisucp.ucp.CentralRegistrationClass > registration.classname=apache.ooffice.gsoc.cmisucp.ucp.CMISContentProvider > org.apache.aoo.ucp.cmisucp.cmis.ucp.unoobjects.CMISDynamicResultSet > org.apache.aoo.ucp.cmisucp.cmis.ucp.unoobjects.CMISResultSet > org.apache.aoo.ucp.cmisucp.cmis.ucp.unoobjects.CMISDynamicResultSet > org.CMISResultSet > > you have the old names. Note that in registration.classname you put all > the UNO components in your project that you want to register in the > office. The only one that is really needed is the provider, you don't > need to make a component out of all the UNO object you are implementing. > > You also need to fix the component factory implementation: it must > return always the same instance. > > > > My previous question is unanswered. > > I leave this to Jürgen :) (or I'll answer later in the morning, it's > 2 AM here, I'm going to sleep). > > > > In the implementation of service > > ResultSet, the method m_RowCount can take values from 0.....X+1 where X > is > > the number of rows . Is this right? or the next() just increases the > value > > of m_RowCount by 1 without checking if it is in this range? > > Just in case you want to dive into the C++ implementation: > > The implementation of the service > com.sun.star.ucb.ContentResultSet is ucbhelper::ResultSet > > main/ucbhelper/inc/ucbhelper/resultset.hxx > main/ucbhelper/source/provider/resultset.cxx > > It works with a data supplier, implemented in the respective UCPs, see > for example > > main/ucb/source/ucp/webdav/webdavdatasupplier.hxx > main/ucb/source/ucp/webdav/webdavdatasupplier.cxx > > Search how ResultSet::next(), ResultSet::isBeforeFirst(), > ResultSet::first(), call the supplier's getResult() with an index, which > calls getData() - the function that actually retrieves the data. > > > Regards > -- > Ariel Constenla-Haile > La Plata, Argentina > -- Rajath S, M.Sc(Hons.) Physics, Birla Institute of Technology and Science - Pilani, Pilani
