Hi,
I looked today over the XWikiMessageTool class, and I must say that I'm not
quite satisfied with it.
First, there was XWIKI-919, which I implemented. OK, I understand that files
stored on disk should be charset independent, so only ASCII characters are
supported by the ResourceBundle class (jvm) .But, when I can edit a wiki
document for storing bundles, I expect it to accept all the characters the
wiki supports (in my case, it was an UTF8 instance). I had some troubles
fixing this, since the JavaDoc says that bundles accepts only ASCII
characters, but it understands and parses unicode references ( \u0123 ).
Maybe I did something wrong, but doing content.replaceAll("\u0139",
"\\u0139") resulted in the string u0139 being displayed in the page. So I
had to trick it into believing that the component bytes of the encoding are
ASCII characters and manually restore the multibyte chars.
Second, I don't like the fact that XWIKI-921 was not already implemented.
Third, I don't like the cache refresh mechanism. It retrieves the
XWikiProperties->documentBundles property for each request, and It retrieves
the bundle documents for every request and checks if it must be refreshed or
not. Why isn't the com.xpn.xwiki.notify package used? It allows registering
callback handlers for specific document changes. How I see it:
- at startup, register a handler for XWiki.XWikiPreferences (so that we know
when the documentBundles property might change).
- remember the list of document bundles, don't ask it for each request
- also register handlers for the current bundle documents and load the
strings from these documents
- when XWikiPreferences is changed, if the documentBundle property is also
changed, remove the unused bundles and build the new ones
- when a undle document (or a translation for it) is changed, rebuild the
bundle for that document
This should speedup the code a bit, it makes use of a nice, but mostly
unknown feature, it doesn't log an error for each request when a specified
document is not found in the wiki, and it doesn't require so many variables
(previousDates, docsToRefresh).
Fourth, as I said above, if a document is specified in the documentBundles
property, but it does not exist in the wiki, for each $msg.get call an error
is logged. And there are a lot of calls for each request.
Now, in my opinion this is a nice way to get in the core of XWiki for a
newcomer, so does anybody want to write the changes I mentioned? Also, this
is a good occasion to document the event notification mechanism, in JavaDoc
and on www.xwiki.org
Regards,
Sergiu Dumitriu
--
http://purl.org/net/sergiu
Hi all,
When viewing a list of classes (both in the class editor and when
attaching a class manually to a document via class list dropdown) the
order of classes seems a bit random. Is there any way to select the sort
order?
The userlist property type also seems to be a bit random (in my case,
selecting value or id makes no difference).
Vincent et all,
Now that xwiki is 1.0, are there any plans to have a bugfixing-only branch?
1.1M1 anouncement mentions both bugfixes and new features/changes. While the
former is good for stability, the latter may not be so.
For me as a person who will need to support xwiki installation it is an
important question.
Thanks,
Pavel
Hello, all.
Has anyone been able to successfully create an FAQ application using Oracle as their database? I have not been able to get very far because the following error occurs when I try to access the XWiki.XWikiClasses document:
Error number 4001 in 4: Error while parsing velocity page XWiki.XWikiClasses
Wrapped Exception: Invocation of method 'getClassList' in class com.xpn.xwiki.api.XWiki threw exception com.xpn.xwiki.XWikiException: Error number 3223 in 3: Exception while searching class list
Wrapped Exception: could not execute query @ XWiki.XWikiClasses37,32
It looks like the root exception is:
java.sql.SQLException: ORA-00932: inconsistent datatypes: expected - got CLOB
I installed xWiki version: 1.0-rc-4.3161 on Windows and am using the last version of OracleXE 10.2.0
Any help is greatly appreciated.
TIA - Ciao,
Dixie.
Hi,
How do I ensure that the language used for all internal texts is
German? (ie. the use of ApplicationResources_de.properties)
I can set the Default Lanugage and Languages options in the Preferences
but I don't get the expected behavior.
I have also tried modifying the LANG environment variable in the
start_xwiki.cmd.
I am not interested in a Multi-Language Wiki, but an all-German Wiki.
So I'd rather not turn the Multi-Language feature on, but if I do, I
still only see "En" as the language option.
Where can I change the default language for the entire XWiki?
Regards,
Gunter
-------------------------------------------------------------------------------
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser Mail ist nicht gestattet.
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from any
computer.
-------------------------------------------------------------------------------
Thanks Mohoo,
I did change on xwd_class_xml column size of xwikidoc but i could not locate xwiki.hbm.xml file in my xwiki folder to do the second change, do i need to have this file or it should be bounded with xwiki distribution?
Regards,
Adel
Original Message processed by David InfoCenter
Subject: Re: [xwiki-users] org.hibernate.ObjectNotFoundException (30-May-2007 10:32)
From: Mohoo <mohoomail(a)gmail.com>
To: xwiki-users(a)objectweb.org
Hi Adel,
Forget the first mail I replied, I'm sorry for that.
There is some difference between our version.
But I found something new that may be helpful.
Read the page http://www.xwiki.org/xwiki/bin/view/AdminGuide/InstallationPostgreSQL,
And you'll find some guids for you in Comments as following:
Note: If you get xar file import errors(Preferece and Rights are not imported correctly) when using PostgreSQL, it may cause by size limitation of xwd_class_xml column of xwikidoc table. Just change the varchar(20000) to a varchar(200000) and reintall it. In the hibernate mapping file( xwiki.hbm.xml), string will be mapped to varchar, or you can change it to text by hand.
Hope it is useful.
Regards
Mohoo
2007/5/29, Adel Aneiba <adel.aneiba(a)ajbs-ltd.com>:
Hi Vincent,
I have noticed that the above exception is appeared when i upload xwiki.xar file and click import button, it is shown in the Jboss console
I hope this helps as well
Regards,
Adel
Original Message processed by David InfoCenter
Subject: [SPAM] Re: [SPAM] Re: [xwiki-users] org.hibernate.ObjectNotFoundException (29-May-2007 12:17)
From: Vincent Massol <vincent(a)massol.net>
To: xwiki-users(a)objectweb.org
On May 29, 2007, at 12:35 PM, Adel Aneiba wrote:
Hi Vincent,
I have created a new empty database and i deployed xwiki.war into jboss deployment folder and then i have uploaded xwiki.xar file and then i start using my xwiki
What database are you using?
Thanks
-Vincent
I hope this helps
Regards,
Adel
Original Message processed by David InfoCenter
Subject: [SPAM] Re: [xwiki-users] org.hibernate.ObjectNotFoundException (29-May-2007 11:16)
From: Vincent Massol <vincent(a)massol.net>
To: xwiki-users(a)objectweb.org
Hi Adel,
Can you give us more details about what you do to get this error?
Are you using an existing database from an old version?
Is there a way we could reproduce this error?
Thanks
-Vincent
On May 29, 2007, at 12:03 PM, Adel Aneiba wrote:
Dear Xwiki Users,
I just successfully deployed xwiki1.1 version, but i still have the same below exception in the Jboss console. I had this exception in the previous versions as well. Did i miss something in the configuration?
Does anyone have an idea how i can get rid of this exception please?
Regards,
Adel
10:57:18,795 INFO [DefaultLoadEventListener] Error performing load command
org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.xpn.xwiki.doc.XWikiDocument#1858599292 ]
at org.hibernate.ObjectNotFoundException.throwIfNull(ObjectNotFoundException.java:27)
at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:128)
at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad (DefaultLoadEventListener.java:177)
at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:87)
at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:891)
at org.hibernate.impl.SessionImpl.load(SessionImpl.java:799)
at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:357)
at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java :160)
at com.xpn.xwiki.XWiki.getDocument(XWiki.java:957)
at com.xpn.xwiki.XWiki.getDocument(XWiki.java:991)
at com.xpn.xwiki.XWiki.getWebPreference(XWiki.java:1590)
at com.xpn.xwiki.XWiki.getWebPreference (XWiki.java:1582)
at com.xpn.xwiki.XWiki.getWebPreference(XWiki.java:1576)
at com.xpn.xwiki.XWiki.getUserPreference(XWiki.java:1621)
at com.xpn.xwiki.XWiki.getSkin(XWiki.java:1426)
at com.xpn.xwiki.XWiki.getBaseSkin(XWiki.java:1520)
at com.xpn.xwiki.web.SkinAction.render(SkinAction.java :48)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:150)
at org.apache.struts.action.RequestProcessor.processActionPerform (RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet (ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.xpn.xwiki. web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:118)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter (ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java :173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss .web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java :175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java :74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.jboss. web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java :664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run (Thread.java:595)
--
You receive this message as a subscriber of the xwiki-users(a)objectweb.org mailing list.
To unsubscribe: mailto: xwiki-users-unsubscribe(a)objectweb.org
For general help: mailto:sympa@objectweb.org?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Hi,
How do I get the list of spaces sorted?
$xwiki.spaces gives me the list of spaces, but how do I get this list
sorted alphabetically?
Regards,
Gunter
-------------------------------------------------------------------------------
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und
vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte
Weitergabe dieser Mail ist nicht gestattet.
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from any
computer.
-------------------------------------------------------------------------------
Hi Vincent,
I have noticed that the above exception is appeared when i upload xwiki.xar file and click import button, it is shown in the Jboss console
I hope this helps as well
Regards,
Adel
Original Message processed by David InfoCenter
Subject: [SPAM] Re: [SPAM] Re: [xwiki-users] org.hibernate.ObjectNotFoundException (29-May-2007 12:17)
From: Vincent Massol <vincent(a)massol.net>
To: xwiki-users(a)objectweb.org
On May 29, 2007, at 12:35 PM, Adel Aneiba wrote:
Hi Vincent,
I have created a new empty database and i deployed xwiki.war into jboss deployment folder and then i have uploaded xwiki.xar file and then i start using my xwiki
What database are you using?
Thanks
-Vincent
I hope this helps
Regards,
Adel
Original Message processed by David InfoCenter
Subject: [SPAM] Re: [xwiki-users] org.hibernate.ObjectNotFoundException (29-May-2007 11:16)
From: Vincent Massol <vincent(a)massol.net>
To: xwiki-users(a)objectweb.org
Hi Adel,
Can you give us more details about what you do to get this error?
Are you using an existing database from an old version?
Is there a way we could reproduce this error?
Thanks
-Vincent
On May 29, 2007, at 12:03 PM, Adel Aneiba wrote:
Dear Xwiki Users,
I just successfully deployed xwiki1.1 version, but i still have the same below exception in the Jboss console. I had this exception in the previous versions as well. Did i miss something in the configuration?
Does anyone have an idea how i can get rid of this exception please?
Regards,
Adel
10:57:18,795 INFO [DefaultLoadEventListener] Error performing load command
org.hibernate.ObjectNotFoundException: No row with the given identifier exists: [com.xpn.xwiki.doc.XWikiDocument#1858599292]
at org.hibernate.ObjectNotFoundException.throwIfNull(ObjectNotFoundException.java:27)
at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:128)
at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:177)
at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:87)
at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:891)
at org.hibernate.impl.SessionImpl.load(SessionImpl.java:799)
at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:357)
at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:160)
at com.xpn.xwiki.XWiki.getDocument(XWiki.java:957)
at com.xpn.xwiki.XWiki.getDocument(XWiki.java:991)
at com.xpn.xwiki.XWiki.getWebPreference(XWiki.java:1590)
at com.xpn.xwiki.XWiki.getWebPreference(XWiki.java:1582)
at com.xpn.xwiki.XWiki.getWebPreference(XWiki.java:1576)
at com.xpn.xwiki.XWiki.getUserPreference(XWiki.java:1621)
at com.xpn.xwiki.XWiki.getSkin(XWiki.java:1426)
at com.xpn.xwiki.XWiki.getBaseSkin(XWiki.java:1520)
at com.xpn.xwiki.web.SkinAction.render(SkinAction.java:48)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:150)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:118)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
I removed latest RC version and installed new 1.1 and found two annoying
problems:
1. In BLOG/WEB HOME, at the bottom, the text for adding a new blog is in
French. if I try to edit it and save, then the textbox and the button
disappear after saving. This problem was present also in RC version.
2. In BLOG/CATEGORIES the code for rendering the categories table must have
now something wrong cos the table is not displayed properly. This problem
was not present in RC version.
--
View this message in context: http://www.nabble.com/Errors-in-the-default-wiki-installation-tf3839018.htm…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi Mohoo,
What you mean by initializing the database, i have created the database in my Postgres DB server as an empty one and once i deploy the xwiki.war into the Jboss server the database has been created and initialized
Is that right, or i need to do something else?
Regards,
Adel
Original Message processed by David InfoCenter
Subject: Re: [xwiki-users] org.hibernate.ObjectNotFoundException (30-May-2007 4:11)
From: Mohoo <mohoomail(a)gmail.com>
To: xwiki-users(a)objectweb.org
hi Adel,
Have you initialize the database?