The command returned an error

Help
sskuroo
2007-12-03
2013-04-25
  • sskuroo

    sskuroo - 2007-12-03

    Hi all,

    I'm trying to get your frontend to work, without any success as for now: when testing the connection line for my USB-attached phone something goes wrong and the "connection error" popup appears.

    These are some lines from the log:

    2007-12-03 13:08:42,268 DEBUG    [Command-Consumer    ] Command line: [/usr/bin/obexftp, --usb, -u 1 , --chdir, /, --list], working folder: null (at DefaultCommandLineRunner:47)
    2007-12-03 13:08:42,320 DEBUG    [Command-Consumer    ] Waiting for the process timeout (at DefaultCommandLineRunner:60)
    2007-12-03 13:08:42,321 DEBUG    [Command-Consumer    ] Process has not yet terminated (at DefaultCommandLineRunner:69)
    2007-12-03 13:08:42,423 DEBUG    [Command-Consumer    ] Process has not yet terminated (at DefaultCommandLineRunner:69)
    2007-12-03 13:08:42,527 ERROR    [Command-Consumer    ] The command returned an error (at DefaultCommandConsumer:66)
    net.sourceforge.obexftpfrontend.processor.OBEXFTPException: The process' return value is != 0
            at net.sourceforge.obexftpfrontend.command.DefaultCommandLineRunner.run(DefaultCommandLineRunner.java:85)
            at net.sourceforge.obexftpfrontend.command.OBEXFTPAbstractCommand.runCommand(OBEXFTPAbstractCommand.java:173)
            at net.sourceforge.obexftpfrontend.command.ListFilesCommand.execute(ListFilesCommand.java:59)
            at net.sourceforge.obexftpfrontend.command.ListFilesCommand.execute(ListFilesCommand.java:19)
            at net.sourceforge.obexftpfrontend.command.DefaultCommandConsumer.run(DefaultCommandConsumer.java:60)
    2007-12-03 13:08:42,528 DEBUG    [Command-Consumer    ] Notifying the registered CommandExecutionListeners (at DefaultCommandQueue:91)

    I have tried the same ("/usr/bin/obexftp  --usb -u 1 --chdir / --list") command line by myself and all works fine. Any ideas?

    Some more info:
    - Distro: Debian/lenny
    - ObexFTP: 0.19
    - Phone: Nokia n70

    Cheers

    c.

     
    • Daniel Fernandes Martins

      Hello!

      Hmm.. I think I got it, but I need you to check if the command line below works for you:

      /usr/bin/obexftp --usb 1 --chdir / --list

      My guess is that the '-u' parameter shouldn't be there, since the '--usb' parameter is just a "verbose" version of '-u'. It's just a guess, but I can't see anything else that could give the related outcome.

      If it works, I will generate a test build and send it to you (what's your e-mail address, btw?). Depending on your feedback, I will try to fix this bug as fast as possible and - possibly - generate a new release.

      Thanks for your feedback,
      Daniel.

       
  • Andrey Ananin

    Andrey Ananin - 2011-01-24

    Had a similar problem. Installed 0.6.6 and tried to connect to Sony Ericsson k530i. In logs:

    Command line: , working folder: null (at DefaultOBEXFTPCommandLineRunner:45)
    2011-01-25 00:02:01,827 DEBUG     Waiting for the process timeout (at DefaultOBEXFTPCommandLineRunner:57)
    2011-01-25 00:02:01,828 DEBUG     Process has not yet terminated (at DefaultOBEXFTPCommandLineRunner:65)
    2011-01-25 00:02:01,928 DEBUG     Process has not yet terminated (at DefaultOBEXFTPCommandLineRunner:65)
    2011-01-25 00:02:02,029 DEBUG     Process has not yet terminated (at DefaultOBEXFTPCommandLineRunner:65)
    2011-01-25 00:02:02,133 ERROR     The command returned an error (at DefaultOBEXFTPCommandConsumer:66)
    net.sourceforge.obexftpfrontend.obexftp.OBEXFTPException: The process' return value is != 0 at net.sourceforge.obexftpfrontend.command.DefaultOBEXFTPCommandLineRunner.run(DefaultOBEXFTPCommandLineRunner.java:79) at net.sourceforge.obexftpfrontend.command.AbstractOBEXFTPCommand.runCommand(AbstractOBEXFTPCommand.java:173)
            at net.sourceforge.obexftpfrontend.command.ListFilesCommand.execute(ListFilesCommand.java:57)
            at net.sourceforge.obexftpfrontend.command.ListFilesCommand.execute(ListFilesCommand.java:19)
            at net.sourceforge.obexftpfrontend.command.DefaultOBEXFTPCommandConsumer.run(DefaultOBEXFTPCommandConsumer.java:58)
            at java.lang.Thread.run(Thread.java:662)

    Command line works fine:

    $ /usr/bin/obexftp -usb 0 -chdir / -list
    If USB doesn't work setup permissions in udev or run as superuser.
    Connecting..\done
    Tried to connect for 19ms
    Sending ""…|done
    Receiving "(null)"…/<?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE folder-listing SYSTEM "obex-folder-listing.dtd">
    <!-
    XML Coder, (C) 2001 Sony Ericsson Mobile Communications AB
    ->
    <folder-listing version="1.0"><folder name="Память телефона"/>
    </folder-listing>
    done
    Disconnecting..-done

    May be 'Receiving "(null)"' is the problem?

    Thanks.

     

Log in to post a comment.