HI!
I have problem with Seam/JSF?
When I click twice(versy fast) on commandLink or button submit, application falls down.
Framework dont knot what to do and gives me error:
"8:19:31,203 ERROR [SeamExceptionFilter] uncaught exception handled by Seam
javax.servlet.ServletException: /userQuery.xhtml @30,63 rendered="#{userAction.actionFlag}": pl.fargo.expert.business.UserConsole$$EnhancerByCGLIB$$dd4b45ef"
How can I protect My page or catch those exception?
When I click on link once or twice but not so fast it works fine!
I thought about protect submit by JS, but is any other way to resolve this problem?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979259#3979259
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979259
Hi,
How can I enable size based logging? In log4jxml I have disabled time/date based rolling and enabled size based rolling appender like that but it seems it doesn't work. I think I am missing something? Can anyone point out what is wrong with following lines thus I can't get any log with these lihes
<!-- A time/date based rolling appender
<!-- Rollover at midnight each day -->
<param name="DatePattern" value="'.'yyyy-MM-dd"/>
<!-- Rollover at the top of each hour
<param name="DatePattern" value="'.'yyyy-MM-dd-HH"/>
-->
<!-- The default pattern: Date Priority [Category] Message\n -->
<!-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n
-->
-->
<!-- A size based file rolling appender -->
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979257#3979257
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979257
I figured it out. I had to add this code to the bottom of my factory method:
| List selectItems=new ArrayList();
| for (Iterator iterator = roomListByOrganization.iterator(); iterator.hasNext();)
| {
| Room value = (Room)iterator.next();
| SelectItem item = new SelectItem(value, value.getName());
| selectItems.add(item);
| }
|
| roomListByOrganization = selectItems;
|
This doesn't seem correct...??? But it does work.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979250#3979250
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979250
Hi,
Hi all im having an error java.lang.ClassCastException: java.lang.String
Does anyone have an idea on this error?
My codes are:
| TblCountryFacadeLocal myCountryBean = lookupTblCountryFacade();
| List myList = myCountryBean.findAll();
| int length = myList.size();
|
| for (int i = 0; i < length; i++) {
| TblCSCSubCategory region = (TblCSCSubCategory) myList.get(i) ;
| System.out.println((i + 1)+". "+region.getStrName().toString());
| }
And for my Entity code is:
public List findAll() {
| return em.createQuery("select o.strCountry from TblCountry as o").getResultList();
| }
Hope for a kind response.
Thankz :)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979249#3979249
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979249
Hi,
I am trying to configure data source for the application running on JBOSS 4.0 , I followed all the steps as detaild on in this links.
http://www.onjava.com/pub/a/onjava/2004/02/25/jbossjdbc.html
I also see the data source in the JNDI tree, but at runtime the DS is tied to default hypersonic data source, as such all my query are failing with following exceptions
Caused by: java.sql.SQLException: invalid schema name: AS in statement [SELECT discriminator, key, value FROM AS.Control]
at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
at org.hsqldb.jdbc.jdbcStatement.fetchResult(Unknown Source)
at org.hsqldb.jdbc.jdbcStatement.executeQuery(Unknown Source)
at org.jboss.resource.adapter.jdbc.WrappedStatement.executeQuery(WrappedStatement.java:169).
This stack trace clearly tells that its using hypersonic data base.
Not sure if I am missing any steps.
Thanks in advance
-Amitabh
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979248#3979248
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979248