Re: [xwiki-users] XAR-Import

2016-03-24 Thread Bruno

Hello,
I also had problems with importing XAR (a big one).
In the end, I adjusted some parameters in my config.
Here is what I did :
- in /etc/mysql/my.cnf I set the parameter key_buffer_size from 16 M to 
64M and max_allowed_packet 16 M to 128 M
- in /etc/xwiki/xwiki.cfg I increased the value of the parameter 
xwiki.store.cache.capacity to 1500
- I increased the memory assigned to Java. My config (one processor) : 
JAVA_OPTS='-Djava.awt.headless true -Xmx2g -XX MaxPermSize 256m 
-Dfile.encoding utf-8 -XX -XX UseConcMarkSweepGC CMSIncrementalMode'


I hope it can help.

Regards,
Signature mails
_

Bruno Joffredo

Ecole Centrale de Nantes

Centre de Ressources Informatiques - Bur. D019

1 rue de la Noë

BP 92101

F-44321 Nantes cedex 3

Tél. 02.40.37.68.06
Mail : bruno.joffr...@ec-nantes.fr 
_


Le 22/03/2016 09:56, Thomas Mortagne a écrit :

On Mon, Mar 21, 2016 at 8:28 PM, Matthias Wegner  wrote:

Ha, ha. I just build a custom xar for you to reproduce the bug and compared
it to an export from xwiki with the same content. And now i see the problem.
I had the following structure:

THIS IS NOT WORKING
book.xar
  |_ package.xml
  |_Book
 |_article1
 |   |_WebHome.xml
 |_article2
 |_WebHome.xml

THIS IS WORKING
book.xar
  |_ package.xml
  |_Book
 |_article1
 |   |_WebHome.xml
 |_article2
 |   |_WebHome.xml
 |_WebHome.xml

I missed the WebHome.xml of the "Space". In my Wiki this is empty, so it is
in my opinion useless to import. But it seems that the importer can not
handle the missing WebHome.xml of the space. I thought about an
encoding-problem or something like that, but it was only a missing file.
Maybe some exception would be great if the integrity of mandatory files or
fields is not there. I had no clue where to look because no log shows any
exception.

So, thanks for assistence. Your questions lead me the way ;)

The missing WebHome.xml should not prevent the import from working
since its not mandatory to have a WebHome associated to a space, you
should definitely create an issue on jira.xwiki.org/jira/browse/XWIKI
with detail on how to reproduce it.


Regards,
Matthias


Am 21.03.2016 um 15:33 schrieb Thomas Mortagne:

Do you see anything in the log ?

If that's a XAR you can safely share and its not too big you should
probably create an issue on http://jira.xwiki.org so that we could
reproduce it.

On Mon, Mar 21, 2016 at 3:30 PM, Matthias Wegner 
wrote:

IT teils Nothing. The right Circle Moves and it seems that it can not
read. It shows no files.

Regards, Matthias

Von unterwegs gesendet


Am 21.03.2016 um 11:51 schrieb Thomas Mortagne
:

What dos the UI tells you when you try to import ? Does it find
documents in the XAR ?


On Sun, Mar 20, 2016 at 9:58 PM, Matthias Wegner
 wrote:
Hi Users,

i made a custom xar-file because i want to import some content into
XWiki
8.0. But it seems to stuck. i can upload the file but it is never
imported.

The request.log show only
127.0.0.1 - - [20/Mrz/2016:20:51:39 +] "POST
/xwiki/bin/upload/XWiki/XWikiPreferences HTTP/1.1" 302 -
127.0.0.1 - - [20/Mrz/2016:20:51:40 +] "GET

/xwiki/bin/get/XWiki/XWikiPreferences?xpage=packagelist=1
HTTP/1.1" 200 946
127.0.0.1 - - [20/Mrz/2016:20:51:41 +] "POST

/xwiki/bin/get/XWiki/XWikiPreferences?xpage=packagedescriptor=B.xar
HTTP/1.1" 200 133

so i have no clue whats wrong. My created xml-files seem correct. Can i
send
you an example, so you can test why it is not working? I have no idea.

Regards,
Matthias



--
View this message in context:
http://xwiki.475771.n2.nabble.com/XAR-Import-tp7598556.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users



--
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users




___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users





___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XAR-Import

2016-03-22 Thread Thomas Mortagne
On Mon, Mar 21, 2016 at 8:28 PM, Matthias Wegner  wrote:
> Ha, ha. I just build a custom xar for you to reproduce the bug and compared
> it to an export from xwiki with the same content. And now i see the problem.
> I had the following structure:
>
> THIS IS NOT WORKING
> book.xar
>  |_ package.xml
>  |_Book
> |_article1
> |   |_WebHome.xml
> |_article2
> |_WebHome.xml
>
> THIS IS WORKING
> book.xar
>  |_ package.xml
>  |_Book
> |_article1
> |   |_WebHome.xml
> |_article2
> |   |_WebHome.xml
> |_WebHome.xml
>
> I missed the WebHome.xml of the "Space". In my Wiki this is empty, so it is
> in my opinion useless to import. But it seems that the importer can not
> handle the missing WebHome.xml of the space. I thought about an
> encoding-problem or something like that, but it was only a missing file.
> Maybe some exception would be great if the integrity of mandatory files or
> fields is not there. I had no clue where to look because no log shows any
> exception.
>
> So, thanks for assistence. Your questions lead me the way ;)

The missing WebHome.xml should not prevent the import from working
since its not mandatory to have a WebHome associated to a space, you
should definitely create an issue on jira.xwiki.org/jira/browse/XWIKI
with detail on how to reproduce it.

>
> Regards,
> Matthias
>
>
> Am 21.03.2016 um 15:33 schrieb Thomas Mortagne:
>>
>> Do you see anything in the log ?
>>
>> If that's a XAR you can safely share and its not too big you should
>> probably create an issue on http://jira.xwiki.org so that we could
>> reproduce it.
>>
>> On Mon, Mar 21, 2016 at 3:30 PM, Matthias Wegner 
>> wrote:
>>>
>>> IT teils Nothing. The right Circle Moves and it seems that it can not
>>> read. It shows no files.
>>>
>>> Regards, Matthias
>>>
>>> Von unterwegs gesendet
>>>
 Am 21.03.2016 um 11:51 schrieb Thomas Mortagne
 :

 What dos the UI tells you when you try to import ? Does it find
 documents in the XAR ?

> On Sun, Mar 20, 2016 at 9:58 PM, Matthias Wegner
>  wrote:
> Hi Users,
>
> i made a custom xar-file because i want to import some content into
> XWiki
> 8.0. But it seems to stuck. i can upload the file but it is never
> imported.
>
> The request.log show only
> 127.0.0.1 - - [20/Mrz/2016:20:51:39 +] "POST
> /xwiki/bin/upload/XWiki/XWikiPreferences HTTP/1.1" 302 -
> 127.0.0.1 - - [20/Mrz/2016:20:51:40 +] "GET
>
> /xwiki/bin/get/XWiki/XWikiPreferences?xpage=packagelist=1
> HTTP/1.1" 200 946
> 127.0.0.1 - - [20/Mrz/2016:20:51:41 +] "POST
>
> /xwiki/bin/get/XWiki/XWikiPreferences?xpage=packagedescriptor=B.xar
> HTTP/1.1" 200 133
>
> so i have no clue whats wrong. My created xml-files seem correct. Can i
> send
> you an example, so you can test why it is not working? I have no idea.
>
> Regards,
> Matthias
>
>
>
> --
> View this message in context:
> http://xwiki.475771.n2.nabble.com/XAR-Import-tp7598556.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



 --
 Thomas Mortagne
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
>>>
>>> ___
>>> users mailing list
>>> users@xwiki.org
>>> http://lists.xwiki.org/mailman/listinfo/users
>>
>>
>>
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XAR-Import

2016-03-21 Thread Matthias Wegner
Ha, ha. I just build a custom xar for you to reproduce the bug and 
compared it to an export from xwiki with the same content. And now i see 
the problem. I had the following structure:


THIS IS NOT WORKING
book.xar
 |_ package.xml
 |_Book
|_article1
|   |_WebHome.xml
|_article2
|_WebHome.xml

THIS IS WORKING
book.xar
 |_ package.xml
 |_Book
|_article1
|   |_WebHome.xml
|_article2
|   |_WebHome.xml
|_WebHome.xml

I missed the WebHome.xml of the "Space". In my Wiki this is empty, so it 
is in my opinion useless to import. But it seems that the importer can 
not handle the missing WebHome.xml of the space. I thought about an 
encoding-problem or something like that, but it was only a missing file. 
Maybe some exception would be great if the integrity of mandatory files 
or fields is not there. I had no clue where to look because no log shows 
any exception.


So, thanks for assistence. Your questions lead me the way ;)

Regards,
Matthias

Am 21.03.2016 um 15:33 schrieb Thomas Mortagne:

Do you see anything in the log ?

If that's a XAR you can safely share and its not too big you should
probably create an issue on http://jira.xwiki.org so that we could
reproduce it.

On Mon, Mar 21, 2016 at 3:30 PM, Matthias Wegner  wrote:

IT teils Nothing. The right Circle Moves and it seems that it can not read. It 
shows no files.

Regards, Matthias

Von unterwegs gesendet


Am 21.03.2016 um 11:51 schrieb Thomas Mortagne :

What dos the UI tells you when you try to import ? Does it find
documents in the XAR ?


On Sun, Mar 20, 2016 at 9:58 PM, Matthias Wegner  wrote:
Hi Users,

i made a custom xar-file because i want to import some content into XWiki
8.0. But it seems to stuck. i can upload the file but it is never imported.

The request.log show only
127.0.0.1 - - [20/Mrz/2016:20:51:39 +] "POST
/xwiki/bin/upload/XWiki/XWikiPreferences HTTP/1.1" 302 -
127.0.0.1 - - [20/Mrz/2016:20:51:40 +] "GET
/xwiki/bin/get/XWiki/XWikiPreferences?xpage=packagelist=1
HTTP/1.1" 200 946
127.0.0.1 - - [20/Mrz/2016:20:51:41 +] "POST
/xwiki/bin/get/XWiki/XWikiPreferences?xpage=packagedescriptor=B.xar
HTTP/1.1" 200 133

so i have no clue whats wrong. My created xml-files seem correct. Can i send
you an example, so you can test why it is not working? I have no idea.

Regards,
Matthias



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/XAR-Import-tp7598556.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users



--
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users





___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XAR-Import

2016-03-21 Thread Thomas Mortagne
Do you see anything in the log ?

If that's a XAR you can safely share and its not too big you should
probably create an issue on http://jira.xwiki.org so that we could
reproduce it.

On Mon, Mar 21, 2016 at 3:30 PM, Matthias Wegner  wrote:
> IT teils Nothing. The right Circle Moves and it seems that it can not read. 
> It shows no files.
>
> Regards, Matthias
>
> Von unterwegs gesendet
>
>> Am 21.03.2016 um 11:51 schrieb Thomas Mortagne :
>>
>> What dos the UI tells you when you try to import ? Does it find
>> documents in the XAR ?
>>
>>> On Sun, Mar 20, 2016 at 9:58 PM, Matthias Wegner  
>>> wrote:
>>> Hi Users,
>>>
>>> i made a custom xar-file because i want to import some content into XWiki
>>> 8.0. But it seems to stuck. i can upload the file but it is never imported.
>>>
>>> The request.log show only
>>> 127.0.0.1 - - [20/Mrz/2016:20:51:39 +] "POST
>>> /xwiki/bin/upload/XWiki/XWikiPreferences HTTP/1.1" 302 -
>>> 127.0.0.1 - - [20/Mrz/2016:20:51:40 +] "GET
>>> /xwiki/bin/get/XWiki/XWikiPreferences?xpage=packagelist=1
>>> HTTP/1.1" 200 946
>>> 127.0.0.1 - - [20/Mrz/2016:20:51:41 +] "POST
>>> /xwiki/bin/get/XWiki/XWikiPreferences?xpage=packagedescriptor=B.xar
>>> HTTP/1.1" 200 133
>>>
>>> so i have no clue whats wrong. My created xml-files seem correct. Can i send
>>> you an example, so you can test why it is not working? I have no idea.
>>>
>>> Regards,
>>> Matthias
>>>
>>>
>>>
>>> --
>>> View this message in context: 
>>> http://xwiki.475771.n2.nabble.com/XAR-Import-tp7598556.html
>>> Sent from the XWiki- Users mailing list archive at Nabble.com.
>>> ___
>>> users mailing list
>>> users@xwiki.org
>>> http://lists.xwiki.org/mailman/listinfo/users
>>
>>
>>
>> --
>> Thomas Mortagne
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XAR-Import

2016-03-21 Thread Matthias Wegner
IT teils Nothing. The right Circle Moves and it seems that it can not read. It 
shows no files.

Regards, Matthias

Von unterwegs gesendet

> Am 21.03.2016 um 11:51 schrieb Thomas Mortagne :
> 
> What dos the UI tells you when you try to import ? Does it find
> documents in the XAR ?
> 
>> On Sun, Mar 20, 2016 at 9:58 PM, Matthias Wegner  
>> wrote:
>> Hi Users,
>> 
>> i made a custom xar-file because i want to import some content into XWiki
>> 8.0. But it seems to stuck. i can upload the file but it is never imported.
>> 
>> The request.log show only
>> 127.0.0.1 - - [20/Mrz/2016:20:51:39 +] "POST
>> /xwiki/bin/upload/XWiki/XWikiPreferences HTTP/1.1" 302 -
>> 127.0.0.1 - - [20/Mrz/2016:20:51:40 +] "GET
>> /xwiki/bin/get/XWiki/XWikiPreferences?xpage=packagelist=1
>> HTTP/1.1" 200 946
>> 127.0.0.1 - - [20/Mrz/2016:20:51:41 +] "POST
>> /xwiki/bin/get/XWiki/XWikiPreferences?xpage=packagedescriptor=B.xar
>> HTTP/1.1" 200 133
>> 
>> so i have no clue whats wrong. My created xml-files seem correct. Can i send
>> you an example, so you can test why it is not working? I have no idea.
>> 
>> Regards,
>> Matthias
>> 
>> 
>> 
>> --
>> View this message in context: 
>> http://xwiki.475771.n2.nabble.com/XAR-Import-tp7598556.html
>> Sent from the XWiki- Users mailing list archive at Nabble.com.
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
> 
> 
> 
> -- 
> Thomas Mortagne
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XAR-Import

2016-03-21 Thread Thomas Mortagne
What dos the UI tells you when you try to import ? Does it find
documents in the XAR ?

On Sun, Mar 20, 2016 at 9:58 PM, Matthias Wegner  wrote:
> Hi Users,
>
> i made a custom xar-file because i want to import some content into XWiki
> 8.0. But it seems to stuck. i can upload the file but it is never imported.
>
> The request.log show only
> 127.0.0.1 - - [20/Mrz/2016:20:51:39 +] "POST
> /xwiki/bin/upload/XWiki/XWikiPreferences HTTP/1.1" 302 -
> 127.0.0.1 - - [20/Mrz/2016:20:51:40 +] "GET
> /xwiki/bin/get/XWiki/XWikiPreferences?xpage=packagelist=1
> HTTP/1.1" 200 946
> 127.0.0.1 - - [20/Mrz/2016:20:51:41 +] "POST
> /xwiki/bin/get/XWiki/XWikiPreferences?xpage=packagedescriptor=B.xar
> HTTP/1.1" 200 133
>
> so i have no clue whats wrong. My created xml-files seem correct. Can i send
> you an example, so you can test why it is not working? I have no idea.
>
> Regards,
> Matthias
>
>
>
> --
> View this message in context: 
> http://xwiki.475771.n2.nabble.com/XAR-Import-tp7598556.html
> Sent from the XWiki- Users mailing list archive at Nabble.com.
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] XAR-Import

2016-03-20 Thread Matthias Wegner
Hi Users,

i made a custom xar-file because i want to import some content into XWiki
8.0. But it seems to stuck. i can upload the file but it is never imported.

The request.log show only
127.0.0.1 - - [20/Mrz/2016:20:51:39 +] "POST
/xwiki/bin/upload/XWiki/XWikiPreferences HTTP/1.1" 302 - 
127.0.0.1 - - [20/Mrz/2016:20:51:40 +] "GET
/xwiki/bin/get/XWiki/XWikiPreferences?xpage=packagelist=1
HTTP/1.1" 200 946 
127.0.0.1 - - [20/Mrz/2016:20:51:41 +] "POST
/xwiki/bin/get/XWiki/XWikiPreferences?xpage=packagedescriptor=B.xar
HTTP/1.1" 200 133 

so i have no clue whats wrong. My created xml-files seem correct. Can i send
you an example, so you can test why it is not working? I have no idea.

Regards,
Matthias



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/XAR-Import-tp7598556.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XAR Export fails - Invalid white space character (0x1) in text to output

2016-02-23 Thread Peter John Acklam
Thanks everyone!

The problem has been solved, and the odd characters are gone.

The query didn't work without some modifications. I ended up using

select xwd_fullname from xwikidoc where xwd_content like '%' || chr(1) ||
'%';

(concat() only takes two operands, so it was easier to use ||. My sqlplus
tool didn't like "%" and char(1), so I had to use '%' and chr(1).)

After this character was removed, I got complaints about 0xf. The page was
identified with the equivalent query, but using chr(15).

I also had to remove some of the old versions from the page history. Oddly
enough, the queries still report that the odd characters are present in the
database, but exporting the entire wiki works fine now, so the odd
characters are no longer a problem.

By the way, the text with the odd characters had entered the wiki when text
had been copied an pasted from UNIX terminal windows.

Agan, thanks everyone for your invaluable help!

Peter
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XAR Export fails - Invalid white space character (0x1) in text to output

2016-02-23 Thread Paul Libbrecht
Hello all,

here would be the query:

select xwd_fullname from xwikidoc where xwd_content like
concat("%",char(1),"%");

(I've seen many indicate that || would be the concatenation operator,
but it seems like it is not the case in like operands)

Based on that, Peter, you should be able to filter things out.


Now, to the XML 1.1 export. In principle this is not a big deal, but we
should be clear on what it implies for parser libraries. The move to XML
1.1 has been more than frigid. Note also, that this support is pretty
limited (only  references).
I'd prefer if we find a way to get rid of such gremlins. To my
experience they are only the spurious result of copy and paste. One
particular family of documents where these gremlins happen are PDF
documents generated by TeX. The venerable typesetting had a tradition of
funky encoding, since it also had its own fonts and all that was far
before the move even to 16 bits.

I believe that the editor or the save process should remove anything
below ASCII 32 except CR, LF, and TAB.

Can the migration process be interactive to ask about them?
Should we "just" zap them or replace them by a character?
Does someone find a reason to keep them?

Paul

PS: the "gremlins" name here comes from BBEdit/TextWrangler who had a
function "Zap Gremlins" since a decade at least.


> Thomas Mortagne 
> 22 February 2016 at 14:10
> What I can say from the error is that the character is in a document
> content at least (not a title, or an object) but it does not help much
> reduce the scope.
>
> You could try to find it with a SQL request I guess, need to find how
> to search this specific character in a SQL request.
>
> On Mon, Feb 22, 2016 at 2:01 PM, Thomas Mortagne
>
>
>
> Thomas Mortagne 
> 22 February 2016 at 14:01
> On Mon, Feb 22, 2016 at 12:46 PM, Peter John Acklam  
> wrote:
>> Avoiding this problem in the future would be nice, but I already have this
>> character in my wiki, and I need to get rid of it. I don't know how it got
>> there, but more importantly, I need to find it, so I can remove it. With no
>> XAR export, we can't do our planned transision from an Oracle to a
>> PostgreSQL database.
>>
>> As for the discussion on markmail.org – I have registered there, but I
>> can't find anything on the webpage that allows me to take part in the
>> discussion.
>
> Yes you can't write from markmail, was probably not the best link to give :)
>
> I think you can sent mails from nabble (through
> http://dev.xwiki.org/xwiki/bin/view/Community/Forum or
> http://xwiki.475771.n2.nabble.com/Should-we-move-to-XML-1-1-in-XAR-td7598066.html).
>
>> Cheers,
>> Peter
>>
>>
>> 2016-02-22 12:15 GMT+01:00 Thomas Mortagne :
>>
>>> Starting a discussion on this subject on
>>> http://markmail.org/message/32vnzxchphr26phh.
>>>
>>> If you have more input on what is this character doing here please share
>>> there.
>>>
>>> On Mon, Feb 22, 2016 at 11:55 AM, Thomas Mortagne
>>>  wrote:
 Actually I do know why it's writting XML 1.0, that's because we tell it
>>> to...
 Did not know XML 1.0 was not supporting anything, I'm surprise we get
 this kind of report only know.

 Anyway thanks for the report, will take care of this.

 On Mon, Feb 22, 2016 at 11:31 AM, Thomas Mortagne
  wrote:
> What I understand from the error message is that Woodstox think it's
> writing XML 1.0 and looks like it's not possible to put anything you
> want in XML 1.0 but not sure why exactly. You happen to have a
> document containing some weird character (0x1) which is probably a
> mistake but still we should be able to export anything (especially
> when this anything can be stored in a String and in the database).
>
> In the meantime what you can try is to set the old exporter in
> xwiki.cfg (look at xwiki.action.export.xar.usewikistream property).
> Would be great if you could crate an issue on http://jira.xwiki.org
> with all the information you can gather about this bug.
>
>
> On Mon, Feb 22, 2016 at 10:18 AM, Peter John Acklam 
>>> wrote:
>> I can no longer make a XAR export of our wiki. The essential error
>>> message
>> in catalina.out seems to be
>>
>> "Invalid white space character (0x1) in text to output (in xml 1.1,
>>> could
>> output as a character entity)"
>>
>> Alas, there is no information about which wiki page contains this
>>> invalid
>> character. I can, of course, export parts of the wiki and repeat the
>> process until I find the offending page, but I suspect there has got
>>> to be
>> a more efficient way.
>>
>> The full, relevant section of catalina.out on our test server is
>>> included
>> below.
>>
>> Thanks in advance for any tips!
>>
>> Cheers,
>> Peter John 

Re: [xwiki-users] XAR Export fails - Invalid white space character (0x1) in text to output

2016-02-22 Thread Thomas Mortagne
What I can say from the error is that the character is in a document
content at least (not a title, or an object) but it does not help much
reduce the scope.

You could try to find it with a SQL request I guess, need to find how
to search this specific character in a SQL request.

On Mon, Feb 22, 2016 at 2:01 PM, Thomas Mortagne
 wrote:
> On Mon, Feb 22, 2016 at 12:46 PM, Peter John Acklam  
> wrote:
>> Avoiding this problem in the future would be nice, but I already have this
>> character in my wiki, and I need to get rid of it. I don't know how it got
>> there, but more importantly, I need to find it, so I can remove it. With no
>> XAR export, we can't do our planned transision from an Oracle to a
>> PostgreSQL database.
>>
>> As for the discussion on markmail.org – I have registered there, but I
>> can't find anything on the webpage that allows me to take part in the
>> discussion.
>
> Yes you can't write from markmail, was probably not the best link to give :)
>
> I think you can sent mails from nabble (through
> http://dev.xwiki.org/xwiki/bin/view/Community/Forum or
> http://xwiki.475771.n2.nabble.com/Should-we-move-to-XML-1-1-in-XAR-td7598066.html).
>
>>
>> Cheers,
>> Peter
>>
>>
>> 2016-02-22 12:15 GMT+01:00 Thomas Mortagne :
>>
>>> Starting a discussion on this subject on
>>> http://markmail.org/message/32vnzxchphr26phh.
>>>
>>> If you have more input on what is this character doing here please share
>>> there.
>>>
>>> On Mon, Feb 22, 2016 at 11:55 AM, Thomas Mortagne
>>>  wrote:
>>> > Actually I do know why it's writting XML 1.0, that's because we tell it
>>> to...
>>> >
>>> > Did not know XML 1.0 was not supporting anything, I'm surprise we get
>>> > this kind of report only know.
>>> >
>>> > Anyway thanks for the report, will take care of this.
>>> >
>>> > On Mon, Feb 22, 2016 at 11:31 AM, Thomas Mortagne
>>> >  wrote:
>>> >> What I understand from the error message is that Woodstox think it's
>>> >> writing XML 1.0 and looks like it's not possible to put anything you
>>> >> want in XML 1.0 but not sure why exactly. You happen to have a
>>> >> document containing some weird character (0x1) which is probably a
>>> >> mistake but still we should be able to export anything (especially
>>> >> when this anything can be stored in a String and in the database).
>>> >>
>>> >> In the meantime what you can try is to set the old exporter in
>>> >> xwiki.cfg (look at xwiki.action.export.xar.usewikistream property).
>>> >> Would be great if you could crate an issue on http://jira.xwiki.org
>>> >> with all the information you can gather about this bug.
>>> >>
>>> >>
>>> >> On Mon, Feb 22, 2016 at 10:18 AM, Peter John Acklam 
>>> wrote:
>>> >>> I can no longer make a XAR export of our wiki. The essential error
>>> message
>>> >>> in catalina.out seems to be
>>> >>>
>>> >>> "Invalid white space character (0x1) in text to output (in xml 1.1,
>>> could
>>> >>> output as a character entity)"
>>> >>>
>>> >>> Alas, there is no information about which wiki page contains this
>>> invalid
>>> >>> character. I can, of course, export parts of the wiki and repeat the
>>> >>> process until I find the offending page, but I suspect there has got
>>> to be
>>> >>> a more efficient way.
>>> >>>
>>> >>> The full, relevant section of catalina.out on our test server is
>>> included
>>> >>> below.
>>> >>>
>>> >>> Thanks in advance for any tips!
>>> >>>
>>> >>> Cheers,
>>> >>> Peter John Acklam
>>> >>>
>>> >>>
>>> >>> 2016-02-19 09:36:17,163 [
>>> >>>
>>> http://wiki-test/xwiki/bin/export/XWiki/XWikiPreferences?editor=globaladmin=Export
>>> ]
>>> >>> WARN c.x.x.w.XWikiAction - Uncaught exception: Error number 11015 in
>>> 11:
>>> >>> Exception while exporting
>>> >>> com.xpn.xwiki.XWikiException: Error number 11015 in 11: Exception while
>>> >>> exporting
>>> >>> at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:84)
>>> >>> ~[xwiki-platform-legacy-oldcore-7.4.1.jar:na]
>>> >>> at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:417)
>>> >>> [xwiki-platform-legacy-oldcore-7.4.1.jar:na]
>>> >>> at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:184)
>>> >>> [xwiki-platform-legacy-oldcore-7.4.1.jar:na]
>>> >>> at
>>> >>>
>>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
>>> >>> [struts-core-1.3.10.jar:1.3.10]
>>> >>> at
>>> >>>
>>> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
>>> >>> [struts-core-1.3.10.jar:1.3.10]
>>> >>> at
>>> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
>>> >>> [struts-core-1.3.10.jar:1.3.10]
>>> >>> at
>>> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
>>> >>> [struts-core-1.3.10.jar:1.3.10]
>>> >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
>>> >>> [servlet-api.jar:na]
>>> >>> at 

