David Carver | 1 Sep 2009 01:32

Exist 1.2.6 Nullpointer with val:validate function

I'm getting a Nullpointer exception from the Validation.class, around 
line 196.  Stack trace is below:

java.lang.NullPointerException
	org.exist.xquery.functions.validation.Validation.eval(Validation.java:196)
	org.exist.xquery.BasicFunction.eval(BasicFunction.java:68)
	org.exist.xquery.InternalFunctionCall.eval(InternalFunctionCall.java:49)
	org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
	org.exist.xquery.PathExpr.eval(PathExpr.java:238)
	org.exist.xquery.ForExpr.eval(ForExpr.java:174)
	org.exist.xquery.BindingExpression.eval(BindingExpression.java:144)
	org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
	org.exist.xquery.PathExpr.eval(PathExpr.java:238)
	org.exist.xquery.EnclosedExpr.eval(EnclosedExpr.java:68)
	org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
	org.exist.xquery.PathExpr.eval(PathExpr.java:238)
	org.exist.xquery.ElementConstructor.eval(ElementConstructor.java:251)
	org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
	org.exist.xquery.PathExpr.eval(PathExpr.java:238)
	org.exist.xquery.ElementConstructor.eval(ElementConstructor.java:251)
	org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
	org.exist.xquery.PathExpr.eval(PathExpr.java:238)
	org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
	org.exist.xquery.PathExpr.eval(PathExpr.java:238)
	org.exist.xquery.ConditionalExpression.eval(ConditionalExpression.java:101)
	org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
	org.exist.xquery.PathExpr.eval(PathExpr.java:238)
	org.exist.xquery.AbstractExpression.eval(AbstractExpression.java:59)
	org.exist.xquery.LetExpr.eval(LetExpr.java:203)
	org.exist.xquery.LetExpr.eval(LetExpr.java:201)
(Continue reading)

Roger Holmes | 1 Sep 2009 02:33
Picon
Favicon

Exist Pragma support

Appreciations on the efforts towards the 1.4 release ! 
 
Just as a note I spotted wihin the Option class that the  Pattern matcher's grouping of attribute-value pair uses the following regex expression:
 
 
I think this allows some ambiguity since the last option ("a bunch on non-whitespace characters") could match something starting with a single or double quote. Perhaps you could change [^\s]+ to [^\s>]+.
 
Also the TimerPragma's "Invalid content" error message is also wrongly taken from that of the Optimize pragma.
 
I was wondering if anyone could shed some light on writing a pragma, within the XQueryContext, getPragma generates a new Pragma instance, my assumption was that this would access an existing pragma instance within the Context. Can I ask the easiest way of doing this ?
 
Thanks,
Roger

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Dannes Wessels | 1 Sep 2009 09:44

Re: Exist 1.2.6 Nullpointer with val:validate function

Hi David,

On 1 Sep 2009, at 1:32 , David Carver wrote:

finally {
 if (is != null) {
    is.close();
 }
}

The Nullpointer check would be a good safe guard anyways since higher up in the eval method, you set InputStream is = null;

I guess I just missed this check. Thnx for your input!

Kind regards

Dannes

--
eXist-db Native XML Database - http://exist-db.org








------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Thomas White | 1 Sep 2009 10:01
Picon
Gravatar

Re: XSLT transformation is not updated, when included XSLT files changes

Any updates?

"Adam Retter" <adam <at> exist-db.org> wrote in message 
news:3573c61b0906170546k3be94610l3e473743400acbf4 <at> mail.gmail.com...
>I think this may have always been the case with XSLT files, I remember
> this being an issue for a long time in the past certainly... think
> there might be an entry on SF bug tracker for it.
>
> 2009/6/16 Wolfgang <wolfgang <at> exist-db.org>:
>>> I can see the same behavior for XQuery files as well. An XQuery that 
>>> imports
>>> module files is not updated automatically if an imported module is 
>>> changed.
>>> It seams the caching mechanism fails to replace the updated files.
>>
>> Yes, this seems to be a regression in the current trunk. For XQuery
>> modules the problem has already been reported by other users last week.
>>
>> Wolfgang

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
Adam Retter | 1 Sep 2009 10:54

Re: Exist Pragma support

Hi Roger, would you be able to file SF bugs for those two? I ask
because we are so tied up in getting 1.4 out the door, I am afraid
they may get lost otherwise. I imagined the TimerPragma problem could
use fixing before 1.4 and should be allocated a high priority on the
SF bug page, but the regexp may be okay to be fixed after?

> I was wondering if anyone could shed some light on writing a pragma, within
> the XQueryContext, getPragma generates a new Pragma instance, my assumption
> was that this would access an existing pragma instance within the Context.
> Can I ask the easiest way of doing this ?

Can you explain what you are trying to do a little? Do you need to
keep state between invocations of a pragma?

> Thanks,
> Roger
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Exist-open mailing list
> Exist-open <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/exist-open
>
>

--

-- 
Adam Retter

eXist Developer
{ United Kingdom }
adam <at> exist-db.org
irc://irc.freenode.net/existdb

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Adam Retter | 1 Sep 2009 10:55

Re: XSLT transformation is not updated, when included XSLT files changes

I am afraid this is a medium to low priority issue for us.

Can I ask how critical this is to you? And if its really serious, we
may need to upgrade it.

2009/9/1 Thomas White <thomas.0007 <at> gmail.com>:
> Any updates?
>
> "Adam Retter" <adam <at> exist-db.org> wrote in message
> news:3573c61b0906170546k3be94610l3e473743400acbf4 <at> mail.gmail.com...
>>I think this may have always been the case with XSLT files, I remember
>> this being an issue for a long time in the past certainly... think
>> there might be an entry on SF bug tracker for it.
>>
>> 2009/6/16 Wolfgang <wolfgang <at> exist-db.org>:
>>>> I can see the same behavior for XQuery files as well. An XQuery that
>>>> imports
>>>> module files is not updated automatically if an imported module is
>>>> changed.
>>>> It seams the caching mechanism fails to replace the updated files.
>>>
>>> Yes, this seems to be a regression in the current trunk. For XQuery
>>> modules the problem has already been reported by other users last week.
>>>
>>> Wolfgang
>
>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Exist-open mailing list
> Exist-open <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/exist-open
>

--

-- 
Adam Retter

eXist Developer
{ United Kingdom }
adam <at> exist-db.org
irc://irc.freenode.net/existdb

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
claud108 | 1 Sep 2009 11:03
Picon
Favicon

'fs' and 'fs.journal' directories


Hi,

Can I have eXist WiTHOUT these directories, 'fs' and 'fs.journal'?

Thank you very much,
Claudius
--

-- 
View this message in context: http://www.nabble.com/%27fs%27-and-%27fs.journal%27-directories-tp25236805p25236805.html
Sent from the exist-open mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
Dannes Wessels | 1 Sep 2009 11:07

Re: 'fs' and 'fs.journal' directories

Hi,
On 1 Sep 2009, at 11:03 , claud108 wrote:

Can I have eXist WiTHOUT these directories, 'fs' and 'fs.journal'?

No, you cannot. In these directories the non xml data (aka 'binary documents') are stored. 

Why are you worried about these exist-db internal design things?

Kind regards

Dannes

--
eXist-db Native XML Database - http://exist-db.org








------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
bonka | 1 Sep 2009 11:08
Picon

XQuery Question - Parent Directory


Hello,

Thanks for your help lately.

I am intrigued to find out what location is the parent directory for exist.

Trying to do the following tutorial.

http://en.wikibooks.org/wiki/XQuery/Searching_multiple_collections

They have some files here and I am required to add into the parent
directory.

Thanks in advance,
--

-- 
View this message in context: http://www.nabble.com/XQuery-Question---Parent-Directory-tp25236863p25236863.html
Sent from the exist-open mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
Thomas White | 1 Sep 2009 11:20
Picon
Gravatar

Re: XSLT transformation is not updated, when included XSLT files changes

It is getting very critical for me.
I have an application that is going live in two weeks time, where the content is created by a number of XSLT files with myriad of included XSLT modules. When a module XSLT file is changed, it is very cumbersome to keep track of which XSLT files to touch to cause reload and see the changes. Sometimes is is easier just to restart eXist to see the update.
In production time this is not an option and having XSLT files automatically reloaded when an included XSLT files changes, is very important for me.
 
Regards,
Thomas

---
Thomas White

Mobile:+44 7711 922 966
Skype: thomaswhite
gTalk: thomas.0007
Linked-In:http://www.linkedin.com/in/thomaswhite0007
facebook: http://www.facebook.com/thomas.0007


2009/9/1 Adam Retter <adam <at> exist-db.org>
I am afraid this is a medium to low priority issue for us.

Can I ask how critical this is to you? And if its really serious, we
may need to upgrade it.



2009/9/1 Thomas White <thomas.0007 <at> gmail.com>:
> Any updates?
>
> "Adam Retter" <adam <at> exist-db.org> wrote in message
> news:3573c61b0906170546k3be94610l3e473743400acbf4 <at> mail.gmail.com...
>>I think this may have always been the case with XSLT files, I remember
>> this being an issue for a long time in the past certainly... think
>> there might be an entry on SF bug tracker for it.
>>
>> 2009/6/16 Wolfgang <wolfgang <at> exist-db.org>:
>>>> I can see the same behavior for XQuery files as well. An XQuery that
>>>> imports
>>>> module files is not updated automatically if an imported module is
>>>> changed.
>>>> It seams the caching mechanism fails to replace the updated files.
>>>
>>> Yes, this seems to be a regression in the current trunk. For XQuery
>>> modules the problem has already been reported by other users last week.
>>>
>>> Wolfgang
>
>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Exist-open mailing list
> Exist-open <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/exist-open
>



--
Adam Retter

eXist Developer
{ United Kingdom }
adam <at> exist-db.org
irc://irc.freenode.net/existdb

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open

Gmane