Hi Mary, Not sure how many details are relevant, haven't found time to isolate a test case yet. So, let me try to put some details together for my head for starters.
We have an app server which uses a rewriter, and is running from file-system. This rewriter is configured as 'rewriter.xqy', so no path there. The rewriter itself is using the rest.xqy by Norm, and an endpoints.xqy which contains the endpoint definitions. We have an endpoint pointing to import.xqy, this includes the same rest.xqy, and also the endpoints.xqy. I initially had all of them in the same root location, but things started to go wrong when I moved endpoints.xqy and import.xqy into an endpoints subfolder, and rest.xqy in lib. I used relative paths everywhere. A restart didn't seem to help at all, and we even have the impression that the endpoints.xqy imported by either rewriter.xqy or import.xqy is being cached somehow. The rest lib is complaining about some id parameter that really isn't there anymore. It used to be there though.. Kind regards, Geert -----Oorspronkelijk bericht----- Van: [email protected] [mailto:[email protected]] Namens Mary Holstege Verzonden: woensdag 5 september 2012 16:51 Aan: MarkLogic Developer Discussion Onderwerp: Re: [MarkLogic Dev General] XDMP-INCONSISTENTIMPORT??? On Wed, 05 Sep 2012 04:14:03 -0700, Geert Josten <[email protected]> wrote: > Hi, > > I am getting an XDMP-INCONSISTENTIMPORT error, but don’t quite > understand why. Can anyone tell what it is trying to say? > > Kind regards, > Geert It happens when a module is imported into the same module (directly or indirectly) multiple ways via different URIs and the static analysis gets confused about it and can't locate an analyzed module it thought it already had. Sometimes it can happen if you have the same module located in different places on the filesystem and one import refers to one and one to another, but usually it is just that there are some moderately complicated relative imports. I'd be interested in seeing a specific case -- just the collection of modules with their import statements and how they are laid out in URI space -- because we'd rather the error not occur. //Mary Mary Holstege Principal Engineer MarkLogic Corporation [email protected] www.marklogic.com This e-mail and any accompanying attachments are confidential. The information is intended solely for the use of the individual to whom it is addressed. Any review, disclosure, copying, distribution, or use of this e-mail communication by others is strictly prohibited. If you are not the intended recipient, please notify us immediately by returning this message to the sender and delete all copies. Thank you for your cooperation. _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
