Announcement

Collapse
No announcement yet.

admin gui only in German

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • JumboMessiah
    Guest replied
    Got it now, the failed IMAP connection keeps the admin gui from obtaining the full user record of the oxadmin account. It appears that not using the imapServer column in the user table is a current shortcoming of the interface.

    The code in the method public IMAPStore initImap(final Credentials cred)
    open-xchange-admin-plugin-imap/src/com/openexchange/admin/rmi/impl/OXUserIMAPImpl.java

    Code:
        public IMAPStore initImap(final Credentials cred) throws OXUserIMAPException {
            final User user = new User();
            if( cred == null ) {
                throw new OXUserIMAPException("credential object is null");
            }
            user.setName(cred.getLogin());
    
            user.setPassword(cred.getPassword());
    
            return this.initImap(user, null);
        }
    Uses a dummy User() object. Therefore, the admin gui always defaults to localhost. I'm sure this will be refactored in the future.

    Leave a comment:


  • JumboMessiah
    Guest replied
    One other note, it appears the admin interface is attempting to connect to the imap port on the localhost interface. I need it to connect to an external host as defined in the imapserver column of the user entry for oxadmin:

    Code:
    tethereal -n -n -i lo port 143
    Running as user "root" and group "root". This could be dangerous.
    Capturing on lo
      0.000000    127.0.0.1 -> 127.0.0.1    TCP 2316 > 143 [SYN] Seq=0 Win=32792 Len=0 MSS=16396 TSV=12997781 TSER=0 WS=8
      0.000013    127.0.0.1 -> 127.0.0.1    TCP 143 > 2316 [RST, ACK] Seq=1 Ack=1 Win=0 Len=0
    Could this be causing the locale issues?


    Code:
    May 20, 2008 4:59:41 AM com.openexchange.admin.rmi.impl.OXUserIMAPImpl initImap
    SEVERE: Connection refused
    javax.mail.MessagingException: Connection refused;
      nested exception is:
            java.net.ConnectException: Connection refused
            at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:479)
            at javax.mail.Service.connect(Service.java:275)
            at com.openexchange.admin.rmi.impl.OXUserIMAPImpl.initImap(OXUserIMAPImpl.java:237)
            at com.openexchange.admin.rmi.impl.OXUserIMAPImpl.initImap(OXUserIMAPImpl.java:171)
            at com.openexchange.admin.rmi.impl.OXUserIMAPImpl.getData(OXUserIMAPImpl.java:627)
            at com.openexchange.admin.rmi.impl.OXUser.getData(OXUser.java:850)
            at com.openexchange.admin.rmi.impl.OXUser.getData(OXUser.java:728)
            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 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:885)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
            at java.lang.Thread.run(Thread.java:619)
    Caused by: java.net.ConnectException: Connection refused
            at java.net.PlainSocketImpl.socketConnect(Native Method)
            at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
            at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
            at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
            at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
            at java.net.Socket.connect(Socket.java:519)
            at java.net.Socket.connect(Socket.java:469)
            at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:232)
            at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189)
            at com.sun.mail.iap.Protocol.<init>(Protocol.java:84)
            at com.sun.mail.imap.protocol.IMAPProtocol.<init>(IMAPProtocol.java:87)
            at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:446)
            ... 20 more
    May 20, 2008 4:59:41 AM com.openexchange.admin.rmi.impl.OXUserIMAPImpl initImap
    SEVERE: javax.mail.MessagingException: Connection refused;
      nested exception is:
            java.net.ConnectException: Connection refused
    com.openexchange.admin.rmi.exceptions.OXUserIMAPException: javax.mail.MessagingException: Connection refused;
      nested exception is:
            java.net.ConnectException: Connection refused
            at com.openexchange.admin.rmi.impl.OXUserIMAPImpl.initImap(OXUserIMAPImpl.java:261)
            at com.openexchange.admin.rmi.impl.OXUserIMAPImpl.initImap(OXUserIMAPImpl.java:171)
            at com.openexchange.admin.rmi.impl.OXUserIMAPImpl.getData(OXUserIMAPImpl.java:627)
            at com.openexchange.admin.rmi.impl.OXUser.getData(OXUser.java:850)
            at com.openexchange.admin.rmi.impl.OXUser.getData(OXUser.java:728)
            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 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:885)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
            at java.lang.Thread.run(Thread.java:619)
    May 20, 2008 4:59:41 AM com.openexchange.admin.rmi.impl.OXUserIMAPImpl getData
    SEVERE: javax.mail.MessagingException: Connection refused;
      nested exception is:
            java.net.ConnectException: Connection refused
    com.openexchange.admin.rmi.exceptions.OXUserIMAPException: javax.mail.MessagingException: Connection refused;
      nested exception is:
            java.net.ConnectException: Connection refused
            at com.openexchange.admin.rmi.impl.OXUserIMAPImpl.initImap(OXUserIMAPImpl.java:261)
            at com.openexchange.admin.rmi.impl.OXUserIMAPImpl.initImap(OXUserIMAPImpl.java:171)
            at com.openexchange.admin.rmi.impl.OXUserIMAPImpl.getData(OXUserIMAPImpl.java:627)
            at com.openexchange.admin.rmi.impl.OXUser.getData(OXUser.java:850)
            at com.openexchange.admin.rmi.impl.OXUser.getData(OXUser.java:728)
            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 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:885)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
            at java.lang.Thread.run(Thread.java:619)
    May 20, 2008 4:59:41 AM com.openexchange.admin.rmi.impl.OXUser getData
    Thanks

    Leave a comment:


  • JumboMessiah
    Guest started a topic admin gui only in German

    admin gui only in German

    All,

    I have an issue where the admin gui only comes up in German. I can't get it to come up in English. I have the locale for the oxadmin user set to 'en_US' but it appears this isn't helping. I see in the log where it grabs the user info for oxadmin:

    Code:
    May 20, 2008 4:17:18 AM com.openexchange.admin.rmi.impl.OXUser getData
    FINE: [[ 
    com.openexchange.admin.rmi.dataobjects.User@15fa713
     Mandatory members:
      Create: name display_name password given_name sur_name primaryEmail 
      Change: NONE
      Delete: NONE
      Register: NONE
      contextadmin: true
      id: 2
      name: oxadmin
      primaryEmail: oxadmin@foobar.com
      email1: oxadmin@foobar.com
      sur_name: Administrator
      given_name: Open-Xchange
      mailenabled: true
      display_name: Open-Xchange Administrator
      imapServer: 10.20.3.200:143
      smtpServer: localhost
      imapLogin: oxadmin
      language: en_US
      mail_folder_drafts_name: Drafts
      mail_folder_sent_name: Sent Items
      mail_folder_spam_name: Spam
      mail_folder_trash_name: Trash
      mail_folder_confirmed_spam_name: confirmed-spam
      mail_folder_confirmed_ham_name: confirmed-ham
      gui_spam_filter_enabled: false
      password_expired: false
      timezone: sun.util.calendar.ZoneInfo[id="America/New_York",offset=-18000000,dstSavings=3600000,useDaylight=true,transitions=235,lastRule=java.util.SimpleTimeZone[id=America/New_York,offset=-18000000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=3,startMonth=2,startDay=8,startDayOfWeek=1,startTime=7200000,startTimeMode=0,endMode=3,endMonth=10,endDay=1,endDayOfWeek=1,endTime=7200000,endTimeMode=0]]
      defaultSenderAddress: oxadmin@foobar.com
    ]
    But it appears this isn't what it's needing. Anyone have any advice or areas of interest I should be looking at?
Working...
X