Joe Wicentowski | 3 Mar 22:58 2015
Picon

Missing results from query

Hi all,

I was just trying to find some examples of a specific kind of element
in my database.  I was looking for TEI <cell role="brace"> elements.
So I entered this into eXide:

--
declare namespace tei="http://www.tei-c.org/ns/1.0";

//tei:cell[ <at> role='brace']
--

Unexpectedly, the result that came back was 0.  After confirming that
I was not crazy by opening a few documents and seeing matches this
XPath in my database, I typed this:

--
distinct-values(//tei:cell/ <at> role)
--

And I got 4 results: num, brace, dot-leader, and label.

How could there be 0 matches for //tei:cell[ <at> role='brace'] but clearly
at least 1 instance of a tei:cell element with this value for the
 <at> role attribute?

Fearing some kind of database corruption, I shut down the database and
ran the consistency checker.  The results came back clean.  Next, I
wiped the database, re-populated all of my data, and got the same
results.
(Continue reading)

Chris Tomlinson | 3 Mar 22:57 2015
Picon

problem starting monex

Hello,

Running  in tomcat 8.0.12, Mac OS 10.10.2, java 1.8.0_31, eXist-db-2.2-develop-5604f86 from today.

I am getting the following error when I start monex:

<exception>
<path>/db/apps/monex/modules/view.xql</path>
<message>
exerr:ERROR error found while loading module app: Error while loading module app.xql: error found while loading module console: Cannot find module class from EXPath repository: org.exist.console.xquery.ConsoleModule
</message>
</exception>

The exist-monex-0.5.jar is both in the expathrepo and in the /db/apps/monex/content and the ConsoleModule class is in the jar.

I tried uninstalling monex and reinstalling but no success.

Thanks,
Chris

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Alasdair Dougall | 2 Mar 22:32 2015
Picon

Calling external SOAP services

Hi All,

One of my clients requires calls to an external SOAP service, and I am wondering what would be the best way to
go about this.

The service will allow external communication services to be called, with Exist being the orchestration
service to facilitate these calls, and will need to become a module to be installed on the client's exist server.

So, any experience on doing this and what is best practice on calling external web services?

Thanks in advance,

Alasdair Dougall
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
Chris Tomlinson | 2 Mar 20:18 2015
Picon

start.jar; invalid manifest format

Hi,

I'm trying to build from the latest develop (c12e15e) and am encountering an error that I'm unfamiliar
with. I did a ./build.sh clean and then ./build.sh all which fails as follows:

> [native2ascii] Converting 10 files from
/Users/chris/eXist-develop-c12e15e-20150302/src/org/exist/client to /Users/chris/eXist-develop-c12e15e-20150302/build/classes/org/exist/client
>      [echo] Creating exist.jar ...
>       [jar] Building jar: /Users/chris/eXist-develop-c12e15e-20150302/exist.jar
>      [echo] Creating start.jar ...
>       [jar] Building jar: /Users/chris/eXist-develop-c12e15e-20150302/start.jar
>      [echo] Creating exist-optional.jar ...
>       [jar] Building jar: /Users/chris/eXist-develop-c12e15e-20150302/exist-optional.jar
> 
> wrapper:
> 
> prepare:
>      [echo] --------------------------------------------------
>      [echo] Setting up Java Service Wrapper
>      [echo] --------------------------------------------------
>     [mkdir] Created dir: /Users/chris/eXist-develop-c12e15e-20150302/tools/wrapper/classes
>     [mkdir] Created dir: /Users/chris/eXist-develop-c12e15e-20150302/tools/wrapper/logs
>     [mkdir] Created dir: /Users/chris/eXist-develop-c12e15e-20150302/tools/wrapper/work
>      [copy] Copying 1 file to /Users/chris/eXist-develop-c12e15e-20150302/tools/wrapper/conf
>      [copy] Copying 1 file to /Users/chris/eXist-develop-c12e15e-20150302/tools/wrapper/conf
>      [copy] Copying 1 file to /Users/chris/eXist-develop-c12e15e-20150302/tools/wrapper/bin
>      [xslt] Processing /Users/chris/eXist-develop-c12e15e-20150302/log4j.xml to /Users/chris/eXist-develop-c12e15e-20150302/tools/wrapper/conf/log4j.xml
>      [xslt] Loading stylesheet /Users/chris/eXist-develop-c12e15e-20150302/tools/wrapper/wrapper-log4j.xsl
> 
> compile:
>     [javac] Compiling 1 source file to /Users/chris/eXist-develop-c12e15e-20150302/tools/wrapper/classes
>     [javac] error: error reading /Users/chris/eXist-develop-c12e15e-20150302/start.jar; invalid
manifest format
>     [javac] error: error reading /Users/chris/eXist-develop-c12e15e-20150302/exist.jar; invalid
manifest format
>     [javac] 2 errors
> 
> BUILD FAILED

I'm running on Mac OS 10.10.2 with java:

> java version "1.8.0_31"
> Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
> Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)

Thanks,
Chris

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
Joe Wicentowski | 2 Mar 18:43 2015
Picon

Re: Don't appear to be generating a Lucene index

Hi Richard,

> count(collection('/db/apps/pacisco/data')//ap) = 89

So far so good.

> doc('/db/system/config/db/apps/pacisco/data/collection.xconf') I get:
>
> “err:FOD0005 exerr:ERROR Document /db/system/config/db/apps/pacisco/data/collection.xconf
is a binary resource, not an XML document. Please consider using the function util:binary-doc() to
retrieve a reference to it.”

Ah, that explains it.  Please delete the .xconf file from the database
and store it again in the same location.  eXist should pick up the
.xconf file extension as an XML type of file rather than a binary one.

Joe

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Kuukka-Härmä Riina | 2 Mar 16:18 2015

eXist2.1: ReIndexing does not work, Deleting collection & trying to recreate from backup fails

Hello,
 
I am supposed to be doing some DB-admin kind of operations in eXist DB,  and eXist is new DB system for me so I am still a bit lost. My main issue is that how the indexes can be fixed most easiest way. Recreating database is last option.
 
ENV details:
#eXist build info (updated using svnkit)
#Wed, 17 Jul 2013 11:19:51 +0200
#eXist build info
project.version=2.1
project.build=20130717
svn.revision=18721
Dashboard / Java Admin Client
JVM memory 2048
Platform: Linux
Java version: jdk1.7.0_71
 
I have encountered to problem where one of the collection reindexing  fails , and “weird” warnings are received. Reindexing has been worked before, but now something has broken something somewhere, and Queries does not find files under specific collection where reindexing fails. What are the usual suspects, and any recommendations how to recover from that? Is the only option to do full backup/restore operation?
 
Using Java Admin Client I have tried to some tricks:
Single file removal under that collection does not work. Removal of the collection works (after taking backup from that resource), but when I create the folder with same name and try to do restore for that specific folder content from backup (folder structure), it fails different kind of errors/warnings:
 
I have now created a new collection, where I am importing the required xml files from messed up collection.  I am planning to rename it later to the original name
 
I have managed to import single files from my workstation backup (Windows 7)  to server, but trying to run update for several files (defined in __contents__.xml) I get error:
 
Problems occured found during restore:
WARN: Failed to restore resource ‘SOMERESOURCE.xml'
from file 'C:\SOMESOURCE.xml'.
Reason: networking error
And log files:
2015-03-02 16:35:22,898 [eXistThread-31] ERROR (NativeTextEngine.java [flushWord]:1066) - not a data-page: 1' in 'words.dbx' (inverted index)
java.io.IOException: not a data-page: 1
        at org.exist.storage.index.BFile$SinglePage.<init>(BFile.java:2524)
        at org.exist.storage.index.BFile.getDataPage(BFile.java:570)
        at org.exist.storage.index.BFile.getDataPage(BFile.java:556)
        at org.exist.storage.index.BFile.storeValue(BFile.java:842)
        at org.exist.storage.index.BFile.append(BFile.java:225)
        at org.exist.storage.index.BFile.append(BFile.java:207)
        at org.exist.storage.NativeTextEngine$InvertedIndex.flushWord(NativeTextEngine.java:1056)
        at org.exist.storage.NativeTextEngine$InvertedIndex.flush(NativeTextEngine.java:1022)
        at org.exist.storage.NativeTextEngine.flush(NativeTextEngine.java:345)
        at org.exist.fulltext.FTIndexWorker.flush(FTIndexWorker.java:180)
        at org.exist.indexing.IndexController.flush(IndexController.java:184)
        at org.exist.storage.NativeBroker.flush(NativeBroker.java:3636)
        at org.exist.collections.Collection.storeXMLInternal(Collection.java:1381)
        at org.exist.collections.Collection.store(Collection.java:1206)
        at org.exist.xmlrpc.RpcConnection.parseLocal(RpcConnection.java:2469)
        at org.exist.xmlrpc.RpcConnection.parseLocalExt(RpcConnection.java:2370)
        at org.exist.xmlrpc.RpcConnection.parseLocalExt(RpcConnection.java:5437)
 
After that, even single page restore does not work:
 
rg.xmldb.api.base.XMLDBException: Failed to invoke method updateAccount in class org.exist.xmlrpc.RpcConnection: null
        at org.exist.xmldb.RemoteUserManagementService.updateAccount(RemoteUserManagementService.java:860)
        at org.exist.backup.Restore.setAdminCredentials(Restore.java:168)
        at org.exist.backup.Restore.restore(Restore.java:65)
        at org.exist.client.ClientFrame$42.call(ClientFrame.java:1324)
        at org.exist.client.ClientFrame$42.call(ClientFrame.java:1316)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.xmlrpc.XmlRpcException: Failed to invoke method updateAccount in class org.exist.xmlrpc.RpcConnection: null
        at org.apache.xmlrpc.client.XmlRpcStreamTransport.readResponse(XmlRpcStreamTransport.java:197)
        at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:156)
        at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:143)
        at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:69)
        at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:56)
        at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:167)
        at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:158)
        at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:147)
        at org.exist.xmldb.RemoteUserManagementService.updateAccount(RemoteUserManagementService.java:858)
        ... 8 more
And I have to reboot the eXist DB JVM
 
Seeing also a lot of these warnings:
2015-03-02 15:17:45,613 [eXistThread-44] WARN  (BFile.java [append]:262) - btree exception while appending value
org.exist.storage.btree.BTreeException: Invalid Page Type In findValue
        at org.exist.storage.btree.BTree$BTreeNode.findValue(BTree.java:1500)
        at org.exist.storage.btree.BTree$BTreeNode.findValue(BTree.java:1492)
        at org.exist.storage.btree.BTree$BTreeNode.findValue(BTree.java:1492)
at org.exist.storage.btree.BTree.findValue(BTree.java:350)
 
And these kind StackOverFlow:
 
015-03-02 15:08:42,272 [eXistThread-31] DEBUG (RpcConnection.java [handleException]:124) - 
java.lang.StackOverflowError
        at org.exist.util.hashtable.SequencedLongHashMap.put(SequencedLongHashMap.java:113)
        at org.exist.storage.cache.BTreeCache.add(BTreeCache.java:42)
        at org.exist.storage.cache.BTreeCache.add(BTreeCache.java:38)
        at org.exist.storage.btree.BTree.getBTreeNode(BTree.java:456)
        at org.exist.storage.btree.BTree.access$2500(BTree.java:111)
        at org.exist.storage.btree.BTree$BTreeNode.getChildNode(BTree.java:1182)
        at org.exist.storage.btree.BTree$BTreeNode.findValue(BTree.java:1488)
        at org.exist.storage.btree.BTree$BTreeNode.findValue(BTree.java:1492)
        at org.exist.storage.btree.BTree$BTreeNode.findValue(BTree.java:1492)
        at org.exist.storage.btree.BTree$BTreeNode.findValue(BTree.java:1492)
        at org.exist.storage.btree.BTree$BTreeNode.findValue(BTree.java:1492)
        at org.exist.storage.btree.BTree$BTreeNode.findValue(BTree.java:1492)
        at org.exist.storage.btree.BTree$BTreeNode.findValue(BTree.java:1492)
        at org.exist.storage.btree.BTree$BTreeNode.findValue(BTree.java:1492)
        at org.exist.storage.btree.BTree$BTreeNode.findValue(BTree.java:1492)
        at org.exist.storage.btree.BTree$BTreeNode.findValue(BTree.java:1492)
        at org.exist.storage.btree.BTree$BTreeNode.findValue(BTree.java:1492)
        at org.exist.storage.btree.BTree$BTreeNode.findValue(BTree.java:1492)
        at org.exist.storage.btree.BTree$BTreeNode.findValue(BTree.java:1492)
        at org.exist.storage.btree.BTree$BTreeNode.findValue(BTree.java:1492)
        at org.exist.storage.btree.BTree$BTreeNode.findValue(BTree.java:1492)
        at org.exist.storage.btree.BTree$BTreeNode.findValue(BTree.java:1492)
        at org.exist.storage.btree.BTree$BTreeNode.findValue(BTree.java:1492)
        at org.exist.storage.btree.BTree$BTreeNode.findValue(BTree.java:1492)
        at org.exist.storage.btree.BTree$BTreeNode.findValue(BTree.java:1492)
        at org.exist.storage.btree.BTree$BTreeNode.findValue(BTree.java:1492)
        at org.exist.storage.btree.BTree$BTreeNode.findValue(BTree.java:1492)
        at org.exist.storage.btree.BTree$BTreeNode.findValue(BTree.java:1492)
        at org.exist.storage.btree.BTree$BTreeNode.findValue(BTree.java:1492)
        at org.exist.storage.btree.BTree$BTreeNode.findValue(BTree.java:1492)
 
 
Any tips & hints is appricated, Riina
 
 
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Richard Griffiths | 2 Mar 12:20 2015
Picon

Don't appear to be generating a Lucene index

Hi eXist folks,

 

A beginner’s question probably containing a massive misunderstanding…

 

I’m trying to create an index to enable Lucene search.  However, I don’t see my index appearing when I run Monex and select the ‘Indexes’ menu item.

 

I’m running eXist version 2.2 on a Windows server.

 

The collection I’m trying to index is located at: /db/apps/pacisco/data

 

I’ve stored a config file at: /db/system/config/db/apps/pacisco/data

 

The file named ‘collection.xconf’ contains:

 

<collection xmlns="http://exist-db.org/collection-config/1.0">

    <index>

        <lucene>

            <text qname="ap" />

        </lucene>

    </index>

</collection>

 

I’ve run reindex on /db/apps/pacisco/data from the Collection Browser, and also in a query when xmldb:reindex('/db/apps/pacisco/data') returns ‘true’.

 

What am I doing wrong?

 

Thanks in anticipation,

 

Richard

 


___________________________________________________________
This email has been scanned by MessageLabs' Email Security
System on behalf of the University of Brighton.
For more information see http://www.brighton.ac.uk/is/spam/
___________________________________________________________
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Georges Nassopoulos | 1 Mar 17:29 2015
Picon

Problem with DatabaseManager.getCollection

Hello everyone,

I am trying to run the examples of existDB, which are in the directory
"eXist-db/samples/src/org/exist/examples/". After trying to solve many issues with packet's dependencies, I am stacked in an issue with "getCollection"
 
Collection col =   DatabaseManager.getCollection(URI+XmldbURI.ROOT_COLLECTION);

in which the program crashes, and I have the following error because of the function's "getCollection" signature:

run:
Exception in thread "main" java.lang.ExceptionInInitializerError
    at org.exist.xmldb.DatabaseImpl.getCollection(DatabaseImpl.java:141)
    at org.xmldb.api.DatabaseManager.getCollection(DatabaseManager.java:197)
    at xQuery.main(xQuery.java:65)
Caused by: java.lang.SecurityException: class "org.xmldb.api.base.CompiledExpression"'s signer information does not match signer information of other classes in the same package
    at java.lang.ClassLoader.checkCerts(ClassLoader.java:952)
    at java.lang.ClassLoader.preDefineClass(ClassLoader.java:666)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:794)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    at org.exist.xquery.value.AnyURIValue.escape(AnyURIValue.java:140)
    at org.exist.xmldb.XmldbURI.xmldbUriFor(XmldbURI.java:100)
    at org.exist.xmldb.XmldbURI.xmldbUriFor(XmldbURI.java:95)
    at org.exist.xmldb.XmldbURI.create(XmldbURI.java:120)
    at org.exist.xmldb.XmldbURI.<clinit>(XmldbURI.java:62)
    ... 3 more
Java Result: 1

I have checked that the parameter that I pass into "getCollection" is a valid path to a collection Also, the signature of "getCollection" correspond to the way is used in the code example:

public static Collection getCollection(String uri, String username, String password) throws XMLDBException {

Could it be a problem caused by the package that I use as library, whcih I downloaded from:

http://www.java2s.com/Code/Jar/e/Downloadexistjar.htm

If someone has any idea or tip to solve this issue, it would really helpfull!

Thanks in advance,


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Alexander Henket | 28 Feb 12:28 2015
Picon
Picon

Line wrapping would be nice

Hi,

After one of my hard resets after eXist-db froze itself up, I got a new dialog on OSX from the eXist-db.app. I believe this dialog could do with some line wrapping as it spans twice the width of my resolution on my 15" Retina Macbook Pro. :-)

O eXist-db came up normally after clicking through a new series of errors and starting it up again.

Regards

Alexander Henket

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Ihe Onwuka | 27 Feb 18:13 2015
Picon

Re: exist aborts storing well formed XML

On Fri, Feb 27, 2015 at 10:35 AM, Chris Tomlinson <chris.j.tomlinson <at> gmail.com> wrote:
I’m not wanting to prolong the discussion too much; however, in looking over the thread I didn’t see an explanation about why:

  <horse-jumping/>
  <military/>


which represents the data with one node and fewer bytes and I will henceforth call A
 
and so on would be preferred over:

  <keyword>horse-jumping</keyword>
  <keyword>military</keyword>


which represents the same data with 2 nodes and more bytes and I will henceforth call B.

I've mentioned that I'm more or less dealing with big data a couple of times and it doesn't seem to have resonated so.....

There are over 5.5 million keywords that can appear without restriction against over 3.2 million movies. Representation A entails a larger transmission payload and twice as many nodes per keyword instance. It buys me nothing but could cost me alot because  I may wish to run a transformation across all movies (or as many as I can). Either by dint of number of nodes or larger file size A could force me into having to resort to a streaming XSLT transformation (or some trick to avoid it) that I may not otherwise have had to deal with.
 
which seems a straight-forward way to approach the modeling.

Don't understand how you can say that when you don't know what I am doing and what challenges that entails  but never mind.
 
I didn’t understand how the former approach would be more aesthetically pleasing than the latter.

Well aesthetics is subjective but I thought the quoted example

local-name() eq 'mykeyword

instead of 

mykeyword


 that showed the effect on queries was quite persuasive and I have already commented on the more verbose representation.  The more relevant aspect of what I said related to performance rather than aesthetics and I can amplify by pointing you to at least one document stating the performance advantage of the latter http://support.microsoft.com/kb/815124 from which I would extrapolate that wrt MSXML at least an element test would be more performant than a predicated equality test.
 
In fact it would seem to me that an element name per keyword would sort of be mixing content and model, but I’m likely short-sighted.


 I am saying  that my chosen data type suffices to tell me all I need to know about the data therefore my data type is also my data and considering that I want to  impose keyword related business rules that is not a frivolous concept. 5.5 million keywords is too many and I need to  to rationalize them, I might also want to do something about the proliferation of pornographic keywords. With keywords as a data type I can conveniently schematize those rules more conveniently (mutual exclusivity, substitution groups etc) instead of exposing them in application logic.

A general point. I want an XML repository for the reasons we all know and love but  eXist has no strategic relevance to what I am doing - it just happens to be the one I know best. An eXist specific limitation (because I really haven't heard any other reason) would not of itself be reason enough to compromise my design.

On Fri, Feb 27, 2015 at 12:11 PM, Ihe Onwuka <ihe.onwuka <at> gmail.com> wrote:


On Fri, Feb 27, 2015 at 10:35 AM, Chris Tomlinson <chris.j.tomlinson <at> gmail.com> wrote:
I’m not wanting to prolong the discussion too much; however, in looking over the thread I didn’t see an explanation about why:

  <horse-jumping/>
  <military/>


which represents the data with one node and fewer bytes and I will henceforth call A
 
and so on would be preferred over:

  <keyword>horse-jumping</keyword>
  <keyword>military</keyword>


which represents the same data with 2 nodes and more bytes and I will henceforth call B.

I've mentioned that I'm more or less dealing with big data a couple of times and it doesn't seem to have resonated so.....

There are over 5.5 million keywords that can appear without restriction against over 3.2 million movies. Representation A entails a larger transmission payload and twice as many nodes per keyword instance. It buys me nothing but could cost me alot because  I may wish to run a transformation across all movies (or as many as I can). Either by dint of number of nodes or larger file size A could force me into having to resort to a streaming XSLT transformation (or some trick to avoid it) that I may not otherwise have had to deal with.
 
which seems a straight-forward way to approach the modeling.

Don't understand how you can say that when you don't know what I am doing and what challenges that entails  but never mind.
 
I didn’t understand how the former approach would be more aesthetically pleasing than the latter.

Well aesthetics is subjective but I thought the quoted example

local-name() eq 'mykeyword

instead of 

mykeyword


 that showed the effect on queries was quite persuasive and I have already commented on the more verbose representation.  The more relevant aspect of what I said related to performance rather than aesthetics and I can amplify by pointing you to at least one document stating the performance advantage of the latter http://support.microsoft.com/kb/815124 from which I would extrapolate that wrt MSXML at least an element test would be more performant than a predicated equality test.
 
In fact it would seem to me that an element name per keyword would sort of be mixing content and model, but I’m likely short-sighted.


 I am saying  that my chosen data type suffices to tell me all I need to know about the data therefore my data type is also my data and considering that I want to  impose keyword related business rules that is not a frivolous concept. 5.5 million keywords is too many and I need to  to rationalize them, I might also want to do something about the proliferation of pornographic keywords. With keywords as a data type I can conveniently schematize those rules more conveniently (mutual exclusivity, substitution groups etc) instead of exposing them in application logic.

A general point. I want an XML repository for the reasons we all know and love but  eXist has no strategic relevance to what I am doing - it just happens to be the one I know best. An eXist specific limitation (because I really haven't heard any other reason) would not of itself be reason enough to compromise my design.

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Andreas Jung | 27 Feb 16:56 2015

External authentication

Hi there,

Is there an (easy) way to configure the existdb authentication against some external web service?

Usecase is that the primary user source is our CMS and I am checking options to pass through the security down
to existdb...e.g. to ensure access management on the WebDAV level for attaching external editors to existdb.

Regards
Andreas Jung
-----
Sorry for being brief - sent from a mobile device.

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/

Gmane