DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=33441>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=33441 Summary: creating multiple collections(hierarchy) fails Product: Xindice Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: blocker Priority: P2 Component: DB Engine AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I need to programmatically create a collection hierarchy. On the disk it creates all the child directories in db. Also it doesnt give any error while creating. Any subsequent call to access the child collections fails, but parent collection is accessible. I am using xidice embedded in servlet ... here is code snippet --------------------------------- Collection prjCol = createCollection(col, projectName); if( null == prjCol ){ throw new Exception(""); } Collection iformsCol = createCollection(prjCol, "forms"); if( null == iformsCol){ throw new Exception(""); } iformsCol.flushSymbolTable(); iformsCol.close(); Collection dataCol = createCollection(prjCol, "data"); if( null == dataCol ){ throw new Exception(); } dataCol.flushSymbolTable(); dataCol.close(); Collection reportsCol = createCollection(prjCol, "reports"); if( null == reportsCol ){ throw new Exception(""); } reportsCol.flushSymbolTable(); reportsCol.close(); prjCol.flushSymbolTable(); prjCol.close(); col.close(); ----- create collection method ---------- public Collection createCollection(Collection parent, String name) throws DBException{ Document doc = new DocumentImpl(); Element colEle = doc.createElement("collection"); colEle.setAttribute("compressed", "true"); colEle.setAttribute("name", name); doc.appendChild(colEle); Element filEle = doc.createElement("filer"); filEle.setAttribute("class", "org.apache.xindice.core.filer.BTreeFiler"); colEle.appendChild(filEle); Configuration cfg = new Configuration ( doc, false ); Collection newCol = parent.createCollection(name , cfg); return newCol ; } -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.