I had no problem to install Xwiki in the Tomcat environment. But when I deployed Xwiki under OC4J followed the OC4J Installation instructions ("http://www.xwiki.org/xwiki/bin/view/AdminGuide/InstallationOC4J"), javascript did not work properly – it looks like the path to external .js-files couldn't be found. Both IE and Firefox show javascript errors nearly on each page, although JavaScript is not deactivated in browser. I can open the home page, go to xwiki/bin/admin/XWiki/XWikiPreferences, upload xwiki-enterprise-wiki-1.1~.xar, but cannot expand it to choose the files I want to import. I have tried to include some JavaScript functions from import.js direct in the importinline.vm source – it works fine. What's the difference between: <script type="text/javascript" src="$xwiki.getSkinFile("import.js")"></script> - it generates path to /xwiki/skins/albatross/import.js and <script type="text/javascript" src="$xwiki.getSkinFile("import.js", true)"></script> - generates path to /xwiki/bin/skin/skins/albatross/import.js Why only some paths to js- and css files are defined with the parameter “true”? Is there something specific to keep in mind concerning path under OC4J? Should I make additional entries in some xml-files? Any tips please? Regards, adoro -- View this message in context: http://www.nabble.com/OC4J---JavaScript-tf4310450.html#a12271014 Sent from the XWiki- Dev mailing list archive at Nabble.com.
adoro a écrit :
I had no problem to install Xwiki in the Tomcat environment.
But when I deployed Xwiki under OC4J followed the OC4J Installation instructions ("http://www.xwiki.org/xwiki/bin/view/AdminGuide/InstallationOC4J"), javascript did not work properly – it looks like the path to external .js-files couldn't be found. Both IE and Firefox show javascript errors nearly on each page, although JavaScript is not deactivated in browser.
I can open the home page, go to xwiki/bin/admin/XWiki/XWikiPreferences, upload xwiki-enterprise-wiki-1.1~.xar, but cannot expand it to choose the files I want to import.
I have tried to include some JavaScript functions from import.js direct in the importinline.vm source – it works fine.
/xwiki/skins/albatross/import.js is a file based path to import.js /xwiki/bin/skin/skins/albatross/import.js will do a redirect to the previous one if it exists, otherwise it will use the import.js from the default skin (which is actually albatross) or /xwiki/templates/import.js Can you access these content if you put them in your browser URL ? Maybe OC4J has a problem for making files in the war accessible at the right urls Ludovic
What's the difference between: <script type="text/javascript" src="$xwiki.getSkinFile("import.js")"></script> - it generates path to /xwiki/skins/albatross/import.js
and <script type="text/javascript" src="$xwiki.getSkinFile("import.js", true)"></script> - generates path to /xwiki/bin/skin/skins/albatross/import.js
Why only some paths to js- and css files are defined with the parameter “true”? Is there something specific to keep in mind concerning path under OC4J? Should I make additional entries in some xml-files?
Any tips please?
Regards, adoro
-- Ludovic Dubost Blog: http://www.ludovic.org/blog/ XWiki: http://www.xwiki.com Skype: ldubost GTalk: ldubost AIM: nvludo Yahoo: ludovic
I think my first assumption, that problems with loading some javascript files were OC4J- specific (vs. Tomcat), was wrong. I am not the specialist in parsing details, but it seems to be a difference in the providing parsing in Windows XP (that I use on my local computer) and Unix/Linux platform that we use on the remote server. (?) If am running XWiki on the server, the both browsers I use (Internet Explorer 6.0.29000.2180.xpsp_sp2 and Firefox 2.0.0.6) show javascript errors. The following error messages appear in the Firefox Javascript Console (I have to translate them all from German to English :-) : Error: missing ; before statement Source: http://server/xwiki/bin/skin/skins/albatross/scripts/table/tablefilterNsort.... Row: 2, Column: 10 Source code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" with the cursor position pointing on the word “html” Error: missing ) after argument list Source: http://server/xwiki//skins/albatross/fullscreenEdit.js Row: 71 showBtn.setAttribute("title", "$msg.get("fullScreenTooltip")"); Error: missing ; before statement Source: http://server/xwiki/bin/skin/skins/albatross/import.js Row: 2, Column: 10 Source code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" Even so, the xwiki-enterprise-wiki-1.1-milestone-4.xar was imported, but I could not expand it to select several files to import. The error messages: Error: missing ; before statement Source: http://server/xwiki/bin/skin/skins/albatross/import.js Row: 2, Column: 10 Source code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" Error: selectPackage is not defined Source: http://server/xwiki/bin/import/XWiki/Import?editor=import Row: 1 Error: syntax error Source: javascript:void() Row: 1, Column: 5 Source Code: void() I could find a reason for troubling in fullscreenEdit.js and tablefilterNsort.js – there were double quotation marks in the javascript code: fullscreenEdit.js: showBtn.setAttribute("title", "$msg.get("fullScreenTooltip")"); in tablefilterNsort.js: var image_up = "$xwiki.getSkinFile("icons/table/arrow-up.gif")"; var image_down = "$xwiki.getSkinFile("icons/table/arrow-down.gif")"; var image_none = "$xwiki.getSkinFile("icons/table/arrow-none.gif")"; After I changed the internal double quotation marks to single ones, error messages have disappeared. But I still could not find a cause for the similar syntax errors in import.js. I tried to place a test function in import.js and called it per onclick() from importinline.vm – it works, i.e. it was not the problem with the loading import.js with <script type="text/javascript" src="$xwiki.getSkinFile("import.js", true)"></script>, but rather with some javascript errors inside of import.js or other javascript files. It looks like var myAjax in import.js has no value. Firefox Javascript debugger shows also further messages: Error ``ActiveXObject is not defined'' [xs] in file ``http://server/xwiki/skins/albatross/rico/prototype.js'', line 549, character 0. Error ``ActiveXObject is not defined'' [xs] in file ``http://server/xwiki/skins/albatross/rico/prototype.js'', line 550, character 0. It points also to: var Ajax = { getTransport: function() { return Try.these( function() {return new ActiveXObject('Msxml2.XMLHTTP')}, function() {return new ActiveXObject('Microsoft.XMLHTTP')}, function() {return new XMLHttpRequest()} ) || false; }, activeRequestCount: 0 } What could be wrong hier? BUT: If I copy the whole text of import.js in the importinline.vm – I can expand the xar-archive. I can access javascript files in browser URLs with http://server/xwiki/skins/albatross/, but calling them via http://server/xwiki/bin/skin/skins/albatross/ produces java errors. Is it normal? Error number 0 in 11: Uncaught exception Wrapped Exception: null com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception Wrapped Exception: null at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:163) 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:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:673) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:340) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:228) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186) at java.lang.Thread.run(Thread.java:595) Wrapped Exception: java.lang.NullPointerException at com.xpn.xwiki.web.SkinAction.isJavascriptMimeType(SkinAction.java:213) at com.xpn.xwiki.web.SkinAction.renderSkin(SkinAction.java:148) at com.xpn.xwiki.web.SkinAction.render(SkinAction.java:57) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:148) 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:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:673) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:340) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:228) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186) at java.lang.Thread.run(Thread.java:595) Regards, adoro -- View this message in context: http://www.nabble.com/OC4J---JavaScript-tf4315467.html#a12381461 Sent from the XWiki- Dev mailing list archive at Nabble.com. _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
On 8/31/07, adoro <[email protected]> wrote:
I think my first assumption, that problems with loading some javascript files were OC4J- specific (vs. Tomcat), was wrong.
You are right. Well, there are two problems. One is that some skin files are not parsed at all, since they are using the wrong URL (xwiki//skins instead of xwiki/bin/skin/skins). This is why the double quote problem appears, since "$msg.get("fullScreenTooltip")" should actually be transformed by velocity into a proper string. The other problem is a bug I know about, which is system dependent. The underlying platform does not return the proper mimetype for a file, but instead returns null. The NullPointerException will be fixed ASAP, but the javascript files will still be unparsed, since there is no way to determine if the file is a javascript one or not.
I am not the specialist in parsing details, but it seems to be a difference in the providing parsing in Windows XP (that I use on my local computer) and Unix/Linux platform that we use on the remote server. (?)
Sergiu -- http://purl.org/net/sergiu _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
I have the problem with saving XwikiPreferences too: the attempt to work with tabs "Preferences" and "Rights" in the Administation page comes to java errors: Error number 3201 in 3: Exception while saving document XWiki.XWikiPreferences Wrapped Exception: could not update: [com.xpn.xwiki.doc.XWikiDocumentArchive#104408758] com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving document XWiki.XWikiPreferences Wrapped Exception: could not update: [com.xpn.xwiki.doc.XWikiDocumentArchive#104408758] at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:317) at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:97) at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:91) at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:924) at com.xpn.xwiki.web.SaveAction.save(SaveAction.java:113) at com.xpn.xwiki.web.SaveAndContinueAction.action(SaveAndContinueAction.java:64) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:147) 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.doPost(ActionServlet.java:432) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:673) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:340) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:228) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186) at java.lang.Thread.run(Thread.java:595) Wrapped Exception: java.sql.SQLException: setString can only process strings of less than 32766 chararacters at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:137) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:174) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:239) at oracle.jdbc.driver.OraclePreparedStatement.setStringInternal(OraclePreparedStatement.java:4771) at oracle.jdbc.driver.OraclePreparedStatement.setString(OraclePreparedStatement.java:4742) at org.apache.commons.dbcp.DelegatingPreparedStatement.setString(DelegatingPreparedStatement.java:131) at org.apache.commons.dbcp.DelegatingPreparedStatement.setString(DelegatingPreparedStatement.java:131) at org.hibernate.type.StringType.set(StringType.java:26) at org.hibernate.type.NullableType.nullSafeSet(NullableType.java:85) at org.hibernate.type.NullableType.nullSafeSet(NullableType.java:58) at org.hibernate.persister.entity.AbstractEntityPersister.dehydrate(AbstractEntityPersister.java:1826) at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2172) at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2118) at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2374) at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:84) at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:243) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:227) at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:141) at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:296) at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27) at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1009) at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:356) at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106) at com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHibernateBaseStore.java:611) at com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHibernateBaseStore.java:585) at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:307) at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:97) at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:91) at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:924) at com.xpn.xwiki.web.SaveAction.save(SaveAction.java:113) at com.xpn.xwiki.web.SaveAndContinueAction.action(SaveAndContinueAction.java:64) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:147) 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.doPost(ActionServlet.java:432) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:673) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:340) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:228) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186) at java.lang.Thread.run(Thread.java:595) ------- At the same time I get the following javascript error messages in javascript debugger (Firefox): Error ``ActiveXObject is not defined'' [xs] in file ``http://server/xwiki/skins/albatross/rico/prototype.js'', line 549, character 0. Error ``ActiveXObject is not defined'' [xs] in file ``http://server/xwiki/skins/albatross/rico/prototype.js'', line 550, character 0. I'm running XWiki 1.1 Enterprise M4 under Unix + OC4J as container + Oracle 10g as database. Regards, adoro -- View this message in context: http://www.nabble.com/OC4J---JavaScript-tf4315467.html#a12520805 Sent from the XWiki- Dev mailing list archive at Nabble.com.
Adoro, I have already answered to you yesterday. Please stop spamming the list. This is at least the 4th time you're sending the same email. Last, it's a bad practice to hijack existing discussion threads. This one is about "OC4J-Javascript", nothing to do with your new question. Thanks -Vincent On Sep 6, 2007, at 1:49 PM, adoro wrote:
I have also the problem with saving XwikiPreferences: the attempt to work with tabs "Preferences" and "Rights" in the Administation page comes to java errors:
Error number 3201 in 3: Exception while saving document XWiki.XWikiPreferences Wrapped Exception: could not update: [com.xpn.xwiki.doc.XWikiDocumentArchive#104408758] com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving document XWiki.XWikiPreferences Wrapped Exception: could not update: [com.xpn.xwiki.doc.XWikiDocumentArchive#104408758] at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc (XWikiHibernateStore.java:317) at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc (XWikiCacheStore.java:97) at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc (XWikiCacheStore.java:91) at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:924) at com.xpn.xwiki.web.SaveAction.save(SaveAction.java:113) at com.xpn.xwiki.web.SaveAndContinueAction.action (SaveAndContinueAction.java:64) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:147) 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.doPost (ActionServlet.java:432) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ResourceFilterChain.doFilter (ResourceFilterChain.java:65) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter (SetCharacterEncodingFilter.java:117) at com.evermind.server.http.ServletRequestDispatcher.invoke (ServletRequestDispatcher.java:673) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal (ServletRequestDispatcher.java:340) at com.evermind.server.http.HttpRequestHandler.processRequest (HttpRequestHandler.java:830) at com.evermind.server.http.AJPRequestHandler.run (AJPRequestHandler.java:228) at com.evermind.server.http.AJPRequestHandler.run (AJPRequestHandler.java:133) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run (ReleasableResourcePooledExecutor.java:186) at java.lang.Thread.run(Thread.java:595)
Wrapped Exception:
java.sql.SQLException: setString can only process strings of less than 32766 chararacters at oracle.jdbc.driver.DatabaseError.throwSqlException (DatabaseError.java:137) at oracle.jdbc.driver.DatabaseError.throwSqlException (DatabaseError.java:174) at oracle.jdbc.driver.DatabaseError.throwSqlException (DatabaseError.java:239) at oracle.jdbc.driver.OraclePreparedStatement.setStringInternal (OraclePreparedStatement.java:4771) at oracle.jdbc.driver.OraclePreparedStatement.setString (OraclePreparedStatement.java:4742) at org.apache.commons.dbcp.DelegatingPreparedStatement.setString (DelegatingPreparedStatement.java:131) at org.apache.commons.dbcp.DelegatingPreparedStatement.setString (DelegatingPreparedStatement.java:131) at org.hibernate.type.StringType.set(StringType.java:26) at org.hibernate.type.NullableType.nullSafeSet(NullableType.java:85) at org.hibernate.type.NullableType.nullSafeSet(NullableType.java:58) at org.hibernate.persister.entity.AbstractEntityPersister.dehydrate (AbstractEntityPersister.java:1826) at org.hibernate.persister.entity.AbstractEntityPersister.update (AbstractEntityPersister.java:2172) at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert( AbstractEntityPersister.java:2118) at org.hibernate.persister.entity.AbstractEntityPersister.update (AbstractEntityPersister.java:2374) at org.hibernate.action.EntityUpdateAction.execute (EntityUpdateAction.java:84) at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:243) at org.hibernate.engine.ActionQueue.executeActions (ActionQueue.java:227) at org.hibernate.engine.ActionQueue.executeActions (ActionQueue.java:141) at org.hibernate.event.def.AbstractFlushingEventListener.performExecution s(AbstractFlushingEventListener.java:296) at org.hibernate.event.def.DefaultFlushEventListener.onFlush (DefaultFlushEventListener.java:27) at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1009) at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:356) at org.hibernate.transaction.JDBCTransaction.commit (JDBCTransaction.java:106) at com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction (XWikiHibernateBaseStore.java:611) at com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction (XWikiHibernateBaseStore.java:585) at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc (XWikiHibernateStore.java:307) at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc (XWikiCacheStore.java:97) at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc (XWikiCacheStore.java:91) at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:924) at com.xpn.xwiki.web.SaveAction.save(SaveAction.java:113) at com.xpn.xwiki.web.SaveAndContinueAction.action (SaveAndContinueAction.java:64) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:147) 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.doPost (ActionServlet.java:432) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ResourceFilterChain.doFilter (ResourceFilterChain.java:65) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter (SetCharacterEncodingFilter.java:117) at com.evermind.server.http.ServletRequestDispatcher.invoke (ServletRequestDispatcher.java:673) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal (ServletRequestDispatcher.java:340) at com.evermind.server.http.HttpRequestHandler.processRequest (HttpRequestHandler.java:830) at com.evermind.server.http.AJPRequestHandler.run (AJPRequestHandler.java:228) at com.evermind.server.http.AJPRequestHandler.run (AJPRequestHandler.java:133) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run (ReleasableResourcePooledExecutor.java:186) at java.lang.Thread.run(Thread.java:595)
-------
At the same time I get the following javascript error messages in javascript debugger (Firefox):
Error ``ActiveXObject is not defined'' [xs] in file ``http://server/xwiki/skins/albatross/rico/prototype.js'', line 549, character 0. Error ``ActiveXObject is not defined'' [xs] in file ``http://server/xwiki/skins/albatross/rico/prototype.js'', line 550, character 0.
I'm running XWiki 1.1 Enterprise M4 under Unix + OC4J as container + Oracle 10g as database.
Regards, adoro -- View this message in context: http://www.nabble.com/OC4J--- JavaScript-tf4315467.html#a12520805 Sent from the XWiki- Dev mailing list archive at Nabble.com.
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
oh I forgot: don't use the developer mailing list. It's for xwiki developers... Next time use the xwiki users mailing list. Thanks -Vincent On Sep 6, 2007, at 1:56 PM, Vincent Massol wrote:
Adoro,
I have already answered to you yesterday.
Please stop spamming the list. This is at least the 4th time you're sending the same email.
Last, it's a bad practice to hijack existing discussion threads. This one is about "OC4J-Javascript", nothing to do with your new question.
Thanks -Vincent
On Sep 6, 2007, at 1:49 PM, adoro wrote:
I have also the problem with saving XwikiPreferences: the attempt to work with tabs "Preferences" and "Rights" in the Administation page comes to java errors:
Error number 3201 in 3: Exception while saving document XWiki.XWikiPreferences Wrapped Exception: could not update: [com.xpn.xwiki.doc.XWikiDocumentArchive#104408758] com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving document XWiki.XWikiPreferences Wrapped Exception: could not update: [com.xpn.xwiki.doc.XWikiDocumentArchive#104408758] at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc (XWikiHibernateStore.java:317) at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc (XWikiCacheStore.java:97) at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc (XWikiCacheStore.java:91) at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:924) at com.xpn.xwiki.web.SaveAction.save(SaveAction.java:113) at com.xpn.xwiki.web.SaveAndContinueAction.action (SaveAndContinueAction.java:64) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:147) 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.doPost (ActionServlet.java:432) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ResourceFilterChain.doFilter (ResourceFilterChain.java:65) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter (SetCharacterEncodingFilter.java:117) at com.evermind.server.http.ServletRequestDispatcher.invoke (ServletRequestDispatcher.java:673) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal (ServletRequestDispatcher.java:340) at com.evermind.server.http.HttpRequestHandler.processRequest (HttpRequestHandler.java:830) at com.evermind.server.http.AJPRequestHandler.run (AJPRequestHandler.java:228) at com.evermind.server.http.AJPRequestHandler.run (AJPRequestHandler.java:133) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run (ReleasableResourcePooledExecutor.java:186) at java.lang.Thread.run(Thread.java:595)
Wrapped Exception:
java.sql.SQLException: setString can only process strings of less than 32766 chararacters at oracle.jdbc.driver.DatabaseError.throwSqlException (DatabaseError.java:137) at oracle.jdbc.driver.DatabaseError.throwSqlException (DatabaseError.java:174) at oracle.jdbc.driver.DatabaseError.throwSqlException (DatabaseError.java:239) at oracle.jdbc.driver.OraclePreparedStatement.setStringInternal (OraclePreparedStatement.java:4771) at oracle.jdbc.driver.OraclePreparedStatement.setString (OraclePreparedStatement.java:4742) at org.apache.commons.dbcp.DelegatingPreparedStatement.setString (DelegatingPreparedStatement.java:131) at org.apache.commons.dbcp.DelegatingPreparedStatement.setString (DelegatingPreparedStatement.java:131) at org.hibernate.type.StringType.set(StringType.java:26) at org.hibernate.type.NullableType.nullSafeSet(NullableType.java:85) at org.hibernate.type.NullableType.nullSafeSet(NullableType.java:58) at org.hibernate.persister.entity.AbstractEntityPersister.dehydrate (AbstractEntityPersister.java:1826) at org.hibernate.persister.entity.AbstractEntityPersister.update (AbstractEntityPersister.java:2172) at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert (AbstractEntityPersister.java:2118) at org.hibernate.persister.entity.AbstractEntityPersister.update (AbstractEntityPersister.java:2374) at org.hibernate.action.EntityUpdateAction.execute (EntityUpdateAction.java:84) at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:243) at org.hibernate.engine.ActionQueue.executeActions (ActionQueue.java:227) at org.hibernate.engine.ActionQueue.executeActions (ActionQueue.java:141) at org.hibernate.event.def.AbstractFlushingEventListener.performExecutio ns(AbstractFlushingEventListener.java:296) at org.hibernate.event.def.DefaultFlushEventListener.onFlush (DefaultFlushEventListener.java:27) at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1009) at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:356) at org.hibernate.transaction.JDBCTransaction.commit (JDBCTransaction.java:106) at com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction (XWikiHibernateBaseStore.java:611) at com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction (XWikiHibernateBaseStore.java:585) at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc (XWikiHibernateStore.java:307) at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc (XWikiCacheStore.java:97) at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc (XWikiCacheStore.java:91) at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:924) at com.xpn.xwiki.web.SaveAction.save(SaveAction.java:113) at com.xpn.xwiki.web.SaveAndContinueAction.action (SaveAndContinueAction.java:64) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:147) 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.doPost (ActionServlet.java:432) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ResourceFilterChain.doFilter (ResourceFilterChain.java:65) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter (SetCharacterEncodingFilter.java:117) at com.evermind.server.http.ServletRequestDispatcher.invoke (ServletRequestDispatcher.java:673) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal (ServletRequestDispatcher.java:340) at com.evermind.server.http.HttpRequestHandler.processRequest (HttpRequestHandler.java:830) at com.evermind.server.http.AJPRequestHandler.run (AJPRequestHandler.java:228) at com.evermind.server.http.AJPRequestHandler.run (AJPRequestHandler.java:133) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run (ReleasableResourcePooledExecutor.java:186) at java.lang.Thread.run(Thread.java:595)
-------
At the same time I get the following javascript error messages in javascript debugger (Firefox):
Error ``ActiveXObject is not defined'' [xs] in file ``http://server/xwiki/skins/albatross/rico/prototype.js'', line 549, character 0. Error ``ActiveXObject is not defined'' [xs] in file ``http://server/xwiki/skins/albatross/rico/prototype.js'', line 550, character 0.
I'm running XWiki 1.1 Enterprise M4 under Unix + OC4J as container + Oracle 10g as database.
Regards, adoro -- View this message in context: http://www.nabble.com/OC4J--- JavaScript-tf4315467.html#a12520805 Sent from the XWiki- Dev mailing list archive at Nabble.com.
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
participants (5)
-
adoro -
adoro -
Ludovic Dubost -
Sergiu Dumitriu -
Vincent Massol