Strange restxq path error "assigned to several functions"
Friday, 29 April 2016 · 7 messages · last reply 2 May 2016
MG
Maximilian Gärber29 Apr 2016 16:20 #
Hi,
suddenly, I get a path error [1] for functions that worked just minutes ago. When renaming the functions again it sometimes resolves the issue.
I have CACHERESTXQ = false
But this "feels" just like a caching issue. Appeared while on 8.4.1, but same on 8.4.3
Any ideas?
[1]
Problem accessing /test/import-convert/19.2.xlsx. Reason:
Stopped at /webapp/test/api/import.xqm, 55/10:
[bxerr:BASX0003] Path "/test/import-convert/{$file}" assigned to several functions:
/webapp/test/api/import.xqm, 55/10
/webapp/test/api/import.xqm, 55/10
CG
Christian Grün29 Apr 2016 16:38 #
Hi Max,
Can you resolve the problem by calling /restxq/.init?
Cheers
Christian
Quoted text · Maximilian Gärber · 25 lines
Am 29.04.2016 4:20 nachm. schrieb "Maximilian Gärber" <mgaerber at arcor.de>: > Hi, > > suddenly, I get a path error [1] for functions that worked just > minutes ago. When renaming the functions again it sometimes resolves > the issue. > > I have CACHERESTXQ = false > > But this "feels" just like a caching issue. Appeared while on 8.4.1, > but same on 8.4.3 > > Any ideas? > > > [1] > > Problem accessing /test/import-convert/19.2.xlsx. Reason: > > Stopped at /webapp/test/api/import.xqm, 55/10: > [bxerr:BASX0003] Path "/test/import-convert/{$file}" assigned to > several functions: > /webapp/test/api/import.xqm, 55/10 > /webapp/test/api/import.xqm, 55/10 >
MG
Maximilian Gärber29 Apr 2016 16:56 #
Hi,
no, in my case it would be /.init because restxq is mapped to the root url, does this make a difference?
Regards,
Max
2016-04-29 16:38 GMT+02:00 Christian Grün <christian.gruen at gmail.com>:
Quoted text · Christian Grün · 32 lines
> Hi Max, > > Can you resolve the problem by calling /restxq/.init? > > Cheers > Christian > > Am 29.04.2016 4:20 nachm. schrieb "Maximilian Gärber" <mgaerber at arcor.de>: >> >> Hi, >> >> suddenly, I get a path error [1] for functions that worked just >> minutes ago. When renaming the functions again it sometimes resolves >> the issue. >> >> I have CACHERESTXQ = false >> >> But this "feels" just like a caching issue. Appeared while on 8.4.1, >> but same on 8.4.3 >> >> Any ideas? >> >> >> [1] >> >> Problem accessing /test/import-convert/19.2.xlsx. Reason: >> >> Stopped at /webapp/test/api/import.xqm, 55/10: >> [bxerr:BASX0003] Path "/test/import-convert/{$file}" assigned to >> several functions: >> /webapp/test/api/import.xqm, 55/10 >> /webapp/test/api/import.xqm, 55/10
CG
Christian Grün29 Apr 2016 17:16 #
Quoted text · Maximilian Gärber · 2 lines
> no, in my case it would be /.init because restxq is mapped to the root > url, does this make a difference?
In that case it’s /.init indeed. If it doesn’t help… I think it will be fixed if you restart BaseX? I didn’t stumble across this before.
Quoted text · Maximilian Gärber · 38 lines
> > Regards, > > Max > > 2016-04-29 16:38 GMT+02:00 Christian Grün <christian.gruen at gmail.com>: >> Hi Max, >> >> Can you resolve the problem by calling /restxq/.init? >> >> Cheers >> Christian >> >> Am 29.04.2016 4:20 nachm. schrieb "Maximilian Gärber" <mgaerber at arcor.de>: >>> >>> Hi, >>> >>> suddenly, I get a path error [1] for functions that worked just >>> minutes ago. When renaming the functions again it sometimes resolves >>> the issue. >>> >>> I have CACHERESTXQ = false >>> >>> But this "feels" just like a caching issue. Appeared while on 8.4.1, >>> but same on 8.4.3 >>> >>> Any ideas? >>> >>> >>> [1] >>> >>> Problem accessing /test/import-convert/19.2.xlsx. Reason: >>> >>> Stopped at /webapp/test/api/import.xqm, 55/10: >>> [bxerr:BASX0003] Path "/test/import-convert/{$file}" assigned to >>> several functions: >>> /webapp/test/api/import.xqm, 55/10 >>> /webapp/test/api/import.xqm, 55/10
MG
Maximilian Gärber2 May 2016 09:52 #
I tried restart even before anything else.
I even checked out the source on another system, same error.
Are there any system files that I could check?
DEBUG mode doesn't give any more detail.
Regards, Max
2016-04-29 17:16 GMT+02:00 Christian Grün <christian.gruen at gmail.com>:Quoted text · Christian Grün · 45 lines
>> no, in my case it would be /.init because restxq is mapped to the root >> url, does this make a difference? > > In that case it’s /.init indeed. If it doesn’t help… I think it will > be fixed if you restart BaseX? I didn’t stumble across this before. > > >> >> Regards, >> >> Max >> >> 2016-04-29 16:38 GMT+02:00 Christian Grün <christian.gruen at gmail.com>: >>> Hi Max, >>> >>> Can you resolve the problem by calling /restxq/.init? >>> >>> Cheers >>> Christian >>> >>> Am 29.04.2016 4:20 nachm. schrieb "Maximilian Gärber" <mgaerber at arcor.de>: >>>> >>>> Hi, >>>> >>>> suddenly, I get a path error [1] for functions that worked just >>>> minutes ago. When renaming the functions again it sometimes resolves >>>> the issue. >>>> >>>> I have CACHERESTXQ = false >>>> >>>> But this "feels" just like a caching issue. Appeared while on 8.4.1, >>>> but same on 8.4.3 >>>> >>>> Any ideas? >>>> >>>> >>>> [1] >>>> >>>> Problem accessing /test/import-convert/19.2.xlsx. Reason: >>>> >>>> Stopped at /webapp/test/api/import.xqm, 55/10: >>>> [bxerr:BASX0003] Path "/test/import-convert/{$file}" assigned to >>>> several functions: >>>> /webapp/test/api/import.xqm, 55/10 >>>> /webapp/test/api/import.xqm, 55/10
CG
Christian Grün2 May 2016 10:00 #
So you are saying that the code worked until a certain point in time, and after that there seems to be no chance to get it working again? Or does it work again after having restarted the server, and fail a while after that?
Quoted text · Maximilian Gärber · 2 lines
> Are there any system files that I could check? DEBUG mode doesn't give > any more detail.
Hm, difficult. If you think there might be any chance to make it reproducible, I’ll be happy to have a look at the RESTXQ code.
Quoted text · Maximilian Gärber · 54 lines
On Mon, May 2, 2016 at 9:52 AM, Maximilian Gärber <mgaerber at arcor.de> wrote: > I tried restart even before anything else. > > I even checked out the source on another system, same error. > > > Regards, Max > > 2016-04-29 17:16 GMT+02:00 Christian Grün <christian.gruen at gmail.com>: >>> no, in my case it would be /.init because restxq is mapped to the root >>> url, does this make a difference? >> >> In that case it’s /.init indeed. If it doesn’t help… I think it will >> be fixed if you restart BaseX? I didn’t stumble across this before. >> >> >>> >>> Regards, >>> >>> Max >>> >>> 2016-04-29 16:38 GMT+02:00 Christian Grün <christian.gruen at gmail.com>: >>>> Hi Max, >>>> >>>> Can you resolve the problem by calling /restxq/.init? >>>> >>>> Cheers >>>> Christian >>>> >>>> Am 29.04.2016 4:20 nachm. schrieb "Maximilian Gärber" <mgaerber at arcor.de>: >>>>> >>>>> Hi, >>>>> >>>>> suddenly, I get a path error [1] for functions that worked just >>>>> minutes ago. When renaming the functions again it sometimes resolves >>>>> the issue. >>>>> >>>>> I have CACHERESTXQ = false >>>>> >>>>> But this "feels" just like a caching issue. Appeared while on 8.4.1, >>>>> but same on 8.4.3 >>>>> >>>>> Any ideas? >>>>> >>>>> >>>>> [1] >>>>> >>>>> Problem accessing /test/import-convert/19.2.xlsx. Reason: >>>>> >>>>> Stopped at /webapp/test/api/import.xqm, 55/10: >>>>> [bxerr:BASX0003] Path "/test/import-convert/{$file}" assigned to >>>>> several functions: >>>>> /webapp/test/api/import.xqm, 55/10 >>>>> /webapp/test/api/import.xqm, 55/10
MG
Maximilian Gärber2 May 2016 11:43 #
Hi,
I've sent you more details off list. It works if I rename the function to something else (save the module) and then back again.
Regards,
Max
2016-05-02 10:00 GMT+02:00 Christian Grün <christian.gruen at gmail.com>:
Quoted text · Christian Grün · 68 lines
> So you are saying that the code worked until a certain point in time, > and after that there seems to be no chance to get it working again? Or > does it work again after having restarted the server, and fail a while > after that? > >> Are there any system files that I could check? DEBUG mode doesn't give >> any more detail. > > Hm, difficult. If you think there might be any chance to make it > reproducible, I’ll be happy to have a look at the RESTXQ code. > > > > > On Mon, May 2, 2016 at 9:52 AM, Maximilian Gärber <mgaerber at arcor.de> wrote: >> I tried restart even before anything else. >> >> I even checked out the source on another system, same error. >> >> >> Regards, Max >> >> 2016-04-29 17:16 GMT+02:00 Christian Grün <christian.gruen at gmail.com>: >>>> no, in my case it would be /.init because restxq is mapped to the root >>>> url, does this make a difference? >>> >>> In that case it’s /.init indeed. If it doesn’t help… I think it will >>> be fixed if you restart BaseX? I didn’t stumble across this before. >>> >>> >>>> >>>> Regards, >>>> >>>> Max >>>> >>>> 2016-04-29 16:38 GMT+02:00 Christian Grün <christian.gruen at gmail.com>: >>>>> Hi Max, >>>>> >>>>> Can you resolve the problem by calling /restxq/.init? >>>>> >>>>> Cheers >>>>> Christian >>>>> >>>>> Am 29.04.2016 4:20 nachm. schrieb "Maximilian Gärber" <mgaerber at arcor.de>: >>>>>> >>>>>> Hi, >>>>>> >>>>>> suddenly, I get a path error [1] for functions that worked just >>>>>> minutes ago. When renaming the functions again it sometimes resolves >>>>>> the issue. >>>>>> >>>>>> I have CACHERESTXQ = false >>>>>> >>>>>> But this "feels" just like a caching issue. Appeared while on 8.4.1, >>>>>> but same on 8.4.3 >>>>>> >>>>>> Any ideas? >>>>>> >>>>>> >>>>>> [1] >>>>>> >>>>>> Problem accessing /test/import-convert/19.2.xlsx. Reason: >>>>>> >>>>>> Stopped at /webapp/test/api/import.xqm, 55/10: >>>>>> [bxerr:BASX0003] Path "/test/import-convert/{$file}" assigned to >>>>>> several functions: >>>>>> /webapp/test/api/import.xqm, 55/10 >>>>>> /webapp/test/api/import.xqm, 55/10
Written for BaseX 8.4. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery