RR | 25 May 23:26
Picon

how to manually remove corrupt resources

Trying to delete a resource via API or via REST and am failing with an
NPE coming from (final cause):
Caused by: java.lang.NullPointerException
	at org.exist.storage.NativeBroker.removeXMLResource(NativeBroker.java:2255)

Unfortunately this resource lives at the root of the db, which means
that describeResource is also failing when attempting to use the GUI
client (and consequently kills it). What approach should I take to
manually remove this resource?

Thanks,
-Russ-

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Hugh Guiney | 25 May 22:35
Picon
Gravatar

Problem with Multibyte Unicode

When I PUT an XML document to the db (in 1.4.2) with `Content-type:
application/x-myxml+xml; charset=UTF-8` in the headers and `<?xml
version="1.0" encoding="UTF-8"?>` as the prolog, with this
double-byte-character content:

<title xml:lang="ru">Добро пожаловать</title>

(Note in case this doesn't display correctly: text is Russian for "welcome")

it comes back as:

<title xml:lang="ru">–î–æ–±—Ä–æ –ø–æ–∂–∞–ª–æ–≤–∞—Ç—å</title>

(Note: actual garbage characters)

I've tried this with the Poster Firefox extension and with the Eclipse
plugin (Eclipse is set to UTF-8). Any idea why this is happening?

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Stewart Arneil | 25 May 20:11
Picon
Picon
Favicon

problem running eXist 2.1 on Mac OS 10.7

I'm having problems getting eXist to start on a current Mac. Any other 
people using Macs that have had similar problems?

I am successfully running an eXist instance on
a Mac running OS 10.7.4
java version 1.6.0_31
Java(TM) SE Runtime Environment (build 1.6.0_31-b04-415-11M3635)
apache tomcat 7.0.21
eXist 1.5.0

I tried downloading and running exist-2.1-dev-rev16458 and am unable to.
The catalina log says
"org.apache.catalina.core.StandardContext startInternal
SEVERE: Error filterStart"
If I use the tomcat manager to start exist 2.1 I get
"FAIL - Application at context path /exist21 could not be started"
and the same error in the catalina log

I installed a newer version of tomcat (7.0.27) on that same computer and 
got the same results when I tried to launch eXist 1.5 (worked) and eXist 
2.1 (failed), so I don't think that's the issue.

I then went to a Mac running OS 10.6.8
java version 1.6.0_31
JRE build 1.6.0_31-b04-415-10M3646
apache tomcat 7.0.27

I tried to run exist-2.1-dev-rev16458 and that worked, so it appears to 
be an issue with the JRE or (less likely) the OS on the first Mac.

(Continue reading)

Stéphane S. | 25 May 19:51
Picon
Picon
Favicon

HTTP 411 error using HTTP Client module (does it set Content-lenght header) ?

Hi,

I am trying to call a SOAP service (Paypal, using "post") with the send-request() method of the HTTP Client
module in eXist, taking inspiration from this example [1]. However the result is that I get a "411 Length
Required" error. Note that the request endpoint is an HTTPS endpoint ("https://api-3t.sandbox.paypal.com/2.0/").

Here is the beginning of the $req object that I send using http:send-request($req) :

<http:request href="https://api-3t.sandbox.paypal.com/2.0/" method="post">
   <http:header name="SOAPAction" value="SetExpressCheckout"/>
   <http:body media-type="text/xml">
   ...

Note that if I try to manually set a Content-length by adding a header to the request with an arbitrary value:

   <http:header name="Content-length" value="1000"/>

Then I get an exception from the HTTP Client module :

Error found
Error executing the HTTP method
Java Stack Trace:Class Name	Method Name	File Name	Line
org.expath.exist.SendRequestFunction	sendRequest	SendRequestFunction.java	150

So I would like to know if the http:send-request method sets the Content-lenght header, and if not how to set
it manually ?

Note that to import the HTTP Client module with eXist 1.4.1-rev15155, I had to comment the following lines
in 'conf.xml' (taking ideas from this thread [2]), since otherwise XQuery throws an exception. I guess
eXist 1.4.2. does not fix the problem either, since it still contains the old "http-client.xqm" module
(Continue reading)

Efraim Feinstein | 24 May 21:04
Picon
Gravatar

Installer fails to run in latest trunk

Hi,

I had been using IzPack 4.3.1, and I also tried IzPack 4.3.5. For both, 
I get similar errors (here's the one from 4.3.5:)
java -jar ././lib/exist/installer/eXist-db-setup-2.1-dev.jar -p 
/usr/local/opensiddur
Installing into directory: /usr/local/opensiddur
[ Starting automated installation ]
Read pack list from xml definition.
Try to add to selection [Name: core and Index: 0]
Try to add to selection [Name: sources and Index: 1]
Try to add to selection [Name: javadoc and Index: 2]
Modify pack selection.
java.lang.ArrayIndexOutOfBoundsException: 1 >= 1
java.lang.ArrayIndexOutOfBoundsException: 1 >= 1
         at java.util.Vector.elementAt(Vector.java:470)
         at 
com.izforge.izpack.installer.AutomatedInstaller.updateInstanceCount(Unknown 
Source)
         at 
com.izforge.izpack.installer.AutomatedInstaller.doInstall(Unknown Source)
         at 
org.exist.izpack.CommandLineInstaller$EXistAutomatedInstaller.run(CommandLineInstaller.java:130)
         at 
org.exist.izpack.CommandLineInstaller.execute(CommandLineInstaller.java:104)
         at 
org.exist.izpack.CommandLineInstaller.main(CommandLineInstaller.java:140)

I read in another thread (from 2011) that 4.3.3 was a good version, but 
it's hard to find the download, let alone from a legitimate site. Would 
(Continue reading)

Chris Wallace | 24 May 19:25

HTTPclient fetching json

I'm using the httpclient module to fecth json content. I notice that it throws
an exception when it tries to parse the body of the response as XML.  I see a
variant of the HTTPclient:get () with additional parser options but no
indication of what those options might be.  Can they be used to skip the parsing
and return as base64? Even better if it could return JSON rather than me doing a
hack parse.

Alternatively would the EXPath HTTP client module handle fetching JSON?

Chris 

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Ákos Maróy | 24 May 18:04
Picon
Gravatar

GML indexing sample availability

Hi,

I saw the GML indexing sample as a use case for custom indexing for
eXist-db on the documentation page here:
http://www.exist-db.org/exist/devguide_indexes.xml#spatial

I wonder if this sample is available as a whole, so it would be easy to
try it out?

Best regards,

Akos

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Picon

MVC: how to pass requests through multiple XQuery and XSLT views

Hi,

I am struggling with my understanding of some URL rewriting concepts, 
more specifically the passing of requests through multiple 'views' via 
request attributes (see documentation at 
<http://demo.exist-db.org/exist/urlrewrite.xml#d48607e633>). Any advice 
or clarification is much appreciated.

I would like to check if following interpretation of that documentation 
is correct:
     -If I understand the docs correctly, performance is best when 
request data is passed over different views via request attributes, as 
opposed to via the response body?
     -The docs state that "XSLTServlet will always write to the HTTP 
response". Does this imply that:
         -passing request data via request attributes is only possible 
between 2 XQueryServlet views, or from a XQueryServlet to an XSLTServlet 
view
         -passing request data from a XSLTServlet view to a 
XQueryServlet view is only possible via the http response
     ?

Building on the examples in the documentation, I wanted to test what 
happens when multiple views are applied to a request, especially what 
this means for the interaction of subsequent XQueryServlet and 
XSTLServlet steps. Therefore, I've created a sample app (attached) that 
applies several XSLT and XQuery steps to the output of an XQuery script. 
Those scripts just copy their input and wrap it in a new root element, 
indicating the step in the pipe. Expected output for 
http://localhost:8080/exist/testMVC/start.xql is:
(Continue reading)

Erik Siegel | 24 May 15:52
Picon
Favicon

Bug? xqdoc module validates in documentation sections...

Hi,

 

(Running: 2.0-tech-preview on Windows 7)

 

I’m getting a weird error trying to extract the xqdoc documentation from a module using eXist’s xqdoc module.

 

When I scan the attached module (which is an excerpt from a much bigger one) with xqdm:scan(), I get the error: error while scanning module: The prefix "xlxq" for element "xlxq:Menu" is not bound.

 

As you can see, there is only one location where <xlxq:Menu>  is referenced, and that is in a documentation section!

 

As soon as I remove the <xlxq:Menu> from the documentation part, the error disappears…

 

Pretty sure this is a bug…

 

Anybody any comments?

 

 

Erik Siegel

 

 

 

 

 

Attachment (TestXqDocScan.xql): application/octet-stream, 146 bytes
Attachment (XtpLibXqWebapp.xqm): application/octet-stream, 920 bytes
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
W.S. Hager | 24 May 15:13
Picon

atom format not read by feedreaders

Hi,

To my amazement some feed readers won't parse <atom:entry
xmlns:atom="http://www.w3.org/2005/Atom"> but only <entry
xmlns="http://www.w3.org/2005/Atom">. Could the format of the atom
module be updated please?

Thanks.

--

-- 
W.S. Hager
Lagua Web Solutions
http://lagua.nl

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Palmer, Eric | 24 May 14:37

FYI: U or Richmond releases ios app that uses eXist-db

This is just an FYI for those of you that care….

We have been working on an iphone and android app for a few months. The ios app is now in the itunes store (free). http://itunes.apple.com/us/app/university-of-richmond/id527649409?mt=8

The update wall and several modules makes heavy usage of eXist-db.  

Eric Palmer
U of Richmond

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open

Gmane