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 <e...@apache.org> 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 >> <eric.char...@u-mangate.com>**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:e...@apache.org] >>>> 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-**unsubscr...@james.apache.org<server-dev-unsubscr...@james.apache.org> >>> > >>> For additional commands, e-mail: server-dev-help@james.apache.****org< >>> server-dev-help@james.**apache.org <server-dev-h...@james.apache.org>> >>> >>> >>> >> > -- > Eric > http://about.echarles.net > > ------------------------------**------------------------------**--------- > To unsubscribe, e-mail: > server-dev-unsubscribe@james.**apache.org<server-dev-unsubscr...@james.apache.org> > For additional commands, e-mail: > server-dev-help@james.apache.**org<server-dev-h...@james.apache.org> > >