2012-02-28 40 views
0

當我嘗試上載文件時,Grails會拋出異常。我該如何解決它?我不認爲上傳的問題。IllegalStateException:綁定到線程[]的鍵[org.hibernate.impl.SessionFactoryImpl @]沒有值 - 上傳文件時有時候


java.lang.IllegalStateException: No value for key [[email protected]] bound to thread [http-8080-6] at com.gramant.web.PatchedGrailsPageFilter.doFilter(PatchedGrailsPageFilter.java:77) at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:359) at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:275) at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:344) at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:272) at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:81) at org.apache.shiro.grails.SavedRequestFilter.doFilter(SavedRequestFilter.java:55) at java.lang.Thread.run(Thread.java:722)

回答

0

通過註釋定義線條解決/*GrailsWebUtil.bindMockWebRequest(SpringUtils.ctx)*/

相關問題