Re: There were errors initializing your configuration: java.lang.ExceptionInInitializerError

2010-11-09 Thread Rick Curtis
Charles - can I have you try to enable trace for me? openjpa.Log=DefaultLevel=trace Thanks, Rick

Re: Can't obtain Primary Key value by JPQL

2010-11-08 Thread Rick Curtis
,Huang - Original Message - From: Rick Curtis curti...@gmail.com To: users@openjpa.apache.org Sent: Saturday, November 06, 2010 2:43 AM Subject: Re: Can't obtain Primary Key value by JPQL Can you point me to how you were enhancing your Entities... I'd like to get to the bottom

Re: MySQL bug 50174 and OpenJPA ant task.

2010-11-08 Thread Rick Curtis
do you have connection pooling configured? Thanks, Rick On Mon, Nov 8, 2010 at 2:21 PM, Jean-Baptiste BRIAUD -- Novlog j-b.bri...@novlog.com wrote: Hi, http://bugs.mysql.com/bug.php?id=50174 This MySQL bug is quite annoying : Under certain CPU load level (witch is unknown) under *nix

Re: Can't obtain Primary Key value by JPQL

2010-11-08 Thread Rick Curtis
pleasure. Thanks Alex,Huang - Original Message - From: Rick Curtis curti...@gmail.com To: users@openjpa.apache.org Sent: Monday, November 08, 2010 10:17 PM Subject: Re: Can't obtain Primary Key value by JPQL Hopefully I'll find some time this afternoon to get that setup

Re: Can't obtain Primary Key value by JPQL

2010-11-05 Thread Rick Curtis
enhanced entities again by using command. And the problem disappeared. Really thank you for all the help. Alex, Huang - Original Message - From: Rick Curtis curti...@gmail.com To: users@openjpa.apache.org Sent: Friday, November 05, 2010 1:20 AM Subject: Re: Can't obtain Primary Key

Re: Can't obtain Primary Key value by JPQL

2010-11-03 Thread Rick Curtis
Can you post the SQL trace from when you execute your query? Thanks, Rick On Wed, Nov 3, 2010 at 3:51 AM, Alex, Huang primemo...@gmail.com wrote: Hi everybody, I am using openJPA2.0.1 + Mysql5.1. Table definition like below, ===DML START=== CREATE TABLE

Re: JPAB results

2010-11-02 Thread Rick Curtis
I also took a quick look and it appears that this is another out of the box test. Caching would probably bridge the gap between us and Hibernate... also I'm not sure they are running with the auto connection pooling stuff Donald has been working on. Thanks, Rick On Tue, Nov 2, 2010 at 8:49 AM,

Re: ArgumentException/NPE when running code enhanced using eclipse tooling builder

2010-11-02 Thread Rick Curtis
I am getting an exception when running my code (either as a JUnit test or on tomcat) after using the OpenJPA eclipse tooling builder. I also should note that when using the maven enhancer plugin from console, everything works fine. I haven't used the eclipse builder, but those two comments lead

Re: SAP MaxDB not supported?

