Hi Eric,

I followed the steps given below for Beta2 version instead of Beta3 because
we have really tested our application using James3 Beta2 and ready for
upgrade. The error I am getting while using Mailbox copier is below:

************************
INFO  14:04:12,042 | org.apache.james.container.spring.Main | Apache James
Server is successfully started in 21633 milliseconds.
ERROR 14:23:55,067 |
org.apache.james.container.spring.mailbox.MailboxCopierManagement | An
exception occured during the copy process
org.apache.james.mailbox.MailboxNotFoundException
    at
org.apache.james.mailbox.maildir.MaildirStore.loadMailbox(MaildirStore.java:109)
    at
org.apache.james.mailbox.maildir.mail.MaildirMailboxMapper.visitUsersForMailboxList(MaildirMailboxMapper.java:267)
    at
org.apache.james.mailbox.maildir.mail.MaildirMailboxMapper.list(MaildirMailboxMapper.java:208)
    at
org.apache.james.mailbox.store.StoreMailboxManager.list(StoreMailboxManager.java:533)
    at
org.apache.james.mailbox.copier.MailboxCopierImpl.copyMailboxes(MailboxCopierImpl.java:82)
    at
org.apache.james.container.spring.mailbox.MailboxCopierManagement.copy(MailboxCopierManagement.java:87)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at
com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:93)
    at
com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:27)
    at
com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:208)
    at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:120)
    at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:262)
    at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
    at
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
    at
javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427)
    at
javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
    at
javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)
    at
javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1360)
    at
javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
    at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
    at sun.rmi.transport.Transport$1.run(Transport.java:159)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
    at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
    at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
    at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
INFO  14:28:14,993 |
org.apache.james.container.spring.context.JamesServerApplicationContext |
Closing
org.apache.james.container.spring.context.JamesServerApplicationContext@18aaa1e:
startup date [Sun Aug 28 14:03:50 EDT 2011]; root of context hierarchy
INFO  14:28:15,388 | james.imapserver | Dispose IMAP Service
INFO  14:28:15,653 | james.imapserver | Dispose IMAP Service done
INFO  14:28:15,653 | james.pop3server | Dispose POP3 Service
INFO  14:28:15,663 | james.pop3server | Dispose POP3 Service done
INFO  14:28:15,663 | james.lmtpserver | Dispose LMTP Service
INFO  14:28:15,671 | james.lmtpserver | Dispose LMTP Service done
INFO  14:28:15,671 | james.smtpserver | Dispose SMTP Service
INFO  14:28:15,685 | james.smtpserver | Dispose SMTP Service done
INFO  14:28:15,686 | james.mailspooler |
org.apache.james.mailetcontainer.impl.JamesMailSpooler dispose...
INFO  14:28:15,803 | james.mailspooler | Stop
org.apache.james.mailetcontainer.impl.JamesMailSpooler: dequeuer-1
INFO  14:28:15,804 | james.mailspooler | Stop
org.apache.james.mailetcontainer.impl.JamesMailSpooler: dequeuer-2
INFO  14:28:15,804 | james.mailspooler |
org.apache.james.mailetcontainer.impl.JamesMailSpooler thread shutdown
completed.
************************

I have taken backup before calling restore and the same backup worked with
3.0-SNAPSHOT version and it is throwing error using 3.0-Beta2 saying mailbox
not found.

Is there any specific step that I missed?

Thanks, Sai

On Thu, Aug 25, 2011 at 10:02 AM, Eric Charles <[email protected]> wrote:

