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.findMessagesInMailboxWithUID()


 
org.apache.openjpa.persistence.InvalidStateException: The context has 
been closed.  The stack trace at which the context was closed is 
available if Runtime=TRACE logging is enabled.


Has anyone faced this recently?

Thanks,
Vanuj.

-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



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 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.findMessagesInMailboxWithUID()
>
> 
> org.apache.openjpa.persistence.InvalidStateException: The context has been
> closed.  The stack trace at which the context was closed is available if
> Runtime=TRACE logging is enabled.
>
> Has anyone faced this recently?
>
> Thanks,
> Vanuj.
>
> -
> To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
> For additional commands, e-mail: server-dev-h...@james.apache.org
>
>

-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



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.

Eric

On 05/17/2010 07:16 AM, Norman Maurer wrote:

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 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.findMessagesInMailboxWithUID()


org.apache.openjpa.persistence.InvalidStateException: The context has been
closed.  The stack trace at which the context was closed is available if
Runtime=ACE logging is enabled.

Has anyone faced this recently?

Thanks,
Vanuj.

-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org


 

-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org

   



-
To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org
For additional commands, e-mail: server-dev-h...@james.apache.org



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 supposed to be this way)


312  James  TRACE  [main] openjpa.Runtime - Not creating a ValidatorImpl 
because this app is using the JPA 1.0 Spec


The Exceptions along with the other details are inline.

Thanks,
Vanuj.



On 5/17/2010 10:46 AM, Norman Maurer wrote:

Hi Vanuj,

could you give us some more informations ?

* Which revision of trunk ?

943607


* Does it happen everytime ?
Funny thing. Whenever I try to get mail using thunderbird, the exception 
occurs during 'LIST' command and thunderbird times out waiting for james 
to reply. But if I create a raw connection with James and try to hit 
James, it goes through and the list is returned. But then the same 
exception at the time of RETR command.



* Any changes made in persistence.xml or spring-beans.xml ?

Nope. I am building james for the first time. Did not touch any code.


* Could enable the TRACE logging in persistence.xml and show us the
full stack trace... :
   



EXCEPTION 1

Here is the exception that happens during the startup.

java.lang.reflect.UndeclaredThrowableException
at $Proxy27.addTransformer(Unknown Source)
at 
org.apache.openjpa.persistence.PersistenceProviderImpl.createContainerEntityManagerFactory(PersistenceProviderImpl.java:169)
at 
org.apache.openjpa.persistence.PersistenceProviderImpl.createContainerEntityManagerFactory(PersistenceProviderImpl.java:65)
at 
org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:225)
at 
org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:308)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1469)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at 
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findDefaultEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:529)
at 
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:495)
at 
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.resolveEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:642)
at 
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.getResourceToInject(PersistenceAnnotationBeanPostProcessor.java:633)
at 
org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:159)
at 
org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84)
at 
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessPropertyValues(PersistenceAnnotationBeanPostProcessor.java:338)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1064)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)

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 exceptions are related to EntityManager, so I think you have to 
look at your jpa dependencies.


Tks,
Eric


On 05/17/2010 07:14 PM, Apache James wrote:

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 supposed to be this way)


312  James  TRACE  [main] openjpa.Runtime - Not creating a 
ValidatorImpl because this app is using the JPA 1.0 Spec


The Exceptions along with the other details are inline.

Thanks,
Vanuj.



On 5/17/2010 10:46 AM, Norman Maurer wrote:

Hi Vanuj,

could you give us some more informations ?

* Which revision of trunk ?

943607


* Does it happen everytime ?
Funny thing. Whenever I try to get mail using thunderbird, the 
exception occurs during 'LIST' command and thunderbird times out 
waiting for james to reply. But if I create a raw connection with 
James and try to hit James, it goes through and the list is returned. 
But then the same exception at the time of RETR command.



* Any changes made in persistence.xml or spring-beans.xml ?

Nope. I am building james for the first time. Did not touch any code.


* Could enable the TRACE logging in persistence.xml and show us the
full stack trace... :




EXCEPTION 1

Here is the exception that happens during the startup.

java.lang.reflect.UndeclaredThrowableException
at $Proxy27.addTransformer(Unknown Source)
at 
org.apache.openjpa.persistence.PersistenceProviderImpl.createContainerEntityManagerFactory(PersistenceProviderImpl.java:169) 

at 
org.apache.openjpa.persistence.PersistenceProviderImpl.createContainerEntityManagerFactory(PersistenceProviderImpl.java:65) 

at 
org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:225) 

at 
org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:308) 

at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1469) 

at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409) 

at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) 

at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) 

at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291) 

at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) 

at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288) 

at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190) 

at 
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findDefaultEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:529) 

at 
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:495) 

at 
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.resolveEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:642) 

at 
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.getResourceToInject(PersistenceAnnotationBeanPostProcessor.java:633) 

at 
org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:159) 

at 
org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84) 

at 
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessPropertyValues(PersistenceAnnotationBeanPostProcessor.java:338) 

at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1064) 

at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517) 

at 
org.springfram

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 LoadTimeWeaver specified

See spring section under:
http://openjpa.apache.org/integration.html

Can you try if you see the other exception on list after updating and
build again ?

Thx,
Norman


2010/5/17 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 supposed to be this way)
>
> 312  James  TRACE  [main] openjpa.Runtime - Not creating a ValidatorImpl
> because this app is using the JPA 1.0 Spec
>
> The Exceptions along with the other details are inline.
>
> Thanks,
> Vanuj.
>
>
>
> On 5/17/2010 10:46 AM, Norman Maurer wrote:
>>
>> Hi Vanuj,
>>
>> could you give us some more informations ?
>>
>> * Which revision of trunk ?
>
> 943607
>
>> * Does it happen everytime ?
>
> Funny thing. Whenever I try to get mail using thunderbird, the exception
> occurs during 'LIST' command and thunderbird times out waiting for james to
> reply. But if I create a raw connection with James and try to hit James, it
> goes through and the list is returned. But then the same exception at the
> time of RETR command.
>
>> * Any changes made in persistence.xml or spring-beans.xml ?
>
> Nope. I am building james for the first time. Did not touch any code.
>
>> * Could enable the TRACE logging in persistence.xml and show us the
>> full stack trace... :
>>   
>
>
> EXCEPTION 1
>
> Here is the exception that happens during the startup.
>
> java.lang.reflect.UndeclaredThrowableException
>        at $Proxy27.addTransformer(Unknown Source)
>        at
> org.apache.openjpa.persistence.PersistenceProviderImpl.createContainerEntityManagerFactory(PersistenceProviderImpl.java:169)
>        at
> org.apache.openjpa.persistence.PersistenceProviderImpl.createContainerEntityManagerFactory(PersistenceProviderImpl.java:65)
>        at
> org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:225)
>        at
> org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:308)
>        at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1469)
>        at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)
>        at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
>        at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
>        at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
>        at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
>        at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
>        at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
>        at
> org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findDefaultEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:529)
>        at
> org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:495)
>        at
> org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.resolveEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:642)
>        at
> org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.getResourceToInject(PersistenceAnnotationBeanPostProcessor.java:633)
>        at
> org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:159)
>        at
> org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84)
>        at
> org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessPropertyValues(PersistenceAnnotationBeanPostProcessor.java:338)
>        at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1064)
>        at
> org.springframewo

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
> 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 LoadTimeWeaver specified
>
> See spring section under:
> http://openjpa.apache.org/integration.html
>
> Can you try if you see the other exception on list after updating and
> build again ?
>
> Thx,
> Norman
>
>
> 2010/5/17 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 supposed to be this way)
>>
>> 312  James  TRACE  [main] openjpa.Runtime - Not creating a ValidatorImpl
>> because this app is using the JPA 1.0 Spec
>>
>> The Exceptions along with the other details are inline.
>>
>> Thanks,
>> Vanuj.
>>
>>
>>
>> On 5/17/2010 10:46 AM, Norman Maurer wrote:
>>>
>>> Hi Vanuj,
>>>
>>> could you give us some more informations ?
>>>
>>> * Which revision of trunk ?
>>
>> 943607
>>
>>> * Does it happen everytime ?
>>
>> Funny thing. Whenever I try to get mail using thunderbird, the exception
>> occurs during 'LIST' command and thunderbird times out waiting for james to
>> reply. But if I create a raw connection with James and try to hit James, it
>> goes through and the list is returned. But then the same exception at the
>> time of RETR command.
>>
>>> * Any changes made in persistence.xml or spring-beans.xml ?
>>
>> Nope. I am building james for the first time. Did not touch any code.
>>
>>> * Could enable the TRACE logging in persistence.xml and show us the
>>> full stack trace... :
>>>   
>>
>>
>> EXCEPTION 1
>>
>> Here is the exception that happens during the startup.
>>
>> java.lang.reflect.UndeclaredThrowableException
>>        at $Proxy27.addTransformer(Unknown Source)
>>        at
>> org.apache.openjpa.persistence.PersistenceProviderImpl.createContainerEntityManagerFactory(PersistenceProviderImpl.java:169)
>>        at
>> org.apache.openjpa.persistence.PersistenceProviderImpl.createContainerEntityManagerFactory(PersistenceProviderImpl.java:65)
>>        at
>> org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:225)
>>        at
>> org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:308)
>>        at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1469)
>>        at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)
>>        at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
>>        at
>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
>>        at
>> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
>>        at
>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
>>        at
>> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
>>        at
>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
>>        at
>> org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findDefaultEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:529)
>>        at
>> org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:495)
>>        at
>> org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.resolveEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:642)
>>        at
>> org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.getResourceToInject(PersistenceAnnotationBeanPostProcessor.java:633)
>>        at
>> org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:159)
>>        at
>> org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84)
>>        at
>> org.springframework.orm.

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 soon.
>
> Thx,
> Norman
>
>
> 2010/5/17 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 LoadTimeWeaver specified
>>
>> See spring section under:
>> http://openjpa.apache.org/integration.html
>>
>> Can you try if you see the other exception on list after updating and
>> build again ?
>>
>> Thx,
>> Norman
>>
>>
>> 2010/5/17 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 supposed to be this way)
>>>
>>> 312  James  TRACE  [main] openjpa.Runtime - Not creating a ValidatorImpl
>>> because this app is using the JPA 1.0 Spec
>>>
>>> The Exceptions along with the other details are inline.
>>>
>>> Thanks,
>>> Vanuj.
>>>
>>>
>>>
>>> On 5/17/2010 10:46 AM, Norman Maurer wrote:

 Hi Vanuj,

 could you give us some more informations ?

 * Which revision of trunk ?
