[jitsi-dev] Send files from non-jitsi-clients


#1

Hi list,

i tried to send files from Pidgin (2.7.9) and Empathy (2.30.3) to a
jitsi-client (1.0-beta1-nightly.build.3351).
Empathy tells me "The client doesn't have any file transfer
capabilities" and pidgin doesn't even display the option on any
jitsi-contacts.
Adium (MacOSX) contacts tell me that they try to send files to me but my
client doesn't recognize them (Adium bases on pidgin, so i guess it has
the same problems).

I also tried it the other way around, but jitsi tells me that an error
occured while sending a file.

Log-entry - Jitsi -> Non-Jitsi-Clients:

SCHWERWIEGEND:
impl.protocol.jabber.OperationSetFileTransferJabberImpl.run().557 An
error occured while transfering file: The peer did not find any of the
provided stream mechanisms acceptable.
SCHWERWIEGEND:
impl.protocol.jabber.OperationSetFileTransferJabberImpl.run().563 An
exception occured while transfering file:
bad-request(400) failed to parse SI request
  at
org.jivesoftware.smackx.filetransfer.FileTransferNegotiator.negotiateOutgoingTransfer(FileTransferNegotiator.java:407)
  at
org.jivesoftware.smackx.filetransfer.OutgoingFileTransfer.negotiateStream(OutgoingFileTransfer.java:359)
  at
org.jivesoftware.smackx.filetransfer.OutgoingFileTransfer.access$100(OutgoingFileTransfer.java:35)
  at
org.jivesoftware.smackx.filetransfer.OutgoingFileTransfer$2.run(OutgoingFileTransfer.java:214)
  at java.lang.Thread.run(Thread.java:662)

Thx
Ben


#2

Hi list,

just like to update my last mail to this behaviour.

I did a short test with Empathy (2.30.3) and Pidgin (2.7.9) from an
Ubuntu 10.04 box to a Windows 7 and Ubuntu 10.04 Jitsi-Client (Build 3443).

* Pidgin <-> Jitsi: Everything works fine now. I can send and receive files.

* Empathy -> Jitsi: Jitsi goes instantly offline as soon as i start the
"Send file" request. It does not crash, it simply goes offline. My
contact was able to go online again.

* Jitsi -> Empathy: The Jitsi-Client starts the file transfer and tells
the user that it waits for the other client to accept the transfer, but
nothing happens on the Empathy client

* Jitsi -> Jitsi: As excepted - everything fine.

So the major problem at the moment is that the Jitsi client goes offline
as soon as it receives a file from an Empathy client and that there is
no way to send or receive files with an Empathy client at all.

The logfile contains:
09:10:14.235 SCHWERWIEGEND:
impl.protocol.jabber.ProtocolProviderServiceJabberImpl.connectionClosedOnError().1486
connectionClosedOnError Unparseable date: "2011-04-27T06:46:47Z"

And my console tells me:
java.text.ParseException: Unparseable date: "2011-04-27T06:46:47Z"
  at java.text.DateFormat.parse(DateFormat.java:337)
  at
net.java.sip.communicator.impl.protocol.jabber.extensions.thumbnail.FileElement.parseIQ(FileElement.java:251)
  at
org.jivesoftware.smack.util.PacketParserUtils.parseIQ(PacketParserUtils.java:275)
  at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:229)
  at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43)
  at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:70)
09:10:14.235 SCHWERWIEGEND:
impl.protocol.jabber.ProtocolProviderServiceJabberImpl.connectionClosedOnError().1486
connectionClosedOnError Unparseable date: "2011-04-27T06:46:47Z"

I guess the error is the "simple" parsing issue of the date - hopefully
it fixes the complete file transfer between these 2 clients :slight_smile:

Thx
Ben

···

Hi list,

i tried to send files from Pidgin (2.7.9) and Empathy (2.30.3) to a
jitsi-client (1.0-beta1-nightly.build.3351).
Empathy tells me "The client doesn't have any file transfer
capabilities" and pidgin doesn't even display the option on any
jitsi-contacts.
Adium (MacOSX) contacts tell me that they try to send files to me but my
client doesn't recognize them (Adium bases on pidgin, so i guess it has
the same problems).

I also tried it the other way around, but jitsi tells me that an error
occured while sending a file.

Log-entry - Jitsi -> Non-Jitsi-Clients:

SCHWERWIEGEND:
impl.protocol.jabber.OperationSetFileTransferJabberImpl.run().557 An
error occured while transfering file: The peer did not find any of the
provided stream mechanisms acceptable.
SCHWERWIEGEND:
impl.protocol.jabber.OperationSetFileTransferJabberImpl.run().563 An
exception occured while transfering file:
bad-request(400) failed to parse SI request
  at
