[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2194) Terrible error message for DTD not found when reading *.xml config file
by Scott Bader (JIRA)
Terrible error message for DTD not found when reading *.xml config file
-----------------------------------------------------------------------
Key: JBSEAM-2194
URL: http://jira.jboss.com/jira/browse/JBSEAM-2194
Project: JBoss Seam
Issue Type: Bug
Components: Core
Affects Versions: 2.0.0.CR3
Environment: Eclipse 3.3
JBoss 4.2.2
Reporter: Scott Bader
Priority: Minor
Problem experienced when application was reading login.page.xml file, but it could potentially happen
anywhere when reading an XML file where DTD is not found.
Seeing debug page with:
Exception during request processing:
Caused by java.lang.RuntimeException with message: "org.dom4j.DocumentException: jboss.com Nested exception: jboss.com"
Stacktrace snippet:
org.dom4j.DocumentException: jboss.com Nested exception: jboss.com
at org.dom4j.io.SAXReader.read(SAXReader.java:484)
at org.dom4j.io.SAXReader.read(SAXReader.java:343)
at org.jboss.seam.util.XML.getRootElement(XML.java:21)
at org.jboss.seam.navigation.Pages.getDocumentRoot(Pages.java:950)
...
Nested exception:
java.net.UnknownHostException: jboss.com
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
at java.net.Socket.connect(Socket.java:519)
Recommend added error handling in org.jboss.seam.util.XML.getRootElement
method or better yet org.jboss.seam.navigation.Pages.getDocumentRoot method
and log the problem there.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/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-2547) Seam remoting cannot decode Collection objects correctly
by P C (JIRA)
Seam remoting cannot decode Collection objects correctly
--------------------------------------------------------
Key: JBSEAM-2547
URL: http://jira.jboss.com/jira/browse/JBSEAM-2547
Project: JBoss Seam
Issue Type: Bug
Components: Remoting
Affects Versions: 2.0.0.GA
Environment: JBoss 4.x AS, Javascript and Seam Integration
Reporter: P C
Assigned To: Shane Bryzak
Through the use of Seam Remoting, I find that there is a "bug" in how seam decodes Collection objects on the client side (javascript). For example, on the server side, I am doing the following in a stateless seam bean:
@Stateless@Name ("test")
class TestAction implements Test {
List getTestItems() {...}
}
On the Client Side (Javascript):
var test = Seam.Component.getInstance("test");
test.getTestItems(callBack);
var callBack(result) {
}
When the seam proxy decodes the message it cannot determine the object types inside the returned collection so it returns someting undefined. But if I define Generics then it works:
List<ConcreteClass> getTestItems() {...}
It seams to me that the Seam Proxy has trouble parsing objects in an abstract collection.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/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-2526) org.jboss.seam.core.SeamResourceBundle::getKeys()
by Antoni Jakubiak (JIRA)
org.jboss.seam.core.SeamResourceBundle::getKeys()
-------------------------------------------------
Key: JBSEAM-2526
URL: http://jira.jboss.com/jira/browse/JBSEAM-2526
Project: JBoss Seam
Issue Type: Bug
Components: Core
Affects Versions: 2.0.1.CR1
Reporter: Antoni Jakubiak
Priority: Trivial
Please, take a look at this code:
org.jboss.seam.core.SeamResourceBundle
public Enumeration<String> getKeys()
{
List<java.util.ResourceBundle> pageBundles = getPageResourceBundles();
List<ResourceBundle> bundles = getBundlesForCurrentLocale();
Enumeration<String>[] enumerations = new Enumeration[bundles.size() + pageBundles.size()];
int i = 0;
for (; i < pageBundles.size(); i++)
{
enumerations[i++] = pageBundles.get(i).getKeys();
}
for (; i < bundles.size(); i++)
{
enumerations[i] = bundles.get(i).getKeys();
}
[...]
}
Loops doesn't look ok for me. I think, it shoud be:
int j = 0;
int i;
for (i = 0; i < pageBundles.size(); i++, j++)
{
enumerations[ j ] = pageBundles.get(i).getKeys();
}
for (i = 0; i < bundles.size(); i++, j++)
{
enumerations[ j ] = bundles.get(i).getKeys();
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/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-2542) Seam-gen generates false s:link in menu.xhtml (the logout button)
by Mark Schmatz (JIRA)
Seam-gen generates false s:link in menu.xhtml (the logout button)
-----------------------------------------------------------------
Key: JBSEAM-2542
URL: http://jira.jboss.com/jira/browse/JBSEAM-2542
Project: JBoss Seam
Issue Type: Bug
Reporter: Mark Schmatz
Seam-gen generates the following code in the menu.xhtml page:
<s:link view="/home.xhtml" action="#{identity.logout}" value="Logout" rendered="#{identity.loggedIn}"/>
We have here both, the 'view' and the 'action' attribute at the same time. Is this well-defined? I would propose to discard the 'view' attribute and replace the EL in the 'action' attribute with:
#{authenticator.logout}
Additionally, in the Authenticator class the logout method should be provided (automatically generated by Seam-gen) which invokes 'identity.logout(). In the pages.xml a respective navigation to the "/home.xhtml" page should be performed.
The advantage - besides having a proper s:link - is that one can do additional stuff in the logout method before and/or after logging out.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 11 months