Re: [xwiki-users] XAR Export fails - Invalid white space character (0x1) in text to output

2016-02-22 Thread vinc...@massol.net
Hi Peter,

On 22 Feb 2016 at 12:46:33, Peter John Acklam 
(pjack...@gmail.com(mailto:pjack...@gmail.com)) wrote:

> Avoiding this problem in the future would be nice, but I already have this
> character in my wiki, and I need to get rid of it. I don't know how it got
> there, but more importantly, I need to find it, so I can remove it. With no
> XAR export, we can't do our planned transision from an Oracle to a
> PostgreSQL database.
>  
> As for the discussion on markmail.org – I have registered there, but I
> can't find anything on the webpage that allows me to take part in the
> discussion.

Just answering this part. Markmail is just an open archival of the xwiki 
mailing lists. You don’t need to register there (and it won’t do you any good 
to do so ;)).

The discussion you see on markmail are the one here on this list! ;)

If you wish to get an old message in your mail I guess you could use nabble 
(http://dev.xwiki.org/xwiki/bin/view/Community/Forum).

You could also ask for the list manager to get you the mail locally (we’re 
using mailman to manage the lists).

Thanks
-Vincent

> Cheers,
> Peter
>  
>  
> 2016-02-22 12:15 GMT+01:00 Thomas Mortagne :
>  
> > Starting a discussion on this subject on
> > http://markmail.org/message/32vnzxchphr26phh.
> >
> > If you have more input on what is this character doing here please share
> > there.
> >
> > On Mon, Feb 22, 2016 at 11:55 AM, Thomas Mortagne
> > wrote:
> > > Actually I do know why it's writting XML 1.0, that's because we tell it
> > to...
> > >
> > > Did not know XML 1.0 was not supporting anything, I'm surprise we get
> > > this kind of report only know.
> > >
> > > Anyway thanks for the report, will take care of this.
> > >
> > > On Mon, Feb 22, 2016 at 11:31 AM, Thomas Mortagne
> > > wrote:
> > >> What I understand from the error message is that Woodstox think it's
> > >> writing XML 1.0 and looks like it's not possible to put anything you
> > >> want in XML 1.0 but not sure why exactly. You happen to have a
> > >> document containing some weird character (0x1) which is probably a
> > >> mistake but still we should be able to export anything (especially
> > >> when this anything can be stored in a String and in the database).
> > >>
> > >> In the meantime what you can try is to set the old exporter in
> > >> xwiki.cfg (look at xwiki.action.export.xar.usewikistream property).
> > >> Would be great if you could crate an issue on http://jira.xwiki.org
> > >> with all the information you can gather about this bug.
> > >>
> > >>
> > >> On Mon, Feb 22, 2016 at 10:18 AM, Peter John Acklam  
> > wrote:
> > >>> I can no longer make a XAR export of our wiki. The essential error
> > message
> > >>> in catalina.out seems to be
> > >>>
> > >>> "Invalid white space character (0x1) in text to output (in xml 1.1,
> > could
> > >>> output as a character entity)"
> > >>>
> > >>> Alas, there is no information about which wiki page contains this
> > invalid
> > >>> character. I can, of course, export parts of the wiki and repeat the
> > >>> process until I find the offending page, but I suspect there has got
> > to be
> > >>> a more efficient way.
> > >>>
> > >>> The full, relevant section of catalina.out on our test server is
> > included
> > >>> below.
> > >>>
> > >>> Thanks in advance for any tips!
> > >>>
> > >>> Cheers,
> > >>> Peter John Acklam
> > >>>
> > >>>
> > >>> 2016-02-19 09:36:17,163 [
> > >>>
> > http://wiki-test/xwiki/bin/export/XWiki/XWikiPreferences?editor=globaladmin§ion=Export
> > ]
> > >>> WARN c.x.x.w.XWikiAction - Uncaught exception: Error number 11015 in
> > 11:
> > >>> Exception while exporting
> > >>> com.xpn.xwiki.XWikiException: Error number 11015 in 11: Exception while
> > >>> exporting
> > >>> at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:84)
> > >>> ~[xwiki-platform-legacy-oldcore-7.4.1.jar:na]
> > >>> at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:417)
> > >>> [xwiki-platform-legacy-oldcore-7.4.1.jar:na]
> > >>> at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:184)
> > >>> [xwiki-platform-legacy-oldcore-7.4.1.jar:na]
> > >>> at
> > >>>
> > org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
> > >>> [struts-core-1.3.10.jar:1.3.10]
> > >>> at
> > >>>
> > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
> > >>> [struts-core-1.3.10.jar:1.3.10]
> > >>> at
> > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
> > >>> [struts-core-1.3.10.jar:1.3.10]
> > >>> at
> > org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
> > >>> [struts-core-1.3.10.jar:1.3.10]
> > >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
> > >>> [servlet-api.jar:na]
> > >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
> > >>> [servlet-api.jar:na]
> > >>> at
> > >>>
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
> > >>> [catalina.jar:8.0.30]

