Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clicking on download file throws error #8

Closed
rnsammeta opened this issue Jun 26, 2012 · 4 comments
Closed

Clicking on download file throws error #8

rnsammeta opened this issue Jun 26, 2012 · 4 comments

Comments

@rnsammeta
Copy link

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
Copy link
Owner

topolik commented Jun 26, 2012

Hi sammeta78, please can you share the exception stacktrace?

Thank you!

-- tom

@rnsammeta
Copy link
Author

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
Copy link
Owner

topolik commented Jun 26, 2012

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
Copy link
Author

Works fine. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants