[ANN] Release of eXist 3.4.0

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[ANN] Release of eXist 3.4.0

Wolfgang Meier-2
We’re happy to announce the release of eXist-db v3.4.0. This is a minor release, which introduces one new feature and fixes important issues.

New Features

* Added function `fn:sort` defined by the XQuery 3.1 function library

Bug fixes

* Closes several memory leaks which affect nearly all applications making extensive use of library modules or inline functions. As the leaked objects are small on average, the time it takes for the growing memory usage to become manifest depends on average load and complexity of the app (typically a server may run for several weeks until it becomes slow and eventually crashes)
* Variables pointing to binary values were destroyed too early when they were running out of scope
* Running eXist via the system tray launcher on Mac OSX resulted in random crashes of the Java VM. The Mac .dmg distribution of eXist was thus unusable
* Small fix to `IndexListener` interface used by extension indexes: `endElement` should be called with a valid node
* Cleaned up the Cache Module so it is thread-safe. Also added a facility for configuring permissions for cache operations

Backwards Compatibility

eXist-db v3.4.0 is backwards binary-compatible as far as v3.0, but not with earlier versions. Users upgrading from previous versions should perform a full backup and restore to migrate their data.


Downloading This Version

eXist-db v3.4.0 is available for download from Bintray [1]. Maven artifacts for eXist-db v3.4.0 are available from our mvn-repo [2]. Mac users of the Homebrew [3] package repository will be able to install and upgrade shortly; an announcement will be made on the exist-open mailing list.

[1] https://bintray.com/existdb/releases/exist/3.4.0
[2] https://github.com/eXist-db/mvn-repo
[3] http://brew.sh
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [ANN] Release of eXist 3.4.0

Pietro Liuzzo
Thank you very much!

successfully upgraded! I think we were having the bug described, and I am very happy it is gone!

all the very best
Pietro

2017-07-26 19:28 GMT+02:00 Wolfgang Meier <[hidden email]>:
We’re happy to announce the release of eXist-db v3.4.0. This is a minor release, which introduces one new feature and fixes important issues.

New Features

* Added function `fn:sort` defined by the XQuery 3.1 function library

Bug fixes

* Closes several memory leaks which affect nearly all applications making extensive use of library modules or inline functions. As the leaked objects are small on average, the time it takes for the growing memory usage to become manifest depends on average load and complexity of the app (typically a server may run for several weeks until it becomes slow and eventually crashes)
* Variables pointing to binary values were destroyed too early when they were running out of scope
* Running eXist via the system tray launcher on Mac OSX resulted in random crashes of the Java VM. The Mac .dmg distribution of eXist was thus unusable
* Small fix to `IndexListener` interface used by extension indexes: `endElement` should be called with a valid node
* Cleaned up the Cache Module so it is thread-safe. Also added a facility for configuring permissions for cache operations

Backwards Compatibility

eXist-db v3.4.0 is backwards binary-compatible as far as v3.0, but not with earlier versions. Users upgrading from previous versions should perform a full backup and restore to migrate their data.


Downloading This Version

eXist-db v3.4.0 is available for download from Bintray [1]. Maven artifacts for eXist-db v3.4.0 are available from our mvn-repo [2]. Mac users of the Homebrew [3] package repository will be able to install and upgrade shortly; an announcement will be made on the exist-open mailing list.

[1] https://bintray.com/existdb/releases/exist/3.4.0
[2] https://github.com/eXist-db/mvn-repo
[3] http://brew.sh
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open



--
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [ANN] Release of eXist 3.4.0

