[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-3412) .page.xml are only loaded for pages with .xhtml extesnion.
by Prashant Kadam (JIRA)
.page.xml are only loaded for pages with .xhtml extesnion.
----------------------------------------------------------
Key: JBSEAM-3412
URL: https://jira.jboss.org/jira/browse/JBSEAM-3412
Project: Seam
Issue Type: Bug
Affects Versions: 2.1.0.BETA1
Environment: JBoss
Reporter: Prashant Kadam
I have a facelete pages with '.jspx' extension. It seems that pages with only .xhtml extensions are mapped for page orchestration. Here's the code from org.jboss.seam.navigation.Pages.java file :
private void parsePages(Set<String> ...fileNames)
{
Set<String> mergedFileNames = new HashSet<String>();
for (Set<String> f : fileNames)
{
mergedFileNames.addAll(f);
}
for (String fileName: mergedFileNames)
{
String viewId = "/" + fileName.substring(0,fileName.length()-".page.xml".length()) + ".xhtml"; // needs more here
InputStream stream = ResourceLoader.instance().getResourceAsStream(fileName);
if (stream==null)
{
log.info("no pages.xml file found: " + fileName);
}
else
{
log.debug("reading pages.xml file: " + fileName);
parse(stream,viewId);
}
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 11 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-3652) Major reentrancy problem with "Page Scope" components and injection/disinjection
by Denis Forveille (JIRA)
Major reentrancy problem with "Page Scope" components and injection/disinjection
--------------------------------------------------------------------------------
Key: JBSEAM-3652
URL: https://jira.jboss.org/jira/browse/JBSEAM-3652
Project: Seam
Issue Type: Bug
Affects Versions: 2.1.0.GA, 2.0.3.CR1, 2.0.2.SP1
Environment: WebSphere v6.1.0.17 in POJO Mode
Reporter: Denis Forveille
Priority: Blocker
This bug is very similar to the JBSEAM-3295 bug, but for "Page Scope" components this time
Under stress, we have random NPE, "conversation expired" and other strange eroors from time to time in production
This is due to a flaw in the "BijectionInterceptor" class and it is quite easy to reproduce
On a facelets page, we have a datatable with a list of h:commadLink, teh first page of a classic "list entities/showDetail" scheme. The controleur that manages the list is in "Page Scope"
When the user clics on one of the link, then quickly clic on another link, another one etc... without waiting for the detail view to show up, we have two concurrent request addressed to the same Page Scope component (Verified by putting traces in the BijectionInterceptor class)
In BijectionInterceptor, in that case, counter == 2 after line 77 meaning there is two concurrent thread running: the current thread + another one currently "using" the component
The counter will be decrease for the first time on line 82, then a second time on line 129 and so, disinjection will occur on line 134. This occurs while there is another thread "using" the component, causing random NPE and other errors!!!!
In fact this will happen each time counter >1, ie there is more than one "concurrent" request on the same component
This alleviate some questions:-
- is this normal that 2 (or more) concurrent request from the same user/conversation/page acces the same page scope component concurrently (I thought seam was taking care of this and was serializing such requests...
- is this normal that on line 88, components are outjected, only when the last concurrent "user" of the component exits the interceptor and not when each request "eixts" the interceptor?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 12 months