Picon

Re: Refactoring of Configuration

Geee ... sometimes automatic software updates suck! Took me 1 hour to be
able to send mail again :(

>Would you mind giving more details about the failures ?
>
>It may indeed happen that some test fail in the test suite whereas they

>succeed individually when debugging as JUnit tests in Eclipse. Many 
>things might be involved : example files, classpath, test sequencing...

>Hard to say without knowing more.

Ok ... here goes:
I just found out, that I must have accidently checked in the
e.printStackTrace() entries I included to find out what the problem is.
Well ... these are responsible for the first three stack trace outputs.

Hope this helps.

Regards,
    Chris

Here the output of the test case (it's only one but 3 tests in it fail):

Testsuite: org.exist.xmldb.XmldbRemoteTests
Tests run: 11, Failures: 3, Errors: 0, Time elapsed: 2,409 sec
------------- Standard Output ---------------
Starting standalone server...
eXist version 1.0, Copyright (C) 2005 The eXist Project
eXist comes with ABSOLUTELY NO WARRANTY.
(Continue reading)

Pawel Katarzynski | 1 Mar 2007 11:46
Picon

Re: Howto edit nodes in web browser - XQuery Sandbox

Andrzej Jan Taramina <andrzej <at> chaeron.com> writes:

> 
> Adam suggested:
> 
> > There is no Generic way, but it is pretty easy using the REST interface to
> > construct some HTML forms or XForms and use these to update a document...
> > XForms makes this especially easy with eXist, however you need to design a
> > form for each structure of document you are modifying.
> 
> Hmm....it would be rather useful to have a generic, REST/Browser based editor 
> for arbitrary XML documents. Especially when working with something like 
> eXist.
> 
> Shouldn't be a huge task to use a Javascript-based XML editor (there seem to 
> be a few available, google: "javascript xml editor") and then embed that in 
> an HTML page with some form submission, and you're virtually there (assuming 
> a browser that supports Put/Delete as well as Get/Post).

Is there any chance to implement such a functionality in sandbox? I mean to have
a possibility to edit chosen node from the resultset (they are already marked by
highlighted numbers) in sandbox and then update the whole node. I realize that
it could be difficult for the constructed nodes, but in the query we could, for
example, add a special attribute with nodeID for element to be edited. XSL
stylesheet formatting the results could then add the 'edit' button for nodes
with this attribute. The ajax application could use REST to read node into
multiline inputBox (or more clever javascript editor) and then update it. Is
this idea viable? Sometimes I need to solve a problem directly on the client's
workstation, and such or similar solution would be very useful for me.

(Continue reading)

Gary Larsen | 1 Mar 2007 18:44

Displaying Xquery results in textarea

Sorry if this is a bit OT

What I'm trying to get to is displaying the results of xQueryGenerator into
an html textarea (to allow the user to see and copy the result xml).

Right now I'm transforming the query result with:

<textarea readonly="true"  style="border:none;width:100%;" rows="40">
	<xsl:copy-of select="/"/>
</textarea>

I've got two questions:

1. The xml is not displayed indented.  I added "declare option
exist:serialize 'indent=yes'" to the query but when I serialize to XML and
view the page source I don't have any indents.  Could it be that indent=yes
is not working?

2. Is there a way to escape the XML in the textarea?  When copying the XML
from the browser, ampersands in text elements aren't escaped causing
problems on the paste.

Perhaps there is another way to approach this problem?  Any ideas are
welcome.

Thanks,
gary

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
(Continue reading)

Andrzej Jan Taramina | 1 Mar 2007 20:07

Problems with configuration in current SVN snapshot?

I'm up to date with the SVN code base, but building a war and deploying it 
seems to have problems with configuration exceptions right now when you try 
to access eXist.

Is the config refactoring the cause of this?

Just curious....

BTW....eXist seems to run fine in Tomcat 6.0.10 which was just released.

Andrzej Jan Taramina
Chaeron Corporation: Enterprise System Solutions
http://www.chaeron.com

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Gary Larsen | 1 Mar 2007 22:15

Constructing xquery result nodes


Is there a way to avoid default namespace info being included when adding a
node to a result?  Since I have defined the default namespace in the result
root node I don't need it.

Here a sample xquery syntax I use:

  {for $detailInfo in $allInfo[groupByLevel/String[1] = $grpName return
  <itemInfo>
   {$detailInfo/defaultName}
  </itemInfo>

The result:

<itemInfo>
  <defaultName
xmlns="http://developer.envisn.com/xmlns/envisn/netvisn/">Employee
Earnings Detail by Fund Code</defaultName>
</itemInfo>

I could do this:

  <itemInfo>
   <defaultName>{$detailInfo/defaultName/text()}</<defaultName>
  </itemInfo>

but I think this is more expensive way to add nodes to the result (acording
to a previous posting).

thanks,
(Continue reading)

Andrzej Jan Taramina | 1 Mar 2007 22:16

More on the Configuration problem....

I'm running the WAR file in Tomcat.  Latest SVN update (revision 5422). Clean 
build.

The eXist webapp does come up.  Nothing untowards in the Tomcat console log.

I can get to the main page through my browser, but the news on the right just 
shows some clipped exceptions.

Trying to go to the Admin page, shows the following:

Message:configuration error
Java Stack Trace:Class Name	Method Name	File Name	Line
org.exist.util.Configuration		Configuration.java	173
org.exist.xmldb.DatabaseImpl	configure	DatabaseImpl.java	103
org.exist.xmldb.DatabaseImpl	getLocalCollection	DatabaseImpl.java	179
org.exist.xmldb.DatabaseImpl	getCollection	DatabaseImpl.java	159
org.exist.xmldb.DatabaseImpl	getCollection	DatabaseImpl.java	154
org.xmldb.api.DatabaseManager	getCollection	Unknown	Unavailable
org.exist.http.servlets.XQueryServlet	process	XQueryServlet.java	304
org.exist.http.servlets.XQueryServlet	doGet	XQueryServlet.java	164
javax.servlet.http.HttpServlet	service	HttpServlet.java	690
javax.servlet.http.HttpServlet	service	HttpServlet.java	803
org.apache.catalina.core.ApplicationFilterChain	internalDoFilter	
ApplicationFilterChain.java	290
org.apache.catalina.core.ApplicationFilterChain	doFilter	
ApplicationFilterChain.java	206
org.apache.catalina.core.StandardWrapperValve	invoke	
StandardWrapperValve.java	228
org.apache.catalina.core.StandardContextValve	invoke	
StandardContextValve.java	175
(Continue reading)

Wolfgang Meier | 1 Mar 2007 22:22
Picon

Re: More on the Configuration problem....

> Trying to go to the Admin page, shows the following:
>
> Message:configuration error
> Java Stack Trace:Class Name     Method Name     File Name       Line
> org.exist.util.Configuration            Configuration.java      173

Not sure, but it looks like eXist fails to determine the location of
the conf.xml configuration file. I have not yet tried it myself
though.

Wolfgang

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
SourceForge.net | 1 Mar 2007 21:48
Picon
Favicon

[ exist-Bugs-1672004 ] Unrecoverable Database Corruption

Bugs item #1672004, was opened at 2007-03-01 15:48
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=117691&aid=1672004&group_id=17691

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Eric Rosenberg (er824)
Assigned to: Nobody/Anonymous (nobody)
Summary: Unrecoverable Database Corruption

Initial Comment:
I believe I’ve manage to get my eXist database into an unrecoverable state. 

This occurred with exist 1.1.1-newcore running on JDK 1.4.2_13. I was running exist in embedded mode.

My disk filled up in the middle of a long sequence of performing queries and inserting documents. It appears
that the crash left my database in an unrecoverable state. This has happened to me 3 times over the last 2
days. I believe I can reproduce it by simply attempting to continuously insert documents and then killing
the process once insertions start to fail because the disk is full.

The first time a document failed to successfully be inserted I got the following stack trace. 

(Continue reading)

Pierrick Brihaye | 2 Mar 2007 00:15
Picon
Favicon

Re: More on the Configuration problem....

Hi,

Andrzej Jan Taramina a écrit :

> I'm running the WAR file in Tomcat.  Latest SVN update (revision 5422). Clean 
> build.

I also have problems when running the test suite with this revision.
5421 is OK though.

I suspect a problem at shutdown. Well, it's late : we'll try to fix this
tomorrow.

Cheers,

p.b.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Picon

Re: More on the Configuration problem....

Hi,

I have to admit this error is because of my changes, even if I have no real Idea why.
The same Problem is causing 3 of the thousands of unit tests to fail.
The method getDefaultExistHome should return the default home directory for exist. The code hasn't
changed from the original one except that I exchanged access to the static existHome variable.

The initial version looked at a static existHome variable and if this was not null, then it returned it. If it
was null it tries to guess the location. If none of the user-variables is set, then the method returns null
and this causes your Problems.

I will have a look at this problem.

Regards, 
     Chris

-----Ursprüngliche Nachricht-----
Von: exist-open-bounces <at> lists.sourceforge.net
[mailto:exist-open-bounces <at> lists.sourceforge.net] Im Auftrag von Wolfgang Meier
Gesendet: Donnerstag, 1. März 2007 22:30
An: andrzej <at> chaeron.com
Cc: exist-open <at> lists.sourceforge.net
Betreff: Re: [Exist-open] More on the Configuration problem....

> Trying to go to the Admin page, shows the following:
>
> Message:configuration error
> Java Stack Trace:Class Name     Method Name     File Name       Line
> org.exist.util.Configuration            Configuration.java      173

(Continue reading)


Gmane