>> ________________________________________
>> From: users-bounces(a)xwiki.org [users-bounces(a)xwiki.org] On Behalf Of mohit gupta
[motgupta(a)gmail.com]
>> Sent: 20 March 2012 09:46
>> To: XWiki Users
>> Subject: Re: [xwiki-users] java heap out of memory error during import of 72MB
XAR file?
>>
>> Hi Recardo,
>>
>> At step 6 i.e the moment i save code snippet, gets below error.Looks like
>> there a issue in code snippet. Can you send it as attachment, if you have
>> it or pint me to correct code snippet location.Thanks in advance.
I can send it to you as an attachment, of course, but it is the snipet available here...
But it is not a good idea to copy/paste original code in different locations! The best
idea is to discuss and, if needed contribute changes to the XWiki location.
>>
>> *Wrapped Exception:*
>>
>> * org.apache.velocity.runtime.parser.TemplateParseException: Encountered
>> ":395)rntat org.apache.velocity.util.introspection.UberspectImpl" at
>> xwiki:MySpace.ImportXAR**line 46, column
>>
106?*<https://localhost/fipwiki/bin/edit/FIP/line+46%2C+column+106?parent=FIP.ImportXAR>
>> * Was expecting one of: "[" … "," … ")" …
<WHITESPACE> ...*
Please, what editor are you using? As stated in the Install section, you must use Wiki
Editor, not WYSIWYG one.
I've no clue about the error. WTW, is this the same XWiki installation where you are
having problems with admin password? Is it finally working fine?
Could you try to save any other Groovy snippet? Could you try, for instance, to run Large
Wiki Export?
It is available here...
>>
>> * *at org.apache.velocity.runtime.parser.Parser.parse(Parser.java:131) at
>> org.apache.velocity.runtime.RuntimeInstance.parse(RuntimeInstance.java:1226)
>> at
>>
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:179)
>> at
>>
org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:152)
>> at
>>
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:117)
>> at
>> com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:94)
>> at
>>
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:291)
>> at
>>
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:221)
>>
>> On Tue, Mar 20, 2012 at 4:11 AM, <
>> Ricardo.Julio.Rodriguez.Fernandez(a)sergas.es> wrote:
Hi!
> ________________________________________
> From: users-bounces(a)xwiki.org [users-bounces(a)xwiki.org] On Behalf Of
mohit
gupta [motgupta(a)gmail.com]
> Sent: 19 March 2012 18:28
> To: XWiki Users
> Subject: Re: [xwiki-users] java heap out of memory error during import
of 72MB
XAR file?
>
> Thanks Ricardo for reply. But want to confirm few questions about how to
> install it.I would be really grateful if you can answer them. Let me
tell
> you what i did
>
> 1)Create a new page with name myImportXARPage
> 2)Then i put the complete code snippet given at
>
http://extensions.xwiki.org/xwiki/bin/view/Extension/Large+XAR+Importunder
> this page. But pagge looks totally weird and dont know how to proceed
with
> this. PFA the screenshot of that.
> It would be helpful if you can let me know how to exactly follow the
steps
> at
http://extensions.xwiki.org/xwiki/bin/view/Extension/Large+XAR+Import.
> Like in install section it says *Edit a page
in wiki mode, make sure the
> syntax of the page is xwiki/1.0 and save it. * i am not sure which page
> needs to be edited.
You have to create a new XWiki document, let's say,
YourSpace/myImportXARPage. As it probably doesn't exist on your wiki, the
system will offer you the posibility to create it. Thus, create it! And do
it using XWiki 1.0 syntax! The easiest and simples way of doing this is:
1. Copy the code of the snippet. It is available at
http://extensions.xwiki.org/xwiki/bin/view/Extension/Large+XAR+Import#HSnip…
2. Login with an admin account in your system.
3. Point your browser to the new page. Let's say
http://yourhostname/bin/ICT/yourImportXARPage
4. Edit the page, select XWiki 1.0 as Page Syntax (right column).
5. Paste the code of the snippet and save it.
6. You must see, more or less, this...
http://atriumkm.idisantiago.es/bin/download/ICT/Images/myImportXARPage.png
> Then in* how to use * section it says
> *Once installed, indicate the full server file system path of the XAR
you
> wish to import. A confirmation will be asked.
*
Well, this is self-explaining!
> What needs to be installed here and where i
am expected to mention the
path
> of XAR file. At One place it also says *The
snippet requires programming
> rights to run.* Whatexactly needs to be run.
Nothing to be installed! XWiki is a great framework that a allows you to
develop great application at presentation level! Thus, in this case, you
have only to copy and paste the snippet code to have a great application to
import big XARs.
> Sorry Ricardo, too many questions here, but
really looking what are the
> exact steps to execute this code snippet. Again thanks for your
patience.
Glad to be useful! i do hope other correct me if I'm wrong at any
step/comment! Thanks to eveybody!
HTH!
Ricardo
>
> On Mon, Mar 19, 2012 at 1:38 AM, <
> Ricardo.Julio.Rodriguez.Fernandez(a)sergas.es> wrote:
Hi!
Have you tried this?
http://extensions.xwiki.org/xwiki/bin/view/Extension/Large+XAR+Import
HTH!
Ricardo
________________________________________
From: users-bounces(a)xwiki.org [users-bounces(a)xwiki.org] On Behalf Of
mohit gupta [motgupta(a)gmail.com]
Sent: 18 March 2012 13:26
To: XWiki Users
Subject: [xwiki-users] java heap out of memory error during import of
72MB
XAR file?
I have XAR file of 72MB . When i Import it thru XWI UI i get java heap
out
of memory error. I have mentioened the value of
JAVA_OPTS
as -Xms1024m -Xmx1024m. My hardware specification is 32 bit windows
operating system and 4 GB RAM. and using the tomcat as webserver.
If i increase the value of JAVA_OPTS to -Xms1536m -Xmx1536m, tomcat does
not even start(Probably reason is 32 bit operating system and
4 GB RAM). I can not increase change the server configuration
somehow.How should i go about resolving this issue?
The only thing i can take help for now is do all the set up stuff on
8GB
machine and do restore of database on 4GB
machine.
But again i am worried with some repurcussion of this approach i.e if
there is a deltion/rename of some column etc ,
on new xwiki version an. then it will be hard time for me to restore the
databse.
Looking for quick response. i am sure you guys also must had faced this
issue in past. Kindly share your experiences
For your information same xar file gets imported on 64 bit operating
system and 8GB RAM but how should i successfully resolve
import of 72MB XAR file on 32 bit OS and 4 GB RAM? i can not upgrade
this
client machine due to some restrictions.
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Nota: A informaci?n contida nesta mensaxe e os seus posibles documentos
adxuntos ? privada e confidencial e est? dirixida ?nicamente ? seu
destinatario/a. Se vostede non ? o/a destinatario/a orixinal desta
mensaxe,
por favor elim?nea. A distribuci?n ou copia desta
mensaxe non est?
autorizada.
Nota: La informaci?n contenida en este mensaje y sus posibles documentos
adjuntos es privada y confidencial y est? dirigida ?nicamente a su
destinatario/a. Si usted no es el/la destinatario/a original de este
mensaje, por favor elim?nelo. La distribuci?n o copia de este mensaje no
est? autorizada.
See more languages:
http://www.sergas.es/aviso_confidencialidad.htm
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Nota: A informaci?n contida nesta mensaxe e os seus posibles documentos
adxuntos ? privada e confidencial e est? dirixida ?nicamente ? seu
destinatario/a. Se vostede non ? o/a destinatario/a orixinal desta mensaxe,
por favor elim?nea. A distribuci?n ou copia desta mensaxe non est?
autorizada.
Nota: La informaci?n contenida en este mensaje y sus posibles documentos
adjuntos es privada y confidencial y est? dirigida ?nicamente a su
destinatario/a. Si usted no es el/la destinatario/a original de este
mensaje, por favor elim?nelo. La distribuci?n o copia de este mensaje no
est? autorizada.
See more languages:
http://www.sergas.es/aviso_confidencialidad.htm
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
Nota: A información contida nesta mensaxe e os seus posibles documentos adxuntos é privada
e confidencial e está dirixida únicamente ó seu destinatario/a. Se vostede non é o/a
destinatario/a orixinal desta mensaxe, por favor elimínea. A distribución ou copia desta
mensaxe non está autorizada.
Nota: La información contenida en este mensaje y sus posibles documentos adjuntos es
privada y confidencial y está dirigida únicamente a su destinatario/a. Si usted no es
el/la destinatario/a original de este mensaje, por favor elimínelo. La distribución o
copia de este mensaje no está autorizada.
See more languages: