Re: [jira] Resolved: (OPENJPA-208) NoResultException and NonUniqueResultException are not thrown when expected

2007-04-09 Thread Abe White
Went ahead and restored the previous behavior where the QueryImpl itself checks for non-uniqueness and throws the expected exception. That breaks the single result optimization that was added for OPENJPA-168 when getSingleResult() is called. There was a reason we moved the validation to

[jira] Commented: (OPENJPA-201) Mapping Tool ignores the @JoinColumn annotation in a @ManyToOne mapping if the table argument is used

2007-04-09 Thread Abe White (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12487565 ] Abe White commented on OPENJPA-201: --- The primary table for what entity? The primary table for the entity shown

[jira] Created: (OPENJPA-211) CLONE -java.lang.VerifyError on websphere 6.1 with Spring 2.0.3 and OpenJpa 0.96

2007-04-09 Thread david zhang (JIRA)
CLONE -java.lang.VerifyError on websphere 6.1 with Spring 2.0.3 and OpenJpa 0.96 Key: OPENJPA-211 URL: https://issues.apache.org/jira/browse/OPENJPA-211 Project: OpenJPA

[jira] Reopened: (OPENJPA-208) NoResultException and NonUniqueResultException are not thrown when expected

2007-04-09 Thread Marc Prud'hommeaux (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-208?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marc Prud'hommeaux reopened OPENJPA-208: From Abe on mailing list: That breaks the single result optimization that was added

RE: Mapping tool in eclipse

2007-04-09 Thread Patrick Linskey
Happily, the next release won't have the pesky word 'all' in the jar, which will hopefully help stave off the perception that that jar contains everything needed to use OpenJPA. -Patrick -- Patrick Linskey BEA Systems, Inc.

Compiling (build all) in eclipse

2007-04-09 Thread Phill Moran
Troubles continue Any suggestions for this problem in eclipse??? org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'personFactory' defined in file [C:\BidSpec\emall\development\emall\target\classes\applicationContext.xml]: Initialization of bean failed;

Unit testing

2007-04-09 Thread Patrick Linskey
Hi, I'm a bit concerned about the lack of unit tests being put into OpenJPA as new features are added. I understand that often, creating unit tests are anticlimactic compared to implementing the feature itself, but at least basic happy-path testing of new features is pretty essential if we want

RE: Compiling (build all) in eclipse

2007-04-09 Thread Patrick Linskey
Hmm. It sounds like maybe the Persistable class hasn't been enhanced. It's a surprising error, but it looks like OpenJPA hasn't really gotten into the loop at this point, which would explain why you're not seeing anything more informative. Could this explain the situation? -Patrick -- Patrick

RE: Unit testing

2007-04-09 Thread Patrick Linskey
It should be part of the commit acceptance process. I agree that it should be part of the process, but I hope that with sufficient discipline and attention, we can avoid having to enforce this via automated rules. I definitely make changes that don't merit unit tests, such as changes to

RE: Compiling (build all) in eclipse

2007-04-09 Thread Phill Moran
Eclipse clean workspace Import Maven generate project (eclipse:eclispe) Build all -- Error The same POM builds fine externally through mvn package Other interesting points: I was getting a NPE from maven build so I turn off the maven builder but that had no effect. Have also tried clean then

[jira] Resolved: (OPENJPA-208) NoResultException and NonUniqueResultException are not thrown when expected

2007-04-09 Thread Marc Prud'hommeaux (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-208?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marc Prud'hommeaux resolved OPENJPA-208. Resolution: Fixed Fix Version/s: (was: 0.9.7) 0.9.8

Re: Testing an OpenJPA module

2007-04-09 Thread Marc Prud'hommeaux
Matthieu- Note that there shouldn't be any problem with running against a directory versus a jar (I do it all the time), so there is probably some environment issue. Can you post your persistence.xml? If you write a little main() method that just does:

Re: Testing an OpenJPA module

2007-04-09 Thread Matthieu Riou
The System.out gives me the correct path to the URL: file:/home/dusty/Dev/Projects/ode/bpel-store/target/classes/META-INF/persistence.xml The corresponding file contains: persistence xmlns=http://java.sun.com/xml/ns/persistence; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

Re: Testing an OpenJPA module

2007-04-09 Thread Marc Prud'hommeaux
Matthieu- Hmm ... the persistence.xml file is fine (I just tried it locally). I think the error No Persistence provider for EntityManager named ode- store is coming from javax.persistence.Persistence not being able to load org.apache.openjpa.persistence.PersistenceProviderImpl. Are you

RE: PCEnhance

2007-04-09 Thread Patrick Linskey
How are you invoking the enhancer? Setting the default log level to TRACE will probably give you quite a bit of data. -Patrick -- Patrick Linskey BEA Systems, Inc. ___ Notice: This email message, together with any

Re: Testing an OpenJPA module

2007-04-09 Thread Matthieu Riou
I thought I had OpenJPA correctly placed but actually it wasn't copied at the right place. Thanks for the hint! Matthieu On 4/9/07, Marc Prud'hommeaux [EMAIL PROTECTED] wrote: Matthieu- Hmm ... the persistence.xml file is fine (I just tried it locally). I think the error No Persistence

[jira] Commented: (OPENJPA-211) CLONE -java.lang.VerifyError on websphere 6.1 with Spring 2.0.3 and OpenJpa 0.96/0.97

2007-04-09 Thread david zhang (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12487646 ] david zhang commented on OPENJPA-211: - In org.apache.openjpa.kernel.Bootstrap.java, line 117: return

[jira] Commented: (OPENJPA-211) CLONE -java.lang.VerifyError on websphere 6.1 with Spring 2.0.3 and OpenJpa 0.96/0.97

2007-04-09 Thread Patrick Linskey (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12487650 ] Patrick Linskey commented on OPENJPA-211: - Provided that meth is a static method, this method should run

[jira] Commented: (OPENJPA-211) CLONE -java.lang.VerifyError on websphere 6.1 with Spring 2.0.3 and OpenJpa 0.96/0.97

2007-04-09 Thread david zhang (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12487651 ] david zhang commented on OPENJPA-211: - Sorry, forget my previous comment. Yes, the first parameter can be null

[jira] Commented: (OPENJPA-211) CLONE -java.lang.VerifyError on websphere 6.1 with Spring 2.0.3 and OpenJpa 0.96/0.97

2007-04-09 Thread david zhang (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12487664 ] david zhang commented on OPENJPA-211: - I've posted my config files. I'm using JTA, why I get a

[jira] Commented: (OPENJPA-211) CLONE -java.lang.VerifyError on websphere 6.1 with Spring 2.0.3 and OpenJpa 0.96/0.97

2007-04-09 Thread david zhang (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12487677 ] david zhang commented on OPENJPA-211: - Resolved referring http://issues.apache.org/jira/browse/OPENJPA-40.