.
>
>> if I get em from jpaTample, and from em find data, do I need always close
> em after?
> I'm not sure what jpaTample is. You'll need to close your em once you're
> done with it. It depends from application to application.
>
> hth,
> Rick
>
>
>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 s
Hi Rick,
Sorry, I am afraid I cannot. Would you please let men know what bug on
detachCopy method?
And one more question, if I get em from jpaTample, and from em find data, do
I need always close em after?
Thanks,
Jane
--
View this message in context:
http://openjpa.208410.n2.nabble.com/Date
Hmm, can you post a small unit test?
Thanks,
Rick
Sorry, I mean the entity didn't been detached.
--
View this message in context:
http://openjpa.208410.n2.nabble.com/Date-Problem-tp2943310p5298472.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.
he version, where am I still missing?
Thanks,
Jane
--
View this message in context:
http://openjpa.208410.n2.nabble.com/Date-Problem-tp2943310p5298075.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.
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
version="1.0">
org.apache.openjpa.persistence.PersistenceProviderImpl
model.Message
--
View this message in context:
http://openjpa.208410.n2.nabble.com/Date-Problem-tp2943310p5297788.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.
Can you post your persistence.xml file?
Thanks,
Rick
Hi Rick,
I solved this problem by casting the EntityManger to OpenJPAEntityManager
and using detachCpoy method which it return detached entity. Properly detach
method is a bug need fix.
Thanks,
Jane
--
View this message in context:
http://openjpa.208410.n2.nabble.com/Date-Problem
Thank you for quick responding. I am using openjpa 2.0.0, the latest version.
--
View this message in context:
http://openjpa.208410.n2.nabble.com/Date-Problem-tp2943310p5295621.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.
What version of OpenJPA are you on?
Thanks,
Rick
://openjpa.208410.n2.nabble.com/Date-Problem-tp2943310p5294791.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.
ing changeUser;
> > > > >
> > > > >
> > > > > When I try to grab an object with these embedded values I get the
> > > error:
> > > > >
> > > > >
> > > > >
> > > > > java.lang.AssertionError: javax.ejb.EJBException: Unknown Container
> > > > > Exception: java.rmi.RemoteException: Cannot read the response from
> > the
> > > > > server. The class for an object being returned is not located in
> > this
> > > > > system:; nested exception is:
> > > > > java.lang.ClassNotFoundException:
> > > > > org.apache.openjpa.util.java$sql$Date$proxy
> > > > >
> > > > > I have tried multiple ways with adding and removing @Temporal etc.
> > Oh
> > > > one
> > > > > more thing, this is a MySQL database that I am trying to access.
> > > Please
> > > > > give me any help you can. Thanks.
> > > > >
> > > > >
> > > > > Russell Collins
> > > > >
> > > > >
> > > > >
> > > >
> > > > --
> > > > View this message in context:
> > > > http://n2.nabble.com/Date-Problem-tp2943310p2945766.html
> > > > Sent from the OpenJPA Users mailing list archive at Nabble.com.
> > > >
> > > >
> > >
> >
>
javax.ejb.EJBException: Unknown Container
> > > > Exception: java.rmi.RemoteException: Cannot read the response from
> the
> > > > server. The class for an object being returned is not located in
> this
> > > > system:; nested exception is:
> > > > java.lang.ClassNotFoundException:
> > > > org.apache.openjpa.util.java$sql$Date$proxy
> > > >
> > > > I have tried multiple ways with adding and removing @Temporal etc.
> Oh
> > > one
> > > > more thing, this is a MySQL database that I am trying to access.
> > Please
> > > > give me any help you can. Thanks.
> > > >
> > > >
> > > > Russell Collins
> > > >
> > > >
> > > >
> > >
> > > --
> > > View this message in context:
> > > http://n2.nabble.com/Date-Problem-tp2943310p2945766.html
> > > Sent from the OpenJPA Users mailing list archive at Nabble.com.
> > >
> > >
> >
>
mi.RemoteException: Cannot read the response from the
> > > server. The class for an object being returned is not located in this
> > > system:; nested exception is:
> > > java.lang.ClassNotFoundException:
> > > org.apache.openjpa.util.java$sql$Date$proxy
> > >
> > > I have tried multiple ways with adding and removing @Temporal etc. Oh
> > one
> > > more thing, this is a MySQL database that I am trying to access.
> Please
> > > give me any help you can. Thanks.
> > >
> > >
> > > Russell Collins
> > >
> > >
> > >
> >
> > --
> > View this message in context:
> > http://n2.nabble.com/Date-Problem-tp2943310p2945766.html
> > Sent from the OpenJPA Users mailing list archive at Nabble.com.
> >
> >
>
Wednesday, May 20, 2009 9:17 AM
To: users@openjpa.apache.org
Subject: Re: Date Problem
Hi Russell,
I think you're hitting the same problem mentioned here [1]. The short
answer is that the client needs to have access to openjpa-1.2.1.jar so it
can load the proxy classes.
The larger question is
ssNotFoundException:
> > org.apache.openjpa.util.java$sql$Date$proxy
> >
> > I have tried multiple ways with adding and removing @Temporal etc. Oh
> one
> > more thing, this is a MySQL database that I am trying to access. Please
> > give me any help you can. Thanks.
> >
> >
> > Russell Collins
> >
> >
> >
>
> --
> View this message in context:
> http://n2.nabble.com/Date-Problem-tp2943310p2945766.html
> Sent from the OpenJPA Users mailing list archive at Nabble.com.
>
>
Oh one
> more thing, this is a MySQL database that I am trying to access. Please
> give me any help you can. Thanks.
>
>
> Russell Collins
>
>
>
--
View this message in context:
http://n2.nabble.com/Date-Problem-tp2943310p2945766.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.
Hello, I am new to OpenJPA and the entire persistence objects so bear with me a
little. First of all, I am using Apache Geronimo which has OpenJPA
version1.2.1 and I am moving from Hibernate (which is a pain to try to work in
Geronimo). Everything works fine except for Dates and Times. I have
20 matches
Mail list logo