2010-10-28 Thread Rick Curtis
Are you sure that your application configuration is the same between the working and non-working installation? You are using the DB2Dictionary[1], and we are trying to validate that your DB is a supported version(which it's not). Can you post the contents of your persistence.xml file? [1]

Re: Issues with openjpa in updating child objects in merge / find update

2010-10-28 Thread Rick Curtis
What version of OpenJPA are you using? Seems to me that version check is not happening the way I expect but I am trying to find out how to do that. You mention a version field, but I don't see one in your Entity snippets ... are you missing a version field, or did you omit the field from the

Re: Terrible Problem with EntityManager find method with OpenJPA

2010-10-04 Thread Rick Curtis
Sanjay - An org.apache.openjpa.persistence.EntityNotFoundException means that OpenJPA couldn't find an Entity with the properties that you provided. I noticed in your insert section of code the id that you insert is id2, but you are searching for id1. Perhaps that is the problem? Thanks, Rick

Re: cache queries and data from native queries

2010-10-04 Thread Rick Curtis
Great questions! I'll try my best at giving correct and truthful answers. I'll start out by giving a little background information. In simple terms the L2 cache (openjpa.DataCache) is a simple mapping of Entity identifier(id) to Entity data. This cache on it's own is useful if you are doing lots

Re: openjpa 1.0.4 : entity not updated

2010-10-01 Thread Rick Curtis
Rudi - You going to need to provide more information for us to help you out. Please try posting the relevant parts of your Entity and application code. Thanks, Rick On Fri, Oct 1, 2010 at 5:03 AM, RudiWelter rudi_wel...@hotmail.com wrote: Hello Friends, I create a new entity instance

Re: How to reset OpenJPA cache

2010-09-23 Thread Rick Curtis
http://openjpa.apache.org/builds/latest/docs/manual/manual.html#ref_guide_cache_use_JPA If you are working on pre-2.0. code you'll have to look at section 1.2.2 and use the OpenJPA specific APIs. Thanks, Rick On Thu, Sep 23, 2010 at 4:31 PM, nasseria1 nasser.f...@gmail.com wrote: Hi all,

Re: PreUpdate on MappedSuperClass

2010-09-22 Thread Rick Curtis
@Kelvin - I'm working on setting up a unit test and I'll get back with you. @Matthew Shouldn't we be able to update the @Version field in a preupdate method? *Should* a user be able to? Perhaps... unfortunately the spec (3.4.2) disagrees. -- An entity may access the state of its version field

Re: PreUpdate on MappedSuperClass

2010-09-22 Thread Rick Curtis
I wasn't able to recreate this on trunk. Maybe this is specific to the 1.2.x branch? ...would it be possible for you to try this out on 2.0.x or trunk? Thanks, Rick On Tue, Sep 21, 2010 at 5:35 PM, Kelvin Law kai@gmail.com wrote: Hi, I have a MappedSuperClass which has a @PreUpdate

Re: PreUpdate on MappedSuperClass

2010-09-22 Thread Rick Curtis
Trying to attach a test case patch...

Re: Data Caching using OpenJPA

2010-09-20 Thread Rick Curtis
So it sounds like you have some sort of ajax auto complete search field? If that is the case, this is going to need to be a combination of openjpa.QueryCache and openjpa.DataCache I believe. I'd suggest reading through the docs[1] and creating a small sample before you try to use all 200K items.

Re: understanting GC live cycle of object(statemanager first level cache)

2010-09-17 Thread Rick Curtis
Marc - -so if we dereference the persistent object , the object is GCed and the disapear from the first level cache (as state manager is not root No. An entity will in the L1 cache until the context ends or it is cleared(em.clear) or if the JVM is running low on memory(the managedcache uses

Re: Apache OpenJPA integration in Apache OpenEJB

2010-09-15 Thread Rick Curtis
Jean-Louis - I see these three failing: core.cmp.jpa.UnenhancedTest. txt:testUnenhancedComplexIdJta core.cmp.jpa.UnenhancedTest.txt:testUnenhancedComplexIdResourceLocal core.stateful.EntityManagerPropogationTest.txt:test By looking at the names of the tests I'm guessing that they

Re: result of MAX on empty table is 0

2010-09-14 Thread Rick Curtis
, 2010 at 9:04 AM, Vera Filippova oakjum...@gmail.com wrote: Rick Curtis curti...@... writes: Are you asking a question? ... or are you just asserting that it works as defined in the spec? Thanks, Rick On Thu, Sep 9, 2010 at 9:32 AM, Vera Filippova oakjum...@... wrote: Result

Re: Defining named queries in xml

2010-09-14 Thread Rick Curtis
Hakon - ... it's possible to specify the named queries in a separate file, and still define the entities using annotations? Yes, you can specify mapping information in annotations and via mapping file(s). In the case where mapping information is specified in both annotations and xml, the xml

Re: WAS7 persistence provider problems (openJPA, Hibernate)

2010-09-09 Thread Rick Curtis
At first someone knows a solution for that problem (workaround)? Does this comment from the JIRA apply to your situation? : Forgot to mention that one work around we found for this problem is that if both Lower entities use LAZY fetches in stead of EAGER fetches, then the exception won't be

Re: result of MAX on empty table is 0

2010-09-09 Thread Rick Curtis
Are you asking a question? ... or are you just asserting that it works as defined in the spec? Thanks, Rick On Thu, Sep 9, 2010 at 9:32 AM, Vera Filippova oakjum...@gmail.com wrote: Result of aggregate function MAX is 0 on empty table. I can find in JPQL reference If SUM , AVG, MAX, or MIN is

Re: Deadlock situation when commting a transaction

2010-09-09 Thread Rick Curtis
What version of OpenJPA are you using? Are you using pessimistic locking (If you're not sure what I'm talking about, can you post the contents of your persistence.xml file)? Can you post a small unit test that demonstrates the problem? Thanks, Rick On Thu, Sep 9, 2010 at 8:28 AM, mail4tester

Re: entities not detected properly in JUnit Test case (OpenJPA 1.2.2)

2010-09-07 Thread Rick Curtis
runtime mode? --- regards Marc Logemann http://www.logemann.org http://www.logentis.de Am 06.09.2010 um 23:26 schrieb Rick Curtis: So why does OpenJPA fail on registering Entities? The problem is that when you don't list your entities, OpenJPA doesn't know that the alias 'DP_PLZ_DA

Re: entities not detected properly in JUnit Test case (OpenJPA 1.2.2)

2010-09-06 Thread Rick Curtis
So why does OpenJPA fail on registering Entities? The problem is that when you don't list your entities, OpenJPA doesn't know that the alias 'DP_PLZ_DA' is an Entity until the x.y.z.DP_PLZ_DA class is loaded. If you were to look at an enhanced Entity you would see that OpenJPA adds a static

Re: Bug or Feature: Persistent Map Merge Behaviour

2010-08-20 Thread Rick Curtis
Harold - Are you using a DetachedStateManager? If so, this sounds like it might be a bug? Can you post the contents of your persistence.xml file? Thanks, Rick On Fri, Aug 20, 2010 at 11:11 AM, Harald Wellmann harald.wellm...@multi-m.de wrote: I have an entity with a map element collection

Re: OpenJPA 2.0 binary distribution

2010-08-19 Thread Rick Curtis
My understanding is that openjpa-2.0.0.jar has just the OpenJPA code, openjpa-all-2.0.0.jar has all dependencies. Thanks, Rick On Thu, Aug 19, 2010 at 6:07 AM, Georgi Naplatanov go...@oles.biz wrote: Hello list. In the binary distribution are two files : - openjpa-2.0.0.jar -

Re: Mapping Domain or Struct PostgreSQL type

2010-08-16 Thread Rick Curtis
Sorry, but you posted this question to the wrong mailing list. This mailing list is for OpenJPA, the apache implementation. Please try again. http://www.google.com/search?q=eclipselink Thanks, Rick On Sat, Aug 14, 2010 at 4:07 PM, ilkos ilic.d.de...@gmail.com wrote: Hi After creating

Re: Generic setParameter on createNamedQuery.query.

2010-08-13 Thread Rick Curtis
No I don't think there is a generic JPA proper way of doing it... but you could cast your Query to the SPI and dig in a little bit. Just be aware that this is a SPI so it won't be portable, it's not recommended, and be aware that it may change. Take a look at:

Re: Cannot get primary key value (mysql)

2010-08-12 Thread Rick Curtis
I'm going to ask the obvious but is the id column in your db named idMigration? Another thing, I see you are using @GeneratedValue(strategy= GenerationType.AUTO) for your id... but I assume you want to use the MySQL AUTO_INCREMENT function? If so, change GenerationType.AUTO to

Re: Cannot get primary key value (mysql)

2010-08-12 Thread Rick Curtis
I haven't tried recreating this yet... but what happens if you remove the @Column(unique=true, nullable=false) from your idMigration column? On Thu, Aug 12, 2010 at 11:18 AM, manuu egali...@gmail.com wrote: Hi, I'm trying to resolve the same behavior. It just don't print the value of the

Re: Cannot get primary key value (mysql)

2010-08-11 Thread Rick Curtis
What the the scenario that you are having problems with? Did you persist and flush/commit any of the SofMigration Entities? Since they are generated ids I don't think they'll be in the Entity till you put it in the DB. Perhaps turning on SQL trace openjpa.Log=SQL=trace will shed some light as to

Re: Enhancing with Eclipse

2010-08-10 Thread Rick Curtis
Where is the persistent.xml file ? It needs be in bin/META-INF. I used to have several persistent.xml files : one for build-time enhancing and another slightly different one as runtime-time config. How can I manage that ? I'd think you could get away with a single persistence.xml file but with

Re: Enhancing with Eclipse

2010-08-10 Thread Rick Curtis
...@novlog.com wrote: On 10 août 2010, at 17:19, Rick Curtis wrote: Where is the persistent.xml file ? It needs be in bin/META-INF. bin is managed by Eclipse : src/META-INF should be OK if I manage to have only one persistence.xml file. I used to have several persistent.xml files : one

Re: Got exception when persisting an entity class with embedded class

2010-08-08 Thread Rick Curtis
Lu - Add entities.Borrower to the classes list in your persistence.xml file. Thanks, Rick 2010/8/8 Lu Jiang jessye...@gmail.com Hi,Rick Thanks for your reply. The persistence.xml is : ?xml version=1.0 encoding=UTF-8? persistence version=2.0 xmlns=http://java.sun.com/xml/ns/persistence;

Re: Got exception when persisting an entity class with embedded class

2010-08-06 Thread Rick Curtis
Can you post the contents of your persistence.xml file? Thanks, Rick On Fri, Aug 6, 2010 at 5:09 AM, Lu Jiang jessye...@gmail.com wrote: Hi,all I got an exception when trying to persist an entity class which has embedded classes. The steps are as following: 1.create the embedded class

Re: Calling a getter of an entity will access the broker

2010-07-26 Thread Rick Curtis
Correct.

Re: Calling a getter of an entity will access the broker

2010-07-22 Thread Rick Curtis
First off, you're using subclassing enhancement which isn't recommended... Please checkout these links[1][2] for more info. On to your real question... Our application is a Swing application that displays data fetched directly from the database. Is this application just going to display the

Re: Performance comparison

2010-07-21 Thread Rick Curtis
As always, I'd take a micro benchmark such as this one with a grain of salt. This isn't an apples to applies comparison. Also, this article is comparing half tuned JPA implementations. Hopefully in the coming days I'll get some time to play around with the code that is posted to this article.

Re: Mailling list error (2)

2010-07-20 Thread Rick Curtis
I seem to have this problem all the time... On Tue, Jul 20, 2010 at 3:35 AM, Jean-Baptiste BRIAUD -- Novlog j-b.bri...@novlog.com wrote: I think I got it. It was due the the URL given at the end of the message from killbulle that point to nabble but with strange subdomain from nabble. I

Re: Date Problem

2010-07-15 Thread Rick Curtis
Can you post your persistence.xml file? Thanks, Rick

Re: Date Problem

2010-07-15 Thread Rick Curtis
Try changing version=1.0 to version=2.0 and removing don't use the detachCopy method. I think that this is a bug that I reported [1] a while back. Thanks, Rick [1] https://issues.apache.org/jira/browse/OPENJPA-1672

Re: Date Problem

2010-07-15 Thread Rick Curtis
Hmm, can you post a small unit test? Thanks, Rick

Re: Date Problem

2010-07-15 Thread Rick Curtis
Sorry, I am afraid I cannot. Without at minimum a snippet of code it's pretty hard to help you out. Would you please let men know what bug on detachCopy method? I'm not sure what you're asking here. if I get em from jpaTample, and from em find data, do I need always close em after? I'm not

Re: OpenJPA MySQL performance overhead

2010-07-14 Thread Rick Curtis
Can you post a zip of the code that you are running?

Re: OpenJPA MySQL performance overhead

2010-07-14 Thread Rick Curtis
Can you also post the JDBC code you're comparing against? Also, try setting the following properties: property name=openjpa.ConnectionRetainMode value=always / property name=openjpa.Multithreaded value=false / The openjpa.ConnectionRetainMode[1] is something that we wouldn't suggest when

Re: OpenJPA MySQL performance overhead

2010-07-14 Thread Rick Curtis
The openjpa.Multithreaded property is only for having multiple threads sharing the same EntityManager. Per the spec EMs aren't supposed to be shared across threads, but some applications do(rightly or wrongly). If you're building from the ground up, I'd suggest against it (Perhaps others on the

Re: Date Problem

2010-07-14 Thread Rick Curtis
What version of OpenJPA are you on? Thanks, Rick

Re: Creating a custom L2 cache

2010-07-14 Thread Rick Curtis
This is something that I've always wanted to experiment with, just have never found the time. AFIK, OpenJPA proper doesn't have support for a shared cache but you could use the OpenJPA TCPRemoteCommitProvider to have distributed cache evictions. This *should* work if you get all of the pieces

Re: JPA genereates non-exist id column in the select statement

2010-07-12 Thread Rick Curtis
Section 2.4 of the 2.0 spec states Every entity must have a primary key. I seem to remember that OpenJPA will do some magic when we enhance your Entities if we don't find an @Id column... I don't have time to try this am, but I'd be willing to bet that is what's going on. tht, Rick

Re: when pcVersionInit will be added by the enhancer

2010-07-06 Thread Rick Curtis
Can you create an example Entity model that is similar enough to recreate the problem without giving away your IP? Also, are you using build time or runtime enhancement? -- View this message in context:

Re: problem with reserved words

2010-07-06 Thread Rick Curtis
Have you tried to something like @Table(name=\PRIMARY\) ? Thanks, Rick On Wed, Jun 30, 2010 at 2:06 AM, colorado_flyer ch...@parallelsw.comwrote: Hi all, I'm converting a legacy system into JPA and ran across this issue. I looked for a resolution, and found some talk about the issue, but

Re: when pcVersionInit will be added by the enhancer

2010-07-01 Thread Rick Curtis
This sounds like it may be releated to a JIRA[1] which I fixed in trunk. Can you post the Entity that you are having problems with? Thanks, Rick [1] https://issues.apache.org/jira/browse/OPENJPA-1704

Re: What is DetachedStateManager? Memory Leak?

2010-06-21 Thread Rick Curtis
First off, take a quick read through the user manual [1] to understand what the DetachedState is all about. Second, you said that you could see these objects sticking around for a while... were gc'd at some point? Once SLAEventBean is gc'd the DetachedStateManager objects will go away. Thanks,

Re: NamedQuery + LockModeType.NONE

2010-06-21 Thread Rick Curtis
If I remember correctly OPENJPA-1604 was opened for a compatibility issue from 1.2.x to 2.0.0 when using the pessimistic lock manager. My first question is, are you using the pessimistic lock manager? If so, why? I'd recommend using the default lock manager (JPA2) and controlling lock levels via

Re: java.lang.IllegalArgumentException: no-named-params

2010-05-20 Thread Rick Curtis
With native queries you need to use indexes for parameters. I'm not sure why the message no-named-params wasn't translated into the proper message... I'll try to take a look at that when I get a chance. Query query = em.createNativeQuery(SELECT id FROM :?1 WHERE (next_run - now() interval '2

Re: Ant based enhancement

2010-05-17 Thread Rick Curtis
Hiran - I'd suggest reading through this[1] blog posting which talks about enhanecment. Most likely the net of the message is that OpenJPA can't find your persistence.xml file. If your build directory is /bin, your persistence.xml file should be at /bin/META-INF/persistence.xml. Lets start with

Re: Ant based enhancement

2010-05-17 Thread Rick Curtis
) Amadeus Data Processing GmbH Berghamer Strasse 6 85435 Erding T: +49-8122-43x3662 hiran.chaudh...@amadeus.com* **http://www.amadeus.com* http://www.amadeus.com/ [image: Amadeus logo] http://www.amadeus.com/ *Rick Curtis curti...@gmail.com* To users@openjpa.apache.org cc bcc

Re: Ant based enhancement

2010-05-17 Thread Rick Curtis
: +49-8122-43x3662 hiran.chaudh...@amadeus.com* **http://www.amadeus.com* http://www.amadeus.com/ [image: Amadeus logo] http://www.amadeus.com/ *Rick Curtis curti...@gmail.com* To users@openjpa.apache.org cc bcc Subject Re: Ant based enhancement *Rick Curtis curti...@gmail.com

Re: InvalidStateException

2010-05-14 Thread Rick Curtis
The message means that you don't have an active transaction to commit :-) Is it possible that your getEntityManager() method call isn't returning the same em?

Re: An object of type src.StatusUpdate with oid 0 already exists in this context; another cannot be persisted.

2010-05-13 Thread Rick Curtis
The changes are included in the 2.1.0 snapshot build[1] from last night. [1]http://openjpa.apache.org/downloads.html On Wed, May 12, 2010 at 5:03 PM, Rick Curtis curti...@gmail.com wrote: You're right, it looks like I messed up and sent you the old code. I need to run quickly here, so either

Re: NoClassDefFoundError in JavaSE environment

2010-05-13 Thread Rick Curtis
I'd suggest trying the OpenJPA javaagent just to rule out any problems that might be happening due to the RuntimeUnenhancedClasses. -- View this message in context: http://openjpa.208410.n2.nabble.com/NoClassDefFoundError-in-JavaSE-environment-tp5043127p5047019.html Sent from the OpenJPA

Re: An object of type src.StatusUpdate with oid 0 already exists in this context; another cannot be persisted.

2010-05-12 Thread Rick Curtis
You're right, it looks like I messed up and sent you the old code. I need to run quickly here, so either you can try to build openjpa yourself tonight, or you can wait for the nightly build and pickup the changes tomorrow. Sorry about the runaround. Thanks, Rick

Re: An object of type src.StatusUpdate with oid 0 already exists in this context; another cannot be persisted.

2010-05-11 Thread Rick Curtis
I wasn't able to get hsqldb in-mem working so I used MySQL and everything worked fine (as far as I can tell). This is the output that I got with MySQL: ok ok ok active deactive I'm just shooting in the dark here, but the first time that you run this application, does the first auto generated id

Re: How To Call Procedure in OpenJPA

2010-05-11 Thread Rick Curtis
http://openjpa.apache.org/builds/latest/docs/manual/manual.html#jpa_overview_sqlquery_create In addition to SELECT statements, OpenJPA supports stored procedure invocations as SQL queries. OpenJPA will assume any SQL that does not begin with the SELECT keyword (ignoring case) is a stored

Re: An object of type src.StatusUpdate with oid 0 already exists in this context; another cannot be persisted.

2010-05-11 Thread Rick Curtis
Try adding a version field to each of your Entities. @Version int version; -- Thanks, Rick

Re: An object of type src.StatusUpdate with oid 0 already exists in this context; another cannot be persisted.

2010-05-11 Thread Rick Curtis
I was finally able to recreate your problem... this is an OpenJPA code bug having to do with generated ids that start with zero. As a work around for now, you could use GenerationType.AUTO for your StatusUpdate.id column. Please open a JIRA for this problem. If you don't have an account, let me

Re: An object of type src.StatusUpdate with oid 0 already exists in this context; another cannot be persisted.

2010-05-10 Thread Rick Curtis
What db are you using? Can you post a small unit test that exhibits the behavior that you are hitting? -- Thanks, Rick On Mon, May 10, 2010 at 7:26 AM, Midyat midyatiz...@hotmail.com wrote: Hello, I have two entity classes. ClassA and ClassB. ClassB has a property ClassA, so in my

Re: JPA 2.0 EntityManager.refresh() Behavior

2010-05-05 Thread Rick Curtis
Sounds like you found a few bugs. I'd suggest opening up a JIRA for each and post a testcase. On Wed, May 5, 2010 at 10:05 AM, J Grassel fyrew...@gmail.com wrote: I've encountered some behaviors in OpenJPA which I did not expected, and wanted to hear out from the community whether or not these

Re: Slice: OutOfMemoryError shortly after pounding 1000+ threads to the system.

2010-05-04 Thread Rick Curtis
Was there a heapdump generated? If so, did you look at it to see what is taking up all of the memory? On Mon, May 3, 2010 at 6:42 PM, ssso simo...@yahoo.com wrote: I have a very simple spring web app, inserting an order into the database. After pounding 500+ threads or so, I got an

Re: NPE in enhanced entity (where I can't see it)

2010-04-30 Thread Rick Curtis
You could decompile the enhanced entity to see where the enhancer went wrong. -- Thanks, Rick On Fri, Apr 30, 2010 at 10:06 AM, Wes Wannemacher w...@wantii.com wrote: Guys, I have an entity that I decided to munge up a little bit... So, normally, a setter would be coded like this -

Re: Null field values after calling EntityManager.remove()

2010-04-29 Thread Rick Curtis
Section 3.2.3 Removal of the 2.0 spec states: After an entity has been removed, its state (except for generated state) will be that of the entity at the point at which the remove operation was called. Please go ahead and open a JIRA [1] for this issue. [1] http://issues.apache.org/jira/ --

Re: ClassCastException: All Attributes of All Types Retrieved Into Each Attribute Typed List

2010-04-29 Thread Rick Curtis
Can you try posting those files to filebin or something? Looks like they were stripped off. -- Thanks, Rick On Thu, Apr 22, 2010 at 3:33 PM, McElwain, Paul Benjamin pbmce...@indiana.edu wrote: Using OpenJpa 1.2.2, upon a simple retrieval of an entity containing typed lists of other entites

Re: LazyLoading hell resolved

2010-04-29 Thread Rick Curtis
Interesting problem. Unfortunately it looks like your best option is to do what you are currently doing by keeping track of the size via a field or another option would be to have a method which will execute a select count statement to get the size of the list. I'm not sure if you've looked at

Re: How to use custom persistence.xml orm.xml files?

2010-04-29 Thread Rick Curtis
I not going to claim that I grok your entire setup, but I'm pretty sure that you need to move your persistence.xml files to the META-INF directory. -- Thanks, Rick On Wed, Apr 28, 2010 at 5:59 PM, Matthew Adams matt...@matthewadams.mewrote: Oops, first sentence should have read: OpenJPA

Re: DataSource initialization error

2010-04-28 Thread Rick Curtis
Try changing: property name=openjpa.Sequence value=org.apache.openjpa.jdbc.kernel.ClassTableJDBCSeq()/ to property name=openjpa.Sequence value=org.apache.openjpa.jdbc.kernel.ClassTableJDBCSeq/ If that doesn't work, will you post the contents of your persistence.xml? -- Thanks, Rick 2010/4/25 Ян

Re: Entity data missing in enhanced mode

2010-04-21 Thread Rick Curtis
On Wed, Apr 21, 2010 at 1:19 PM, Vásáry, Dániel vas...@elgekko.net wrote: Thanks for quick reply. I attached one of the Entities, and unit test. 2010/4/21 Rick Curtis curti...@gmail.com Can you post some more information? A small unit test would be nice... but a nice place to start would

Re: Entity data missing in enhanced mode

2010-04-21 Thread Rick Curtis
, Rick On Wed, Apr 21, 2010 at 1:19 PM, Vásáry, Dániel vas...@elgekko.net wrote: Thanks for quick reply. I attached one of the Entities, and unit test. 2010/4/21 Rick Curtis curti...@gmail.com Can you post some more information? A small unit test would be nice... but a nice

Re: OpenJPA without jta-data-source in persistence xml

2010-04-20 Thread Rick Curtis
Per the JPA 1.0 spec: The transaction-type attribute is used to specify whether the entity managers provided by the entity manager factory for the persistence unit must be JTA entity managers or resource-local entity managers. The value of this element is JTA or RESOURCE_LOCAL. A transaction-type

Re: [VOTE] Apache OpenJPA 2.0.0 release candidate #2

2010-04-19 Thread Rick Curtis
+1 On Mon, Apr 19, 2010 at 1:45 PM, Donald Woods dwo...@apache.org wrote: I've staged a RC2 for OpenJPA 2.0.0 based on r935683 of the code in the 2.0.x branch, which was tagged in svn to: https://svn.apache.org/repos/asf/openjpa/tags/2.0.0/ The following issues were resolved since the first

Re: ArgumentException: No metadata was found

2010-04-15 Thread Rick Curtis
Udi - I'm using 2 different entity managers: The first contains the classes: a, x, y, z. and the second contains the classes: b, c, d, e, f. I assume you are trying to say that you have two different persistence units and one manages the classes [a, x, y, z] and the other manages [b, c, d, e,

Re: ReadLock Questions

2010-04-14 Thread Rick Curtis
Do you mean the default lock manager can use any kind of LockModeType to lock the object? No. Per the documentation: version: An alias for the

Re: ReadLock Questions

2010-04-13 Thread Rick Curtis
What version of OpenJPA are you running? On Tue, Apr 13, 2010 at 5:54 PM, Angelo K. Huang angel...@ymail.com wrote: There are two threads that are concurrently running and want to change the same record. Both are using the following fetchplan to lock the object:

Re: ArgumentException: No metadata was found

2010-04-06 Thread Rick Curtis
I'm going to start off with a couple easy ones Is the type a valid Entity? Is it listed in the p.xml file? -- Thanks, Rick On Tue, Apr 6, 2010 at 10:37 AM, Udi saba...@gmail.com wrote: Hey, I'm using OpenJPA 1.2.0. My application was running for about a month, when I suddenly got the

Re: Unmanaged Object Problems

2010-04-05 Thread Rick Curtis
I think Daryl hit it spot on. I was able to reproduce the exception from the previous email and I believe that OpenJPA should be throwing an exception as pasted below, rather then the one that you are seeing. ... Caused by: openjpa-2.1.0-SNAPSHOT-r422266:930721M nonfatal user error

Re: Unmanaged Object Problems

2010-04-05 Thread Rick Curtis
multiple persistence contexts so having two threads sharing the same entity should be a non issue... unless we were to fix/allow that. -- Thanks, Rick On Mon, Apr 5, 2010 at 2:15 PM, Daryl Stultz da...@6degrees.com wrote: On Mon, Apr 5, 2010 at 2:45 PM, Rick Curtis curti...@gmail.com wrote: I

Re: Unmanaged Object Problems

2010-04-05 Thread Rick Curtis
this scenario isn't valid if getEmFromFactory() returns the same instance to two different threads. -- Thanks, Rick On Mon, Apr 5, 2010 at 3:28 PM, Daryl Stultz da...@6degrees.com wrote: On Mon, Apr 5, 2010 at 4:05 PM, Rick Curtis curti...@gmail.com wrote: Daryl I'm not entirely sure I

Re: SchemaGenerator and connections

2010-04-05 Thread Rick Curtis
I haven't really looked at the SchemaGenerator before, but what all did you change? Perhaps you can post a patch with your changes? -- Thanks, Rick On Sun, Apr 4, 2010 at 10:43 PM, Daniel Toffetti dto...@yahoo.com.arwrote: Hi all, I'm attempting to write a Netbeans plugin that should

Re: [VOTE] OpenJPA 2.0.0-beta3 release candidate

2010-03-25 Thread Rick Curtis
+1 On Tue, Mar 23, 2010 at 9:36 PM, Donald Woods dwo...@apache.org wrote: I've staged a release candidate for OpenJPA 2.0.0 Beta 3 based on r926797 of the code in the 2.0.x branch, which was tagged in svn to: https://svn.apache.org/repos/asf/openjpa/tags/2.0.0-beta3/ Release Notes:

Re: Exception java.lang.ClassNotFoundException: org.apache.openjpa.enhance.InstrumentationFactory in thread Attach Listener Agent failed to start

2010-03-10 Thread Rick Curtis
Cheng - http://openjpa.apache.org/builds/latest/docs/manual/manual.html#ref_guide_pc_enhance_dynamic Can describe the environment that you are running in? How are you enhancing your Entities? -- Thanks, Rick On Wed, Mar 10, 2010 at 1:31 PM, Cheng Zhang chzh...@yahoo-inc.com wrote: Hi, I

Re: entity update

2010-02-08 Thread Rick Curtis
Have you looked at the EntityManager interface [1]? [1] http://java.sun.com/javaee/5/docs/api/javax/persistence/EntityManager.html#remove%28java.lang.Object%29 -- Thanks, Rick On Mon, Feb 8, 2010 at 7:39 AM, mlounnaci mlounn...@hb-technologies.dzwrote: Hello friends I have an entity

Re: Get nonsensical column that is not compatible error after replacing 1.2.1 with 1.2.2

2010-01-26 Thread Rick Curtis
Go ahead and open a JIRA. I'll try to find a few cycles this afternoon to look at it. -- Thanks, Rick On Tue, Jan 26, 2010 at 11:26 AM, KARR, DAVID (ATTCINW) dk0...@att.comwrote: -Original Message- From: Rick Curtis [mailto:curti...@gmail.com] Sent: Friday, January 22, 2010 9:41

Re: Problems updating db entry

2010-01-22 Thread Rick Curtis
Will you post the trace to http://filebin.ca/ so we can take a look at it? Thanks, Rick 2010/1/22 Håkon Sagehaug hakon.sageh...@uni.no Hi all, I still got his problem and can't seem to resolve it so I'll try again to see if anyone has any tips. set up is like this I've got a web service

RE: Get nonsensical column that is not compatible error after replacing 1.2.1 with 1.2.2

2010-01-22 Thread Rick Curtis
KARR, DAVID (ATTCINW) wrote: No. I never have. I only list the orm.xml files. Can you try listing your persistent types in the p.xml file to see if this problem goes away? If that doesn't work, can you turn on trace and post it to filebin so I can take a look at it? Thanks, Rick --

Re: Get nonsensical column that is not compatible error after replacing 1.2.1 with 1.2.2

2010-01-22 Thread Rick Curtis
David - I looked at the files that you uploaded and I'm somewhat confused... it appears that the trace is from when you ran the enhancer, not when you ran the actual test case. By any chance can you boil this down to a simple unit test that I can use to recreate on my system? Thanks, Rick On

Re: Best way to prime OpenJPA before first request?

2010-01-21 Thread Rick Curtis
Kevin - Close, but no cigar. NoLock=true isn't valid. I'll get the docs fully updated today or tomorrow. -- Thanks, Rick On Thu, Jan 21, 2010 at 2:41 PM, Kevin Sutter kwsut...@gmail.com wrote: Rick is the expert here, but the 1.2.2 release contains an improvement to do the metadata

Re: Get nonsensical column that is not compatible error after replacing 1.2.1 with 1.2.2

2010-01-21 Thread Rick Curtis
Are you listing your persistent types in the p.xml file? On Thu, Jan 21, 2010 at 3:43 PM, KARR, DAVID (ATTCINW) dk0...@att.comwrote: After replacing 1.2.1 with 1.2.2 and turning on the metadata preload, I got a nonsensical column that is not compatible error. I then tried removing the

Re: ClassCastException in pcReplaceField

2010-01-14 Thread Rick Curtis
Udi - You're really going to need to post more information than this for anyone to figure out what is going on I understand you don't want to post your application call stack, what about posting a filtered call stack? That might be a good starting point. You say you are enhancing your

<    1   2   3   4   5   6   >