Pietro Liuzzo
In reply to this post by Wolfgang Meier-2
Actually not entirely successful. 
I get an error I never saw before: 
err:XPDY0002 No request object found in the current XQuery context. [at line 1640, column 35, source: /db/apps/gez-en/modules/app.xql]
app:copy-params(node(), map) [217:18:/db/apps/gez-en/modules/app.xql]
templates:call-with-args(function, function*, element(), map) [208:13:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:process-output(element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:call-by-introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:process(node()*, map) [280:13:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:process-output(element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:call-by-introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:process(node()*, map) [465:17:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:process-output(element(), map, item()*) [273:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:process-output(element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:call-by-introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:process(node()*, map) [131:51:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:process(node()*, map) [88:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
templates:apply(node()+, function, map?, map?) [46:5:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]

app:copy-params is simply using request:get-parameters-names() and it always worked perfectly. Even removing it the error comes back, on the first instance of the code using the request module.

do I need to change anything in there for this release? 

Thanks a lot!
Pietro

2017-07-26 19:28 GMT+02:00 Wolfgang Meier <[hidden email]>:
We’re happy to announce the release of eXist-db v3.4.0. This is a minor release, which introduces one new feature and fixes important issues.

New Features

* Added function `fn:sort` defined by the XQuery 3.1 function library

Bug fixes

* Closes several memory leaks which affect nearly all applications making extensive use of library modules or inline functions. As the leaked objects are small on average, the time it takes for the growing memory usage to become manifest depends on average load and complexity of the app (typically a server may run for several weeks until it becomes slow and eventually crashes)
* Variables pointing to binary values were destroyed too early when they were running out of scope
* Running eXist via the system tray launcher on Mac OSX resulted in random crashes of the Java VM. The Mac .dmg distribution of eXist was thus unusable
* Small fix to `IndexListener` interface used by extension indexes: `endElement` should be called with a valid node
* Cleaned up the Cache Module so it is thread-safe. Also added a facility for configuring permissions for cache operations

Backwards Compatibility

eXist-db v3.4.0 is backwards binary-compatible as far as v3.0, but not with earlier versions. Users upgrading from previous versions should perform a full backup and restore to migrate their data.


Downloading This Version

eXist-db v3.4.0 is available for download from Bintray [1]. Maven artifacts for eXist-db v3.4.0 are available from our mvn-repo [2]. Mac users of the Homebrew [3] package repository will be able to install and upgrade shortly; an announcement will be made on the exist-open mailing list.

[1] https://bintray.com/existdb/releases/exist/3.4.0
[2] https://github.com/eXist-db/mvn-repo
[3] http://brew.sh
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open



--
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [ANN] Release of eXist 3.4.0

Wolfgang Meier-2
Pietro,

I can reproduce the error in one case using util:eval. Could you apply the following tiny change and report if it fixes the issue for you as well? In src/org/exist/xquery/functions/util/Eval.java, method cleanup, change line 407 to

innerContext.reset(true);

Thanks,

Wolfgang


> Am 26.07.2017 um 23:35 schrieb Pietro Liuzzo <[hidden email]>:
>
> Actually not entirely successful.
> I get an error I never saw before:
> err:XPDY0002 No request object found in the current XQuery context. [at line 1640, column 35, source: /db/apps/gez-en/modules/app.xql]
> app:copy-params(node(), map) [217:18:/db/apps/gez-en/modules/app.xql]
> templates:call-with-args(function, function*, element(), map) [208:13:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> templates:process-output(element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> templates:call-by-introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> templates:process(node()*, map) [280:13:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> templates:process-output(element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> templates:call-by-introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> templates:process(node()*, map) [465:17:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> templates:process-output(element(), map, item()*) [273:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> templates:process-output(element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> templates:call-by-introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> templates:process(node()*, map) [131:51:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> templates:process(node()*, map) [88:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> templates:apply(node()+, function, map?, map?) [46:5:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>
> app:copy-params is simply using request:get-parameters-names() and it always worked perfectly. Even removing it the error comes back, on the first instance of the code using the request module.
>
> do I need to change anything in there for this release?
>
> Thanks a lot!
> Pietro
>
> 2017-07-26 19:28 GMT+02:00 Wolfgang Meier <[hidden email]>:
> We’re happy to announce the release of eXist-db v3.4.0. This is a minor release, which introduces one new feature and fixes important issues.
>
> New Features
>
> * Added function `fn:sort` defined by the XQuery 3.1 function library
>
> Bug fixes
>
> * Closes several memory leaks which affect nearly all applications making extensive use of library modules or inline functions. As the leaked objects are small on average, the time it takes for the growing memory usage to become manifest depends on average load and complexity of the app (typically a server may run for several weeks until it becomes slow and eventually crashes)
> * Variables pointing to binary values were destroyed too early when they were running out of scope
> * Running eXist via the system tray launcher on Mac OSX resulted in random crashes of the Java VM. The Mac .dmg distribution of eXist was thus unusable
> * Small fix to `IndexListener` interface used by extension indexes: `endElement` should be called with a valid node
> * Cleaned up the Cache Module so it is thread-safe. Also added a facility for configuring permissions for cache operations
>
> Backwards Compatibility
>
> eXist-db v3.4.0 is backwards binary-compatible as far as v3.0, but not with earlier versions. Users upgrading from previous versions should perform a full backup and restore to migrate their data.
>
>
> Downloading This Version
>
> eXist-db v3.4.0 is available for download from Bintray [1]. Maven artifacts for eXist-db v3.4.0 are available from our mvn-repo [2]. Mac users of the Homebrew [3] package repository will be able to install and upgrade shortly; an announcement will be made on the exist-open mailing list.
>
> [1] https://bintray.com/existdb/releases/exist/3.4.0
> [2] https://github.com/eXist-db/mvn-repo
> [3] http://brew.sh
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Exist-open mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/exist-open
>
>
>
> --
> Pietro Maria Liuzzo
> cel (DE): +49 (0) 176 61 000 606
> Skype: pietro.liuzzo (Quingentole)
> https://uk.linkedin.com/in/pietroliuzzo


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [ANN] Release of eXist 3.4.0

Pietro Liuzzo
Dear Wolfgang,

I have removed the old install, consequently I have reinstalled from the .jar exist 3.4 and made the change above. I have installed the daemon and started it. Then I have used the package manager to install public libraries which i need and my apps from .xar generated before the upgrade. I then restored security and config in /db/system from the command line. I have then updated the permissions to access my files and modules and reindexed each collection with the restored configuration.

unfortunately I get the same error. 

err:XPDY0002 No request object found in the current XQuery context. [at line 1639, column 35, source: /db/apps/gez-en/modules/app.xql]
In function:
	app:copy-params(node(), map) [217:18:/db/apps/gez-en/modules/app.xql]
	templates:call-with-args(function, function*, element(), map) [208:13:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process-output(element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:call-by-introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process(node()*, map) [280:13:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process-output(element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:call-by-introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process(node()*, map) [465:17:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process-output(element(), map, item()*) [273:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process-output(element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:call-by-introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process(node()*, map) [131:51:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process(node()*, map) [88:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:apply(node()+, function, map?, map?) [45:5:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]


2017-07-27 10:40 GMT+02:00 Wolfgang Meier <[hidden email]>:
Pietro,

I can reproduce the error in one case using util:eval. Could you apply the following tiny change and report if it fixes the issue for you as well? In src/org/exist/xquery/functions/util/Eval.java, method cleanup, change line 407 to

innerContext.reset(true);

Thanks,

Wolfgang


> Am 26.07.2017 um 23:35 schrieb Pietro Liuzzo <[hidden email]>:
>
> Actually not entirely successful.
> I get an error I never saw before:
> err:XPDY0002 No request object found in the current XQuery context. [at line <a href="tel:1640" value="+491640">1640, column 35, source: /db/apps/gez-en/modules/app.xql]
> app:copy-params(node(), map) [217:18:/db/apps/gez-en/modules/app.xql]
>       templates:call-with-args(function, function*, element(), map) [208:13:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process-output(element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:call-by-introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process(node()*, map) [280:13:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process-output(element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:call-by-introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process(node()*, map) [465:17:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process-output(element(), map, item()*) [273:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process-output(element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:call-by-introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process(node()*, map) [131:51:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process(node()*, map) [88:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:apply(node()+, function, map?, map?) [46:5:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>
> app:copy-params is simply using request:get-parameters-names() and it always worked perfectly. Even removing it the error comes back, on the first instance of the code using the request module.
>
> do I need to change anything in there for this release?
>
> Thanks a lot!
> Pietro
>
> 2017-07-26 19:28 GMT+02:00 Wolfgang Meier <[hidden email]>:
> We’re happy to announce the release of eXist-db v3.4.0. This is a minor release, which introduces one new feature and fixes important issues.
>
> New Features
>
> * Added function `fn:sort` defined by the XQuery 3.1 function library
>
> Bug fixes
>
> * Closes several memory leaks which affect nearly all applications making extensive use of library modules or inline functions. As the leaked objects are small on average, the time it takes for the growing memory usage to become manifest depends on average load and complexity of the app (typically a server may run for several weeks until it becomes slow and eventually crashes)
> * Variables pointing to binary values were destroyed too early when they were running out of scope
> * Running eXist via the system tray launcher on Mac OSX resulted in random crashes of the Java VM. The Mac .dmg distribution of eXist was thus unusable
> * Small fix to `IndexListener` interface used by extension indexes: `endElement` should be called with a valid node
> * Cleaned up the Cache Module so it is thread-safe. Also added a facility for configuring permissions for cache operations
>
> Backwards Compatibility
>
> eXist-db v3.4.0 is backwards binary-compatible as far as v3.0, but not with earlier versions. Users upgrading from previous versions should perform a full backup and restore to migrate their data.
>
>
> Downloading This Version
>
> eXist-db v3.4.0 is available for download from Bintray [1]. Maven artifacts for eXist-db v3.4.0 are available from our mvn-repo [2]. Mac users of the Homebrew [3] package repository will be able to install and upgrade shortly; an announcement will be made on the exist-open mailing list.
>
> [1] https://bintray.com/existdb/releases/exist/3.4.0
> [2] https://github.com/eXist-db/mvn-repo
> [3] http://brew.sh
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Exist-open mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/exist-open
>
>
>
> --
> Pietro Maria Liuzzo
> cel (DE): <a href="tel:%2B49%20%280%29%20176%2061%20000%20606" value="+4917661000606">+49 (0) 176 61 000 606
> Skype: pietro.liuzzo (Quingentole)
> https://uk.linkedin.com/in/pietroliuzzo




--
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [ANN] Release of eXist 3.4.0

Pietro Liuzzo
I also get this similar error, which sounds to me related

err:XPDY0002 Variable $request is not bound to an Java object. [at line 454, column 21, source: /db/apps/gez-en/modules/app.xql] In function: app:list(node(), map, item()*, item()*, item()*) [223:18:/db/apps/gez-en/modules/app.xql] templates:call-with-args(function, function*, element(), map) [208:13:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process-output(element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:call-by-introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [465:17:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process-output(element(), map, item()*) [273:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process-output(element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:call-by-introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [131:51:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [88:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:apply(node()+, function, map?, map?) [46:5:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]


also in this case I have a function which takes a request parameter and it always worked nicely before.
Thanks a lot!
Pietro

2017-07-27 11:10 GMT+02:00 Pietro Liuzzo <[hidden email]>:
Dear Wolfgang,

I have removed the old install, consequently I have reinstalled from the .jar exist 3.4 and made the change above. I have installed the daemon and started it. Then I have used the package manager to install public libraries which i need and my apps from .xar generated before the upgrade. I then restored security and config in /db/system from the command line. I have then updated the permissions to access my files and modules and reindexed each collection with the restored configuration.

unfortunately I get the same error. 

err:XPDY0002 No request object found in the current XQuery context. [at line 1639, column 35, source: /db/apps/gez-en/modules/app.xql]
In function:
	app:copy-params(node(), map) [217:18:/db/apps/gez-en/modules/app.xql]
	templates:call-with-args(function, function*, element(), map) [208:13:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process-output(element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:call-by-introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process(node()*, map) [280:13:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process-output(element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:call-by-introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process(node()*, map) [465:17:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process-output(element(), map, item()*) [273:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process-output(element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:call-by-introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process(node()*, map) [131:51:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process(node()*, map) [88:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:apply(node()+, function, map?, map?) [45:5:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]


2017-07-27 10:40 GMT+02:00 Wolfgang Meier <[hidden email]>:
Pietro,

I can reproduce the error in one case using util:eval. Could you apply the following tiny change and report if it fixes the issue for you as well? In src/org/exist/xquery/functions/util/Eval.java, method cleanup, change line 407 to

innerContext.reset(true);

Thanks,

Wolfgang


> Am 26.07.2017 um 23:35 schrieb Pietro Liuzzo <[hidden email]>:
>
> Actually not entirely successful.
> I get an error I never saw before:
> err:XPDY0002 No request object found in the current XQuery context. [at line <a href="tel:1640" value="+491640" target="_blank">1640, column 35, source: /db/apps/gez-en/modules/app.xql]
> app:copy-params(node(), map) [217:18:/db/apps/gez-en/modules/app.xql]
>       templates:call-with-args(function, function*, element(), map) [208:13:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process-output(element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:call-by-introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process(node()*, map) [280:13:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process-output(element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:call-by-introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process(node()*, map) [465:17:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process-output(element(), map, item()*) [273:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process-output(element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:call-by-introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process(node()*, map) [131:51:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process(node()*, map) [88:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:apply(node()+, function, map?, map?) [46:5:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>
> app:copy-params is simply using request:get-parameters-names() and it always worked perfectly. Even removing it the error comes back, on the first instance of the code using the request module.
>
> do I need to change anything in there for this release?
>
> Thanks a lot!
> Pietro
>
> 2017-07-26 19:28 GMT+02:00 Wolfgang Meier <[hidden email]>:
> We’re happy to announce the release of eXist-db v3.4.0. This is a minor release, which introduces one new feature and fixes important issues.
>
> New Features
>
> * Added function `fn:sort` defined by the XQuery 3.1 function library
>
> Bug fixes
>
> * Closes several memory leaks which affect nearly all applications making extensive use of library modules or inline functions. As the leaked objects are small on average, the time it takes for the growing memory usage to become manifest depends on average load and complexity of the app (typically a server may run for several weeks until it becomes slow and eventually crashes)
> * Variables pointing to binary values were destroyed too early when they were running out of scope
> * Running eXist via the system tray launcher on Mac OSX resulted in random crashes of the Java VM. The Mac .dmg distribution of eXist was thus unusable
> * Small fix to `IndexListener` interface used by extension indexes: `endElement` should be called with a valid node
> * Cleaned up the Cache Module so it is thread-safe. Also added a facility for configuring permissions for cache operations
>
> Backwards Compatibility
>
> eXist-db v3.4.0 is backwards binary-compatible as far as v3.0, but not with earlier versions. Users upgrading from previous versions should perform a full backup and restore to migrate their data.
>
>
> Downloading This Version
>
> eXist-db v3.4.0 is available for download from Bintray [1]. Maven artifacts for eXist-db v3.4.0 are available from our mvn-repo [2]. Mac users of the Homebrew [3] package repository will be able to install and upgrade shortly; an announcement will be made on the exist-open mailing list.
>
> [1] https://bintray.com/existdb/releases/exist/3.4.0
> [2] https://github.com/eXist-db/mvn-repo
> [3] http://brew.sh
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Exist-open mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/exist-open
>
>
>
> --
> Pietro Maria Liuzzo
> cel (DE): <a href="tel:%2B49%20%280%29%20176%2061%20000%20606" value="+4917661000606" target="_blank">+49 (0) 176 61 000 606
> Skype: pietro.liuzzo (Quingentole)
> https://uk.linkedin.com/in/pietroliuzzo




--
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)



--
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [ANN] Release of eXist 3.4.0

lin_xd
2017-07-27 23:58:38,514 [qtp1288052401-86] ERROR (DeferredFunctionCall.java [hasMany]:170) - Exception in deferred function: err:XPDY0002 Variable $request is not bound to an Java object. [at line 196, column 30, source: /db/apps/monex/modules/indexes.xqm]
In function:
        indexes:show-index-keys(node(), map) [217:18:/db/apps/monex/modules/indexes.xqm]
        templates:call-with-args(function, function*, element(), map) [208:13:/home/wcrmyy2017/xmldb/exist/data/expathrepo/shared-0.4.2/content/templates.xql]
        templates:process-output(element(), map, item()*, element()) [205:9:/home/wcrmyy2017/xmldb/exist/data/expathrepo/shared-0.4.2/content/templates.xql]
        templates:call-by-introspection(element(), map, map, function) [187:28:/home/wcrmyy2017/xmldb/exist/data/expathrepo/shared-0.4.2/content/templates.xql]
        templates:call(item(), element(), map) [135:36:/home/wcrmyy2017/xmldb/exist/data/expathrepo/shared-0.4.2/content/templates.xql]
        templates:process(node()*, map) [146:81:/home/wcrmyy2017/xmldb/exist/data/expathrepo/shared-0.4.2/content/templates.xql]
        templates:process(node()*, map) [146:81:/home/wcrmyy2017/xmldb/exist/data/expathrepo/shared-0.4.2/content/templates.xql]
        templates:process(node()*, map) [146:81:/home/wcrmyy2017/xmldb/exist/data/expathrepo/shared-0.4.2/content/templates.xql]
        templates:process(node()*, map) [146:81:/home/wcrmyy2017/xmldb/exist/data/expathrepo/shared-0.4.2/content/templates.xql]
        templates:process(node()*, map) [146:81:/home/wcrmyy2017/xmldb/exist/data/expathrepo/shared-0.4.2/content/templates.xql]
        templates:process(node()*, map) [146:81:/home/wcrmyy2017/xmldb/exist/data/expathrepo/shared-0.4.2/content/templates.xql]
        templates:process(node()*, map) [465:17:/home/wcrmyy2017/xmldb/exist/data/expathrepo/shared-0.4.2/content/templates.xql]




--
此致

easy

莫愁前路无知己,天下谁人不识君。

At 2017-07-27 17:45:19, "Pietro Liuzzo" <[hidden email]> wrote:
I also get this similar error, which sounds to me related

err:XPDY0002 Variable $request is not bound to an Java object. [at line 454, column 21, source: /db/apps/gez-en/modules/app.xql] In function: app:list(node(), map, item()*, item()*, item()*) [223:18:/db/apps/gez-en/modules/app.xql] templates:call-with-args(function, function*, element(), map) [208:13:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process-output(element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:call-by-introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [465:17:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process-output(element(), map, item()*) [273:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process-output(element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:call-by-introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [131:51:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [88:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:apply(node()+, function, map?, map?) [46:5:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]


also in this case I have a function which takes a request parameter and it always worked nicely before.
Thanks a lot!
Pietro

2017-07-27 11:10 GMT+02:00 Pietro Liuzzo <[hidden email]>:
Dear Wolfgang,

I have removed the old install, consequently I have reinstalled from the .jar exist 3.4 and made the change above. I have installed the daemon and started it. Then I have used the package manager to install public libraries which i need and my apps from .xar generated before the upgrade. I then restored security and config in /db/system from the command line. I have then updated the permissions to access my files and modules and reindexed each collection with the restored configuration.

unfortunately I get the same error. 

err:XPDY0002 No request object found in the current XQuery context. [at line 1639, column 35, source: /db/apps/gez-en/modules/app.xql]
In function:
	app:copy-params(node(), map) [217:18:/db/apps/gez-en/modules/app.xql]
	templates:call-with-args(function, function*, element(), map) [208:13:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process-output(element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:call-by-introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process(node()*, map) [280:13:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process-output(element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:call-by-introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process(node()*, map) [465:17:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process-output(element(), map, item()*) [273:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process-output(element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:call-by-introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process(node()*, map) [131:51:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:process(node()*, map) [88:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
	templates:apply(node()+, function, map?, map?) [45:5:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]


2017-07-27 10:40 GMT+02:00 Wolfgang Meier <[hidden email]>:
Pietro,

I can reproduce the error in one case using util:eval. Could you apply the following tiny change and report if it fixes the issue for you as well? In src/org/exist/xquery/functions/util/Eval.java, method cleanup, change line 407 to

innerContext.reset(true);

Thanks,

Wolfgang


> Am 26.07.2017 um 23:35 schrieb Pietro Liuzzo <[hidden email]>:
>
> Actually not entirely successful.
> I get an error I never saw before:
> err:XPDY0002 No request object found in the current XQuery context. [at line <a href="tel:1640" value="+491640" target="_blank">1640, column 35, source: /db/apps/gez-en/modules/app.xql]
> app:copy-params(node(), map) [217:18:/db/apps/gez-en/modules/app.xql]
>       templates:call-with-args(function, function*, element(), map) [208:13:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process-output(element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:call-by-introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process(node()*, map) [280:13:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process-output(element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:call-by-introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process(node()*, map) [465:17:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process-output(element(), map, item()*) [273:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process-output(element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:call-by-introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process(node()*, map) [131:51:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:process(node()*, map) [88:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>       templates:apply(node()+, function, map?, map?) [46:5:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>
> app:copy-params is simply using request:get-parameters-names() and it always worked perfectly. Even removing it the error comes back, on the first instance of the code using the request module.
>
> do I need to change anything in there for this release?
>
> Thanks a lot!
> Pietro
>
> 2017-07-26 19:28 GMT+02:00 Wolfgang Meier <[hidden email]>:
> We’re happy to announce the release of eXist-db v3.4.0. This is a minor release, which introduces one new feature and fixes important issues.
>
> New Features
>
> * Added function `fn:sort` defined by the XQuery 3.1 function library
>
> Bug fixes
>
> * Closes several memory leaks which affect nearly all applications making extensive use of library modules or inline functions. As the leaked objects are small on average, the time it takes for the growing memory usage to become manifest depends on average load and complexity of the app (typically a server may run for several weeks until it becomes slow and eventually crashes)
> * Variables pointing to binary values were destroyed too early when they were running out of scope
> * Running eXist via the system tray launcher on Mac OSX resulted in random crashes of the Java VM. The Mac .dmg distribution of eXist was thus unusable
> * Small fix to `IndexListener` interface used by extension indexes: `endElement` should be called with a valid node
> * Cleaned up the Cache Module so it is thread-safe. Also added a facility for configuring permissions for cache operations
>
> Backwards Compatibility
>
> eXist-db v3.4.0 is backwards binary-compatible as far as v3.0, but not with earlier versions. Users upgrading from previous versions should perform a full backup and restore to migrate their data.
>
>
> Downloading This Version
>
> eXist-db v3.4.0 is available for download from Bintray [1]. Maven artifacts for eXist-db v3.4.0 are available from our mvn-repo [2]. Mac users of the Homebrew [3] package repository will be able to install and upgrade shortly; an announcement will be made on the exist-open mailing list.
>
> [1] https://bintray.com/existdb/releases/exist/3.4.0
> [2] https://github.com/eXist-db/mvn-repo
> [3] http://brew.sh
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Exist-open mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/exist-open
>
>
>
> --
> Pietro Maria Liuzzo
> cel (DE): <a href="tel:%2B49%20%280%29%20176%2061%20000%20606" value="+4917661000606" target="_blank">+49 (0) 176 61 000 606
> Skype: pietro.liuzzo (Quingentole)
> https://uk.linkedin.com/in/pietroliuzzo




--
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)



--
Pietro Maria Liuzzo
cel (DE): +49 (0) 176 61 000 606
Skype: pietro.liuzzo (Quingentole)


 


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [ANN] Release of eXist 3.4.0

Wolfgang Meier-2
In reply to this post by Pietro Liuzzo
Pietro,

I’m having some difficulties to see how this exception might be triggered - apart from the one in util:eval I already wrote you. Could you show me how your code looks like in app:list?

Thanks,

Wolfgang



> Am 27.07.2017 um 11:45 schrieb Pietro Liuzzo <[hidden email]>:
>
> I also get this similar error, which sounds to me related
>
> err:XPDY0002 Variable $request is not bound to an Java object. [at line 454, column 21, source: /db/apps/gez-en/modules/app.xql] In function: app:list(node(), map, item()*, item()*, item()*) [223:18:/db/apps/gez-en/modules/app.xql] templates:call-with-args(function, function*, element(), map) [208:13:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process-output(element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:call-by-introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [465:17:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process-output(element(), map, item()*) [273:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process-output(element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:call-by-introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [131:51:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [88:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:apply(node()+, function, map?, map?) [46:5:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>
>
> also in this case I have a function which takes a request parameter and it always worked nicely before.
> Thanks a lot!
> Pietro
>
> 2017-07-27 11:10 GMT+02:00 Pietro Liuzzo <[hidden email]>:
> Dear Wolfgang,
>
> I have removed the old install, consequently I have reinstalled from the .jar exist 3.4 and made the change above. I have installed the daemon and started it. Then I have used the package manager to install public libraries which i need and my apps from .xar generated before the upgrade. I then restored security and config in /db/system from the command line. I have then updated the permissions to access my files and modules and reindexed each collection with the restored configuration.
>
> unfortunately I get the same error.
>
> err:XPDY0002 No request object found in the current XQuery context. [at line 1639, column 35, source: /db/apps/gez-en/modules/app.
> xql]
> In function:
> app:copy-params(node(), map) [217:18:/db/apps/gez-en/
> modules/app.xql]
> templates:call-with-args(
> function, function*, element(), map) [208:13:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/
> templates.xql]
> templates:process-output(
> element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/
> templates.xql]
> templates:call-by-
> introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/
> templates.xql]
> templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/
> WEB-INF/data/expathrepo/shared-0.4.2/content/
> templates.xql]
> templates:process(node()*, map) [146:81:/etc/exist/./webapp/
> WEB-INF/data/expathrepo/shared-0.4.2/content/
> templates.xql]
> templates:process(node()*, map) [280:13:/etc/exist/./webapp/
> WEB-INF/data/expathrepo/shared-0.4.2/content/
> templates.xql]
> templates:process-output(
> element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/
> templates.xql]
> templates:call-by-
> introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/
> templates.xql]
> templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/
> WEB-INF/data/expathrepo/shared-0.4.2/content/
> templates.xql]
> templates:process(node()*, map) [146:81:/etc/exist/./webapp/
> WEB-INF/data/expathrepo/shared-0.4.2/content/
> templates.xql]
> templates:process(node()*, map) [146:81:/etc/exist/./webapp/
> WEB-INF/data/expathrepo/shared-0.4.2/content/
> templates.xql]
> templates:process(node()*, map) [146:81:/etc/exist/./webapp/
> WEB-INF/data/expathrepo/shared-0.4.2/content/
> templates.xql]
> templates:process(node()*, map) [146:81:/etc/exist/./webapp/
> WEB-INF/data/expathrepo/shared-0.4.2/content/
> templates.xql]
> templates:process(node()*, map) [146:81:/etc/exist/./webapp/
> WEB-INF/data/expathrepo/shared-0.4.2/content/
> templates.xql]
> templates:process(node()*, map) [465:17:/etc/exist/./webapp/
> WEB-INF/data/expathrepo/shared-0.4.2/content/
> templates.xql]
> templates:process-output(
> element(), map, item()*) [273:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/
> templates.xql]
> templates:process-output(
> element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/
> templates.xql]
> templates:call-by-
> introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/
> templates.xql]
> templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/
> WEB-INF/data/expathrepo/shared-0.4.2/content/
> templates.xql]
> templates:process(node()*, map) [131:51:/etc/exist/./webapp/
> WEB-INF/data/expathrepo/shared-0.4.2/content/
> templates.xql]
> templates:process(node()*, map) [88:9:/etc/exist/./webapp/WEB-
> INF/data/expathrepo/shared-0.
> 4.2/content/templates.xql]
> templates:apply(node()+, function, map?, map?) [45:5:/etc/exist/./webapp/WEB-
> INF/data/expathrepo/shared-0.4.2/content/templates.xql]
>
>
> 2017-07-27 10:40 GMT+02:00 Wolfgang Meier <[hidden email]>:
> Pietro,
>
> I can reproduce the error in one case using util:eval. Could you apply the following tiny change and report if it fixes the issue for you as well? In src/org/exist/xquery/functions/util/Eval.java, method cleanup, change line 407 to
>
> innerContext.reset(true);
>
> Thanks,
>
> Wolfgang
>
>
> > Am 26.07.2017 um 23:35 schrieb Pietro Liuzzo <[hidden email]>:
> >
> > Actually not entirely successful.
> > I get an error I never saw before:
> > err:XPDY0002 No request object found in the current XQuery context. [at line 1640, column 35, source: /db/apps/gez-en/modules/app.xql]
> > app:copy-params(node(), map) [217:18:/db/apps/gez-en/modules/app.xql]
> >       templates:call-with-args(function, function*, element(), map) [208:13:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> >       templates:process-output(element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> >       templates:call-by-introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> >       templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> >       templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> >       templates:process(node()*, map) [280:13:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> >       templates:process-output(element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> >       templates:call-by-introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> >       templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> >       templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> >       templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> >       templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> >       templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> >       templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> >       templates:process(node()*, map) [465:17:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> >       templates:process-output(element(), map, item()*) [273:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> >       templates:process-output(element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> >       templates:call-by-introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> >       templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> >       templates:process(node()*, map) [131:51:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> >       templates:process(node()*, map) [88:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> >       templates:apply(node()+, function, map?, map?) [46:5:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
> >
> > app:copy-params is simply using request:get-parameters-names() and it always worked perfectly. Even removing it the error comes back, on the first instance of the code using the request module.
> >
> > do I need to change anything in there for this release?
> >
> > Thanks a lot!
> > Pietro
> >
> > 2017-07-26 19:28 GMT+02:00 Wolfgang Meier <[hidden email]>:
> > We’re happy to announce the release of eXist-db v3.4.0. This is a minor release, which introduces one new feature and fixes important issues.
> >
> > New Features
> >
> > * Added function `fn:sort` defined by the XQuery 3.1 function library
> >
> > Bug fixes
> >
> > * Closes several memory leaks which affect nearly all applications making extensive use of library modules or inline functions. As the leaked objects are small on average, the time it takes for the growing memory usage to become manifest depends on average load and complexity of the app (typically a server may run for several weeks until it becomes slow and eventually crashes)
> > * Variables pointing to binary values were destroyed too early when they were running out of scope
> > * Running eXist via the system tray launcher on Mac OSX resulted in random crashes of the Java VM. The Mac .dmg distribution of eXist was thus unusable
> > * Small fix to `IndexListener` interface used by extension indexes: `endElement` should be called with a valid node
> > * Cleaned up the Cache Module so it is thread-safe. Also added a facility for configuring permissions for cache operations
> >
> > Backwards Compatibility
> >
> > eXist-db v3.4.0 is backwards binary-compatible as far as v3.0, but not with earlier versions. Users upgrading from previous versions should perform a full backup and restore to migrate their data.
> >
> >
> > Downloading This Version
> >
> > eXist-db v3.4.0 is available for download from Bintray [1]. Maven artifacts for eXist-db v3.4.0 are available from our mvn-repo [2]. Mac users of the Homebrew [3] package repository will be able to install and upgrade shortly; an announcement will be made on the exist-open mailing list.
> >
> > [1] https://bintray.com/existdb/releases/exist/3.4.0
> > [2] https://github.com/eXist-db/mvn-repo
> > [3] http://brew.sh
> > ------------------------------------------------------------------------------
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > _______________________________________________
> > Exist-open mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/exist-open
> >
> >
> >
> > --
> > Pietro Maria Liuzzo
> > cel (DE): +49 (0) 176 61 000 606
> > Skype: pietro.liuzzo (Quingentole)
> > https://uk.linkedin.com/in/pietroliuzzo
>
>
>
>
> --
> Pietro Maria Liuzzo
> cel (DE): +49 (0) 176 61 000 606
> Skype: pietro.liuzzo (Quingentole)
> https://uk.linkedin.com/in/pietroliuzzo
>
>
>
> --
> Pietro Maria Liuzzo
> cel (DE): +49 (0) 176 61 000 606
> Skype: pietro.liuzzo (Quingentole)
> https://uk.linkedin.com/in/pietroliuzzo


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [ANN] Release of eXist 3.4.0

lin_xd
I got errors  on browsing the index in monex:

An error has occurred

An error has been generated by the application.

err:XPDY0002 Variable $request is not bound to an Java object. [at line 196, column 30, source: /db/apps/monex/modules/indexes.xqm]
In function:
	indexes:show-index-keys(node(), map) [217:18:/db/apps/monex/modules/indexes.xqm]
	templates:call-with-args(function, function*, element(), map) [208:13:D:\opt\exist\webapp\WEB-INF\data\expathrepo\shared-0.4.2\content\templates.xql]
	templates:process-output(element(), map, item()*, element()) [205:9:D:\opt\exist\webapp\WEB-INF\data\expathrepo\shared-0.4.2\content\templates.xql]
	templates:call-by-introspection(element(), map, map, function) [187:28:D:\opt\exist\webapp\WEB-INF\data\expathrepo\shared-0.4.2\content\templates.xql]
	templates:call(item(), element(), map) [135:36:D:\opt\exist\webapp\WEB-INF\data\expathrepo\shared-0.4.2\content\templates.xql]
	templates:process(node()*, map) [146:81:D:\opt\exist\webapp\WEB-INF\data\expathrepo\shared-0.4.2\content\templates.xql]
	templates:process(node()*, map) [146:81:D:\opt\exist\webapp\WEB-INF\data\expathrepo\shared-0.4.2\content\templates.xql]
	templates:process(node()*, map) [146:81:D:\opt\exist\webapp\WEB-INF\data\expathrepo\shared-0.4.2\content\templates.xql]
	templates:process(node()*, map) [146:81:D:\opt\exist\webapp\WEB-INF\data\expathrepo\shared-0.4.2\content\templates.xql]
	templates:process(node()*, map) [146:81:D:\opt\exist\webapp\WEB-INF\data\expathrepo\shared-0.4.2\content\templates.xql]
	templates:process(node()*, map) [146:81:D:\opt\exist\webapp\WEB-INF\data\expathrepo\shared-0.4.2\content\templates.xql]
	templates:process(node()*, map) [465:17:D:\opt\exist\webapp\WEB-INF\data\expathrepo\shared-0.4.2\content\templates.xql]
	templates:process-output(element(), map, item()*) [273:9:D:\opt\exist\webapp\WEB-INF\data\expathrepo\shared-0.4.2\content\templates.xql]
	templates:process-output(element(), map, item()*, element()) [205:9:D:\opt\exist\webapp\WEB-INF\data\expathrepo\shared-0.4.2\content\templates.xql]
	templates:call-by-introspection(element(), map, map, function) [187:28:D:\opt\exist\webapp\WEB-INF\data\expathrepo\shared-0.4.2\content\templates.xql]
	templates:call(item(), element(), map) [135:36:D:\opt\exist\webapp\WEB-INF\data\expathrepo\shared-0.4.2\content\templates.xql]
	templates:process(node()*, map) [131:51:D:\opt\exist\webapp\WEB-INF\data\expathrepo\shared-0.4.2\content\templates.xql]
	templates:process(node()*, map) [88:9:D:\opt\exist\webapp\WEB-INF\data\expathrepo\shared-0.4.2\content\templates.xql]
	templates:apply(node()+, function, map?, map?) [43:5:D:\opt\exist\webapp\WEB-INF\data\expathrepo\shared-0.4.2\content\templates.xql]




--
此致
easy

莫愁前路无知己,天下谁人不识君。


在 2017-07-31 20:14:37,"Wolfgang Meier" <[hidden email]> 写道: >Pietro, > >I’m having some difficulties to see how this exception might be triggered - apart from the one in util:eval I already wrote you. Could you show me how your code looks like in app:list? > >Thanks, > >Wolfgang > > > >> Am 27.07.2017 um 11:45 schrieb Pietro Liuzzo <[hidden email]>: >> >> I also get this similar error, which sounds to me related >> >> err:XPDY0002 Variable $request is not bound to an Java object. [at line 454, column 21, source: /db/apps/gez-en/modules/app.xql] In function: app:list(node(), map, item()*, item()*, item()*) [223:18:/db/apps/gez-en/modules/app.xql] templates:call-with-args(function, function*, element(), map) [208:13:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process-output(element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:call-by-introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [465:17:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process-output(element(), map, item()*) [273:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process-output(element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:call-by-introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [131:51:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [88:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:apply(node()+, function, map?, map?) [46:5:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] >> >> >> also in this case I have a function which takes a request parameter and it always worked nicely before. >> Thanks a lot! >> Pietro >> >> 2017-07-27 11:10 GMT+02:00 Pietro Liuzzo <[hidden email]>: >> Dear Wolfgang, >> >> I have removed the old install, consequently I have reinstalled from the .jar exist 3.4 and made the change above. I have installed the daemon and started it. Then I have used the package manager to install public libraries which i need and my apps from .xar generated before the upgrade. I then restored security and config in /db/system from the command line. I have then updated the permissions to access my files and modules and reindexed each collection with the restored configuration. >> >> unfortunately I get the same error. >> >> err:XPDY0002 No request object found in the current XQuery context. [at line 1639, column 35, source: /db/apps/gez-en/modules/app. >> xql] >> In function: >> app:copy-params(node(), map) [217:18:/db/apps/gez-en/ >> modules/app.xql] >> templates:call-with-args( >> function, function*, element(), map) [208:13:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/ >> templates.xql] >> templates:process-output( >> element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/ >> templates.xql] >> templates:call-by- >> introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/ >> templates.xql] >> templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/ >> WEB-INF/data/expathrepo/shared-0.4.2/content/ >> templates.xql] >> templates:process(node()*, map) [146:81:/etc/exist/./webapp/ >> WEB-INF/data/expathrepo/shared-0.4.2/content/ >> templates.xql] >> templates:process(node()*, map) [280:13:/etc/exist/./webapp/ >> WEB-INF/data/expathrepo/shared-0.4.2/content/ >> templates.xql] >> templates:process-output( >> element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/ >> templates.xql] >> templates:call-by- >> introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/ >> templates.xql] >> templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/ >> WEB-INF/data/expathrepo/shared-0.4.2/content/ >> templates.xql] >> templates:process(node()*, map) [146:81:/etc/exist/./webapp/ >> WEB-INF/data/expathrepo/shared-0.4.2/content/ >> templates.xql] >> templates:process(node()*, map) [146:81:/etc/exist/./webapp/ >> WEB-INF/data/expathrepo/shared-0.4.2/content/ >> templates.xql] >> templates:process(node()*, map) [146:81:/etc/exist/./webapp/ >> WEB-INF/data/expathrepo/shared-0.4.2/content/ >> templates.xql] >> templates:process(node()*, map) [146:81:/etc/exist/./webapp/ >> WEB-INF/data/expathrepo/shared-0.4.2/content/ >> templates.xql] >> templates:process(node()*, map) [146:81:/etc/exist/./webapp/ >> WEB-INF/data/expathrepo/shared-0.4.2/content/ >> templates.xql] >> templates:process(node()*, map) [465:17:/etc/exist/./webapp/ >> WEB-INF/data/expathrepo/shared-0.4.2/content/ >> templates.xql] >> templates:process-output( >> element(), map, item()*) [273:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/ >> templates.xql] >> templates:process-output( >> element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/ >> templates.xql] >> templates:call-by- >> introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/ >> templates.xql] >> templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/ >> WEB-INF/data/expathrepo/shared-0.4.2/content/ >> templates.xql] >> templates:process(node()*, map) [131:51:/etc/exist/./webapp/ >> WEB-INF/data/expathrepo/shared-0.4.2/content/ >> templates.xql] >> templates:process(node()*, map) [88:9:/etc/exist/./webapp/WEB- >> INF/data/expathrepo/shared-0. >> 4.2/content/templates.xql] >> templates:apply(node()+, function, map?, map?) [45:5:/etc/exist/./webapp/WEB- >> INF/data/expathrepo/shared-0.4.2/content/templates.xql] >> >> >> 2017-07-27 10:40 GMT+02:00 Wolfgang Meier <[hidden email]>: >> Pietro, >> >> I can reproduce the error in one case using util:eval. Could you apply the following tiny change and report if it fixes the issue for you as well? In src/org/exist/xquery/functions/util/Eval.java, method cleanup, change line 407 to >> >> innerContext.reset(true); >> >> Thanks, >> >> Wolfgang >> >> >> > Am 26.07.2017 um 23:35 schrieb Pietro Liuzzo <[hidden email]>: >> > >> > Actually not entirely successful. >> > I get an error I never saw before: >> > err:XPDY0002 No request object found in the current XQuery context. [at line 1640, column 35, source: /db/apps/gez-en/modules/app.xql] >> > app:copy-params(node(), map) [217:18:/db/apps/gez-en/modules/app.xql] >> > templates:call-with-args(function, function*, element(), map) [208:13:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] >> > templates:process-output(element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] >> > templates:call-by-introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] >> > templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] >> > templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] >> > templates:process(node()*, map) [280:13:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] >> > templates:process-output(element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] >> > templates:call-by-introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] >> > templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] >> > templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] >> > templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] >> > templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] >> > templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] >> > templates:process(node()*, map) [146:81:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] >> > templates:process(node()*, map) [465:17:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] >> > templates:process-output(element(), map, item()*) [273:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] >> > templates:process-output(element(), map, item()*, element()) [205:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] >> > templates:call-by-introspection(element(), map, map, function) [187:28:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] >> > templates:call(item(), element(), map) [135:36:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] >> > templates:process(node()*, map) [131:51:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] >> > templates:process(node()*, map) [88:9:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] >> > templates:apply(node()+, function, map?, map?) [46:5:/etc/exist/./webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] >> > >> > app:copy-params is simply using request:get-parameters-names() and it always worked perfectly. Even removing it the error comes back, on the first instance of the code using the request module. >> > >> > do I need to change anything in there for this release? >> > >> > Thanks a lot! >> > Pietro >> > >> > 2017-07-26 19:28 GMT+02:00 Wolfgang Meier <[hidden email]>: >> > We’re happy to announce the release of eXist-db v3.4.0. This is a minor release, which introduces one new feature and fixes important issues. >> > >> > New Features >> > >> > * Added function `fn:sort` defined by the XQuery 3.1 function library >> > >> > Bug fixes >> > >> > * Closes several memory leaks which affect nearly all applications making extensive use of library modules or inline functions. As the leaked objects are small on average, the time it takes for the growing memory usage to become manifest depends on average load and complexity of the app (typically a server may run for several weeks until it becomes slow and eventually crashes) >> > * Variables pointing to binary values were destroyed too early when they were running out of scope >> > * Running eXist via the system tray launcher on Mac OSX resulted in random crashes of the Java VM. The Mac .dmg distribution of eXist was thus unusable >> > * Small fix to `IndexListener` interface used by extension indexes: `endElement` should be called with a valid node >> > * Cleaned up the Cache Module so it is thread-safe. Also added a facility for configuring permissions for cache operations >> > >> > Backwards Compatibility >> > >> > eXist-db v3.4.0 is backwards binary-compatible as far as v3.0, but not with earlier versions. Users upgrading from previous versions should perform a full backup and restore to migrate their data. >> > >> > >> > Downloading This Version >> > >> > eXist-db v3.4.0 is available for download from Bintray [1]. Maven artifacts for eXist-db v3.4.0 are available from our mvn-repo [2]. Mac users of the Homebrew [3] package repository will be able to install and upgrade shortly; an announcement will be made on the exist-open mailing list. >> > >> > [1] https://bintray.com/existdb/releases/exist/3.4.0 >> > [2] https://github.com/eXist-db/mvn-repo >> > [3] http://brew.sh >> > ------------------------------------------------------------------------------ >> > Check out the vibrant tech community on one of the world's most >> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> > _______________________________________________ >> > Exist-open mailing list >> > [hidden email] >> > https://lists.sourceforge.net/lists/listinfo/exist-open >> > >> > >> > >> > -- >> > Pietro Maria Liuzzo >> > cel (DE): +49 (0) 176 61 000 606 >> > Skype: pietro.liuzzo (Quingentole) >> > https://uk.linkedin.com/in/pietroliuzzo >> >> >> >> >> -- >> Pietro Maria Liuzzo >> cel (DE): +49 (0) 176 61 000 606 >> Skype: pietro.liuzzo (Quingentole) >> https://uk.linkedin.com/in/pietroliuzzo >> >> >> >> -- >> Pietro Maria Liuzzo >> cel (DE): +49 (0) 176 61 000 606 >> Skype: pietro.liuzzo (Quingentole) >> https://uk.linkedin.com/in/pietroliuzzo > > >------------------------------------------------------------------------------ >Check out the vibrant tech community on one of the world's most >engaging tech sites, Slashdot.org! http://sdm.link/slashdot >_______________________________________________ >Exist-open mailing list >[hidden email] >https://lists.sourceforge.net/lists/listinfo/exist-open


 


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Loading...