Re: java.lang.StackOverflowError Exception after enabling cach

2009-09-08 Thread javadia...@gmail.com
Hi Excuse me for the late reply Thanks for your replies and helps My problem was solved . I have an embeddable class that I use it as embedded property in some entity class and we forgot to list it on the persistence.xml file and then enhancer didn’t enhance it .I think this embeddable class w

Re: java.lang.StackOverflowError Exception after enabling cach

2009-08-18 Thread Michael Dick
Glassfish should automatically enhance your entities if you use a container managed EntityManagerFactory. The container is required to use the createContainerEntityManagerFactory method, this is where OpenJPA provides a ClassTransformer (actually the same agent that you mentioned before). So if yo

Re: java.lang.StackOverflowError Exception after enabling cach

2009-08-18 Thread Rick Curtis
Another option would be to enhance your classes at build time. That would ensure that you are running with enhanced Entities. -Rick http://openjpa.apache.org/entity-enhancement.html -- Checkout the Build Time Enhancement section. -- View this message in context: http://n2.nabble.com/java.lang.

Re: java.lang.StackOverflowError Exception after enabling cach

2009-08-18 Thread Luis Fernando Planella Gonzalez
Glassfish uses TopLink essentials as JPA provider: https://glassfish.dev.java.net/javaee5/persistence/ My guess would be that it does not uses the OpenJPA agent... You could check the script that starts the server. If you are on NetBeans, there should be an ant task to start the server. There you c

Re: java.lang.StackOverflowError Exception after enabling cach

2009-08-18 Thread javadia...@gmail.com
hi Thank your for your reply I use glassfish app server for deploying my application . I think glassfish as java EE container itself do this .According to thread on Address: http://markmail.org/message/zlcq3lrj5jfolup7#query:glassfish%20javaagent%20openjpa+page:1+mid:qw7323mlldhlpr2e+state:result

Re: java.lang.StackOverflowError Exception after enabling cach

2009-08-17 Thread Luis Fernando Planella Gonzalez
Sorry, just in case it's not clear: The -javaagent:path-to-openjpa.jar should be added as a JVM parameter for your java application. -- Luis Fernando Planella Gonzalez Em Segunda-feira 17 Agosto 2009, às 09:33:56, Luis Fernando Planella Gonzalez escreveu: > Something you could try is using the

Re: java.lang.StackOverflowError Exception after enabling cach

2009-08-17 Thread Luis Fernando Planella Gonzalez
Something you could try is using the JPA java agent. I had an StackOverflowError with OpenJPA without the agent enabled. Try adding: -javaagent:path-to-openjpa.jar -- Luis Fernando Planella Gonzalez Em Segunda-feira 17 Agosto 2009, às 09:15:16, javadia...@gmail.com escreveu: > > Hi > I get the f