> Damned it!
>
> Difficult to find any other advice...
> Anyone on ml with other ideas?
>
> Maybe:
> - It seems you are able to rebuild. Could you rebuild the tagged beta3 with
> the new MailboxCopierManagement class [1] which logs the exception and send
> the log with the exception.
> - Is the backuped maildir operational (can you read it)?
> - Is the configured jpa connection operation (can you create domains, users
> and send/read mails before trying to restore)?
>
> Thx.
>
> [1] http://svn.apache.org/repos/**asf/james/server/trunk/**
> container-spring/src/main/**java/org/apache/james/**
> container/spring/mailbox/**MailboxCopierManagement.java<http://svn.apache.org/repos/asf/james/server/trunk/container-spring/src/main/java/org/apache/james/container/spring/mailbox/MailboxCopierManagement.java>
>
>
>
> On 25/08/11 15:47, Saibabu Vallurupalli wrote:
>
>> Hi Eric,
>>
>> We tried various options and restore is still not working in beta2 and
>> beta3
>> releases. The options we tried are below:
>>
>> On Linux (CentOS), MySQL Database, used maildir/jpa for copy and store
>> viceversa.
>> - Installed M3-SNAPSHOT, was able to successfully take the backup and also
>> was able to restore using the same version.
>> - Installed Beta2 and tried to restore the same content backup took in the
>> previous test. Got the exception and we sent this in this email chain
>> already.
>> - Installed Beta3 and tried to restore the same, it is same issue as
>> Beta2.
>>
>> We have been trying this since last 2 weeks just to restore the data from
>> maildir to jpa and unable to proceed with this. Any help regarding this is
>> greatly appreciated.
>>
>> Thank you very much in advance.
>>
>> Thanks, Sai
>>
>> On Mon, Aug 22, 2011 at 6:49 AM, Eric Charles<[email protected]>  wrote:
>>
>>  Hi Sai,
>>>
>>> The very good news is that you took backup from M3-SNAPSHOT JPA to
>>> maildir.
>>> An additional good news is that you would configure M3-SNAPSHOT to work
>>> with
>>> that backuped version (simply read mailboxes for example).
>>>
>>> If you can access that backuped maildir version with your M3-SNAPSHOT,
>>> I'm
>>> very confident that you will be able to restore it to a newer James
>>> version
>>> on a JPA mailbox
>>>
>>> Btw, we just released yesterday james 3.0-beta3. Don't hesitate to
>>> achieve
>>> your restore on that version (http://james.apache.org/**
>>> download.cgi#Apache_James_****Server<http://james.apache.**
>>> org/download.cgi#Apache_James_**Server<http://james.apache.org/download.cgi#Apache_James_Server>
>>> >
>>>
>>> )
>>>
>>> Thx.
>>>
>>>
>>>
>>> On 22/08/11 12:09, Saibabu Vallurupalli wrote:
>>>
>>>   Hi Eric,
>>>>
>>>> You remembered correct. Last time I was trying to copy mails from JPA to
>>>> JCR
>>>> and JCR to JPA and was not successful on Windows. So, We have got a
>>>> linux
>>>> environment and trying to use maildir functionality.
>>>>
>>>> I was successful in taking backup from JPA to MailDir on Linux (CentOs).
>>>> Now, I am trying to restore and having problems.
>>>>
>>>> Backup version is 3.0-M3-SNAPSHOT upgraded version is 3.0-Beta2 version.
>>>>
>>>> I will try to use the same jvm as James is running and also will try the
>>>> other options as suggested.
>>>>
>>>> Thanks, Sai
>>>>
>>>> On Mon, Aug 22, 2011 at 12:42 AM, Eric Charles<[email protected]>
>>>> wrote:
>>>>
>>>>
>>>>  On 22/08/11 03:10, Saibabu Vallurupalli wrote:
>>>>>
>>>>> Hi Eric,
>>>>>
>>>>>>
>>>>>> Vanessa and I work on same project. I reviewed all log files and there
>>>>>> are
>>>>>> no errors or exceptions. Though this error got initiated from
>>>>>> MailboxCopierManagement.java line#83 down the line the root cause
>>>>>> looks
>>>>>> like
>>>>>> JMX Console related.
>>>>>> The JMX Console is unable to execute copy method. I have installed JDK
>>>>>> 7
>>>>>> the
>>>>>> latest version and invoking jConsole from JKD/bin directory. Is this
>>>>>> is
>>>>>> the
>>>>>> same way you all try to use jConsole or different? Do we need to set
>>>>>> any
>>>>>> classpath to get access to these methods?
>>>>>>
>>>>>>
>>>>>>  I would run JConsole in the same JVM as James is runing.
>>>>> JDK7 is ambitious, and would run in JDK6 to be more sure.
>>>>>
>>>>> There should be nothing to add on the classpath to let it work.
>>>>> James is throwing an Exception on line 83 further a MailboxException
>>>>> giving
>>>>> a message. It seems that JConsole does not display that message.
>>>>>
>>>>> The bad is that we don't log anything. I just committed a patch for
>>>>> this.
>>>>> If you want to use it, you will have to build from source. Btw, which
>>>>> version are you using?
>>>>>
>>>>> Thx.
>>>>>
>>>>>
>>>>>   Please advise.
>>>>>
>>>>>> Thanks,
>>>>>> Sai
>>>>>>
>>>>>>
>>>>>> On Fri, Aug 19, 2011 at 11:03 PM, Eric Charles
>>>>>> <[email protected]>******wrote:
>>>>>>
>>>>>>  Hi Vanessa,
>>>>>>
>>>>>>   Is there any other stacktrace in the log/james-server.log file?
>>>>>>> Thx.
>>>>>>>
>>>>>>>
>>>>>>> On 19/08/11 21:55, Pao, Vanessa wrote:
>>>>>>>
>>>>>>>  Hi,
>>>>>>>
>>>>>>>  Yes, we're trying to copy from maildir to jpa on CentOS because we
>>>>>>>> found
>>>>>>>> out it won't work on Windows. However, we configured James on CentOS
>>>>>>>> to
>>>>>>>> point to a  MySQL installation on Windows.
>>>>>>>>
>>>>>>>> Partial stack trace below...had to hand type because had trouble
>>>>>>>> copying
>>>>>>>> text from JMX error window...
>>>>>>>>
>>>>>>>> Java.lang.Exception
>>>>>>>>        At org.apache.james.container.********spring.mailbix.**
>>>>>>>> MailCopierManagement.copy(********MailboxCopierManagement.**
>>>>>>>> java:***
>>>>>>>> ***83)
>>>>>>>>        At sun.reflect.********NativeMethodAccessorImpl.********
>>>>>>>> invoke0(Native
>>>>>>>> Method)
>>>>>>>>        At sun.reflect.********NativeMethodAccessorImpl.*******
>>>>>>>> *invoke(**
>>>>>>>> NativeMethodAccessorImpl.java:********57)
>>>>>>>>        At sun.reflect.********DelegatingMethodAccessorImpl.*****
>>>>>>>> ***invoke(**
>>>>>>>> DelegatingMethodAccessorImpl.********java:43)
>>>>>>>>        At java.lang.reflect.Method.********invoke(Method.java:601)
>>>>>>>>        At com.sun.jmx.mbeanserver.******
>>>>>>>> StandardMBeanIntrospector.****
>>>>>>>> invokeM2(
>>>>>>>> **StandardMBeanIntrospector.********java:111)
>>>>>>>>        At com.sun.jmx.mbeanserver.******
>>>>>>>> StandardMBeanIntrospector.****
>>>>>>>> invokeM2(
>>>>>>>> **StandardMBeanIntrospector.********java:45)
>>>>>>>>        At com.sub.jmx.mbeanserver.********
>>>>>>>> MBeanIntrospector.invokeM(**
>>>>>>>> MBeanIntrospector.java:235)
>>>>>>>>        At com.sun.jmx.mbeanserver.********PerInterface.invoke(**
>>>>>>>> PerInterface.java:138)
>>>>>>>>        At com.sun.jmx.mbeanserver.********MBeanSupport.invoke(**
>>>>>>>> MBeanSupport.java:250)
>>>>>>>>        At com.sun.jmx.interceptor.******
>>>>>>>> DefaultMBeanServerInterceptor.******
>>>>>>>> **
>>>>>>>> invoke(********DefaultMBeanServerInterceptor.********java:819)
>>>>>>>>        At com.sun.jmx.mbeanserver.********JmxMBeanServer.invoke(**
>>>>>>>> JmxBeanServer.java:791)
>>>>>>>>        At javax.management.remote.rmi.********
>>>>>>>> RMIConnectionImpl.doOperation(********
>>>>>>>> RMIConnectionImpl.java:1447)
>>>>>>>>        At javax.management.remote.rmi.********
>>>>>>>> RMIConnectionImpl.access$200(********
>>>>>>>> RMIConnectionImpl.java:89)
>>>>>>>>        At javax.management.remote.rmi.********RMIConnectionImpl$**
>>>>>>>> PrivilegedOperation.run(********RMIConnectionImpl.java:1292)
>>>>>>>>        At javax.management.remote.rmi.********RMIConnectionImple.**
>>>>>>>> doPrivilegedOperation(********RMIConnectionImpl.java:1380)
>>>>>>>>        At javax.management.remote.rmi.******
>>>>>>>> **RMIConnectionImpl.invoke(**
>>>>>>>> RMIConnectionImpl.java:812)
>>>>>>>>        At sun.reflect.********GeneratedMethodAccessor69.********
>>>>>>>> invoke(Unknown
>>>>>>>> Source)
>>>>>>>>        At sun.reflect.********DelegatingMethodAccessorImpl.*****
>>>>>>>> ***invoke(**
>>>>>>>> DelegatingMethodAccessorImpl.********java:43)
>>>>>>>>        At java.lang.reflect.Method.********invoke(Method.java:601)
>>>>>>>>        At sun.rmi.server.********UnicastServerRef.dispatch(**
>>>>>>>> UnicastServerRef.java:322)
>>>>>>>> ...
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> Vanessa Pao
>>>>>>>>
>>>>>>>>
>>>>>>>> -----Original Message-----
>>>>>>>> From: Eric Charles [mailto:[email protected]]
>>>>>>>> Sent: Friday, August 19, 2011 12:44 PM
>>>>>>>> To: James Developers List
>>>>>>>> Subject: Re: Questions about JMX interface and James 3.0 beta2
>>>>>>>>
>>>>>>>> Hi,
>>>>>>>> Are you trying to copy from maildir to jpa on windows?
>>>>>>>> If such, it won't work, cause maildir is not supported on windows.
>>>>>>>> Otherwise, can you provide us with the full stacktrace?
>>>>>>>>
>>>>>>>> Thx.
>>>>>>>>
>>>>>>>> On 19/08/11 18:22, Pao, Vanessa wrote:
>>>>>>>>
>>>>>>>>  Hello All,
>>>>>>>>
>>>>>>>>
>>>>>>>>>    My team is using James 3.0 beta2 in one of our environments. We
>>>>>>>>> have
>>>>>>>>> James installed on a CentOS machine and modified
>>>>>>>>> database.properties
>>>>>>>>> to
>>>>>>>>> use
>>>>>>>>> a MySQL instance on a Windows machine. When we run jconsole on the
>>>>>>>>> CentOS
>>>>>>>>> machine and try to initiate a database restore using
>>>>>>>>> mailboxmanager's
>>>>>>>>> copy
>>>>>>>>> method (trying to copy from maildir-mailboxmanager to
>>>>>>>>> jpa-mailboxmanager),
>>>>>>>>> we get the following exception:
>>>>>>>>>
>>>>>>>>> java.lang.Exception
>>>>>>>>>          at org.apache.james.container.********spring.mailbox.**
>>>>>>>>> MailboxCopierManagement.copy(********MailboxCopierManagement.****
>>>>>>>>> java:****83)
>>>>>>>>> ...
>>>>>>>>>
>>>>>>>>> I'm thinking whatever outbound port the JMX interface is using to
>>>>>>>>> connect
>>>>>>>>> to the Windows machine might be blocked. Does this sound right?
>>>>>>>>> What
>>>>>>>>> port
>>>>>>>>> does JMX use? Does it expect the database to be on the same
>>>>>>>>> machine?
>>>>>>>>>
>>>>>>>>> Thank you very much,
>>>>>>>>>
>>>>>>>>> Vanessa Pao
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>  --
>>>>>>>>>
>>>>>>>>
>>>>>>>>  Eric
>>>>>>> http://about.echarles.net
>>>>>>>
>>>>>>> ------------------------------********------------------------**
>>>>>>> --**--**
>>>>>>> --**---------
>>>>>>> To unsubscribe, e-mail: server-dev-unsubscribe@james.********
>>>>>>> apache.org<
>>>>>>> server-dev-**unsubscribe@**jam**es.apache.org<http://james.apache.org>
>>>>>>> <unsubscribe@**james.apache.org <[email protected]>>
>>>>>>>
>>>>>>> <server-dev-**unsubscribe@**james.apache.org<[email protected]>
>>>>>>> <server-dev-**[email protected]<[email protected]>
>>>>>>> >>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>  For additional commands, e-mail: [email protected].*****
>>>>>>>>
>>>>>>> ***org<
>>>>>>> server-dev-help@james.****apache**.org<http://apache.**org/<http://apache.org/>
>>>>>>> ><
>>>>>>>
>>>>>>> server-dev-help@james.**apache**.org <http://apache.org><
>>>>>>> server-dev-help@james.**apache.org<[email protected]>
>>>>>>> >
>>>>>>>
>>>>>>>>
>>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>  --
>>>>>>
>>>>> Eric
>>>>> http://about.echarles.net
>>>>>
>>>>> ------------------------------******--------------------------**--**
>>>>> --**---------
>>>>> To unsubscribe, e-mail: server-dev-unsubscribe@james.******apache.org<
>>>>> server-dev-**unsubscribe@**james.apache.org<[email protected]>
>>>>> <server-dev-**[email protected]<[email protected]>
>>>>> >
>>>>>
>>>>>>
>>>>>>  For additional commands, e-mail: [email protected].***
>>>>> ***org<
>>>>> server-dev-help@james.**apache**.org <http://apache.org><
>>>>> server-dev-help@james.**apache.org <[email protected]>
>>>>> >>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>  --
>>> Eric
>>> http://about.echarles.net
>>>
>>> ------------------------------****----------------------------**
>>> --**---------
>>> To unsubscribe, e-mail: server-dev-unsubscribe@james.****apache.org<
>>> server-dev-**[email protected]<[email protected]>
>>> >
>>> For additional commands, e-mail: [email protected].****org<
>>> server-dev-help@james.**apache.org <[email protected]>>
>>>
>>>
>>>
>>
> --
> Eric
> http://about.echarles.net
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: 
> server-dev-unsubscribe@james.**apache.org<[email protected]>
> For additional commands, e-mail: 
> [email protected].**org<[email protected]>
>
>

Reply via email to