>>>
>>> 943607
>>>
 * Does it happen everytime ?
>>>
>>> Funny thing. Whenever I try to get mail using thunderbird, the exception
>>> occurs during 'LIST' command and thunderbird times out waiting for james to
>>> reply. But if I create a raw connection with James and try to hit James, it
>>> goes through and the list is returned. But then the same exception at the
>>> time of RETR command.
>>>
 * Any changes made in persistence.xml or spring-beans.xml ?
>>>
>>> Nope. I am building james for the first time. Did not touch any code.
>>>
 * Could enable the TRACE logging in persistence.xml and show us the
 full stack trace... :
   
>>>
>>>
>>> EXCEPTION 1
>>>
>>> Here is the exception that happens during the startup.
>>>
>>> java.lang.reflect.UndeclaredThrowableException
>>>        at $Proxy27.addTransformer(Unknown Source)
>>>        at
>>> org.apache.openjpa.persistence.PersistenceProviderImpl.createContainerEntityManagerFactory(PersistenceProviderImpl.java:169)
>>>        at
>>> org.apache.openjpa.persistence.PersistenceProviderImpl.createContainerEntityManagerFactory(PersistenceProviderImpl.java:65)
>>>        at
>>> org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:225)
>>>        at
>>> org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:308)
>>>        at
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1469)
>>>        at
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)
>>>        at
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
>>>        at
>>> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
>>>        at
>>> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
>>>        at
>>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
>>>        at
>>> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
>>>        at
>>> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
>>>        at
>>> org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findDefaultEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:529)
>>>        at
>>> org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:495)
>>>        at
>>> org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.resolveEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:642)
>>>        at
>>> org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.getResourceToInject(PersistenceAnnotationBeanPostProcessor.java:633)
>>>  

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 there is any exception other that 
MailboxException.


Thanks,
Vanuj.


