Foros de discusión

Amazon S3 exception

Alex Filia, modificado hace 9 años.

Amazon S3 exception

New Member Mensajes: 24 Fecha de incorporación: 15/04/13 Mensajes recientes
Hi everyone!
I configure Amazon S3 for Liferay 6.2. Everything works fine but I have one problem. I can't update Company logo in my portlet .
I use
CompanyLocalServiceUtil.updateLogo(companyId,inputStream)

but it throw exception:
ERROR [http-bio-8080-exec-58][PortletServlet:116] javax.portlet.PortletException: com.liferay.portal.kernel.exception.SystemException: org.jets3t.service.S3ServiceException: Failed to initialize a SAX XMLReader
javax.portlet.PortletException: com.liferay.portal.kernel.exception.SystemException: org.jets3t.service.S3ServiceException: Failed to initialize a SAX XMLReader
at com.liferay.portal.kernel.portlet.LiferayPortlet.callActionMethod(LiferayPortlet.java:166)

I tried to use souce code from liferay configuration portlet, but it returns the same exception. But default liferay configuration portlet upload logo successfully.
Can you help me?
Without amazons S3 everything works fine
thumbnail
Prakash Khanchandani, modificado hace 9 años.

RE: Amazon S3 exception

Expert Mensajes: 329 Fecha de incorporación: 10/02/11 Mensajes recientes
Can you link to the source of Liferay Configuration portlet and also paste your source code (more than one line).

Thanks
Alex Filia, modificado hace 9 años.

RE: Amazon S3 exception

New Member Mensajes: 24 Fecha de incorporación: 15/04/13 Mensajes recientes
Of course I used all Configuration portlet code.emoticon
Jordi Joan Gomez Augustin, modificado hace 9 años.

RE: Amazon S3 exception

New Member Mensajes: 21 Fecha de incorporación: 18/05/11 Mensajes recientes
Try to create a system-ext.properties (/ROOT/WEB-INF/classes) with the next information
org.xml.sax.driver=com.sun.org.apache.xerces.internal.parsers.SAXParser

Restart the server and test it again

Kind Regards,
Jordi-Joan
Jorge García, modificado hace 8 años.

RE: Amazon S3 exception

New Member Mensajes: 12 Fecha de incorporación: 11/05/12 Mensajes recientes
Thanks so much for the solution, it works like a charm!