Re: Another OpenJPA InvalidStateException

2010-05-18 Thread Norman Maurer
Catching generic Exceptions is mostly a bad practice. But I agree we should prolly do it in the command dispatcher and just write a "-ERR" Response to the client on an Exception. Bye, Norman 2010/5/18 Vanuj : > Hi Norman, > Verified it and the fix works. Thanks so much for that. > But would it b

Re: Another OpenJPA InvalidStateException

2010-05-17 Thread Vanuj
Hi Norman, Verified it and the fix works. Thanks so much for that. But would it be a good idea to catch a generic Exception in ListCmdHandler and return error response (OR) wrap a generic exception into a MailboxException and throw it from StoreMailbox. Right now the client will hang every time

Re: Another OpenJPA InvalidStateException

2010-05-17 Thread Norman Maurer
Hi Vanuj, I think I fixed the bug. Please update you source tree and build it again. Wait for your feedback Thx, Norman 2010/5/17 Norman Maurer : > Hi Vanuj, > > I found the problem with pop3. At least I know why it happens. But I > have to think a bit about how to fix it. Fix will come so

Re: Another OpenJPA InvalidStateException

2010-05-17 Thread Norman Maurer
Hi Vanuj, I found the problem with pop3. At least I know why it happens. But I have to think a bit about how to fix it. Fix will come soon. Thx, Norman 2010/5/17 Norman Maurer : > Hi Vanuj, > > The error below is fixed: > > 312  James  TRACE  [main] openjpa.Runtime - Not creating a > ValidatorI

Re: Another OpenJPA InvalidStateException

2010-05-17 Thread Norman Maurer
Hi Vanuj, The error below is fixed: 312 James TRACE [main] openjpa.Runtime - Not creating a ValidatorImpl because this app is using the JPA 1.0 Spec The error message about Weaver can be ignored: > Caused by: java.lang.IllegalStateException: Cannot apply class transformer > without LoadTime

Re: Another OpenJPA InvalidStateException

2010-05-17 Thread Eric Charles
Hi Vanuj, Seems like your eclipse has some confusion with openjpa1 and openjpa2. (James uses openjpa2 since 1 week). I also activated the TRACE log, and didn't receive your message "[main] openjpa.Runtime - Not creating a ValidatorImpl because this app is using the JPA 1.0 Spec " Both exceptio

Re: Another OpenJPA InvalidStateException

2010-05-17 Thread Apache James
Hi Norman, I enabled trace and found that there are two exceptions happening. One on james startup and the other when the LIST or RETR command gets called. Only the one on startup gets logged. Also, There is this message during printed during server startup that looked interesting. (Is is sup

Re: Another OpenJPA InvalidStateException

2010-05-17 Thread Eric Charles
Similar issues on POP3 the last weeks with JPA exceptions not logged in james-server.log. I have now configured openjpa.Log in persistence.xml and added the following line in log4j.properties log4j.logger.org.apache.openjpa=TRACE, CONS, FILE But I still don't see much openjpa in the logs. Er

Re: Another OpenJPA InvalidStateException

2010-05-16 Thread Norman Maurer
Hi Vanuj, could you give us some more informations ? * Which revision of trunk ? * Does it happen everytime ? * Any changes made in persistence.xml or spring-beans.xml ? * Could enable the TRACE logging in persistence.xml and show us the full stack trace... : Thx, Norman 2010/5/17 Apache Jam

Another OpenJPA InvalidStateException

2010-05-16 Thread Apache James
Hi, Apologies for the Spam, I just built James from trunk and deployed it on tomcat a few hours ago. Everything seems to be working fine but there is a problem in POP3 server. When I hit the 'List' command does not return any response and hits an exception in JPAMessageMapper.findMessagesInMai