[jitsi-dev] Multiple instances on one PC constantly disconnecting


#1

Hello,

I'm trying to run 2 instances of Jitsi simultaneously on 1 PC (Windows 7)
with
"ant run -Dargs=--multiple" and I'm constantly getting this exception:

     [java] 10:35:19.021 SEVERE: [97]
util.UtilActivator.uncaughtException().109 An uncaught exception occurred
in threa
d=Thread[Thread-47,6,main] and message was: The jabber provider must be
signed on before being able to communicate.
     [java] java.lang.IllegalStateException: The jabber provider must be
signed on before being able to communicate.
     [java] at
net.java.sip.communicator.impl.protocol.jabber.OperationSetServerStoredAccountInfoJabberImpl.assertCo
nnected(OperationSetServerStoredAccountInfoJabberImpl.java:332)
     [java] at
net.java.sip.communicator.impl.protocol.jabber.OperationSetServerStoredAccountInfoJabberImpl.getDetai
ls(OperationSetServerStoredAccountInfoJabberImpl.java:99)
     [java] at
net.java.sip.communicator.service.protocol.AccountInfoUtils.getFirstName(AccountInfoUtils.java:43)
     [java] at
net.java.sip.communicator.impl.globaldisplaydetails.GlobalDisplayDetailsImpl$UpdateAccountInfo.run(Gl
obalDisplayDetailsImpl.java:361)
     [java] java.net.SocketException: Connection reset by peer: socket
write error
     [java] at java.net.SocketOutputStream.socketWrite0(Native Method)
     [java] at
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)
     [java] at
java.net.SocketOutputStream.write(SocketOutputStream.java:153)
     [java] at
sun.security.ssl.OutputRecord.writeBuffer(OutputRecord.java:377)
     [java] at
sun.security.ssl.OutputRecord.write(OutputRecord.java:363)
     [java] at
sun.security.ssl.SSLSocketImpl.writeRecordInternal(SSLSocketImpl.java:830)
     [java] at
sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:801)
     [java] at
sun.security.ssl.AppOutputStream.write(AppOutputStream.java:122)
     [java] at
sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)
     [java] at
sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291)
     [java] at
sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:295)
     [java] at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141)
     [java] at
java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229)
     [java] at java.io.BufferedWriter.flush(BufferedWriter.java:254)
     [java] at
org.jivesoftware.smack.PacketWriter.writePackets(PacketWriter.java:208)
     [java] at
org.jivesoftware.smack.PacketWriter.access$000(PacketWriter.java:40)
     [java] at
org.jivesoftware.smack.PacketWriter$1.run(PacketWriter.java:76)
     [java] java.net.SocketTimeoutException: Read timed out
     [java] at java.net.SocketInputStream.socketRead0(Native Method)
     [java] at
java.net.SocketInputStream.read(SocketInputStream.java:150)
     [java] at
java.net.SocketInputStream.read(SocketInputStream.java:121)
     [java] at
sun.security.ssl.InputRecord.readFully(InputRecord.java:312)
     [java] at sun.security.ssl.InputRecord.read(InputRecord.java:350)
     [java] at
sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:927)
     [java] at
sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:884)
     [java] at
sun.security.ssl.AppInputStream.read(AppInputStream.java:102)
     [java] at
sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:283)
     [java] at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:325)
     [java] at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:177)
     [java] at
java.io.InputStreamReader.read(InputStreamReader.java:184)
     [java] at java.io.BufferedReader.fill(BufferedReader.java:154)
     [java] at java.io.BufferedReader.read1(BufferedReader.java:205)
     [java] at java.io.BufferedReader.read(BufferedReader.java:279)
     [java] at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:2992)
     [java] at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046)
     [java] at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1144)
     [java] at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)
     [java] at
org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:325)
     [java] at
org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43)
     [java] at
org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:70)
     [java] 10:37:16.828 SEVERE: [69]
impl.protocol.jabber.ProtocolProviderServiceJabberImpl.connectionClosedOnError().2
090 connectionClosedOnError Read timed out

I'm using two different accounts @jit.si and I'm trying to exchange
messages between them but most of the time I can't because I'm just getting
disconnected.

Any ideas?

Regards,
Marin


#2

I'm trying to run 2 instances of Jitsi simultaneously on 1 PC (Windows
7) with "ant run -Dargs=--multiple" and I'm constantly getting this
exception:
[...]

I'm using two different accounts @jit.si and I'm trying to exchange
messages between them but most of the time I can't because I'm just
getting disconnected.

Any ideas?

Make sure they use different configuration directories, otherwise they'll
overwrite the settings of each other. Not sure if that's the cause of these
exceptions though.

Regards,
Marin

Ingo


#3

Make sure they use different configuration directories, otherwise they'll
overwrite the settings of each other. Not sure if that's the cause of

these

exceptions though.

