Re: [appfuse-user] String index out of range: 0

2007-12-02 Thread Jason Brice
Looks like you have an empty string. For example, the following code will throw a StringIndexOutOfBoundsException: String myString = ""; System.out.println("char at 0 is: " + myString.charAt(0)); hth, Jason On Dec 2, 2007 9:16 AM, Fred Forester <[EMAIL PROTECTED]> wrote: > > Hi All, >

Re: [appfuse-user] Understanding method toString using commoneclipse

2007-07-04 Thread Jason Brice
I'm assuming you're using Hibernate. I don't know if you'll have issues with iBatis. My opinion is that you're better off omitting collections from your toString method. The reason is that if the collections are lazy-loaded, and you call the toString method outside of the session, you could get a

Re: [appfuse-user] Deployment destroys Umlaute

2007-07-02 Thread Jason Brice
d copy task according to http://www.nabble.com/AppFuse-1.9.2-and-Encoding-issues-t1741973s2369.html: I dont why it works, but it works. Regards René Von: Jason Brice [mailto:[EMAI

Re: [appfuse-user] Deployment destroys Umlaute

2007-06-30 Thread Jason Brice
It sounds like an encoding issue. Where is the replace happening? Are the umlauts in the properties / resources files getting changed during your build? In other words, they are present in your local files before you build but changed in the resulting deployment? If so, you might need to modify y

[appfuse-user] AppFuse and high availability databases

2007-06-14 Thread Jason Brice
I've started a project with the Spring MVC AppFuse 1.9.4, and I'm trying to think about high availability. We're using Oracle 9i, and don't (currently) have the luxury of using an Oracle cluster. We can, however, make use of DataGuard, which in essence keeps a backup database "mirrored" in case t

Re: [appfuse-user] jndi datasource config in Jetty

2007-06-06 Thread Jason Brice
PS, if you copy and paste be sure to remove the space I accidentally inserted between value=" and java: value=" java:comp/env/jdbc/SADS" d'oh! On 6/6/07, nmall <[EMAIL PROTECTED]> wrote: Hi, I am trying to configure a jndi datasource thru' my spring beans. I added jetty-env.xml for Jetty

Re: [appfuse-user] jndi datasource config in Jetty

2007-06-06 Thread Jason Brice
Hi, I use Tomcat not Jetty, but I wonder what happens if you use the fully qualified name in the jndiName property like so in your Spring config file: ? Jason On 6/6/07, nmall <[EMAIL PROTECTED]> wrote: Hi, I am trying to configure a jndi datasource thru' my spring beans. I added jett

[appfuse-user] DAO design pattern thoughts

2007-06-01 Thread Jason Brice
Hi Everyone, As we all know AppFuse has a fantastic implementation of the DAO design pattern. However as I have been using AppFuse over the past 9 or so months I have realized that the vast majority of the CRUD code I'm writing in the DAOs is for the *reading*; retrieving objects by a combinatio

Re: [appfuse-user] Re: [appfuse-dev] Moving from Canoo WebTest to Selenium

2007-05-31 Thread Jason Brice
I really really like TestNG. Call me a sissy, but the color-coded GUI is infinitely preferable to squinting at a command line. Also being able to assign methods of the test classes to groups is really nice when you're working with one "silo" of functionality and need to run multiple methods acro

Re: [appfuse-user] Commiting transaction in dao testcase

2007-05-23 Thread Jason Brice
When running the tests, I had the database open in Oracle SQL Developer. After I closed it and re-ran the tests they committed the data as expected. I knew there was a reason I liked SQuirreL. On 5/23/07, Matt Raible <[EMAIL PROTECTED]> wrote: On 5/23/07, GojiraDeMonstah <[EMAIL PROTECTED]> w

Re: [appfuse-user] query about url encryption

2007-04-27 Thread Jason Brice
I think a much better way to do this would be to control what users have access to what data through the service layer your application than try and fool them with encrypted parameters. If you must, you could always base64 encode/decode the parameters. That would turn the string "How now brown co

Re: [appfuse-user] Multiple DataSources

2007-04-20 Thread Jason Brice
With Spring you can use any pooled (poolable?) datasource... for example c3p0's ComboPooledDataSource or Apache's DBCP BasicDataSource. Proxool is also an option. By the way, I have had a terrible day or two struggling with Spring + Hibernate + Apache's DBCP + WebSphere closing the socket in the

Re: [appfuse-user] Multiple DataSources

2007-04-20 Thread Jason Brice
However if would still like to use Hibernate for your read-only DB2 data, make sure you're using Hibernate's StatelessSession API or else you'll just be paying a huge CPU and memory overhead using Hiberanate. Hi Sanjiv, Is there a way to use the StatelessSession API and still have Spring managi

[appfuse-user] Eclipse dev tip

2007-04-12 Thread Jason Brice
Like a number of us, I use Eclipse to write code and Ant to build / deploy. Some project files however (like Jasper reports) I use external programs to edit. One source of frustration for me is that Eclipse doesn't automatically keep files in sync with the file system. So if you edit a file outsid

