[JBoss JIRA] Created: (SEAMSERVLET-35) Calling session-scoped components from session initialized observer goes into infinite loop
by Nicklas Karlsson (JIRA)
Calling session-scoped components from session initialized observer goes into infinite loop
-------------------------------------------------------------------------------------------
Key: SEAMSERVLET-35
URL: https://issues.jboss.org/browse/SEAMSERVLET-35
Project: Seam Servlet
Issue Type: Bug
Components: Event Bridge
Affects Versions: 3.0.0.CR3
Reporter: Nicklas Karlsson
Given a session scoped component
@SessionScoped
public class Pinger implements Serializable
{
public void ping()
{
};
}
and a session initialized observer calling it
public class Observer
{
@Inject
Pinger pinger;
public void newSession(@Observes @Initialized HttpSession s)
{
pinger.ping();
}
}
We go off into an infinite loop. Since Pinger doesn't exist, it is created and placed in the session scoped beanstore, which creates a session and fires off the observer. I'm not sure why the session isn't considered created at this point. This is bordering on feature since I think the result would be the same if servlet listeners would be used. Perhaps this could be worked around int the event bridge somehow so that the firing would be prevented if we're already handling the session created event...
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 8 months
[JBoss JIRA] Created: (SEAMSECURITY-61) UserQuery QueryException on Glassfish 3.1 using EclipseLink
by Pablo Martinez (JIRA)
UserQuery QueryException on Glassfish 3.1 using EclipseLink
------------------------------------------------------------
Key: SEAMSECURITY-61
URL: https://issues.jboss.org/browse/SEAMSECURITY-61
Project: Seam Security
Issue Type: Bug
Affects Versions: 3.0.0.Final
Environment: Ubuntu 10.10, Glassfish 3.1, Seam 3.0.0.Final, EclipseLink (JPA 2)
Reporter: Pablo Martinez
this code is throwing a QueryException
{code}
UserQuery qry = identitySession.createUserQueryBuilder().withUserId("admin").createQuery();
try {
this.users = identitySession.list(qry);
} catch (QueryException ex) {
ex.printStackTrace();
}
{code}
Exception thrown: http://pastebin.com/2B8ev7sL
special line:
{code}
Exception Description: Syntax error parsing the query [select t from domain.identity.IdentityObjectType t where t.name = :identityType], line 1, column 20: syntax error at [.].
Internal Exception: UnwantedTokenException(found=., expected 80)
at org.eclipse.persistence.exceptions.JPQLException.syntaxErrorAt(JPQLException.java:362)
{code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 8 months