org.jivesoftware.smackx.filetransfer.FileTransferNegotiator.negotiateOutgoingTransfer(FileTransferNegotiator.java:407)
  at
org.jivesoftware.smackx.filetransfer.OutgoingFileTransfer.negotiateStream(OutgoingFileTransfer.java:359)
  at
org.jivesoftware.smackx.filetransfer.OutgoingFileTransfer.access$100(OutgoingFileTransfer.java:35)
  at
org.jivesoftware.smackx.filetransfer.OutgoingFileTransfer$2.run(OutgoingFileTransfer.java:214)
  at java.lang.Thread.run(Thread.java:662)

Thx
Ben


#3

Hey Ben,

На 27.04.11 10:15, Ben написа:

Hi list,

just like to update my last mail to this behaviour.

I did a short test with Empathy (2.30.3) and Pidgin (2.7.9) from an
Ubuntu 10.04 box to a Windows 7 and Ubuntu 10.04 Jitsi-Client (Build 3443).

* Pidgin <-> Jitsi: Everything works fine now. I can send and receive files.

* Empathy -> Jitsi: Jitsi goes instantly offline as soon as i start the
"Send file" request. It does not crash, it simply goes offline. My
contact was able to go online again.

* Jitsi -> Empathy: The Jitsi-Client starts the file transfer and tells
the user that it waits for the other client to accept the transfer, but
nothing happens on the Empathy client

* Jitsi -> Jitsi: As excepted - everything fine.

So the major problem at the moment is that the Jitsi client goes offline
as soon as it receives a file from an Empathy client and that there is
no way to send or receive files with an Empathy client at all.

The logfile contains:
09:10:14.235 SCHWERWIEGEND:
impl.protocol.jabber.ProtocolProviderServiceJabberImpl.connectionClosedOnError().1486
connectionClosedOnError Unparseable date: "2011-04-27T06:46:47Z"

And my console tells me:
java.text.ParseException: Unparseable date: "2011-04-27T06:46:47Z"
  at java.text.DateFormat.parse(DateFormat.java:337)
  at
net.java.sip.communicator.impl.protocol.jabber.extensions.thumbnail.FileElement.parseIQ(FileElement.java:251)
  at
org.jivesoftware.smack.util.PacketParserUtils.parseIQ(PacketParserUtils.java:275)
  at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:229)
  at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43)
  at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:70)
09:10:14.235 SCHWERWIEGEND:
impl.protocol.jabber.ProtocolProviderServiceJabberImpl.connectionClosedOnError().1486
connectionClosedOnError Unparseable date: "2011-04-27T06:46:47Z"

I guess the error is the "simple" parsing issue of the date - hopefully
it fixes the complete file transfer between these 2 clients :slight_smile:

Nice! Could you please log an issue with the above exception and a
description explaining how to reproduce it?

Thanks,
Emil

···

Thx
Ben

Hi list,

i tried to send files from Pidgin (2.7.9) and Empathy (2.30.3) to a
jitsi-client (1.0-beta1-nightly.build.3351).
Empathy tells me "The client doesn't have any file transfer
capabilities" and pidgin doesn't even display the option on any
jitsi-contacts.
Adium (MacOSX) contacts tell me that they try to send files to me but my
client doesn't recognize them (Adium bases on pidgin, so i guess it has
the same problems).

I also tried it the other way around, but jitsi tells me that an error
occured while sending a file.

Log-entry - Jitsi -> Non-Jitsi-Clients:

SCHWERWIEGEND:
impl.protocol.jabber.OperationSetFileTransferJabberImpl.run().557 An
error occured while transfering file: The peer did not find any of the
provided stream mechanisms acceptable.
SCHWERWIEGEND:
impl.protocol.jabber.OperationSetFileTransferJabberImpl.run().563 An
exception occured while transfering file:
bad-request(400) failed to parse SI request
  at
org.jivesoftware.smackx.filetransfer.FileTransferNegotiator.negotiateOutgoingTransfer(FileTransferNegotiator.java:407)
  at
org.jivesoftware.smackx.filetransfer.OutgoingFileTransfer.negotiateStream(OutgoingFileTransfer.java:359)
  at
org.jivesoftware.smackx.filetransfer.OutgoingFileTransfer.access$100(OutgoingFileTransfer.java:35)
  at
org.jivesoftware.smackx.filetransfer.OutgoingFileTransfer$2.run(OutgoingFileTransfer.java:214)
  at java.lang.Thread.run(Thread.java:662)

Thx
Ben

--
Emil Ivov, Ph.D. 67000 Strasbourg,
Project Lead France
Jitsi
emcho@jitsi.org PHONE: +33.1.77.62.43.30
http://jitsi.org FAX: +33.1.77.62.47.31