[sip-comm] Problem with Java 1.5 and IPv6 under Linux


#1

Dear SIP Communicator users,

it seems there is a problem with sip-communicator and the new java version
1.5.0 in combination with ipv6 on linux. The registration fails because of a
parsing error.

The following exception occurred while trying to register the UA:

9381 [main] ERROR communicator.SipCommunicator - An exception occurred while
trying to register, exc
net.java.sip.communicator.sip.CommunicationsException: A ParseException
occurred while creating From Header!
        at net.java.sip.communicator.sip.SipManager.getContactHeader
(SipManager.java:917)
        at
net.java.sip.communicator.sip.SipManager.getRegistrationContactHeader
(SipManager.java:864)
        at net.java.sip.communicator.sip.RegisterProcessing.register
(RegisterProcessing.java:330)
        at net.java.sip.communicator.sip.SipManager.register
(SipManager.java:556)
        at net.java.sip.communicator.sip.SipManager.startRegisterProcess
(SipManager.java:599)
        at net.java.sip.communicator.SipCommunicator.launch
(SipCommunicator.java:194)
        at net.java.sip.communicator.SipCommunicator.main
(SipCommunicator.java:276)
Caused by: java.text.ParseException: sip:[2001:7a0:202:2:200:e2ff:fe54:9f0c%
2]: Illegal Host name
        at gov.nist.javax.sip.address.AddressFactoryImpl.createSipURI
(AddressFactoryImpl.java:100)
        at net.java.sip.communicator.sip.SipManager.getContactHeader
(SipManager.java:894)
        ... 6 more

···

--------------------

There is an additional %2 at the end of the automatically discovered ipv6
address. This scope identifier causes probably the exception. Until java
version 1.4.2 everything runs perfectly.

Did anybody reproduce similar problems over IPv6 and Java 1.5?
Do anybody know an acceptable solution?

Thanks in advance for any help.

Greetings,
Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: users-help@sip-communicator.dev.java.net


#2

Hi Michael,

Could you please try and locate the exact place and reason why the problem appears. How does the %2 get there? Is this an address returned by ur DNS or is it something you typed. The logs might also contain some more details.

Emil

Michael Stier wrote:

···

Dear SIP Communicator users,

it seems there is a problem with sip-communicator and the new java version 1.5.0 in combination with ipv6 on linux. The registration fails because of a parsing error.

The following exception occurred while trying to register the UA:

9381 [main] ERROR communicator.SipCommunicator - An exception occurred while trying to register, exc
net.java.sip.communicator.sip.CommunicationsException: A ParseException occurred while creating From Header!
        at net.java.sip.communicator.sip.SipManager.getContactHeader
(SipManager.java:917)
        at net.java.sip.communicator.sip.SipManager.getRegistrationContactHeader
(SipManager.java:864)
        at net.java.sip.communicator.sip.RegisterProcessing.register
(RegisterProcessing.java:330)
        at net.java.sip.communicator.sip.SipManager.register
(SipManager.java:556)
        at net.java.sip.communicator.sip.SipManager.startRegisterProcess
(SipManager.java:599)
        at net.java.sip.communicator.SipCommunicator.launch
(SipCommunicator.java:194)
        at net.java.sip.communicator.SipCommunicator.main
(SipCommunicator.java:276)
Caused by: java.text.ParseException: sip:[2001:7a0:202:2:200:e2ff:fe54:9f0c%
2]: Illegal Host name
        at gov.nist.javax.sip.address.AddressFactoryImpl.createSipURI
(AddressFactoryImpl.java:100)
        at net.java.sip.communicator.sip.SipManager.getContactHeader
(SipManager.java:894)
        ... 6 more
--------------------

There is an additional %2 at the end of the automatically discovered ipv6 address. This scope identifier causes probably the exception. Until java version 1.4.2 everything runs perfectly.

Did anybody reproduce similar problems over IPv6 and Java 1.5?
Do anybody know an acceptable solution?

Thanks in advance for any help.

Greetings,
Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: users-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: users-help@sip-communicator.dev.java.net