How do I do that on windows?
I tried uncommenting these lines in build.xml:

<!--sysproperty key="net.java.sip.communicator.SC_HOME_DIR_LOCATION"
value="${user.home}/dev/schomes"/>
<sysproperty key="net.java.sip.communicator.SC_HOME_DIR_NAME"
value="schome"/-->

... but it didn't do the trick.

I also tried running jitsi like this:
ant run
-Djvmarg.line=-Dnet.java.sip.communicator.SC_HOME_DIR_NAME=Jitsi-testing-home-dir

but it isn't working.

/Marin

···

On Thu, Aug 22, 2013 at 10:58 AM, Ingo Bauersachs <ingo@jitsi.org> wrote:

> I'm trying to run 2 instances of Jitsi simultaneously on 1 PC (Windows
> 7) with "ant run -Dargs=--multiple" and I'm constantly getting this
> exception:
> [...]
>
> I'm using two different accounts @jit.si and I'm trying to exchange
> messages between them but most of the time I can't because I'm just
> getting disconnected.
>
> Any ideas?

Make sure they use different configuration directories, otherwise they'll
overwrite the settings of each other. Not sure if that's the cause of these
exceptions though.

> Regards,
> Marin

Ingo

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev


#4

Hey Marin,

I personally use:
<sysproperty key="net.java.sip.communicator.SC_HOME_DIR_LOCATION"
value="${user.home}/dev/schomes"/>
<sysproperty key="net.java.sip.communicator.SC_HOME_DIR_NAME"
value="schome"/>

Check that you are uncommenting those lines in the run target.

So I have one instance installed for daily use and one running from source
with that change for testing and working.

Hope this helps
damencho

···

On Thu, Aug 22, 2013 at 11:17 AM, Marin Dzhigarov <marin@bluejimp.com>wrote:

> Make sure they use different configuration directories, otherwise
they'll
> overwrite the settings of each other. Not sure if that's the cause of
these
> exceptions though.

How do I do that on windows?
I tried uncommenting these lines in build.xml:

<!--sysproperty key="net.java.sip.communicator.SC_HOME_DIR_LOCATION"
value="${user.home}/dev/schomes"/>
<sysproperty key="net.java.sip.communicator.SC_HOME_DIR_NAME"
value="schome"/-->

... but it didn't do the trick.

I also tried running jitsi like this:
ant run
-Djvmarg.line=-Dnet.java.sip.communicator.SC_HOME_DIR_NAME=Jitsi-testing-home-dir

but it isn't working.

/Marin

On Thu, Aug 22, 2013 at 10:58 AM, Ingo Bauersachs <ingo@jitsi.org> wrote:

> I'm trying to run 2 instances of Jitsi simultaneously on 1 PC (Windows
> 7) with "ant run -Dargs=--multiple" and I'm constantly getting this
> exception:
> [...]
>
> I'm using two different accounts @jit.si and I'm trying to exchange
> messages between them but most of the time I can't because I'm just
> getting disconnected.
>
> Any ideas?

Make sure they use different configuration directories, otherwise they'll
overwrite the settings of each other. Not sure if that's the cause of
these
exceptions though.

> Regards,
> Marin

Ingo

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev


#5

Hello,

Make sure they use different configuration directories, otherwise they'll
overwrite the settings of each other. Not sure if that's the cause of these
exceptions though.

How do I do that on windows?
I tried uncommenting these lines in build.xml:

<!--sysproperty key="net.java.sip.communicator.SC_HOME_DIR_LOCATION"
value="${user.home}/dev/schomes"/>
<sysproperty key="net.java.sip.communicator.SC_HOME_DIR_NAME"
value="schome"/-->

... but it didn't do the trick.

I also tried running jitsi like this:
ant run
-Djvmarg.line=-Dnet.java.sip.communicator.SC_HOME_DIR_NAME=Jitsi-testing-home-dir

but it isn't working.

Can you specify how it isn't working? I was under the impression (from
our off-list conversation) that it was working, except it didn't have
permissions to write to the directory. In which case you should also set
the location to somewhere you have write access:
ant run
-Djvmarg.line='-Dnet.java.sip.communicator.SC_HOME_DIR_NAME=Jitsi-testing-home-dir
-Dnet.java.sip.communicator.SC_HOME_DIR_LOCATION=C:\something\something'

You might have to play around with the syntax to make it work with
windows paths.

Regards,
Boris

···

On 8/22/13 11:17 AM, Marin Dzhigarov wrote:


#6

Problem solved :slight_smile:

Seems like all this time I have been uncommenting

<!--sysproperty key="net.java.sip.communicator.SC_HOME_DIR_LOCATION"
value="${user.home}/dev/schomes"/>
<sysproperty key="net.java.sip.communicator.SC_HOME_DIR_NAME"
value="schome"/-->

under target debug.

Thanks.