[xwiki-users] Encoding problems with Export
Hi all, We tried xwiki a month ago with the standalone vertion including jetty and hsqldb. And now we changed jetty to Tomcat for better performances which is easy. However, we also want to change the database from hsqldb to mysql because the there is a database size limit for hsqldb. But it is difficult. We tried to export the wiki pages (including the user registration infomation), however the pages with chinese characters as their names has encoding problems, that is, their contents are all right in utf8, however the names have disordered codes. We also tried to use the Large Wiki Export, but got no lucky. It simply doest work at all :( Any suggestions? Thank you all!
On Wed, Oct 26, 2011 at 4:18 PM, Yang Li <[email protected]> wrote:
Hi all,
We tried xwiki a month ago with the standalone vertion including jetty and hsqldb. And now we changed jetty to Tomcat for better performances which is easy. However, we also want to change the database from hsqldb to mysql because the there is a database size limit for hsqldb. But it is difficult. We tried to export the wiki pages (including the user registration infomation), however the pages with chinese characters as their names has encoding problems, that is, their contents are all right in utf8, however the names have disordered codes.
You sure your MySQL database use UTF8 charset ? Where exactly to you see that page names are wrong ? After importing the xar ? In the xar itself ?
We also tried to use the Large Wiki Export, but got no lucky. It simply doest work at all :(
What error do you get ? Note that if you are able to export your wiki with standard export UI there is no reason to use large export script which is here only when the wiki is too big for the allocated memory.
Any suggestions?
Thank you all! _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
于 2011/10/27 1:16, Thomas Mortagne 写道:
On Wed, Oct 26, 2011 at 4:18 PM, Yang Li<[email protected]> wrote:
Hi all,
We tried xwiki a month ago with the standalone vertion including jetty and hsqldb. And now we changed jetty to Tomcat for better performances which is easy. However, we also want to change the database from hsqldb to mysql because the there is a database size limit for hsqldb. But it is difficult. We tried to export the wiki pages (including the user registration infomation), however the pages with chinese characters as their names has encoding problems, that is, their contents are all right in utf8, however the names have disordered codes. You sure your MySQL database use UTF8 charset ?
Where exactly to you see that page names are wrong ? After importing the xar ? In the xar itself ?
MySQL use utf8 for sure. After exporting the xar, I use winrar to open the xar files, where the page name are wrong. However, when they are imported into the xwiki, the names become right.
We also tried to use the Large Wiki Export, but got no lucky. It simply doest work at all :( What error do you get ?
Note that if you are able to export your wiki with standard export UI there is no reason to use large export script which is here only when the wiki is too big for the allocated memory.
The reason is that I want to change the database from hsqldb to mysql, and I can export but I cannot import from the standard import UI. The large wiki import worked once....and now doesn't work any more, which drives me mad : (
Any suggestions?
Thank you all! _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
On Wed, Oct 26, 2011 at 7:22 PM, Yang Li <[email protected]> wrote:
于 2011/10/27 1:16, Thomas Mortagne 写道:
On Wed, Oct 26, 2011 at 4:18 PM, Yang Li<[email protected]> wrote:
Hi all,
We tried xwiki a month ago with the standalone vertion including jetty and hsqldb. And now we changed jetty to Tomcat for better performances which is easy. However, we also want to change the database from hsqldb to mysql because the there is a database size limit for hsqldb. But it is difficult. We tried to export the wiki pages (including the user registration infomation), however the pages with chinese characters as their names has encoding problems, that is, their contents are all right in utf8, however the names have disordered codes. You sure your MySQL database use UTF8 charset ?
Where exactly to you see that page names are wrong ? After importing the xar ? In the xar itself ?
MySQL use utf8 for sure. After exporting the xar, I use winrar to open the xar files, where the page name are wrong.
If you are talking about the files names they could be anything it's not very important, the real page name is in each xml file.
However, when they are imported into the xwiki, the names become right.
We also tried to use the Large Wiki Export, but got no lucky. It simply doest work at all :( What error do you get ?
Note that if you are able to export your wiki with standard export UI there is no reason to use large export script which is here only when the wiki is too big for the allocated memory.
The reason is that I want to change the database from hsqldb to mysql, and I can export but I cannot import from the standard import UI.
The large wiki import worked once....and now doesn't work any more, which drives me mad : (
Same question: any error ? You should get some log of the import on server side.
Any suggestions?
Thank you all! _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
于 2011/10/27 16:24, Thomas Mortagne 写道:
On Wed, Oct 26, 2011 at 7:22 PM, Yang Li<[email protected]> wrote:
于 2011/10/27 1:16, Thomas Mortagne 写道:
On Wed, Oct 26, 2011 at 4:18 PM, Yang Li<[email protected]> wrote:
Hi all,
We tried xwiki a month ago with the standalone vertion including jetty and hsqldb. And now we changed jetty to Tomcat for better performances which is easy. However, we also want to change the database from hsqldb to mysql because the there is a database size limit for hsqldb. But it is difficult. We tried to export the wiki pages (including the user registration infomation), however the pages with chinese characters as their names has encoding problems, that is, their contents are all right in utf8, however the names have disordered codes. You sure your MySQL database use UTF8 charset ?
Where exactly to you see that page names are wrong ? After importing the xar ? In the xar itself ?
MySQL use utf8 for sure. After exporting the xar, I use winrar to open the xar files, where the page name are wrong. If you are talking about the files names they could be anything it's not very important, the real page name is in each xml file.
However, when they are imported into the xwiki, the names become right.
We also tried to use the Large Wiki Export, but got no lucky. It simply doest work at all :( What error do you get ?
Note that if you are able to export your wiki with standard export UI there is no reason to use large export script which is here only when the wiki is too big for the allocated memory.
The reason is that I want to change the database from hsqldb to mysql, and I can export but I cannot import from the standard import UI.
The large wiki import worked once....and now doesn't work any more, which drives me mad : ( Same question: any error ? You should get some log of the import on server side.
Any suggestions?
Thank you all! _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
I have such items in my logs, do you know why? 严重: The web application [/xwiki] created a ThreadLocal with key of type [org.jboss.cache.invocation.InvocationContextContainer] (value [org.jboss.cache.invocation.InvocationContextContainer@17bb813]) and a value of type [org.jboss.cache.invocation.MVCCInvocationContext] (value [InvocationContext{transaction=null, globalTransaction=null, transactionContext=null, optionOverrides=Option{failSilently=false, cacheModeLocal=false, dataVersion=null, suppressLocking=false, lockAcquisitionTimeout=-1, forceDataGravitation=false, skipDataGravitation=false, forceAsynchronous=false, forceSynchronous=false, suppressPersistence=false, suppressEventNotification=false}, originLocal=true, bypassUnmarshalling=false}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. I am running xwiki with tomcat/mysql. Thanks!
On Thu, Oct 27, 2011 at 1:14 PM, Yang Li <[email protected]> wrote:
于 2011/10/27 16:24, Thomas Mortagne 写道:
On Wed, Oct 26, 2011 at 7:22 PM, Yang Li<[email protected]> wrote:
于 2011/10/27 1:16, Thomas Mortagne 写道:
On Wed, Oct 26, 2011 at 4:18 PM, Yang Li<[email protected]> wrote:
Hi all,
We tried xwiki a month ago with the standalone vertion including jetty and hsqldb. And now we changed jetty to Tomcat for better performances which is easy. However, we also want to change the database from hsqldb to mysql because the there is a database size limit for hsqldb. But it is difficult. We tried to export the wiki pages (including the user registration infomation), however the pages with chinese characters as their names has encoding problems, that is, their contents are all right in utf8, however the names have disordered codes. You sure your MySQL database use UTF8 charset ?
Where exactly to you see that page names are wrong ? After importing the xar ? In the xar itself ?
MySQL use utf8 for sure. After exporting the xar, I use winrar to open the xar files, where the page name are wrong. If you are talking about the files names they could be anything it's not very important, the real page name is in each xml file.
However, when they are imported into the xwiki, the names become right.
We also tried to use the Large Wiki Export, but got no lucky. It simply doest work at all :( What error do you get ?
Note that if you are able to export your wiki with standard export UI there is no reason to use large export script which is here only when the wiki is too big for the allocated memory.
The reason is that I want to change the database from hsqldb to mysql, and I can export but I cannot import from the standard import UI.
The large wiki import worked once....and now doesn't work any more, which drives me mad : ( Same question: any error ? You should get some log of the import on server side.
Any suggestions?
Thank you all! _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
I have such items in my logs, do you know why?
严重: The web application [/xwiki] created a ThreadLocal with key of type [org.jboss.cache.invocation.InvocationContextContainer] (value [org.jboss.cache.invocation.InvocationContextContainer@17bb813]) and a value of type [org.jboss.cache.invocation.MVCCInvocationContext] (value [InvocationContext{transaction=null, globalTransaction=null, transactionContext=null, optionOverrides=Option{failSilently=false, cacheModeLocal=false, dataVersion=null, suppressLocking=false, lockAcquisitionTimeout=-1, forceDataGravitation=false, skipDataGravitation=false, forceAsynchronous=false, forceSynchronous=false, suppressPersistence=false, suppressEventNotification=false}, originLocal=true, bypassUnmarshalling=false}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
Not really but I doubt you get that during import. Looks like an error when tomcat is stopping.
I am running xwiki with tomcat/mysql. Thanks! _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
于 2011/10/27 19:39, Thomas Mortagne 写道:
On Thu, Oct 27, 2011 at 1:14 PM, Yang Li<[email protected]> wrote:
于 2011/10/27 16:24, Thomas Mortagne 写道:
On Wed, Oct 26, 2011 at 7:22 PM, Yang Li<[email protected]> wrote:
于 2011/10/27 1:16, Thomas Mortagne 写道:
On Wed, Oct 26, 2011 at 4:18 PM, Yang Li<[email protected]> wrote:
Hi all,
We tried xwiki a month ago with the standalone vertion including jetty and hsqldb. And now we changed jetty to Tomcat for better performances which is easy. However, we also want to change the database from hsqldb to mysql because the there is a database size limit for hsqldb. But it is difficult. We tried to export the wiki pages (including the user registration infomation), however the pages with chinese characters as their names has encoding problems, that is, their contents are all right in utf8, however the names have disordered codes. You sure your MySQL database use UTF8 charset ?
Where exactly to you see that page names are wrong ? After importing the xar ? In the xar itself ?
MySQL use utf8 for sure. After exporting the xar, I use winrar to open the xar files, where the page name are wrong. If you are talking about the files names they could be anything it's not very important, the real page name is in each xml file.
However, when they are imported into the xwiki, the names become right.
We also tried to use the Large Wiki Export, but got no lucky. It simply doest work at all :( What error do you get ?
Note that if you are able to export your wiki with standard export UI there is no reason to use large export script which is here only when the wiki is too big for the allocated memory.
The reason is that I want to change the database from hsqldb to mysql, and I can export but I cannot import from the standard import UI.
The large wiki import worked once....and now doesn't work any more, which drives me mad : ( Same question: any error ? You should get some log of the import on server side.
Any suggestions?
Thank you all! _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
I have such items in my logs, do you know why?
严重: The web application [/xwiki] created a ThreadLocal with key of type [org.jboss.cache.invocation.InvocationContextContainer] (value [org.jboss.cache.invocation.InvocationContextContainer@17bb813]) and a value of type [org.jboss.cache.invocation.MVCCInvocationContext] (value [InvocationContext{transaction=null, globalTransaction=null, transactionContext=null, optionOverrides=Option{failSilently=false, cacheModeLocal=false, dataVersion=null, suppressLocking=false, lockAcquisitionTimeout=-1, forceDataGravitation=false, skipDataGravitation=false, forceAsynchronous=false, forceSynchronous=false, suppressPersistence=false, suppressEventNotification=false}, originLocal=true, bypassUnmarshalling=false}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. Not really but I doubt you get that during import. Looks like an error when tomcat is stopping.
Yes, when I tried to import something into xe3.1 with the Large Wiki Import script, nothing happens, and the page just refreshed... When I tried the same thing on xe3.2 with exactly the same Large Wiki Import script with the xar file in the tomcat working direction, a table showed up and warned me about "overide with version, overide without version...", and it worked. Very tricky. I also tried other extensions like ExportImport and tried the export by date and so on, non of them worked. So, these memory leak problems are not that important, right? Besides, I have some questions. When I tried the standalone xe, I found there was a long startup time, usually up to 10 minutes and took up more memory. However, the xe ran fast after the startup. I wounder whether it is because of the hsqldb that has to be loaded into the memory. Because when I transferred to MySQL, I find less memory are needed and a faster startup time (less than 1 minutes). However, a little bit slower performance. Besides, pages with the activity macro are slow to load, including the profile page. Our XE is running on Windows Server 2003 (x86), with 4 processors and 8G memory. Tomcat 7.0.22 and MySQL5.5.17-win32 and Java 1.6
I am running xwiki with tomcat/mysql. Thanks! _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
On Thu, Oct 27, 2011 at 2:54 PM, Yang Li <[email protected]> wrote:
于 2011/10/27 19:39, Thomas Mortagne 写道:
On Thu, Oct 27, 2011 at 1:14 PM, Yang Li<[email protected]> wrote:
于 2011/10/27 16:24, Thomas Mortagne 写道:
On Wed, Oct 26, 2011 at 7:22 PM, Yang Li<[email protected]> wrote:
于 2011/10/27 1:16, Thomas Mortagne 写道:
On Wed, Oct 26, 2011 at 4:18 PM, Yang Li<[email protected]> wrote: > Hi all, > > We tried xwiki a month ago with the standalone vertion including jetty > and hsqldb. And now we changed jetty to Tomcat for better performances > which is easy. However, we also want to change the database from hsqldb > to mysql because the there is a database size limit for hsqldb. But it > is difficult. We tried to export the wiki pages (including the user > registration infomation), however the pages with chinese characters as > their names has encoding problems, that is, their contents are all right > in utf8, however the names have disordered codes. You sure your MySQL database use UTF8 charset ?
Where exactly to you see that page names are wrong ? After importing the xar ? In the xar itself ?
MySQL use utf8 for sure. After exporting the xar, I use winrar to open the xar files, where the page name are wrong. If you are talking about the files names they could be anything it's not very important, the real page name is in each xml file.
However, when they are imported into the xwiki, the names become right.
> We also tried to use the Large Wiki Export, but got no lucky. It simply > doest work at all :( What error do you get ?
Note that if you are able to export your wiki with standard export UI there is no reason to use large export script which is here only when the wiki is too big for the allocated memory.
The reason is that I want to change the database from hsqldb to mysql, and I can export but I cannot import from the standard import UI.
The large wiki import worked once....and now doesn't work any more, which drives me mad : ( Same question: any error ? You should get some log of the import on server side.
> Any suggestions? > > Thank you all! > _______________________________________________ > users mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/users >
users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
I have such items in my logs, do you know why?
严重: The web application [/xwiki] created a ThreadLocal with key of type [org.jboss.cache.invocation.InvocationContextContainer] (value [org.jboss.cache.invocation.InvocationContextContainer@17bb813]) and a value of type [org.jboss.cache.invocation.MVCCInvocationContext] (value [InvocationContext{transaction=null, globalTransaction=null, transactionContext=null, optionOverrides=Option{failSilently=false, cacheModeLocal=false, dataVersion=null, suppressLocking=false, lockAcquisitionTimeout=-1, forceDataGravitation=false, skipDataGravitation=false, forceAsynchronous=false, forceSynchronous=false, suppressPersistence=false, suppressEventNotification=false}, originLocal=true, bypassUnmarshalling=false}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. Not really but I doubt you get that during import. Looks like an error when tomcat is stopping.
Yes, when I tried to import something into xe3.1 with the Large Wiki Import script, nothing happens, and the page just refreshed... When I tried the same thing on xe3.2 with exactly the same Large Wiki Import script with the xar file in the tomcat working direction, a table showed up and warned me about "overide with version, overide without version...", and it worked.
this script is supposed to tell you all it did so theses messages are normal. What weird is that you get nothing, it's supposed to log everything its doing so when it does work you should get informations on the log.
Very tricky. I also tried other extensions like ExportImport and tried the export by date and so on, non of them worked.
So, these memory leak problems are not that important, right?
Besides, I have some questions. When I tried the standalone xe, I found there was a long startup time, usually up to 10 minutes and took up more memory. However, the xe ran fast after the startup. I wounder whether it is because of the hsqldb that has to be loaded into the memory. Because when I transferred to MySQL, I find less memory are needed and a faster startup time (less than 1 minutes). However, a little bit slower performance.
Yes as far as I know hsqldb run fully in memory with the configuration we are using so if it's big it could probably take a long time to load and could take more memory I guess.
Besides, pages with the activity macro are slow to load, including the profile page.
Our XE is running on Windows Server 2003 (x86), with 4 processors and 8G memory. Tomcat 7.0.22 and MySQL5.5.17-win32 and Java 1.6
I am running xwiki with tomcat/mysql. Thanks! _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
于 2011/10/27 21:38, Thomas Mortagne 写道:
this script is supposed to tell you all it did so theses messages are normal. What weird is that you get nothing, it's supposed to log everything its doing so when it does work you should get informations on the log.
I checked tomcat7-stderr.2011-10-27.txt and localhost_access_log.2011-10-27.txt when I tried to import something with LargeWikiImport page, nothing wrong was logged. It seems XE doesn't find the targeted xar file, just a guess...
2011/10/27 Yang Li <[email protected]>:
于 2011/10/27 21:38, Thomas Mortagne 写道:
this script is supposed to tell you all it did so theses messages are normal. What weird is that you get nothing, it's supposed to log everything its doing so when it does work you should get informations on the log.
I checked tomcat7-stderr.2011-10-27.txt and localhost_access_log.2011-10-27.txt when I tried to import something with LargeWikiImport page, nothing wrong was logged.
Could you check catalina.out ?
It seems XE doesn't find the targeted xar file, just a guess... _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
于 2011/10/27 22:20, Thomas Mortagne 写道:
2011/10/27 Yang Li <[email protected]>:
于 2011/10/27 21:38, Thomas Mortagne 写道:
this script is supposed to tell you all it did so theses messages are normal. What weird is that you get nothing, it's supposed to log everything its doing so when it does work you should get informations on the log.
I checked tomcat7-stderr.2011-10-27.txt and localhost_access_log.2011-10-27.txt when I tried to import something with LargeWikiImport page, nothing wrong was logged. Could you check catalina.out ?
*In the localhost_access_log.2011-10-27* 10.92.1.226 - - [27/Oct/2011:02:09:22 +0800] "GET /xwiki/bin/view/XWiki/LargeWikiImport HTTP/1.1" 200 5991 10.92.1.226 - - [27/Oct/2011:02:09:22 +0800] "POST /xwiki/bin/get/XWiki/LargeWikiImport?xpage=xpart&vm=commentsinline.vm HTTP/1.1" 200 1589 10.92.1.226 - - [27/Oct/2011:02:09:35 +0800] "POST /xwiki/bin/view/XWiki/LargeWikiImport HTTP/1.1" 200 6258 10.92.1.226 - - [27/Oct/2011:02:09:35 +0800] "POST /xwiki/bin/get/XWiki/LargeWikiImport?xpage=xpart&vm=commentsinline.vm HTTP/1.1" 200 1589 10.92.1.226 - - [27/Oct/2011:02:16:02 +0800] "POST /xwiki/bin/view/XWiki/LargeWikiImport HTTP/1.1" 200 15563 10.92.1.226 - - [27/Oct/2011:02:16:03 +0800] "POST /xwiki/bin/get/XWiki/LargeWikiImport?xpage=xpart&vm=commentsinline.vm HTTP/1.1" 200 1584 10.92.1.226 - - [27/Oct/2011:02:16:47 +0800] "GET /xwiki/bin/view/Main/WebHome HTTP/1.1" 200 8490 *In the catalina.2011-10-27.log* 2011-10-27 2:06:37 org.apache.catalina.startup.Catalina start 信息: Server startup in 9075 ms 2011-10-27 2:18:47 org.apache.catalina.core.AprLifecycleListener init 信息: Loaded APR based Apache Tomcat Native library 1.1.22. Nothing is logged during 2:09-2:16 in catalina.2011-10-27. Besides the "POST" seems to contain no filename of my xar file?
It seems XE doesn't find the targeted xar file, just a guess... _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
2011/10/28 Yang Li <[email protected]>:
于 2011/10/27 22:20, Thomas Mortagne 写道:
2011/10/27 Yang Li <[email protected]>:
于 2011/10/27 21:38, Thomas Mortagne 写道:
this script is supposed to tell you all it did so theses messages are normal. What weird is that you get nothing, it's supposed to log everything its doing so when it does work you should get informations on the log.
I checked tomcat7-stderr.2011-10-27.txt and localhost_access_log.2011-10-27.txt when I tried to import something with LargeWikiImport page, nothing wrong was logged. Could you check catalina.out ?
*In the localhost_access_log.2011-10-27*
10.92.1.226 - - [27/Oct/2011:02:09:22 +0800] "GET /xwiki/bin/view/XWiki/LargeWikiImport HTTP/1.1" 200 5991 10.92.1.226 - - [27/Oct/2011:02:09:22 +0800] "POST /xwiki/bin/get/XWiki/LargeWikiImport?xpage=xpart&vm=commentsinline.vm HTTP/1.1" 200 1589 10.92.1.226 - - [27/Oct/2011:02:09:35 +0800] "POST /xwiki/bin/view/XWiki/LargeWikiImport HTTP/1.1" 200 6258 10.92.1.226 - - [27/Oct/2011:02:09:35 +0800] "POST /xwiki/bin/get/XWiki/LargeWikiImport?xpage=xpart&vm=commentsinline.vm HTTP/1.1" 200 1589 10.92.1.226 - - [27/Oct/2011:02:16:02 +0800] "POST /xwiki/bin/view/XWiki/LargeWikiImport HTTP/1.1" 200 15563 10.92.1.226 - - [27/Oct/2011:02:16:03 +0800] "POST /xwiki/bin/get/XWiki/LargeWikiImport?xpage=xpart&vm=commentsinline.vm HTTP/1.1" 200 1584 10.92.1.226 - - [27/Oct/2011:02:16:47 +0800] "GET /xwiki/bin/view/Main/WebHome HTTP/1.1" 200 8490
*In the catalina.2011-10-27.log*
2011-10-27 2:06:37 org.apache.catalina.startup.Catalina start 信息: Server startup in 9075 ms 2011-10-27 2:18:47 org.apache.catalina.core.AprLifecycleListener init 信息: Loaded APR based Apache Tomcat Native library 1.1.22.
Nothing is logged during 2:09-2:16 in catalina.2011-10-27. Besides the "POST" seems to contain no filename of my xar file?
I just aded a System.out.println("Start importing file [" + file + "]"); at the beginning of the script to that you can make sure where the log really is and what the script tries to do when you get nothing.
It seems XE doesn't find the targeted xar file, just a guess... _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
于 2011/10/28 15:02, Thomas Mortagne 写道:
2011/10/28 Yang Li <[email protected]>:
于 2011/10/27 22:20, Thomas Mortagne 写道:
2011/10/27 Yang Li <[email protected]>:
于 2011/10/27 21:38, Thomas Mortagne 写道:
this script is supposed to tell you all it did so theses messages are normal. What weird is that you get nothing, it's supposed to log everything its doing so when it does work you should get informations on the log.
I checked tomcat7-stderr.2011-10-27.txt and localhost_access_log.2011-10-27.txt when I tried to import something with LargeWikiImport page, nothing wrong was logged. Could you check catalina.out ?
*In the localhost_access_log.2011-10-27*
10.92.1.226 - - [27/Oct/2011:02:09:22 +0800] "GET /xwiki/bin/view/XWiki/LargeWikiImport HTTP/1.1" 200 5991 10.92.1.226 - - [27/Oct/2011:02:09:22 +0800] "POST /xwiki/bin/get/XWiki/LargeWikiImport?xpage=xpart&vm=commentsinline.vm HTTP/1.1" 200 1589 10.92.1.226 - - [27/Oct/2011:02:09:35 +0800] "POST /xwiki/bin/view/XWiki/LargeWikiImport HTTP/1.1" 200 6258 10.92.1.226 - - [27/Oct/2011:02:09:35 +0800] "POST /xwiki/bin/get/XWiki/LargeWikiImport?xpage=xpart&vm=commentsinline.vm HTTP/1.1" 200 1589 10.92.1.226 - - [27/Oct/2011:02:16:02 +0800] "POST /xwiki/bin/view/XWiki/LargeWikiImport HTTP/1.1" 200 15563 10.92.1.226 - - [27/Oct/2011:02:16:03 +0800] "POST /xwiki/bin/get/XWiki/LargeWikiImport?xpage=xpart&vm=commentsinline.vm HTTP/1.1" 200 1584 10.92.1.226 - - [27/Oct/2011:02:16:47 +0800] "GET /xwiki/bin/view/Main/WebHome HTTP/1.1" 200 8490
*In the catalina.2011-10-27.log*
2011-10-27 2:06:37 org.apache.catalina.startup.Catalina start 信息: Server startup in 9075 ms 2011-10-27 2:18:47 org.apache.catalina.core.AprLifecycleListener init 信息: Loaded APR based Apache Tomcat Native library 1.1.22.
Nothing is logged during 2:09-2:16 in catalina.2011-10-27. Besides the "POST" seems to contain no filename of my xar file? I just aded a
System.out.println("Start importing file [" + file + "]");
at the beginning of the script to that you can make sure where the log really is and what the script tries to do when you get nothing.
I got nothing...maybe the execution stops before System.out.println("Start importing file [" + file + "]"); ?
It seems XE doesn't find the targeted xar file, just a guess... _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
2011/10/28 Yang Li <[email protected]>:
于 2011/10/28 15:02, Thomas Mortagne 写道:
2011/10/28 Yang Li <[email protected]>:
于 2011/10/27 22:20, Thomas Mortagne 写道:
2011/10/27 Yang Li <[email protected]>:
于 2011/10/27 21:38, Thomas Mortagne 写道:
this script is supposed to tell you all it did so theses messages are normal. What weird is that you get nothing, it's supposed to log everything its doing so when it does work you should get informations on the log.
I checked tomcat7-stderr.2011-10-27.txt and localhost_access_log.2011-10-27.txt when I tried to import something with LargeWikiImport page, nothing wrong was logged. Could you check catalina.out ?
*In the localhost_access_log.2011-10-27*
10.92.1.226 - - [27/Oct/2011:02:09:22 +0800] "GET /xwiki/bin/view/XWiki/LargeWikiImport HTTP/1.1" 200 5991 10.92.1.226 - - [27/Oct/2011:02:09:22 +0800] "POST /xwiki/bin/get/XWiki/LargeWikiImport?xpage=xpart&vm=commentsinline.vm HTTP/1.1" 200 1589 10.92.1.226 - - [27/Oct/2011:02:09:35 +0800] "POST /xwiki/bin/view/XWiki/LargeWikiImport HTTP/1.1" 200 6258 10.92.1.226 - - [27/Oct/2011:02:09:35 +0800] "POST /xwiki/bin/get/XWiki/LargeWikiImport?xpage=xpart&vm=commentsinline.vm HTTP/1.1" 200 1589 10.92.1.226 - - [27/Oct/2011:02:16:02 +0800] "POST /xwiki/bin/view/XWiki/LargeWikiImport HTTP/1.1" 200 15563 10.92.1.226 - - [27/Oct/2011:02:16:03 +0800] "POST /xwiki/bin/get/XWiki/LargeWikiImport?xpage=xpart&vm=commentsinline.vm HTTP/1.1" 200 1584 10.92.1.226 - - [27/Oct/2011:02:16:47 +0800] "GET /xwiki/bin/view/Main/WebHome HTTP/1.1" 200 8490
*In the catalina.2011-10-27.log*
2011-10-27 2:06:37 org.apache.catalina.startup.Catalina start 信息: Server startup in 9075 ms 2011-10-27 2:18:47 org.apache.catalina.core.AprLifecycleListener init 信息: Loaded APR based Apache Tomcat Native library 1.1.22.
Nothing is logged during 2:09-2:16 in catalina.2011-10-27. Besides the "POST" seems to contain no filename of my xar file? I just aded a
System.out.println("Start importing file [" + file + "]");
at the beginning of the script to that you can make sure where the log really is and what the script tries to do when you get nothing.
I got nothing...maybe the execution stops before
System.out.println("Start importing file [" + file + "]");
?
I doubt that, there is nothing except the code to get the file from the request before that. What do you do exactly ?
It seems XE doesn't find the targeted xar file, just a guess... _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
于 2011/10/28 16:28, Thomas Mortagne 写道:
2011/10/28 Yang Li <[email protected]>:
于 2011/10/28 15:02, Thomas Mortagne 写道:
2011/10/28 Yang Li <[email protected]>:
于 2011/10/27 22:20, Thomas Mortagne 写道:
2011/10/27 Yang Li <[email protected]>:
于 2011/10/27 21:38, Thomas Mortagne 写道: > this script is supposed to tell you all it did so theses messages are > normal. What weird is that you get nothing, it's supposed to log > everything its doing so when it does work you should get informations > on the log. > I checked tomcat7-stderr.2011-10-27.txt and localhost_access_log.2011-10-27.txt when I tried to import something with LargeWikiImport page, nothing wrong was logged. Could you check catalina.out ?
*In the localhost_access_log.2011-10-27*
10.92.1.226 - - [27/Oct/2011:02:09:22 +0800] "GET /xwiki/bin/view/XWiki/LargeWikiImport HTTP/1.1" 200 5991 10.92.1.226 - - [27/Oct/2011:02:09:22 +0800] "POST /xwiki/bin/get/XWiki/LargeWikiImport?xpage=xpart&vm=commentsinline.vm HTTP/1.1" 200 1589 10.92.1.226 - - [27/Oct/2011:02:09:35 +0800] "POST /xwiki/bin/view/XWiki/LargeWikiImport HTTP/1.1" 200 6258 10.92.1.226 - - [27/Oct/2011:02:09:35 +0800] "POST /xwiki/bin/get/XWiki/LargeWikiImport?xpage=xpart&vm=commentsinline.vm HTTP/1.1" 200 1589 10.92.1.226 - - [27/Oct/2011:02:16:02 +0800] "POST /xwiki/bin/view/XWiki/LargeWikiImport HTTP/1.1" 200 15563 10.92.1.226 - - [27/Oct/2011:02:16:03 +0800] "POST /xwiki/bin/get/XWiki/LargeWikiImport?xpage=xpart&vm=commentsinline.vm HTTP/1.1" 200 1584 10.92.1.226 - - [27/Oct/2011:02:16:47 +0800] "GET /xwiki/bin/view/Main/WebHome HTTP/1.1" 200 8490
*In the catalina.2011-10-27.log*
2011-10-27 2:06:37 org.apache.catalina.startup.Catalina start 信息: Server startup in 9075 ms 2011-10-27 2:18:47 org.apache.catalina.core.AprLifecycleListener init 信息: Loaded APR based Apache Tomcat Native library 1.1.22.
Nothing is logged during 2:09-2:16 in catalina.2011-10-27. Besides the "POST" seems to contain no filename of my xar file? I just aded a
System.out.println("Start importing file [" + file + "]");
at the beginning of the script to that you can make sure where the log really is and what the script tries to do when you get nothing.
I got nothing...maybe the execution stops before
System.out.println("Start importing file [" + file + "]");
? I doubt that, there is nothing except the code to get the file from the request before that.
What do you do exactly ?
I copied the latest LargeXarImport script from XWiki.org to our wiki as LargeWikiImport (with a little bit different name). wiki syntax 1.0 for sure. After saving it, I can see a table asking the name of "File to read from:", I input an arbitrary file name and checked "Import all", and then submit... I tried to find some logs and I found 61.129.42.14 - - [28/Oct/2011:16:34:22 +0800] "POST /xwiki/bin/view/XWiki/LargeWikiImport HTTP/1.0" 200 6937 61.129.42.14 - - [28/Oct/2011:16:34:22 +0800] "POST /xwiki/bin/get/XWiki/LargeWikiImport?xpage=xpart&vm=commentsinline.vm HTTP/1.0" 200 1584 in request log, and nothing more...
It seems XE doesn't find the targeted xar file, just a guess... _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
2011/10/28 Yang Li <[email protected]>:
于 2011/10/28 16:28, Thomas Mortagne 写道:
2011/10/28 Yang Li <[email protected]>:
于 2011/10/28 15:02, Thomas Mortagne 写道:
2011/10/28 Yang Li <[email protected]>:
于 2011/10/27 22:20, Thomas Mortagne 写道:
2011/10/27 Yang Li <[email protected]>: > 于 2011/10/27 21:38, Thomas Mortagne 写道: >> this script is supposed to tell you all it did so theses messages are >> normal. What weird is that you get nothing, it's supposed to log >> everything its doing so when it does work you should get informations >> on the log. >> > I checked tomcat7-stderr.2011-10-27.txt and > localhost_access_log.2011-10-27.txt when I > tried to import something with LargeWikiImport page, nothing wrong was > logged. Could you check catalina.out ?
*In the localhost_access_log.2011-10-27*
10.92.1.226 - - [27/Oct/2011:02:09:22 +0800] "GET /xwiki/bin/view/XWiki/LargeWikiImport HTTP/1.1" 200 5991 10.92.1.226 - - [27/Oct/2011:02:09:22 +0800] "POST /xwiki/bin/get/XWiki/LargeWikiImport?xpage=xpart&vm=commentsinline.vm HTTP/1.1" 200 1589 10.92.1.226 - - [27/Oct/2011:02:09:35 +0800] "POST /xwiki/bin/view/XWiki/LargeWikiImport HTTP/1.1" 200 6258 10.92.1.226 - - [27/Oct/2011:02:09:35 +0800] "POST /xwiki/bin/get/XWiki/LargeWikiImport?xpage=xpart&vm=commentsinline.vm HTTP/1.1" 200 1589 10.92.1.226 - - [27/Oct/2011:02:16:02 +0800] "POST /xwiki/bin/view/XWiki/LargeWikiImport HTTP/1.1" 200 15563 10.92.1.226 - - [27/Oct/2011:02:16:03 +0800] "POST /xwiki/bin/get/XWiki/LargeWikiImport?xpage=xpart&vm=commentsinline.vm HTTP/1.1" 200 1584 10.92.1.226 - - [27/Oct/2011:02:16:47 +0800] "GET /xwiki/bin/view/Main/WebHome HTTP/1.1" 200 8490
*In the catalina.2011-10-27.log*
2011-10-27 2:06:37 org.apache.catalina.startup.Catalina start 信息: Server startup in 9075 ms 2011-10-27 2:18:47 org.apache.catalina.core.AprLifecycleListener init 信息: Loaded APR based Apache Tomcat Native library 1.1.22.
Nothing is logged during 2:09-2:16 in catalina.2011-10-27. Besides the "POST" seems to contain no filename of my xar file? I just aded a
System.out.println("Start importing file [" + file + "]");
at the beginning of the script to that you can make sure where the log really is and what the script tries to do when you get nothing.
I got nothing...maybe the execution stops before
System.out.println("Start importing file [" + file + "]");
? I doubt that, there is nothing except the code to get the file from the request before that.
What do you do exactly ?
I copied the latest LargeXarImport script from XWiki.org to our wiki as LargeWikiImport (with a little bit different name). wiki syntax 1.0 for sure. After saving it, I can see a table asking the name of "File to read from:", I input an arbitrary file name and checked "Import all", and then submit...
I tried to find some logs and I found
61.129.42.14 - - [28/Oct/2011:16:34:22 +0800] "POST /xwiki/bin/view/XWiki/LargeWikiImport HTTP/1.0" 200 6937 61.129.42.14 - - [28/Oct/2011:16:34:22 +0800] "POST /xwiki/bin/get/XWiki/LargeWikiImport?xpage=xpart&vm=commentsinline.vm HTTP/1.0" 200 1584
in request log, and nothing more...
Could you edit the page and add <% println "Groovy is executed" %> at the beginning. If you don't have it then it mean you can't execute groovy script, generally it's because your user does not have programming right.
> It seems XE doesn't find the targeted xar file, just a guess... > _______________________________________________ > users mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/users >
users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
2011/10/28 Yang Li <[email protected]>:
于 2011/10/28 16:46, Thomas Mortagne 写道:
Could you edit the page and add
<% println "Groovy is executed" %>
at the beginning. If you don't have it then it mean you can't execute groovy script, generally it's because your user does not have programming right.
I have it!
Ok lets do some debug then. Put <% prinln "filename=" + request.get("filename") prinln "confirm=" + request.get("confirm") %> at the beginning of the page and try to import.
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
2011/10/28 Thomas Mortagne <[email protected]>:
2011/10/28 Yang Li <[email protected]>:
于 2011/10/28 16:46, Thomas Mortagne 写道:
Could you edit the page and add
<% println "Groovy is executed" %>
at the beginning. If you don't have it then it mean you can't execute groovy script, generally it's because your user does not have programming right.
I have it!
Ok lets do some debug then.
Put
<%
prinln "filename=" + request.get("filename") prinln "confirm=" + request.get("confirm")
%>
at the beginning of the page and try to import.
Ha wait there is supposed to be several steps in the import, don't you get a second form asking you what type of import you want ?
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
-- Thomas Mortagne
于 2011/10/28 16:56, Thomas Mortagne 写道:
2011/10/28 Yang Li <[email protected]>:
于 2011/10/28 16:46, Thomas Mortagne 写道:
Could you edit the page and add
<% println "Groovy is executed" %>
at the beginning. If you don't have it then it mean you can't execute groovy script, generally it's because your user does not have programming right.
I have it! Ok lets do some debug then.
Put
<%
prinln "filename=" + request.get("filename") prinln "confirm=" + request.get("confirm")
%>
at the beginning of the page and try to import.
I got erros... groovy.lang.MissingMethodException: No signature of method: Script1.prinln() is applicable for argument types: (java.lang.String) values: filename=null? <http://10.92.1.154:8080/xwiki/bin/edit/XWiki/filename%3Dnull?parent=XWiki.LargeWikiImport> Possible solutions: println(), println(), println(java.lang.Object), println(java.io.PrintWriter), println(java.lang.Object), print(java.lang.Object)
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
于 2011/10/28 17:00, Thomas Mortagne 写道:
2011/10/28 Thomas Mortagne <[email protected]>:
2011/10/28 Yang Li <[email protected]>:
于 2011/10/28 16:46, Thomas Mortagne 写道:
Could you edit the page and add
<% println "Groovy is executed" %>
at the beginning. If you don't have it then it mean you can't execute groovy script, generally it's because your user does not have programming right.
I have it! Ok lets do some debug then.
Put
<%
prinln "filename=" + request.get("filename") prinln "confirm=" + request.get("confirm")
%>
at the beginning of the page and try to import. Ha wait there is supposed to be several steps in the import, don't you get a second form asking you what type of import you want ?
Not at all!
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
2011/10/28 Yang Li <[email protected]>:
于 2011/10/28 17:00, Thomas Mortagne 写道:
2011/10/28 Thomas Mortagne <[email protected]>:
2011/10/28 Yang Li <[email protected]>:
于 2011/10/28 16:46, Thomas Mortagne 写道:
Could you edit the page and add
<% println "Groovy is executed" %>
at the beginning. If you don't have it then it mean you can't execute groovy script, generally it's because your user does not have programming right.
I have it! Ok lets do some debug then.
Put
<%
prinln "filename=" + request.get("filename") prinln "confirm=" + request.get("confirm")
%>
at the beginning of the page and try to import. Ha wait there is supposed to be several steps in the import, don't you get a second form asking you what type of import you want ?
Not at all!
You sure you select "Import all" ? What do you get with the code I gave you ?
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
于 2011/10/28 17:10, Thomas Mortagne 写道:
2011/10/28 Yang Li <[email protected]>:
于 2011/10/28 17:00, Thomas Mortagne 写道:
2011/10/28 Thomas Mortagne <[email protected]>:
2011/10/28 Yang Li <[email protected]>:
于 2011/10/28 16:46, Thomas Mortagne 写道:
Could you edit the page and add
<% println "Groovy is executed" %>
at the beginning. If you don't have it then it mean you can't execute groovy script, generally it's because your user does not have programming right.
I have it! Ok lets do some debug then.
Put
<%
prinln "filename=" + request.get("filename") prinln "confirm=" + request.get("confirm")
%>
at the beginning of the page and try to import. Ha wait there is supposed to be several steps in the import, don't you get a second form asking you what type of import you want ?
Not at all! You sure you select "Import all" ?
What do you get with the code I gave you ?
Of course, pretty much sure.... After putting at the begginning <% prinln "filename=" + request.get("filename") prinln "confirm=" + request.get("confirm") %> I got groovy.lang.MissingMethodException: No signature of method: Script1.prinln() is applicable for argument types: (java.lang.String) values: filename=null? <http://10.92.1.154:8080/xwiki/bin/edit/XWiki/filename%3Dnull?parent=XWiki.LargeWikiImport> Possible solutions: println(), println(), println(java.lang.Object), println(java.io.PrintWriter), println(java.lang.Object), print(java.lang.Object) By the way, the LargeXarImport succeeded on my laptop with XE3.2 but not XE3.1 and never succeeded on our sever (Win sever 2003) either XE3.1 nor XE3.2.
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
2011/10/28 Yang Li <[email protected]>:
于 2011/10/28 17:10, Thomas Mortagne 写道:
2011/10/28 Yang Li <[email protected]>:
于 2011/10/28 17:00, Thomas Mortagne 写道:
2011/10/28 Thomas Mortagne <[email protected]>:
2011/10/28 Yang Li <[email protected]>:
于 2011/10/28 16:46, Thomas Mortagne 写道: > Could you edit the page and add > > <% println "Groovy is executed" %> > > at the beginning. If you don't have it then it mean you can't execute > groovy script, generally it's because your user does not have > programming right. > I have it! Ok lets do some debug then.
Put
<%
prinln "filename=" + request.get("filename") prinln "confirm=" + request.get("confirm")
%>
at the beginning of the page and try to import. Ha wait there is supposed to be several steps in the import, don't you get a second form asking you what type of import you want ?
Not at all! You sure you select "Import all" ?
What do you get with the code I gave you ?
Of course, pretty much sure.... After putting at the begginning
<%
prinln "filename=" + request.get("filename") prinln "confirm=" + request.get("confirm")
%>
Sorry it's <% println "filename=" + request.get("filename") println "confirm=" + request.get("confirm") %>
I got
groovy.lang.MissingMethodException: No signature of method: Script1.prinln() is applicable for argument types: (java.lang.String) values: filename=null? <http://10.92.1.154:8080/xwiki/bin/edit/XWiki/filename%3Dnull?parent=XWiki.LargeWikiImport> Possible solutions: println(), println(), println(java.lang.Object), println(java.io.PrintWriter), println(java.lang.Object), print(java.lang.Object)
By the way, the LargeXarImport succeeded on my laptop with XE3.2 but not XE3.1 and never succeeded on our sever (Win sever 2003) either XE3.1 nor XE3.2.
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
2011/10/28 Yang Li <[email protected]>:
于 2011/10/28 17:35, Thomas Mortagne 写道:
Sorry it's
<%
println "filename=" + request.get("filename") println "confirm=" + request.get("confirm")
%> Now I got
filename=null confirm=null
I put xxxx.xar into the text box and checked Import all!
I really don't understand what could happen, that's a basic html form. Look like in your case the browser just reload the page without the parameters from the form. What browser are you using ?
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
于 2011/10/28 17:47, Thomas Mortagne 写道:
2011/10/28 Yang Li <[email protected]>:
于 2011/10/28 17:35, Thomas Mortagne 写道:
Sorry it's
<%
println "filename=" + request.get("filename") println "confirm=" + request.get("confirm")
%> Now I got
filename=null confirm=null
I put xxxx.xar into the text box and checked Import all! I really don't understand what could happen, that's a basic html form. Look like in your case the browser just reload the page without the parameters from the form.
What browser are you using ?
Is it to put the two prints at the very begginning? or should them be somewhere else? I am using firfox 7.0.1
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
于 2011/10/28 17:47, Thomas Mortagne 写道:
2011/10/28 Yang Li <[email protected]>:
于 2011/10/28 17:35, Thomas Mortagne 写道:
Sorry it's
<%
println "filename=" + request.get("filename") println "confirm=" + request.get("confirm")
%> Now I got
filename=null confirm=null
I put xxxx.xar into the text box and checked Import all! I really don't understand what could happen, that's a basic html form. Look like in your case the browser just reload the page without the parameters from the form.
What browser are you using ?
I tried IE9 just now, the same result....
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
2011/10/28 Yang Li <[email protected]>:
于 2011/10/28 17:47, Thomas Mortagne 写道:
2011/10/28 Yang Li <[email protected]>:
于 2011/10/28 17:35, Thomas Mortagne 写道:
Sorry it's
<%
println "filename=" + request.get("filename") println "confirm=" + request.get("confirm")
%> Now I got
filename=null confirm=null
I put xxxx.xar into the text box and checked Import all! I really don't understand what could happen, that's a basic html form. Look like in your case the browser just reload the page without the parameters from the form.
What browser are you using ?
Is it to put the two prints at the very begginning? or should them be somewhere else?
Anywhere you want as long as it's executed, at least at the beginning you are sure it is.
I am using firfox 7.0.1
Are you sure you clicked on the button ?
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
于 2011/10/28 18:04, Thomas Mortagne 写道:
Are you sure you clicked on the button ? < Sure, how could I forgot to click on the button... After the click, the page reloaded quickly, and everything I filled in the text box is gone, fresh and clean...
P.S. I enabled caches...is that related?
2011/10/28 Thomas Mortagne <[email protected]>:
2011/10/28 Yang Li <[email protected]>:
于 2011/10/28 17:47, Thomas Mortagne 写道:
2011/10/28 Yang Li <[email protected]>:
于 2011/10/28 17:35, Thomas Mortagne 写道:
Sorry it's
<%
println "filename=" + request.get("filename") println "confirm=" + request.get("confirm")
%> Now I got
filename=null confirm=null
I put xxxx.xar into the text box and checked Import all! I really don't understand what could happen, that's a basic html form. Look like in your case the browser just reload the page without the parameters from the form.
What browser are you using ?
Is it to put the two prints at the very begginning? or should them be somewhere else?
Anywhere you want as long as it's executed, at least at the beginning you are sure it is.
I am using firfox 7.0.1
Are you sure you clicked on the button ?
Another test: Change the last <form action="" method="post"> with <form action="" method="get"> and see if the parameters are added to the URL when you click in the button.
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
-- Thomas Mortagne
2011/10/28 Yang Li <[email protected]>:
于 2011/10/28 18:04, Thomas Mortagne 写道:
Are you sure you clicked on the button ? < Sure, how could I forgot to click on the button... After the click, the page reloaded quickly, and everything I filled in the text box is gone, fresh and clean...
You are not supposed to get the form back whatever you put in the form.
P.S. I enabled caches...is that related?
Depend what you mean by that.
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
于 2011/10/28 18:08, Thomas Mortagne 写道:
2011/10/28 Thomas Mortagne <[email protected]>:
2011/10/28 Yang Li <[email protected]>:
于 2011/10/28 17:47, Thomas Mortagne 写道:
2011/10/28 Yang Li <[email protected]>:
于 2011/10/28 17:35, Thomas Mortagne 写道:
Sorry it's
<%
println "filename=" + request.get("filename") println "confirm=" + request.get("confirm")
%> Now I got
filename=null confirm=null
I put xxxx.xar into the text box and checked Import all! I really don't understand what could happen, that's a basic html form. Look like in your case the browser just reload the page without the parameters from the form.
What browser are you using ?
Is it to put the two prints at the very begginning? or should them be somewhere else? Anywhere you want as long as it's executed, at least at the beginning you are sure it is.
I am using firfox 7.0.1 Are you sure you clicked on the button ? Another test:
Change the last
<form action="" method="post">
with
<form action="" method="get">
and see if the parameters are added to the URL when you click in the button.
Yes! I got filename=xxxx.xar confirm=null Import all and the Overite warning table!
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
2011/10/28 Yang Li <[email protected]>:
于 2011/10/28 18:08, Thomas Mortagne 写道:
2011/10/28 Thomas Mortagne <[email protected]>:
2011/10/28 Yang Li <[email protected]>:
于 2011/10/28 17:47, Thomas Mortagne 写道:
2011/10/28 Yang Li <[email protected]>:
于 2011/10/28 17:35, Thomas Mortagne 写道: > Sorry it's > > > <% > > println "filename=" + request.get("filename") > println "confirm=" + request.get("confirm") > > %> Now I got
filename=null confirm=null
I put xxxx.xar into the text box and checked Import all! I really don't understand what could happen, that's a basic html form. Look like in your case the browser just reload the page without the parameters from the form.
What browser are you using ?
Is it to put the two prints at the very begginning? or should them be somewhere else? Anywhere you want as long as it's executed, at least at the beginning you are sure it is.
I am using firfox 7.0.1 Are you sure you clicked on the button ? Another test:
Change the last
<form action="" method="post">
with
<form action="" method="get">
and see if the parameters are added to the URL when you click in the button.
Yes! I got
filename=xxxx.xar confirm=null
Import all
and the Overite warning table!
The rendering cache take into account the URL but if post is used then the URL does not change and the cache thing it's the same thing.
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
于 2011/10/28 18:17, Thomas Mortagne 写道:
2011/10/28 Yang Li <[email protected]>:
于 2011/10/28 18:08, Thomas Mortagne 写道:
2011/10/28 Thomas Mortagne <[email protected]>:
2011/10/28 Yang Li <[email protected]>:
于 2011/10/28 17:47, Thomas Mortagne 写道:
2011/10/28 Yang Li <[email protected]>: > 于 2011/10/28 17:35, Thomas Mortagne 写道: >> Sorry it's >> >> >> <% >> >> println "filename=" + request.get("filename") >> println "confirm=" + request.get("confirm") >> >> %> > Now I got > > filename=null confirm=null > > I put xxxx.xar into the text box and checked Import all! I really don't understand what could happen, that's a basic html form. Look like in your case the browser just reload the page without the parameters from the form.
What browser are you using ?
Is it to put the two prints at the very begginning? or should them be somewhere else? Anywhere you want as long as it's executed, at least at the beginning you are sure it is.
I am using firfox 7.0.1 Are you sure you clicked on the button ? Another test:
Change the last
<form action="" method="post">
with
<form action="" method="get">
and see if the parameters are added to the URL when you click in the button.
Yes! I got
filename=xxxx.xar confirm=null
Import all
and the Overite warning table! The rendering cache take into account the URL but if post is used then the URL does not change and the cache thing it's the same thing.
~~~~~~><~~~~~~ Thanks a lot! I shall disable it right now!!!!
> _______________________________________________ > users mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/users >
users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (2)
-
Thomas Mortagne -
Yang Li