Re: [xwiki-users] XAR Export fails - Invalid white space character (0x1) in text to output

2016-02-22 Thread Thomas Mortagne
On Mon, Feb 22, 2016 at 12:46 PM, Peter John Acklam  wrote:
> Avoiding this problem in the future would be nice, but I already have this
> character in my wiki, and I need to get rid of it. I don't know how it got
> there, but more importantly, I need to find it, so I can remove it. With no
> XAR export, we can't do our planned transision from an Oracle to a
> PostgreSQL database.
>
> As for the discussion on markmail.org – I have registered there, but I
> can't find anything on the webpage that allows me to take part in the
> discussion.

Yes you can't write from markmail, was probably not the best link to give :)

I think you can sent mails from nabble (through
http://dev.xwiki.org/xwiki/bin/view/Community/Forum or
http://xwiki.475771.n2.nabble.com/Should-we-move-to-XML-1-1-in-XAR-td7598066.html).

>
> Cheers,
> Peter
>
>
> 2016-02-22 12:15 GMT+01:00 Thomas Mortagne :
>
>> Starting a discussion on this subject on
>> http://markmail.org/message/32vnzxchphr26phh.
>>
>> If you have more input on what is this character doing here please share
>> there.
>>
>> On Mon, Feb 22, 2016 at 11:55 AM, Thomas Mortagne
>>  wrote:
>> > Actually I do know why it's writting XML 1.0, that's because we tell it
>> to...
>> >
>> > Did not know XML 1.0 was not supporting anything, I'm surprise we get
>> > this kind of report only know.
>> >
>> > Anyway thanks for the report, will take care of this.
>> >
>> > On Mon, Feb 22, 2016 at 11:31 AM, Thomas Mortagne
>> >  wrote:
>> >> What I understand from the error message is that Woodstox think it's
>> >> writing XML 1.0 and looks like it's not possible to put anything you
>> >> want in XML 1.0 but not sure why exactly. You happen to have a
>> >> document containing some weird character (0x1) which is probably a
>> >> mistake but still we should be able to export anything (especially
>> >> when this anything can be stored in a String and in the database).
>> >>
>> >> In the meantime what you can try is to set the old exporter in
>> >> xwiki.cfg (look at xwiki.action.export.xar.usewikistream property).
>> >> Would be great if you could crate an issue on http://jira.xwiki.org
>> >> with all the information you can gather about this bug.
>> >>
>> >>
>> >> On Mon, Feb 22, 2016 at 10:18 AM, Peter John Acklam 
>> wrote:
>> >>> I can no longer make a XAR export of our wiki. The essential error
>> message
>> >>> in catalina.out seems to be
>> >>>
>> >>> "Invalid white space character (0x1) in text to output (in xml 1.1,
>> could
>> >>> output as a character entity)"
>> >>>
>> >>> Alas, there is no information about which wiki page contains this
>> invalid
>> >>> character. I can, of course, export parts of the wiki and repeat the
>> >>> process until I find the offending page, but I suspect there has got
>> to be
>> >>> a more efficient way.
>> >>>
>> >>> The full, relevant section of catalina.out on our test server is
>> included
>> >>> below.
>> >>>
>> >>> Thanks in advance for any tips!
>> >>>
>> >>> Cheers,
>> >>> Peter John Acklam
>> >>>
>> >>>
>> >>> 2016-02-19 09:36:17,163 [
>> >>>
>> http://wiki-test/xwiki/bin/export/XWiki/XWikiPreferences?editor=globaladmin=Export
>> ]
>> >>> WARN c.x.x.w.XWikiAction - Uncaught exception: Error number 11015 in
>> 11:
>> >>> Exception while exporting
>> >>> com.xpn.xwiki.XWikiException: Error number 11015 in 11: Exception while
>> >>> exporting
>> >>> at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:84)
>> >>> ~[xwiki-platform-legacy-oldcore-7.4.1.jar:na]
>> >>> at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:417)
>> >>> [xwiki-platform-legacy-oldcore-7.4.1.jar:na]
>> >>> at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:184)
>> >>> [xwiki-platform-legacy-oldcore-7.4.1.jar:na]
>> >>> at
>> >>>
>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
>> >>> [struts-core-1.3.10.jar:1.3.10]
>> >>> at
>> >>>
>> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
>> >>> [struts-core-1.3.10.jar:1.3.10]
>> >>> at
>> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
>> >>> [struts-core-1.3.10.jar:1.3.10]
>> >>> at
>> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
>> >>> [struts-core-1.3.10.jar:1.3.10]
>> >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
>> >>> [servlet-api.jar:na]
>> >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
>> >>> [servlet-api.jar:na]
>> >>> at
>> >>>
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
>> >>> [catalina.jar:8.0.30]
>> >>> at
>> >>>
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>> >>> [catalina.jar:8.0.30]
>> >>> at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
>> >>> [xwiki-platform-legacy-oldcore-7.4.1.jar:na]
>> >>> 

Re: [xwiki-users] XAR Export fails - Invalid white space character (0x1) in text to output

2016-02-22 Thread Peter John Acklam
Avoiding this problem in the future would be nice, but I already have this
character in my wiki, and I need to get rid of it. I don't know how it got
there, but more importantly, I need to find it, so I can remove it. With no
XAR export, we can't do our planned transision from an Oracle to a
PostgreSQL database.

As for the discussion on markmail.org – I have registered there, but I
can't find anything on the webpage that allows me to take part in the
discussion.

Cheers,
Peter


2016-02-22 12:15 GMT+01:00 Thomas Mortagne :

> Starting a discussion on this subject on
> http://markmail.org/message/32vnzxchphr26phh.
>
> If you have more input on what is this character doing here please share
> there.
>
> On Mon, Feb 22, 2016 at 11:55 AM, Thomas Mortagne
>  wrote:
> > Actually I do know why it's writting XML 1.0, that's because we tell it
> to...
> >
> > Did not know XML 1.0 was not supporting anything, I'm surprise we get
> > this kind of report only know.
> >
> > Anyway thanks for the report, will take care of this.
> >
> > On Mon, Feb 22, 2016 at 11:31 AM, Thomas Mortagne
> >  wrote:
> >> What I understand from the error message is that Woodstox think it's
> >> writing XML 1.0 and looks like it's not possible to put anything you
> >> want in XML 1.0 but not sure why exactly. You happen to have a
> >> document containing some weird character (0x1) which is probably a
> >> mistake but still we should be able to export anything (especially
> >> when this anything can be stored in a String and in the database).
> >>
> >> In the meantime what you can try is to set the old exporter in
> >> xwiki.cfg (look at xwiki.action.export.xar.usewikistream property).
> >> Would be great if you could crate an issue on http://jira.xwiki.org
> >> with all the information you can gather about this bug.
> >>
> >>
> >> On Mon, Feb 22, 2016 at 10:18 AM, Peter John Acklam 
> wrote:
> >>> I can no longer make a XAR export of our wiki. The essential error
> message
> >>> in catalina.out seems to be
> >>>
> >>> "Invalid white space character (0x1) in text to output (in xml 1.1,
> could
> >>> output as a character entity)"
> >>>
> >>> Alas, there is no information about which wiki page contains this
> invalid
> >>> character. I can, of course, export parts of the wiki and repeat the
> >>> process until I find the offending page, but I suspect there has got
> to be
> >>> a more efficient way.
> >>>
> >>> The full, relevant section of catalina.out on our test server is
> included
> >>> below.
> >>>
> >>> Thanks in advance for any tips!
> >>>
> >>> Cheers,
> >>> Peter John Acklam
> >>>
> >>>
> >>> 2016-02-19 09:36:17,163 [
> >>>
> http://wiki-test/xwiki/bin/export/XWiki/XWikiPreferences?editor=globaladmin=Export
> ]
> >>> WARN c.x.x.w.XWikiAction - Uncaught exception: Error number 11015 in
> 11:
> >>> Exception while exporting
> >>> com.xpn.xwiki.XWikiException: Error number 11015 in 11: Exception while
> >>> exporting
> >>> at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:84)
> >>> ~[xwiki-platform-legacy-oldcore-7.4.1.jar:na]
> >>> at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:417)
> >>> [xwiki-platform-legacy-oldcore-7.4.1.jar:na]
> >>> at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:184)
> >>> [xwiki-platform-legacy-oldcore-7.4.1.jar:na]
> >>> at
> >>>
> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
> >>> [struts-core-1.3.10.jar:1.3.10]
> >>> at
> >>>
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
> >>> [struts-core-1.3.10.jar:1.3.10]
> >>> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
> >>> [struts-core-1.3.10.jar:1.3.10]
> >>> at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
> >>> [struts-core-1.3.10.jar:1.3.10]
> >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
> >>> [servlet-api.jar:na]
> >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
> >>> [servlet-api.jar:na]
> >>> at
> >>>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
> >>> [catalina.jar:8.0.30]
> >>> at
> >>>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >>> [catalina.jar:8.0.30]
> >>> at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
> >>> [xwiki-platform-legacy-oldcore-7.4.1.jar:na]
> >>> at
> >>>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
> >>> [catalina.jar:8.0.30]
> >>> at
> >>>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> >>> [catalina.jar:8.0.30]
> >>> at
> >>>
> org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
> >>> [xwiki-platform-wysiwyg-server-7.4.1.jar:na]
> >>> at
> >>>
> 

Re: [xwiki-users] XAR Export fails - Invalid white space character (0x1) in text to output

2016-02-22 Thread Thomas Mortagne
Starting a discussion on this subject on
http://markmail.org/message/32vnzxchphr26phh.

If you have more input on what is this character doing here please share there.

On Mon, Feb 22, 2016 at 11:55 AM, Thomas Mortagne
 wrote:
> Actually I do know why it's writting XML 1.0, that's because we tell it to...
>
> Did not know XML 1.0 was not supporting anything, I'm surprise we get
> this kind of report only know.
>
> Anyway thanks for the report, will take care of this.
>
> On Mon, Feb 22, 2016 at 11:31 AM, Thomas Mortagne
>  wrote:
>> What I understand from the error message is that Woodstox think it's
>> writing XML 1.0 and looks like it's not possible to put anything you
>> want in XML 1.0 but not sure why exactly. You happen to have a
>> document containing some weird character (0x1) which is probably a
>> mistake but still we should be able to export anything (especially
>> when this anything can be stored in a String and in the database).
>>
>> In the meantime what you can try is to set the old exporter in
>> xwiki.cfg (look at xwiki.action.export.xar.usewikistream property).
>> Would be great if you could crate an issue on http://jira.xwiki.org
>> with all the information you can gather about this bug.
>>
>>
>> On Mon, Feb 22, 2016 at 10:18 AM, Peter John Acklam  
>> wrote:
>>> I can no longer make a XAR export of our wiki. The essential error message
>>> in catalina.out seems to be
>>>
>>> "Invalid white space character (0x1) in text to output (in xml 1.1, could
>>> output as a character entity)"
>>>
>>> Alas, there is no information about which wiki page contains this invalid
>>> character. I can, of course, export parts of the wiki and repeat the
>>> process until I find the offending page, but I suspect there has got to be
>>> a more efficient way.
>>>
>>> The full, relevant section of catalina.out on our test server is included
>>> below.
>>>
>>> Thanks in advance for any tips!
>>>
>>> Cheers,
>>> Peter John Acklam
>>>
>>>
>>> 2016-02-19 09:36:17,163 [
>>> http://wiki-test/xwiki/bin/export/XWiki/XWikiPreferences?editor=globaladmin=Export]
>>> WARN c.x.x.w.XWikiAction - Uncaught exception: Error number 11015 in 11:
>>> Exception while exporting
>>> com.xpn.xwiki.XWikiException: Error number 11015 in 11: Exception while
>>> exporting
>>> at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:84)
>>> ~[xwiki-platform-legacy-oldcore-7.4.1.jar:na]
>>> at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:417)
>>> [xwiki-platform-legacy-oldcore-7.4.1.jar:na]
>>> at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:184)
>>> [xwiki-platform-legacy-oldcore-7.4.1.jar:na]
>>> at
>>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
>>> [struts-core-1.3.10.jar:1.3.10]
>>> at
>>> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
>>> [struts-core-1.3.10.jar:1.3.10]
>>> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
>>> [struts-core-1.3.10.jar:1.3.10]
>>> at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
>>> [struts-core-1.3.10.jar:1.3.10]
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
>>> [servlet-api.jar:na]
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
>>> [servlet-api.jar:na]
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
>>> [catalina.jar:8.0.30]
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>> [catalina.jar:8.0.30]
>>> at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
>>> [xwiki-platform-legacy-oldcore-7.4.1.jar:na]
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
>>> [catalina.jar:8.0.30]
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>> [catalina.jar:8.0.30]
>>> at
>>> org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
>>> [xwiki-platform-wysiwyg-server-7.4.1.jar:na]
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
>>> [catalina.jar:8.0.30]
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>> [catalina.jar:8.0.30]
>>> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>>> [tomcat-websocket.jar:8.0.30]
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
>>> [catalina.jar:8.0.30]
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>> [catalina.jar:8.0.30]
>>> at
>>> org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
>>> [xwiki-platform-container-servlet-7.4.1.jar:na]
>>> at
>>> 

Re: [xwiki-users] XAR Export fails - Invalid white space character (0x1) in text to output

2016-02-22 Thread Thomas Mortagne
Actually I do know why it's writting XML 1.0, that's because we tell it to...

Did not know XML 1.0 was not supporting anything, I'm surprise we get
this kind of report only know.

Anyway thanks for the report, will take care of this.

On Mon, Feb 22, 2016 at 11:31 AM, Thomas Mortagne
 wrote:
> What I understand from the error message is that Woodstox think it's
> writing XML 1.0 and looks like it's not possible to put anything you
> want in XML 1.0 but not sure why exactly. You happen to have a
> document containing some weird character (0x1) which is probably a
> mistake but still we should be able to export anything (especially
> when this anything can be stored in a String and in the database).
>
> In the meantime what you can try is to set the old exporter in
> xwiki.cfg (look at xwiki.action.export.xar.usewikistream property).
> Would be great if you could crate an issue on http://jira.xwiki.org
> with all the information you can gather about this bug.
>
>
> On Mon, Feb 22, 2016 at 10:18 AM, Peter John Acklam  
> wrote:
>> I can no longer make a XAR export of our wiki. The essential error message
>> in catalina.out seems to be
>>
>> "Invalid white space character (0x1) in text to output (in xml 1.1, could
>> output as a character entity)"
>>
>> Alas, there is no information about which wiki page contains this invalid
>> character. I can, of course, export parts of the wiki and repeat the
>> process until I find the offending page, but I suspect there has got to be
>> a more efficient way.
>>
>> The full, relevant section of catalina.out on our test server is included
>> below.
>>
>> Thanks in advance for any tips!
>>
>> Cheers,
>> Peter John Acklam
>>
>>
>> 2016-02-19 09:36:17,163 [
>> http://wiki-test/xwiki/bin/export/XWiki/XWikiPreferences?editor=globaladmin=Export]
>> WARN c.x.x.w.XWikiAction - Uncaught exception: Error number 11015 in 11:
>> Exception while exporting
>> com.xpn.xwiki.XWikiException: Error number 11015 in 11: Exception while
>> exporting
>> at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:84)
>> ~[xwiki-platform-legacy-oldcore-7.4.1.jar:na]
>> at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:417)
>> [xwiki-platform-legacy-oldcore-7.4.1.jar:na]
>> at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:184)
>> [xwiki-platform-legacy-oldcore-7.4.1.jar:na]
>> at
>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
>> [struts-core-1.3.10.jar:1.3.10]
>> at
>> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
>> [struts-core-1.3.10.jar:1.3.10]
>> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
>> [struts-core-1.3.10.jar:1.3.10]
>> at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
>> [struts-core-1.3.10.jar:1.3.10]
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
>> [servlet-api.jar:na]
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
>> [servlet-api.jar:na]
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
>> [catalina.jar:8.0.30]
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>> [catalina.jar:8.0.30]
>> at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
>> [xwiki-platform-legacy-oldcore-7.4.1.jar:na]
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
>> [catalina.jar:8.0.30]
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>> [catalina.jar:8.0.30]
>> at
>> org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
>> [xwiki-platform-wysiwyg-server-7.4.1.jar:na]
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
>> [catalina.jar:8.0.30]
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>> [catalina.jar:8.0.30]
>> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>> [tomcat-websocket.jar:8.0.30]
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
>> [catalina.jar:8.0.30]
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>> [catalina.jar:8.0.30]
>> at
>> org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
>> [xwiki-platform-container-servlet-7.4.1.jar:na]
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
>> [catalina.jar:8.0.30]
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>> [catalina.jar:8.0.30]
>> at
>> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
>> [xwiki-platform-webdav-server-7.4.1.jar:na]
>> at

Re: [xwiki-users] XAR Export fails - Invalid white space character (0x1) in text to output

2016-02-22 Thread Thomas Mortagne
What I understand from the error message is that Woodstox think it's
writing XML 1.0 and looks like it's not possible to put anything you
want in XML 1.0 but not sure why exactly. You happen to have a
document containing some weird character (0x1) which is probably a
mistake but still we should be able to export anything (especially
when this anything can be stored in a String and in the database).

In the meantime what you can try is to set the old exporter in
xwiki.cfg (look at xwiki.action.export.xar.usewikistream property).
Would be great if you could crate an issue on http://jira.xwiki.org
with all the information you can gather about this bug.


On Mon, Feb 22, 2016 at 10:18 AM, Peter John Acklam  wrote:
> I can no longer make a XAR export of our wiki. The essential error message
> in catalina.out seems to be
>
> "Invalid white space character (0x1) in text to output (in xml 1.1, could
> output as a character entity)"
>
> Alas, there is no information about which wiki page contains this invalid
> character. I can, of course, export parts of the wiki and repeat the
> process until I find the offending page, but I suspect there has got to be
> a more efficient way.
>
> The full, relevant section of catalina.out on our test server is included
> below.
>
> Thanks in advance for any tips!
>
> Cheers,
> Peter John Acklam
>
>
> 2016-02-19 09:36:17,163 [
> http://wiki-test/xwiki/bin/export/XWiki/XWikiPreferences?editor=globaladmin=Export]
> WARN c.x.x.w.XWikiAction - Uncaught exception: Error number 11015 in 11:
> Exception while exporting
> com.xpn.xwiki.XWikiException: Error number 11015 in 11: Exception while
> exporting
> at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:84)
> ~[xwiki-platform-legacy-oldcore-7.4.1.jar:na]
> at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:417)
> [xwiki-platform-legacy-oldcore-7.4.1.jar:na]
> at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:184)
> [xwiki-platform-legacy-oldcore-7.4.1.jar:na]
> at
> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
> [struts-core-1.3.10.jar:1.3.10]
> at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
> [struts-core-1.3.10.jar:1.3.10]
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
> [struts-core-1.3.10.jar:1.3.10]
> at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
> [struts-core-1.3.10.jar:1.3.10]
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
> [servlet-api.jar:na]
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
> [servlet-api.jar:na]
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
> [catalina.jar:8.0.30]
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> [catalina.jar:8.0.30]
> at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
> [xwiki-platform-legacy-oldcore-7.4.1.jar:na]
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
> [catalina.jar:8.0.30]
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> [catalina.jar:8.0.30]
> at
> org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
> [xwiki-platform-wysiwyg-server-7.4.1.jar:na]
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
> [catalina.jar:8.0.30]
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> [catalina.jar:8.0.30]
> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> [tomcat-websocket.jar:8.0.30]
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
> [catalina.jar:8.0.30]
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> [catalina.jar:8.0.30]
> at
> org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
> [xwiki-platform-container-servlet-7.4.1.jar:na]
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
> [catalina.jar:8.0.30]
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> [catalina.jar:8.0.30]
> at
> com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
> [xwiki-platform-webdav-server-7.4.1.jar:na]
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
> [catalina.jar:8.0.30]
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> [catalina.jar:8.0.30]
> at
> org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
> [xwiki-platform-container-servlet-7.4.1.jar:na]
> at
> 

[xwiki-users] XAR Export fails - Invalid white space character (0x1) in text to output

2016-02-22 Thread Peter John Acklam
I can no longer make a XAR export of our wiki. The essential error message
in catalina.out seems to be

"Invalid white space character (0x1) in text to output (in xml 1.1, could
output as a character entity)"

Alas, there is no information about which wiki page contains this invalid
character. I can, of course, export parts of the wiki and repeat the
process until I find the offending page, but I suspect there has got to be
a more efficient way.

The full, relevant section of catalina.out on our test server is included
below.

Thanks in advance for any tips!

Cheers,
Peter John Acklam


