topolik / FSRepo

Documents & Media repository for accessing local file system
13 stars 13 forks source link

Clicking on download file throws error #8

Closed rnsammeta closed 12 years ago

rnsammeta commented 12 years ago

After mapping to the existing file system path, if we click on download file (any file other than images), through Documents and Media display portlet, is throwing an exception.

topolik commented 12 years ago

Hi sammeta78, please can you share the exception stacktrace?

Thank you!

-- tom

rnsammeta commented 12 years ago

Hi Tom,

There's not much of a stack trace but it gives me the following error when I click on the download button (with latest war).

The requested resource was not found.

http://localhost:8083/documents/12882/12883/Weekly%20MashUp%20Stats.xls?version=1.0&t=1340729505440

With the old war (1.0) it downloads the file though, albeit it gives me the following exception stack trace when I click on the file or 'VIEW' icon, (both the wars are tested on Liferay 6.1)

Caused by: org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here at org.springframework.orm.hibernate3.SpringSessionContext.currentSession(SpringSessionContext.java:63) at org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:687) at com.liferay.portal.dao.orm.hibernate.SessionFactoryImpl.openSession(SessionFactoryImpl.java:73) at com.liferay.portal.service.persistence.impl.BasePersistenceImpl.openSession(BasePersistenceImpl.java:181) at com.liferay.portal.service.persistence.RepositoryEntryPersistenceImpl.fetchByR_M(RepositoryEntryPersistenceImpl.java:1566)

-Ram

topolik commented 12 years ago

OK, I'm not sure but I think I already fixed it.

Can you please try to build the war from github sources and try again?

Thank you.

-- tom

rnsammeta commented 12 years ago

Works fine. Thanks!