Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: Grails-Cloud-Foundry 1.2.1
-
Fix Version/s: None
-
Labels:None
-
Environment:Mac OS 10.7
Description
The Grails application does not start correctly with the latest spring-security-core plugin (1.2.7.1). While it's working fine with a "run-app" in dev mode an deployment to cloudfoundry.com results in following error:
Class
.lang.IllegalStateException
Message
No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.
Latest spring-security-core and resources plugin where used:
runtime ":spring-security-core:1.2.7.1"
runtime ":resources:1.1.6"
As discussed on the mailling list the last compatible spring-security-core plugin is v1.2.4. After downgrading to this version is also working on cloudfoundry.com
http://grails.1312388.n4.nabble.com/Problem-with-Cloud-Foundry-Plugin-tp4299226p4316053.html
Activity
| Field | Original Value | New Value |
|---|---|---|
| Description | Sometimes I get an "unexpected end of file from server" when running cf-push. Repeating the command resolves this usually. | The Grails application does not correctly start witht the latest spring-security-core plugin (1.2.7.1). Other user have reported this issue here: |
| Affects Version/s | Grails-Cloud-Foundry 1.2.1 [ 13032 ] | |
| Description | The Grails application does not correctly start witht the latest spring-security-core plugin (1.2.7.1). Other user have reported this issue here: |
The Grails application does not correctly start witht the latest spring-security-core plugin (1.2.7.1). Other user have reported this issue here:
{{Class java.lang.IllegalStateException Message No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.}} Latest spring-security-core and resources plugin: {{runtime ":spring-security-core:1.2.7.1"}} {{runtime ":resources:1.1.6"}} As discussed on the mailling list the last compatible spring-security-core plugin is v1.2.4. http://grails.1312388.n4.nabble.com/Problem-with-Cloud-Foundry-Plugin-tp4299226p4316053.html |
| Description |
The Grails application does not correctly start witht the latest spring-security-core plugin (1.2.7.1). Other user have reported this issue here:
{{Class java.lang.IllegalStateException Message No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.}} Latest spring-security-core and resources plugin: {{runtime ":spring-security-core:1.2.7.1"}} {{runtime ":resources:1.1.6"}} As discussed on the mailling list the last compatible spring-security-core plugin is v1.2.4. http://grails.1312388.n4.nabble.com/Problem-with-Cloud-Foundry-Plugin-tp4299226p4316053.html |
The Grails application does not correctly start witht the latest spring-security-core plugin (1.2.7.1). Other user have reported this issue here:
{{Class}} {{.lang.IllegalStateException}} {{Message}} {{ No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.}} Latest spring-security-core and resources plugin: {{runtime ":spring-security-core:1.2.7.1"}} {{runtime ":resources:1.1.6"}} As discussed on the mailling list the last compatible spring-security-core plugin is v1.2.4. http://grails.1312388.n4.nabble.com/Problem-with-Cloud-Foundry-Plugin-tp4299226p4316053.html |
| Description |
The Grails application does not correctly start witht the latest spring-security-core plugin (1.2.7.1). Other user have reported this issue here:
{{Class}} {{.lang.IllegalStateException}} {{Message}} {{ No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.}} Latest spring-security-core and resources plugin: {{runtime ":spring-security-core:1.2.7.1"}} {{runtime ":resources:1.1.6"}} As discussed on the mailling list the last compatible spring-security-core plugin is v1.2.4. http://grails.1312388.n4.nabble.com/Problem-with-Cloud-Foundry-Plugin-tp4299226p4316053.html |
The Grails application does not correctly start witht the latest spring-security-core plugin (1.2.7.1). Other user have reported this issue here:
{quote} Class .lang.IllegalStateException Message No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request. {quote} Latest spring-security-core and resources plugin: {{runtime ":spring-security-core:1.2.7.1"}} {{runtime ":resources:1.1.6"}} As discussed on the mailling list the last compatible spring-security-core plugin is v1.2.4. http://grails.1312388.n4.nabble.com/Problem-with-Cloud-Foundry-Plugin-tp4299226p4316053.html |
| Description |
The Grails application does not correctly start witht the latest spring-security-core plugin (1.2.7.1). Other user have reported this issue here:
{quote} Class .lang.IllegalStateException Message No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request. {quote} Latest spring-security-core and resources plugin: {{runtime ":spring-security-core:1.2.7.1"}} {{runtime ":resources:1.1.6"}} As discussed on the mailling list the last compatible spring-security-core plugin is v1.2.4. http://grails.1312388.n4.nabble.com/Problem-with-Cloud-Foundry-Plugin-tp4299226p4316053.html |
The Grails application does not start correctly with the latest spring-security-core plugin (1.2.7.1). While it's working fine with a "run-app" in dev mode an deployment to cloudfoundry.com results in following error:
{quote} Class .lang.IllegalStateException Message No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request. {quote} Latest spring-security-core and resources plugin where used: {{runtime ":spring-security-core:1.2.7.1"}} {{runtime ":resources:1.1.6"}} As discussed on the mailling list the last compatible spring-security-core plugin is v1.2.4. After downgrading to this version is also working on cloudfoundry.com http://grails.1312388.n4.nabble.com/Problem-with-Cloud-Foundry-Plugin-tp4299226p4316053.html |
| Status | Open [ 1 ] | Closed [ 6 ] |
| Resolution | Fixed [ 1 ] |
Similar or duplicate of
GRAILS-8501