Re: [xwiki-users] Profile Pictures not displayed after upgrade

2014-03-27 Thread Hamster
Gedetailleerde informatie:
Error number 0 in 11: Uncaught exception
com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:317)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:129)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:121)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:126)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:701)
Caused by: java.lang.NoClassDefFoundError: Could not initialize class
sun.awt.X11GraphicsEnvironment
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:190)
at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1182)
at
com.xpn.xwiki.internal.plugin.image.DefaultImageProcessor.scaleImage(DefaultImageProcessor.java:106)
at 
com.xpn.xwiki.plugin.image.ImagePlugin.shrinkImage(ImagePlugin.java:328)
at
com.xpn.xwiki.plugin.image.ImagePlugin.downloadImageFromCache(ImagePlugin.java:284)
at
com.xpn.xwiki.plugin.image.ImagePlugin.downloadImage(ImagePlugin.java:247)
at
com.xpn.xwiki.plugin.image.ImagePlugin.downloadAttachment(ImagePlugin.java:220)
at
com.xpn.xwiki.plugin.XWikiPluginManager.downloadAttachment(XWikiPluginManager.java:292)
at com.xpn.xwiki.web.DownloadAction.render(DownloadAction.java:111)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:294)
... 38 more



--
View this message in context: 

Re: [xwiki-users] Profile Pictures not displayed after upgrade

2014-03-27 Thread Hamster
We also receive this error when we want to insert a picture.

Looks like something went wrong when we upgraded from 4.0 to 5.4.2

How can we fix the pictures from the database?

http://xwiki.475771.n2.nabble.com/file/n7589838/Insert_Image_error.png 



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Profile-Pictures-not-displayed-after-upgrade-tp7589809p7589838.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Profile Pictures not displayed after upgrade

2014-03-27 Thread Marius Dumitru Florea
On Thu, Mar 27, 2014 at 9:54 AM, Hamster teun...@hotmail.com wrote:
 Gedetailleerde informatie:
 Error number 0 in 11: Uncaught exception
 com.xpn.xwiki.XWikiException: Error number 0 in 11: Uncaught exception
 at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:317)
 at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:129)
 at
 org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
 at
 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
 at 
 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
 at 
 org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:121)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at
 org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:126)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at
 com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:66)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at
 org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at
 org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
 at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
 at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
 at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
 at
 org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
 at
 org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
 at
 org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)
 at
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
 at
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
 at java.lang.Thread.run(Thread.java:701)

 Caused by: java.lang.NoClassDefFoundError: Could not initialize class
 sun.awt.X11GraphicsEnvironment

https://www.google.com/#q=Could+not+initialize+class+%3E+sun.awt.X11GraphicsEnvironment

This is just a sever configuration issue on your side. There's nothing
wrong on the XWiki side.

Hope this helps,
Marius

 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Class.java:190)
 at
 java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
 at 
 java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1182)
 at
 com.xpn.xwiki.internal.plugin.image.DefaultImageProcessor.scaleImage(DefaultImageProcessor.java:106)
 at 
 com.xpn.xwiki.plugin.image.ImagePlugin.shrinkImage(ImagePlugin.java:328)
 at
 com.xpn.xwiki.plugin.image.ImagePlugin.downloadImageFromCache(ImagePlugin.java:284)
 at
 com.xpn.xwiki.plugin.image.ImagePlugin.downloadImage(ImagePlugin.java:247)
 at
 

Re: [xwiki-users] Profile Pictures not displayed after upgrade

2014-03-27 Thread Hamster
Thanks Marius,

We have made some more tweaks to the startup script, the pictures are
working again.

Thanks again for helping out!




--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Profile-Pictures-not-displayed-after-upgrade-tp7589809p7589849.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Profile Pictures not displayed after upgrade

2014-03-26 Thread Marius Dumitru Florea
First you should check if the URLs of those images (attachment
download URLs) are correct. Then you should check if non-image
attachments are downloadable (if the image attachments are not
accessible then the rest of the attachments should have the same
problem). Then you should try to upload an attachment, restart the
server and then try to access that attachment so see if new
attachments are fine. Finally,  are the attachments stored in the
database (default) or did you configure the file system attachment
store? In both cases you should check if the attachments are still in
the store (database or file system).

Hope this helps,
Marius


On Wed, Mar 26, 2014 at 10:48 AM, Hamster teun...@hotmail.com wrote:
 We have upgraded our XWiki from 4.0 to 5.4.2

 We have managed to get almost everything up and running, except that the
 profile pictures are not shown (only a small black cross is shown, with the
 text Picture of XXX

 Also, lots of pages do not show the attached pictures.

 I think both are related, but I don't know where to search or what to
 change!



 --
 View this message in context: 
 http://xwiki.475771.n2.nabble.com/Profile-Pictures-not-displayed-after-upgrade-tp7589809.html
 Sent from the XWiki- Users mailing list archive at Nabble.com.
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Profile Pictures not displayed after upgrade

2014-03-26 Thread Clemens Klein-Robbenhaar
On 03/26/2014 09:48 AM, Hamster wrote:
 We have upgraded our XWiki from 4.0 to 5.4.2
 
 We have managed to get almost everything up and running, except that the
 profile pictures are not shown (only a small black cross is shown, with the
 text Picture of XXX
 
 Also, lots of pages do not show the attached pictures.

For lots or for all of the pages?
If it is all images it looks like a change in the attachment store from DB to 
filesystem or the other way around.

What does xwiki.store.attachment.hint in xwiki.cfg say? Have there been any 
changes to that config while upgrading?
(The default value has not changed, so if you are sure that value has neither 
been touched before nor after, then its a different issue)

 
 I think both are related, but I don't know where to search or what to
 change!
 
 

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Profile Pictures not displayed after upgrade

2014-03-26 Thread Hamster
We have taken a look at the URL.
For the pictures that DON'T load, the URL has extra parameters
(?width=120height=500) for example.

One picture even had
(width=500width=500width=500width=500width=500width=500width=500width=500width=500width=500...)
etc.

The picture can be accessed normaly on the attachments tab.

The xwiki.store.attachment.hint in the xwiki.cfg is all set to hibernate
(which is the default setting).

So the problem seems to be the extra parameters in the URL...how can we fix
those?
 



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Profile-Pictures-not-displayed-after-upgrade-tp7589809p7589814.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Profile Pictures not displayed after upgrade

2014-03-26 Thread Marius Dumitru Florea
On Wed, Mar 26, 2014 at 11:37 AM, Hamster teun...@hotmail.com wrote:
 We have taken a look at the URL.

 For the pictures that DON'T load, the URL has extra parameters
 (?width=120height=500) for example.

These parameters are used to resize the image on the server side (to
reduce the network traffic). If the resize fails on the server side
you should see something related in the server logs. Nothing there?

Hope this helps,
Marius


 One picture even had
 (width=500width=500width=500width=500width=500width=500width=500width=500width=500width=500...)
 etc.

 The picture can be accessed normaly on the attachments tab.

 The xwiki.store.attachment.hint in the xwiki.cfg is all set to hibernate
 (which is the default setting).

 So the problem seems to be the extra parameters in the URL...how can we fix
 those?




 --
 View this message in context: 
 http://xwiki.475771.n2.nabble.com/Profile-Pictures-not-displayed-after-upgrade-tp7589809p7589814.html
 Sent from the XWiki- Users mailing list archive at Nabble.com.
 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users