Re: [appfuse-user] Junit testing

2007-02-24 Thread Jason Brice
Hi Jolly, There are many JUnit tutorials online - have you tried any of those (this one for example http://open.ncsu.edu/se/tutorials/junit/)? If so, what problems did you run into or what questions do you have that are preventing you from getting started? Is there a reason you don't want to use

Re: [appfuse-user] Does Hibernate still require equals() and hashCode()?

2007-02-22 Thread Jason Brice
Anyone know if there's a better choice that Commonclipse? I like Commons4E (h/t Gary White). Jason On 2/22/07, Dean Jackson <[EMAIL PROTECTED]> wrote: Also along the same lines, the tutorial recommends Commonclipse (Eclipse plugin to create functions for equals, hashCode, toString). Howev

Re: [appfuse-user] Junit testing in Appfuse 1.9.3

2007-02-22 Thread Jason Brice
Lately I've been using TestNG to run tests instead of the Ant ones that came "out of the box" (on a appfuse-1.9 for Struts app). What I like about TestNG's Eclipse plugin: you can select class-level / suite-level / group-level tests to run, you get nice GUI results, and can view the individual st

Re: [appfuse-user] why illegal access to lazy collection with collection in commonclipse methods

2007-02-14 Thread Jason Brice
IMO you definitely want to avoid any lazily-loaded property as part of equals/hashcode. There was an interesting thread on the Hibernate forums on the topic of equals / hashCode: http://forum.hibernate.org/viewtopic.php?t=928172 The larger point is how do you define object identity. The Hibernat

Re: [appfuse-user] run a .sh file via appfuse

2007-01-23 Thread Jason Brice
Depending on which JDK you use, you can use the exec() method of the Runtime class ( < JDK 1.5) or the ProcessBuilder (JDK 1.5 and up). http://www.java-tips.org/java-se-tips/java.util/from-runtime.exec-to-processbuilder.html hth, Jason On 1/23/07, orodsem <[EMAIL PROTECTED]> wrote: Hi, How

Re: [appfuse-user] Translations needed

2007-01-04 Thread Jason Brice
Spanish (locale es): {0} Usuario(s) encontrado(s), muestra {1} usuario(s), del {2} al {3}. Página {4} / {5} Jason On 1/4/07, Matt Raible <[EMAIL PROTECTED]> wrote: Hello all, I need a translation of the following for all the locales supported in AppFuse: activeUsers.summary={0} User(s) foun

Re: [appfuse-user] XDoclet -- How to use stipulate list index?

2006-12-29 Thread Jason Brice
Is there such a tag as hibernate.list-index? I didn't see one here: http://xdoclet.sourceforge.net/xdoclet/tags/hibernate-tags.html Perhaps you want to use hibernate.collection-index ? Jason On 12/29/06, mxc <[EMAIL PROTECTED]> wrote: Hi all, I can't seem to find an appropriate xdoclet for

Re: [appfuse-user] tough question: doGet request fired twice in displaytag

2006-12-28 Thread Jason Brice
I found this online book excerpt helpful and interesting: http://www.quirksmode.org/js/contents.html , especially the events chapter. Jason On 12/28/06, kkus <[EMAIL PROTECTED]> wrote: I don't think is processed first. will be processed

Re: [appfuse-user] Question on class casting

2006-12-21 Thread Jason Brice
How is baseObj getting instantiated? Jason On 12/20/06, mas < [EMAIL PROTECTED]> wrote: I have a base class (OSBBaseObject) which is extended by both Chapter and Verse (The mappings for the parent are defined in the OSBBaseObject) There is a parent-child relationship between Chapter and

Re: [appfuse-user] OracleLobHandler error

2006-12-19 Thread Jason Brice
do the same thing on Linux but it still gave the same error. Any suggestions. Thanks, Pankaj --- Jason Brice <[EMAIL PROTECTED]> wrote: > This thread had some things to check: > http://forum.springframework.org/archive/index.php/t-10002.html > > Also... is it possible that

Re: [appfuse-user] OracleLobHandler error

2006-12-19 Thread Jason Brice
This thread had some things to check: http://forum.springframework.org/archive/index.php/t-10002.html Also... is it possible that you have another copy of the JDBC jar somewhere (in the shared lib perhaps) that is causing problems? Jason On 12/19/06, pankaj singla <[EMAIL PROTECTED]> wrote:

Re: [appfuse-user] db-unit bidirectional associations

2006-12-18 Thread Jason Brice
Luiz, You could certainly remove the FK constraint, load user data, then re-create it. But will you *always* have an address to associate with a user before you save that user? If not you might reconsider forcing the user table to have a FK constraint to address. Jason On 12/18/06, Luiz Fern

Re: [appfuse-user] ant setup-db

2006-12-15 Thread Jason Brice
I'm just guessing but here are some things to check. Is there in fact a Role.class file where it should be? If not is it possible that there's an error somewhere keeping Role from compiling? Does the Role.hbm.xml look like it was generated OK from the xDoclet tags in the Role.java? Jason On 12