On 5/18/2010 2:15 AM, Norman Maurer wrote:

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 soon.

Thx,
Norman


2010/5/17 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 LoadTimeWeaver specified


See spring section under:
http://openjpa.apache.org/integration.html

Can you try if you see the other exception on list after updating and
build again ?

Thx,
Norman


2010/5/17 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 supposed to be this way)

312  James  TRACE  [main] openjpa.Runtime - Not creating a ValidatorImpl
because this app is using the JPA 1.0 Spec

The Exceptions along with the other details are inline.

Thanks,
Vanuj.



On 5/17/2010 10:46 AM, Norman Maurer wrote:


Hi Vanuj,

could you give us some more informations ?

* Which revision of trunk ?


943607


* Does it happen everytime ?


Funny thing. Whenever I try to get mail using thunderbird, the exception
occurs during 'LIST' command and thunderbird times out waiting for james to
reply. But if I create a raw connection with James and try to hit James, it
goes through and the list is returned. But then the same exception at the
time of RETR command.


* Any changes made in persistence.xml or spring-beans.xml ?


Nope. I am building james for the first time. Did not touch any code.


* Could enable the TRACE logging in persistence.xml and show us the
full stack trace... :
   



EXCEPTION 1

Here is the exception that happens during the startup.

java.lang.reflect.UndeclaredThrowableException
at $Proxy27.addTransformer(Unknown Source)
at
org.apache.openjpa.persistence.PersistenceProviderImpl.createContainerEntityManagerFactory(PersistenceProviderImpl.java:169)
at
org.apache.openjpa.persistence.PersistenceProviderImpl.createContainerEntityManagerFactory(PersistenceProviderImpl.java:65)
at
org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:225)
at
org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:308)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1469)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findDefaultEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:529)
at
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:495)
at
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.resolveEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:642)
at
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.getResourceToInject(PersistenceAn

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 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 there is any exception other that MailboxException.
>
> Thanks,
> Vanuj.
>
>
> On 5/18/2010 2:15 AM, Norman Maurer wrote:
>>
>> 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 soon.
>>>
>>> Thx,
>>> Norman
>>>
>>>
>>> 2010/5/17 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 LoadTimeWeaver specified

 See spring section under:
 http://openjpa.apache.org/integration.html

 Can you try if you see the other exception on list after updating and
 build again ?

 Thx,
 Norman


 2010/5/17 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 supposed to be this way)
>
> 312  James  TRACE  [main] openjpa.Runtime - Not creating a
> ValidatorImpl
> because this app is using the JPA 1.0 Spec
>
> The Exceptions along with the other details are inline.
>
> Thanks,
> Vanuj.
>
>
>
> On 5/17/2010 10:46 AM, Norman Maurer wrote:
>>
>> Hi Vanuj,
>>
>> could you give us some more informations ?
>>
>> * Which revision of trunk ?
>
> 943607
>
>> * Does it happen everytime ?
>
> Funny thing. Whenever I try to get mail using thunderbird, the
> exception
> occurs during 'LIST' command and thunderbird times out waiting for
> james to
> reply. But if I create a raw connection with James and try to hit
> James, it
> goes through and the list is returned. But then the same exception at
> the
> time of RETR command.
>
>> * Any changes made in persistence.xml or spring-beans.xml ?
>
> Nope. I am building james for the first time. Did not touch any code.
>
>> * Could enable the TRACE logging in persistence.xml and show us the
>> full stack trace... :
>>   
>
>
> EXCEPTION 1
>
> Here is the exception that happens during the startup.
>
> java.lang.reflect.UndeclaredThrowableException
>        at $Proxy27.addTransformer(Unknown Source)
>        at
>
> org.apache.openjpa.persistence.PersistenceProviderImpl.createContainerEntityManagerFactory(PersistenceProviderImpl.java:169)
>        at
>
> org.apache.openjpa.persistence.PersistenceProviderImpl.createContainerEntityManagerFactory(PersistenceProviderImpl.java:65)
>        at
>
> org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:225)
>        at
>
> org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:308)
>        at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1469)
>        at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)
>        at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
>        at
>
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
>        at
>
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
>        at
>
> org.springframework.beans.factory.support.DefaultSingletonBeanRegist