I work in a development organization and we want to use XWiki. Even though
we are on an intranet, we still want everyone who uses the site to
authenticate, so that no anonymous users can see any pages except for a
login page.
Can I setup security to force all pages to be secured?
--
View this message in context: http://n2.nabble.com/Secure-all-pages-tp2868888p2868888.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi guys,
can you help me with the exception I get, when viewing Blog.WebHome
from the default xar:
---snip---
Wrapped Exception:
org.apache.velocity.exception.MethodInvocationException: Invocation of
method 'searchDocuments' in class com.xpn.xwiki.api.XWiki threw
exception com.xpn.xwiki.XWikiException: Error number 3223 in 3:
Exception while searching documents with SQL space, doc.name, publish
Date.value from XWiki Document as doc , Base Object obj, Integer
Property is Published, Integer Property hidden, Date Property publish
Date where (doc.hidden <> true or doc.hidden is null) and doc.full
Name <&? Wrapped Exception: could not execute query @
Blog.WebHome6,26?
--snap--
I'm using XWiki with MSSQL. I read that there was something broken
with the mssql hibernate nmapping before 1.9-M1 on jira, but should be
fixed now. So, any clue, what is causing this?
Cheers and thanx in advance,
Sebastian
In 1.8, if too much data is entered in a doc's ?editor=object
fieldXWiki.JavaScriptExtension[] (say
a big chunk of JSON on the order of 97783 bytes) you can no longer save
without getting an underlying error. This appears related to the following:
com.xpn.xwiki.objects.LargeStringProperty -->
com.mysql.jdbc.MysqlDataTruncation:
Data truncation: Data too long for column 'XWL_VALUE' at row 1
How can this be changed to allow for a larger limit on entries? Fortunately,
http://nielsmayer.com/xwiki/bin/view/Exhibit/Presidents3 ( src
<http://nielsmayer.com/xwiki/bin/download/Exhibit/Presidents3/Exhibit.Presid…>)
has entries small enough, but as you grow the amount of Javascript data you
hold in a XWiki.JavaScriptExtension you eventually get a failure like this:
A problem occured while trying to process your request. Please contact the
> webmaster if this happens again.
>
> Detailed information:
>
> Error number 3201 in 3: Exception while saving document Exhibit.pods
> Wrapped Exception: could not update: [com.xpn.xwiki.objects.LargeStringProperty#component[id,name]{id=-2025184002, name=code}]
> com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving document Exhibit.pods
> Wrapped Exception: could not update: [com.xpn.xwiki.objects.LargeStringProperty#component[id,name]{id=-2025184002, name=code}]
> at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:595)
> at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:135)
> at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:128)
> at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1282)
> at com.xpn.xwiki.web.SaveAction.save(SaveAction.java:176)
> at com.xpn.xwiki.web.SaveAndContinueAction.action(SaveAndContinueAction.java:64)
> at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:215)
> at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
> 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)
>
> ...
>
> Wrapped Exception:
>
> com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'XWL_VALUE' at row 1
> at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2983)
> at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1631)
> at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723)
> at com.mysql.jdbc.Connection.execSQL(Connection.java:3256)
> at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1313)
> at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1585)
> at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1500)
> at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1485)
> at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:101)
> at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:101)
> at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2412)
> at org.hibernate.persister.entity.AbstractEntityPersister.updateOrInsert(AbstractEntityPersister.java:2312)
> at org.hibernate.persister.entity.AbstractEntityPersister.update(AbstractEntityPersister.java:2612)
> at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:96)
> at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
> at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
> at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:168)
> at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
> at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
> at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
> at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
> at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
> at com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHibernateBaseStore.java:866)
> at com.xpn.xwiki.store.XWikiHibernateBaseStore.endTransaction(XWikiHibernateBaseStore.java:837)
> at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:585)
> at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:135)
> at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:128)
> at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1282)
> at com.xpn.xwiki.web.SaveAction.save(SaveAction.java:176)
> at com.xpn.xwiki.web.SaveAndContinueAction.action(SaveAndContinueAction.java:64)
>
>
Thanks.
Niels
http://nielsmayer.com
The XWiki development team is pleased to announce the release of XWiki
Enterprise 1.8.3 and XWiki Enterprise Manager 1.6.3.
Go grab it at http://www.xwiki.org/xwiki/bin/view/Main/Download
This release contains 59 bugfixes and enhancements. Most of the
modifications are targeting the general replacement of old 1.0 code and
content by 2.0 syntax and architecture and the stabilization of XWiki.
Summary of changes since XWiki Enterprise 1.8.2:
* Many WYSIWYG bugs fixed and improvements
* Many 2.0 syntax bugs fixed
* Many 1.0 to 2.0 conversion bugs fixed
* Several PDF export bugs fixed and improvements
* Improvements for the Office Importer
* A few bug fixes in many other places
For more information see the Release notes at:
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXWikiEnterprise183
and http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesXEM163
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
Hi to everyone here,
I have been experimenting with XWiki and am impressed so far.
One question: editing by section ("sectional editing" in xwiki.cfg,
activated by setting xwiki.section.edit=1 there) does not appear to work
with a page written in XWiki syntax 2.0 whilst it does work in XWiki
syntax 1.0.
(Version: XWiki Enterprise 1.8.17790)
Is this by design?
Any thoughts appreciated. I only noticed this change after converting a
number of pages from syntax 1.0 to syntax 2.0
Thanks,
Chris Wood
You are my man Jerome !!!
The "$doc" & "parse=Yes" worked...Thank you so much.
Awesome !!!
I've got a nice working tree from a static ul-li list.
The idea was to have a "if-else" sort of troubleshooting guide for my
organization's helpdesk.
Would love to put this up on code.xwiki.org. Before that want to clean the
documents a bit.
Also, need to re-read the tutorial on packaging applications.
Once again, thanks Jerome...
>
>
> ------------------------------
>
> Message: 2
> Date: Sun, 10 May 2009 11:18:59 +0300
> From: Jerome Velociter <jerome(a)xwiki.com>
> Subject: Re: [xwiki-users] new application css+image
> To: XWiki Users <users(a)xwiki.org>
> Message-ID: <4A068DF3.6010904(a)xwiki.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hello,
>
> If "minus.gif" is attached to the document that holds the SSX object,
> the right line is :
>
> ul.mktree li.liOpen .bullet { cursor: pointer; background:
> url($doc.getAttachmentURL("minus.gif")) center left no-repeat; }
>
> ($doc instead of $xwiki)
>
> Make sure you also said "Yes" to the parse content option of the SSX,
> and it should all work fine :)
>
> Cheers,
> Jerome
>
>
> Dilipkumar Jadhav wrote:
> > Hello friends,
> > I am trying to use the work of Mark Strauss (mktree) found at
> > http://www.javascripttoolbox.com/lib/mktree/ in xwiki application/plugin
> > that allows creation of collapsible tree from a static ul and lit list.
> > So far, I had it working through by adding the javascript and the css
> file
> > by adding the actual path of these files in the "presentation" section of
> > the admin dashboard.
> > However, I wanted it to be more organized and make it available on
> demand.
> > So i created the jsx and the ssx files in place of the javascript and the
> > css files.
> > So far so good.
> > However, there are images that were referred by the css file which worked
> > fine in the previous setup (basically they assign a plus and minus sign
> on
> > the right of the ul and li elements).
> > Now, I've attached these image files to the ssx. But I am not able to get
> > the ssx to work with the images. The Javascript works fine from the jsx.
> The
> > tree does collapse and expand as expected. However, the images from the
> > style sheet does not show up.
> > I've used the following line in the "object" edit mode of the ssx page:
> >
> > ul.mktree li.liOpen .bullet { cursor: pointer; background:
> > url($xwiki.getAttachmentURL("minus.gif")) center left no-repeat; }
> >
> > ...here minus.gif is attached to the ssx page. But no go.
> > I did go through the various resources on skin customizations and the
> > addsizes extension tutorial. I could not understand the "use velocity to
> > attach images" technique in the addsizes tutorial. Is there a simpler way
> to
> > make the ssx pick up the image files and behave just like a normal css
> > file?...
> > Any help would be appreciated.
> > Thank you all.
> > _______________________________________________
> > users mailing list
> > users(a)xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
>
>
>
> ------------------------------
>
> Message: 3
> Date: Sun, 10 May 2009 11:22:44 +0300
> From: Jerome Velociter <jerome(a)xwiki.com>
> Subject: Re: [xwiki-users] new application css+image
> To: XWiki Users <users(a)xwiki.org>
> Message-ID: <4A068ED4.4040506(a)xwiki.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Dilipkumar Jadhav wrote:
> > Hello friends,
> > I am trying to use the work of Mark Strauss (mktree) found at
> > http://www.javascripttoolbox.com/lib/mktree/ in xwiki application/plugin
>
> Forgot to say BTW, this is cool :) You should publish it on
> code.xwiki.org once it's finished, I'm sure it can come handy to other
> application developers.
>
> Jerome.
> > that allows creation of collapsible tree from a static ul and lit list.
> > So far, I had it working through by adding the javascript and the css
> file
> > by adding the actual path of these files in the "presentation" section of
> > the admin dashboard.
> > However, I wanted it to be more organized and make it available on
> demand.
> > So i created the jsx and the ssx files in place of the javascript and the
> > css files.
> > So far so good.
> > However, there are images that were referred by the css file which worked
> > fine in the previous setup (basically they assign a plus and minus sign
> on
> > the right of the ul and li elements).
> > Now, I've attached these image files to the ssx. But I am not able to get
> > the ssx to work with the images. The Javascript works fine from the jsx.
> The
> > tree does collapse and expand as expected. However, the images from the
> > style sheet does not show up.
> > I've used the following line in the "object" edit mode of the ssx page:
> >
> > ul.mktree li.liOpen .bullet { cursor: pointer; background:
> > url($xwiki.getAttachmentURL("minus.gif")) center left no-repeat; }
> >
> > ...here minus.gif is attached to the ssx page. But no go.
> > I did go through the various resources on skin customizations and the
> > addsizes extension tutorial. I could not understand the "use velocity to
> > attach images" technique in the addsizes tutorial. Is there a simpler way
> to
> > make the ssx pick up the image files and behave just like a normal css
> > file?...
> > Any help would be appreciated.
> > Thank you all.
> > _______________________________________________
> > users mailing list
> > users(a)xwiki.org
> > http://lists.xwiki.org/mailman/listinfo/users
>
>
>
Hi,
by changing manullay the date attribute in table xwikilock I have found that
xwikilock lasts only about 30-45 minutes (approximatelly). Is there any way
how to increase this time? I haven't found it neither in xwiki.cfg nor
hibernate.cfg.xml...
And second question, if one user starts editing any page, then another user
can also edit this page at the same time just by confirming alert message
that is saying that other user is already editing this page. Is there any
way how to disable this option that 2 users can edit the same page at the
same time?
Thanks for help
--
View this message in context: http://n2.nabble.com/XWikiLock-and-it%27s-duration-time-tp2850310p2850310.h…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Env: Installed xwiki-enterprise-web-1.8.2.war on Pramati Appl Server
(www.pramati.com). Using HSQL database in server mode.
Create an user without any admin rights. Login from a browser (FF3, IE7,
Chrome1). When the login page loads the following error
is logged to the server console. The user can login and work properly but
the error should not happen. I am using XWiki for
critical business purpose. I need to resolve it asap.
[ERROR] Method checkAccess threw exception for reference $xwiki in template
/templates/menuview.vm at [128,61]
org.xwiki.velocity.XWikiVelocityException: Failed to evaluate content with
id [/templates/menuview.vm]
at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:187)
at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:143)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1605)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:656)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178)
at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:143)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1605)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:656)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178)
at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:143)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1605)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:124)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:72)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:255)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
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:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
com.pramati.web.servlet.core.ServiceAction.run(ServiceAction.java:83)
at
com.pramati.security.util.PramatiSecurityHelper._doAs(PramatiSecurityHelper.java:54)
at
com.pramati.security.util.AbstractSecurityHelper._doAs(AbstractSecurityHelper.java:195)
at
com.pramati.services.security.spi.SecurityHelper.doAs(SecurityHelper.java:146)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.invokeTargetWebResource(PramatiFilterChainImpl.java:317)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.doFilter(PramatiFilterChainImpl.java:168)
at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:145)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.invokeTargetFilter(PramatiFilterChainImpl.java:243)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.doFilter(PramatiFilterChainImpl.java:160)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:111)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.invokeTargetFilter(PramatiFilterChainImpl.java:243)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.doFilter(PramatiFilterChainImpl.java:160)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.invokeTargetFilter(PramatiFilterChainImpl.java:243)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.doFilter(PramatiFilterChainImpl.java:160)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.invokeTargetFilter(PramatiFilterChainImpl.java:243)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.doFilter(PramatiFilterChainImpl.java:160)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.invokeTargetFilter(PramatiFilterChainImpl.java:243)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.doFilter(PramatiFilterChainImpl.java:160)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.startDoFilter(PramatiFilterChainImpl.java:120)
at
com.pramati.web.interceptors.ServiceInterceptor.preProcess(ServiceInterceptor.java:114)
at
com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultInterceptor.java:70)
at
com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(InterceptorChainImpl.java:48)
at
com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultInterceptor.java:71)
at
com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(InterceptorChainImpl.java:48)
at
com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultInterceptor.java:71)
at
com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(InterceptorChainImpl.java:48)
at
com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultInterceptor.java:71)
at
com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(InterceptorChainImpl.java:48)
at
com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultInterceptor.java:71)
at
com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(InterceptorChainImpl.java:48)
at
com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultInterceptor.java:71)
at
com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(InterceptorChainImpl.java:48)
at
com.pramati.web.interceptors.core.DefaultProcessContainer.process(DefaultProcessContainer.java:97)
at
com.pramati.web.core.WorkerThread.processConnection(WorkerThread.java:289)
at
com.pramati.web.core.WorkerThread.processConnection(WorkerThread.java:263)
at com.pramati.web.core.WorkerThread.run(WorkerThread.java:129)
Caused by: org.apache.velocity.exception.MethodInvocationException:
Invocation of method 'checkAccess' in class
com.xpn.xwiki.api.XWiki threw exception java.lang.IllegalStateException:
Response is already committed @ /templates/menuview.vm
[128,68]
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:286)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
at
org.apache.velocity.runtime.parser.node.ASTReference.evaluate(ASTReference.java:396)
at
org.apache.velocity.runtime.parser.node.ASTAndNode.evaluate(ASTAndNode.java:111)
at
org.apache.velocity.runtime.parser.node.ASTAndNode.evaluate(ASTAndNode.java:109)
at
org.apache.velocity.runtime.parser.node.ASTAndNode.value(ASTAndNode.java:74)
at
org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:73)
at
org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:125)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:88)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178)
... 86 more
Caused by: java.lang.IllegalStateException: Response is already committed
at
com.pramati.web.servlet.core.PramatiHttpServletResponseImpl.sendRedirect(PramatiHttpServletResponseImpl.java:1594)
at
com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.showLogin(MyFormAuthenticator.java:81)
at
com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.showLogin(MyFormAuthenticator.java:62)
at
com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl.showLogin(XWikiAuthServiceImpl.java:332)
at
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkAccess(XWikiRightServiceImpl.java:179)
at com.xpn.xwiki.XWiki.checkAccess(XWiki.java:3628)
at com.xpn.xwiki.api.XWiki.checkAccess(XWiki.java:190)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
... 97 more
[ERROR] Method checkAccess threw exception for reference $xwiki in template
/templates/menuview.vm at [128,61]
org.xwiki.velocity.XWikiVelocityException: Failed to evaluate content with
id [/templates/menuview.vm]
at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:187)
at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:143)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1605)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:656)
at sun.reflect.GeneratedMethodAccessor203.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178)
at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:143)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1605)
at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:656)
at sun.reflect.GeneratedMethodAccessor203.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:294)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at
org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:194)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:170)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178)
at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:143)
at
com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:108)
at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:1605)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:124)
at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:72)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:255)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:115)
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:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
com.pramati.web.servlet.core.ServiceAction.run(ServiceAction.java:83)
at
com.pramati.security.util.PramatiSecurityHelper._doAs(PramatiSecurityHelper.java:54)
at
com.pramati.security.util.AbstractSecurityHelper._doAs(AbstractSecurityHelper.java:195)
at
com.pramati.services.security.spi.SecurityHelper.doAs(SecurityHelper.java:146)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.invokeTargetWebResource(PramatiFilterChainImpl.java:317)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.doFilter(PramatiFilterChainImpl.java:168)
at
com.xpn.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:145)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.invokeTargetFilter(PramatiFilterChainImpl.java:243)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.doFilter(PramatiFilterChainImpl.java:160)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:111)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.invokeTargetFilter(PramatiFilterChainImpl.java:243)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.doFilter(PramatiFilterChainImpl.java:160)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.invokeTargetFilter(PramatiFilterChainImpl.java:243)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.doFilter(PramatiFilterChainImpl.java:160)
at
com.xpn.xwiki.web.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:295)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.invokeTargetFilter(PramatiFilterChainImpl.java:243)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.doFilter(PramatiFilterChainImpl.java:160)
at
com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:112)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.invokeTargetFilter(PramatiFilterChainImpl.java:243)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.doFilter(PramatiFilterChainImpl.java:160)
at
com.pramati.web.servlet.core.PramatiFilterChainImpl.startDoFilter(PramatiFilterChainImpl.java:120)
at
com.pramati.web.interceptors.ServiceInterceptor.preProcess(ServiceInterceptor.java:114)
at
com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultInterceptor.java:70)
at
com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(InterceptorChainImpl.java:48)
at
com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultInterceptor.java:71)
at
com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(InterceptorChainImpl.java:48)
at
com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultInterceptor.java:71)
at
com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(InterceptorChainImpl.java:48)
at
com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultInterceptor.java:71)
at
com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(InterceptorChainImpl.java:48)
at
com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultInterceptor.java:71)
at
com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(InterceptorChainImpl.java:48)
at
com.pramati.web.interceptors.core.DefaultInterceptor.process(DefaultInterceptor.java:71)
at
com.pramati.web.interceptors.core.InterceptorChainImpl.processNext(InterceptorChainImpl.java:48)
at
com.pramati.web.interceptors.core.DefaultProcessContainer.process(DefaultProcessContainer.java:97)
at
com.pramati.web.core.WorkerThread.processConnection(WorkerThread.java:289)
at
com.pramati.web.core.WorkerThread.processConnection(WorkerThread.java:263)
at com.pramati.web.core.WorkerThread.run(WorkerThread.java:129)
Caused by: org.apache.velocity.exception.MethodInvocationException:
Invocation of method 'checkAccess' in class
com.xpn.xwiki.api.XWiki threw exception java.lang.IllegalStateException:
Response is already committed @ /templates/menuview.vm
[128,68]
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:286)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:203)
at
org.apache.velocity.runtime.parser.node.ASTReference.evaluate(ASTReference.java:396)
at
org.apache.velocity.runtime.parser.node.ASTAndNode.evaluate(ASTAndNode.java:111)
at
org.apache.velocity.runtime.parser.node.ASTAndNode.evaluate(ASTAndNode.java:109)
at
org.apache.velocity.runtime.parser.node.ASTAndNode.value(ASTAndNode.java:74)
at
org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:73)
at
org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:125)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:74)
at
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:88)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:318)
at
org.xwiki.velocity.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:178)
... 84 more
Caused by: java.lang.IllegalStateException: Response is already committed
at
com.pramati.web.servlet.core.PramatiHttpServletResponseImpl.sendRedirect(PramatiHttpServletResponseImpl.java:1594)
at
com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.showLogin(MyFormAuthenticator.java:81)
at
com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.showLogin(MyFormAuthenticator.java:62)
at
com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl.showLogin(XWikiAuthServiceImpl.java:332)
at
com.xpn.xwiki.user.impl.xwiki.XWikiRightServiceImpl.checkAccess(XWikiRightServiceImpl.java:179)
at com.xpn.xwiki.XWiki.checkAccess(XWiki.java:3628)
at com.xpn.xwiki.api.XWiki.checkAccess(XWiki.java:190)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:295)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:245)
--
View this message in context: http://n2.nabble.com/%27Response-is-already-committed%27-when-user-logs-in-…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hello friends,
I am trying to use the work of Mark Strauss (mktree) found at
http://www.javascripttoolbox.com/lib/mktree/ in xwiki application/plugin
that allows creation of collapsible tree from a static ul and lit list.
So far, I had it working through by adding the javascript and the css file
by adding the actual path of these files in the "presentation" section of
the admin dashboard.
However, I wanted it to be more organized and make it available on demand.
So i created the jsx and the ssx files in place of the javascript and the
css files.
So far so good.
However, there are images that were referred by the css file which worked
fine in the previous setup (basically they assign a plus and minus sign on
the right of the ul and li elements).
Now, I've attached these image files to the ssx. But I am not able to get
the ssx to work with the images. The Javascript works fine from the jsx. The
tree does collapse and expand as expected. However, the images from the
style sheet does not show up.
I've used the following line in the "object" edit mode of the ssx page:
ul.mktree li.liOpen .bullet { cursor: pointer; background:
url($xwiki.getAttachmentURL("minus.gif")) center left no-repeat; }
...here minus.gif is attached to the ssx page. But no go.
I did go through the various resources on skin customizations and the
addsizes extension tutorial. I could not understand the "use velocity to
attach images" technique in the addsizes tutorial. Is there a simpler way to
make the ssx pick up the image files and behave just like a normal css
file?...
Any help would be appreciated.
Thank you all.