2016-02-19 09:36:17,163 [
http://wiki-test/xwiki/bin/export/XWiki/XWikiPreferences?editor=globaladmin=Export]
WARN c.x.x.w.XWikiAction - Uncaught exception: Error number 11015 in 11:
Exception while exporting
com.xpn.xwiki.XWikiException: Error number 11015 in 11: Exception while
exporting
at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:84)
~[xwiki-platform-legacy-oldcore-7.4.1.jar:na]
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:417)
[xwiki-platform-legacy-oldcore-7.4.1.jar:na]
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:184)
[xwiki-platform-legacy-oldcore-7.4.1.jar:na]
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
[struts-core-1.3.10.jar:1.3.10]
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
[struts-core-1.3.10.jar:1.3.10]
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
[struts-core-1.3.10.jar:1.3.10]
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
[struts-core-1.3.10.jar:1.3.10]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
[servlet-api.jar:na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
[servlet-api.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
[catalina.jar:8.0.30]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[catalina.jar:8.0.30]
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:115)
[xwiki-platform-legacy-oldcore-7.4.1.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
[catalina.jar:8.0.30]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[catalina.jar:8.0.30]
at
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:127)
[xwiki-platform-wysiwyg-server-7.4.1.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
[catalina.jar:8.0.30]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[catalina.jar:8.0.30]
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
[tomcat-websocket.jar:8.0.30]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
[catalina.jar:8.0.30]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[catalina.jar:8.0.30]
at
org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
[xwiki-platform-container-servlet-7.4.1.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
[catalina.jar:8.0.30]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[catalina.jar:8.0.30]
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
[xwiki-platform-webdav-server-7.4.1.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
[catalina.jar:8.0.30]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[catalina.jar:8.0.30]
at
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
[xwiki-platform-container-servlet-7.4.1.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
[catalina.jar:8.0.30]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[catalina.jar:8.0.30]
at
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
[xwiki-platform-container-servlet-7.4.1.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
[catalina.jar:8.0.30]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
[catalina.jar:8.0.30]
at
org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:137)
[xwiki-platform-resource-servlet-7.4.1.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
[catalina.jar:8.0.30]
at

Re: [xwiki-users] XAR

2015-09-18 Thread Peter Huisman
Hi Eduard,

Thanks for the explanation and the links.

I am not looking for the Java way since we already have a XML exporter in place 
that is exporting the information in our environment (which is heavily object 
based) in a way that can be used by third parties. This is the way we are 
looking for a more final solution. We were looking for an easy and quick 
(intermediate) solution to bridge the gap so to speak.

The strange thing is, that I use google to search extensively for things before 
i ask for info in this group. I was somewhat surprised to see the link (no 7) 
which is exactly what I needed! I thank you again for the help and I’m sorry 
that I have not been able to find it myself.

Br,

Peter

> Hi Peter,
> 
> Of course, though you might want to think a bit on the approach.
> 
> 1) If you want to do it in XWiki using the scheduler plugin, you have to
> write some groovy script [1] in the scheduled task that you create in order
> to use the filter module [2] (or the old packager module [3], whichever you
> choose) in order to export the pages you are interested in and save the
> result (on the filesystem or as an attachment in a page).
> 
> As inspiration, you could check out the source code (in java) of the export
> action [4] which is exactly what is going on when you are exporting a page
> from the UI.
> 
> 2) A simpler choice, IMO, would be to schedule a cron [5] task on a linux
> machine (possible the same one running the XWiki instance) and have that
> task simply download (using something like cURL [6]) the result of a
> manually crafter export URL (as detailed in our documentation [7])
> containing the list of pages to export.
> 
> Hope this helps,
> Eduard
> 
> --
> [1] http://platform.xwiki.org/xwiki/bin/view/DevGuide/Scripting
> [2] http://extensions.xwiki.org/xwiki/bin/view/Extension/Filter+Module
> [3]
> https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/plugin/packaging/PackageAPI.java
> [4]
> https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/web/ExportAction.java#L244
> [5] https://en.wikipedia.org/wiki/Cron
> [6] https://en.wikipedia.org/wiki/CURL
> [7] http://platform.xwiki.org/xwiki/bin/view/Features/Exports#HXARExport
> 
> 
> On Thu, Sep 17, 2015 at 3:49 PM, Peter Huisman  wrote:
> 
>> Hi,
>> 
>> Is there a way to generate XAR’s using XWiki’s scheduling function? I’m
>> not looking for a DB based backup but merely for a backup of spaces / pages.
>> 
>> With kind regards,
>> 
>> Peter
>> ___
>> users mailing list
>> users@xwiki.org
>> http://lists.xwiki.org/mailman/listinfo/users
>> 
> 

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XAR

2015-09-18 Thread Eduard Moraru
Hi,

Glad to be able to help :)

On Fri, Sep 18, 2015 at 11:10 AM, Peter Huisman  wrote:

> Hi Eduard,
>
> Thanks for the explanation and the links.
>
> I am not looking for the Java way since we already have a XML exporter in
> place that is exporting the information in our environment (which is
> heavily object based) in a way that can be used by third parties. This is
> the way we are looking for a more final solution. We were looking for an
> easy and quick (intermediate) solution to bridge the gap so to speak.
>
> The strange thing is, that I use google to search extensively for things
> before i ask for info in this group. I was somewhat surprised to see the
> link (no 7) which is exactly what I needed! I thank you again for the help
> and I’m sorry that I have not been able to find it myself.
>

We always are in need of and appreciate any help on the documentation side.
If you feel you could add anything that could make it easier to understand
or even easier to find on a Google search, please go ahead. It`s a wiki and
you are welcomed to edit away :)

Thanks,
Eduard


>
> Br,
>
> Peter
>
> > Hi Peter,
> >
> > Of course, though you might want to think a bit on the approach.
> >
> > 1) If you want to do it in XWiki using the scheduler plugin, you have to
> > write some groovy script [1] in the scheduled task that you create in
> order
> > to use the filter module [2] (or the old packager module [3], whichever
> you
> > choose) in order to export the pages you are interested in and save the
> > result (on the filesystem or as an attachment in a page).
> >
> > As inspiration, you could check out the source code (in java) of the
> export
> > action [4] which is exactly what is going on when you are exporting a
> page
> > from the UI.
> >
> > 2) A simpler choice, IMO, would be to schedule a cron [5] task on a linux
> > machine (possible the same one running the XWiki instance) and have that
> > task simply download (using something like cURL [6]) the result of a
> > manually crafter export URL (as detailed in our documentation [7])
> > containing the list of pages to export.
> >
> > Hope this helps,
> > Eduard
> >
> > --
> > [1] http://platform.xwiki.org/xwiki/bin/view/DevGuide/Scripting
> > [2] http://extensions.xwiki.org/xwiki/bin/view/Extension/Filter+Module
> > [3]
> >
> https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/plugin/packaging/PackageAPI.java
> > [4]
> >
> https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/web/ExportAction.java#L244
> > [5] https://en.wikipedia.org/wiki/Cron
> > [6] https://en.wikipedia.org/wiki/CURL
> > [7] http://platform.xwiki.org/xwiki/bin/view/Features/Exports#HXARExport
> >
> >
> > On Thu, Sep 17, 2015 at 3:49 PM, Peter Huisman 
> wrote:
> >
> >> Hi,
> >>
> >> Is there a way to generate XAR’s using XWiki’s scheduling function? I’m
> >> not looking for a DB based backup but merely for a backup of spaces /
> pages.
> >>
> >> With kind regards,
> >>
> >> Peter
> >> ___
> >> users mailing list
> >> users@xwiki.org
> >> http://lists.xwiki.org/mailman/listinfo/users
> >>
> >
>
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] XAR

2015-09-17 Thread Peter Huisman
Hi,

Is there a way to generate XAR’s using XWiki’s scheduling function? I’m not 
looking for a DB based backup but merely for a backup of spaces / pages.

With kind regards,

Peter
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XAR

2015-09-17 Thread Eduard Moraru
Hi Peter,

Of course, though you might want to think a bit on the approach.

1) If you want to do it in XWiki using the scheduler plugin, you have to
write some groovy script [1] in the scheduled task that you create in order
to use the filter module [2] (or the old packager module [3], whichever you
choose) in order to export the pages you are interested in and save the
result (on the filesystem or as an attachment in a page).

As inspiration, you could check out the source code (in java) of the export
action [4] which is exactly what is going on when you are exporting a page
from the UI.

2) A simpler choice, IMO, would be to schedule a cron [5] task on a linux
machine (possible the same one running the XWiki instance) and have that
task simply download (using something like cURL [6]) the result of a
manually crafter export URL (as detailed in our documentation [7])
containing the list of pages to export.

Hope this helps,
Eduard

--
[1] http://platform.xwiki.org/xwiki/bin/view/DevGuide/Scripting
[2] http://extensions.xwiki.org/xwiki/bin/view/Extension/Filter+Module
[3]
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/plugin/packaging/PackageAPI.java
[4]
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/web/ExportAction.java#L244
[5] https://en.wikipedia.org/wiki/Cron
[6] https://en.wikipedia.org/wiki/CURL
[7] http://platform.xwiki.org/xwiki/bin/view/Features/Exports#HXARExport


On Thu, Sep 17, 2015 at 3:49 PM, Peter Huisman  wrote:

> Hi,
>
> Is there a way to generate XAR’s using XWiki’s scheduling function? I’m
> not looking for a DB based backup but merely for a backup of spaces / pages.
>
> With kind regards,
>
> Peter
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XAR

2015-04-22 Thread Thomas Mortagne
Impossible to tell you why without more details like what error do you
get etc. If you don't see anything in the UI please look at the log.

Given the size of you XAR file it's probably a memory issue.

On Tue, Apr 21, 2015 at 5:44 PM, Maciej Fokt maciek.f...@taxi123.pl wrote:
 Hello,

 I tried to make a backup of spaces. I made (I think correctly) backup of one
 of space... and I deleted this space. Now I can't import this backup .xar
 file... Why?!
 File weight: 16.9 MB

 Please tell me why..

 Greetings,
 Maciek.
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users



-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] XAR

2015-04-21 Thread Maciej Fokt

Hello,

I tried to make a backup of spaces. I made (I think correctly) backup of  
one of space... and I deleted this space. Now I can't import this backup  
.xar file... Why?!

File weight: 16.9 MB

Please tell me why..

Greetings,
Maciek.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] XAR Export/Import Issues - JIRA XWIKI-1926

2008-10-17 Thread Deven Phillips
Vincent,

I was already on the mailing list, I just haven't been keeping up 
lately.

May I start off with a few questions?

1. Does XWiki use the Google XAR API unchanged?
2. Where should I post patches? Here? JIRA?

Thanks,

Deven
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] XAR Export/Import Issues - JIRA XWIKI-1926

2008-10-17 Thread Vincent Massol
Hi Deven,

On Oct 17, 2008, at 4:21 PM, Deven Phillips wrote:

 Vincent,

I was already on the mailing list, I just haven't been keeping up
 lately.

 May I start off with a few questions?

 1. Does XWiki use the Google XAR API unchanged?

We're not using the google XAR api at all :)

XAR means XWiki ARchive and it's just a zip with a package.xml listing  
the content of the zip.

Each xwiki page is represented in XML in the XAR.


 2. Where should I post patches? Here? JIRA?

JIRA.

Thanks
-Vincent

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users