Technote (troubleshooting)
Problem
Users can not preview images that are uploaded to Media Gallery
Symptom
Errors are displayed in the trace.log
PhotoRenditio W
com.ibm.lconn.media.renditions.PhotoRenditionEventHandler init
exception while generating photo renditions
org.apache.commons.httpclient.ProtocolException: Unbuffered entity
enclosing request can not be repeated.
at
org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequest
Body(EntityEnclosingMethod.java:483)
at
org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase
.java:1973)
[12/12/11 10:45:49:140 EST] 00000064 SubscriberMan E
com.ibm.lconn.events.internal.spi.async.SubscriberManager run
CLFWY0202E: The event handler named PhotoRenditionEventHandler threw an
exception when handling an event. Check nested exception for more
details.
Cause
This issue can occur when the default user is changed in the connectionsAdmin account.
Diagnosing the problem
Enable the event handler trace for Files preview generator:
com.ibm.lconn.media.renditions.*=all
Resolving the problem
1. Create a new Security Role for mediaGalleryAdmin by going to:
Security > Global security > Java Authentication and Authorization Service > JAAS - J2C authentication data.
Select New and set the alias to mediaGalleryAdmin, and add an admin user who can authenticate and exists in the Profiles database.
2. Then add the user from the mediaGallery j2c role, to the Security Role for admin in the Files Application.
3. Also replace the connectionsAdmin role with the newly created mediaGalleryAdmin role to the j2c property in the events-config.xml
<property name="j2calias">mediaGalleryAdmin</property>
Rate this page:
Copyright and trademark information
IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.