Running the JAR file independently


#1

Hello Emil,

I just got finished with the implementation of IM support on the sip-comm and should be ready to put it to some good use :slight_smile:

I just had a little problem ...which is that when i build the classes and send the jar file over to some other computer along with the configuration file (sip-communicator.xml) i am unable to execute it. Even though the JMF is setup correctly and the CLASSPATHS seem all ok.

Here is the error

1332 [main] TRACE communicator.SipCommunicator - [exit] (init)
1332 [main] TRACE communicator.SipCommunicator - [exit] main
Exception in thread "main" java.lang.NoClassDefFoundError: javax/media/NoProcessorException

at net.java.sip.communicator.SipCommunicator.(init)(SipCommunicator.java:115)
at net.java.sip.communicator.SipCommunicator.(init)(SipCommunicator.java:276)

Even though the same jar file runs perfectly on my machine where I built the jar file.
I am using the command "java -jar sip-communicator.jar" and have the configuration file and the jar file in the same directory.

Any clues.?
Is it because the JMFHOME variable isnt set up correctly.

Could you please briefly let me know how the code reads up the JMF libararies and does the initialization.

Thanks a lot,
Aashish Sharma.

Hello Aashish,

Sorry for the delay.

We are almost done with the IMP support and you should have a fully
functional version till the end of july. There's not much work left but
since the work is mostly done by (very gifted) students it is currently
in a lag due to exams :). So we'll get back on full throttle begninning
of july.

Hope it's not too late

Cheers
Emil

Aashish Sharma wrote:

···

Emil Ivov <emil_ivov@yahoo.com> wrote:

Hello Emil,

Well yes I downloaded the latest version from the nighly build and this
one seems to work well. Though there were some issues for me when the
'callee' hangs up a call, but in all the communicators do setup a media
path and work well. I will be try to iron out some of the errors it
still flags off.

Importantly, I was just wondering if you guys are working on the IM
capability in sip-comm. I would like to be taking a crack at it myself.
l am trying to come up with a client application that supports both voip
and IM together. Once I have that ready would like to integrate into a
larger set of product line.

Please let me know what your timelines are for this in case you have it
on cards.:slight_smile:

Thanks again for your help!

Best,
Aashish.

*/Emil Ivov /* wrote:

Aashish,

Are u sure u r using latest version? Have u modified anything in the
source code of either the stack or the client?

I'd advise u on redownloading the whole thing. Latest versions of
sip-communicator include a stack version compiled with full debugging
information so this should help us if the problem persists

Cheers
Emil

Aashish Sharma wrote:
> Hi Emil,
>
> I did some testing lately and am still running into problems. I
tested
> the Sip-Communicator (sip-comm) with the iptel.org sip proxy on 2
> seperate machines with public IP addresses running windows XP and
> windows 2000.
>
> The setup briefly is as:
>
> Machine A (win xp) : IP = 128.59.138.25, sip uri =
> aashishsharma[at]iptel.org
> (this machine is running Ethereal for capturing packets)
>
> Machine B(win 2000): IP = 128.59.197.224, sip uri =
aashish1[at]iptel.org
>
> Now both the sip clients register fine with the proxy. When I call
> Machine A from Machine B, the alert beep is signalled. But an
expection
> is flagged in the console which is: (this happens even before I
> acknowledge the call)
> --------------------------------------------------------
> hop = iptel.org:5060/udp
> java.lang.NullPointerException
> at gov.nist.core.HostPort.encode(Unknown Source)
> at gov.nist.javax.sip.header.Via.encodeBody(Unknown Source)
> at gov.nist.javax.sip.header.SIPHeaderList.encodeBody(Unknown
> Source)
> at gov.nist.javax.sip.header.SIPHeaderList.encode(Unknown Source)
> at gov.nist.javax.sip.message.SIPMessage.encodeAsBytes(Unknown
> Source)
> at gov.nist.javax.sip.message.SIPResponse.encodeAsBytes(Unknown
> Source)
> at
> gov.nist.javax.sip.stack.UDPMessageChannel.sendMessage(Unknown
Source)
> at
>
gov.nist.javax.sip.stack.SIPServerTransaction.sendResponse(Unknown
Source)
> at
> gov.nist.javax.sip.stack.SIPServerTransaction.sendMessage(Unknown
Source)
> at
>
gov.nist.javax.sip.stack.SIPServerTransaction.sendResponse(Unknown
Source)
> at
>
net.java.sip.communicator.sip.CallProcessing.processInvite(CallProcessing.java:438)
> at
>
net.java.sip.communicator.sip.SipManager.processRequest(SipManager.java:1422)
> at gov.nist.javax.sip.SipProviderImpl.run(Unknown Source)
> at java.lang.Thread.run(Thread.java:534)
> --------------------------------------------------------------
> Now when I acknowledge the call other exceptions are thrown out
which
> are as follows:
> ----------------------------------------------------------
> java.lang.NullPointerException
> at gov.nist.core.Host.equals(Unknown Source)
> at gov.nist.core.HostPort.equals(Unknown Source)
> at
>
gov.nist.javax.sip.stack.SIPServerTransaction.isMessagePartOfTransaction(Unknown

> Source)
> at
>
gov.nist.javax.sip.stack.SIPTransactionStack.newSIPServerRequest(Unknown

> Source)
> at gov.nist.javax.sip.stack.UDPMessageChannel.run(Unknown Source)
> at java.lang.Thread.run(Thread.java:534)
> java.lang.NullPointerException
> at gov.nist.core.Host.equals(Unknown Source)
> at gov.nist.core.HostPort.equals(Unknown Source)
> at
>
gov.nist.javax.sip.stack.SIPServerTransaction.isMessagePartOfTransaction(Unknown

> Source)
> at
>
gov.nist.javax.sip.stack.SIPTransactionStack.newSIPServerRequest(Unknown

> Source)
> at gov.nist.javax.sip.stack.UDPMessageChannel.run(Unknown Source)
> at java.lang.Thread.run(Thread.java:534)
> java.lang.NullPointerException
> at gov.nist.core.Host.equals(Unknown Source)
> at gov.nist.core.HostPort.equals(Unknown Source)
> at
>
gov.nist.javax.sip.stack.SIPServerTransaction.isMessagePartOfTransaction(Unknown

> Source)
> at
>
gov.nist.javax.sip.stack.SIPTransactionStack.newSIPServerRequest(Unknown

> Source)
> at gov.nist.javax.sip.stack.UDPMessageChannel.run(Unknown Source)
> at java.lang.Thread.run(Thread.java:534)
> java.lang.NullPointerException
> at gov.nist.core.HostPort.encode(Unknown Source)
> at gov.nist.javax.sip.header.Via.encodeBody(Unknown Source)
> at gov.nist.javax.sip.header.SIPHeaderList.encodeBody(Unknown
> Source)
> at gov.nist.javax.sip.header.SIPHeaderList.encode(Unknown Source)
> at gov.nist.javax.sip.message.SIPMessage.encodeAsBytes(Unknown
> Source)
> at gov.nist.javax.sip.message.SIPResponse.encodeAsBytes(Unknown
> Source)
> at
> gov.nist.javax.sip.stack.UDPMessageChannel.sendMessage(Unknown
Source)
> at
>
gov.nist.javax.sip.stack.SIPServerTransaction.sendResponse(Unknown
Source)
> at
> gov.nist.javax.sip.stack.SIPServerTransaction.sendMessage(Unknown
Source)
> at
>
gov.nist.javax.sip.stack.SIPServerTransaction.sendResponse(Unknown
Source)
> at
>
net.java.sip.communicator.sip.CallProcessing.sayOK(CallProcessing.java:1176)
> at
>
net.java.sip.communicator.sip.SipManager.answerCall(SipManager.java:666)
> at
>
net.java.sip.communicator.SipCommunicator.handleAnswerRequest(SipCommunicator.java:296)
> at
>
net.java.sip.communicator.gui.GuiManager.answerButton_actionPerformed(GuiManager.java:325)
> at
>
net.java.sip.communicator.gui.GuiManager$2.actionPerformed(GuiManager.java:552)
> at
>
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
> at
>
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
> at
>
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
> at
>
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
> at
>
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
> at java.awt.Component.processMouseEvent(Component.java:5100)
> at java.awt.Component.processEvent(Component.java:4897)
> at java.awt.Container.processEvent(Container.java:1569)
> at java.awt.Component.dispatchEventImpl(Component.java:3615)
> at java.awt.Container.dispatchEventImpl(Container.java:1627)
> at java.awt.Component.dispatchEvent(Component.java:3477)
> at
>
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
> at
> java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
> at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
> at java.awt.Container.dispatchEventImpl(Container.java:1613)
> at java.awt.Window.dispatchEventImpl(Window.java:1606)
> at java.awt.Component.dispatchEvent(Component.java:3477)
> at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
> at
>
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
> at
>
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
> at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
> at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
> at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
> -------------------------------------------------
>
> The Ethreal/tcpdump file for this session has been attached in
the mail.
> This problem is somewhat different than what I wrote to you about
earlier.
>
> Please let me know if you have any thoughts.
>
> Thanks for your help.
> Best,
> Aashish Sharma
>
>
>
>
>
>
>
>
> */Emil Ivov /* wrote:
>
> Hello Aashish
>
> Could you please send me the output generated by the sip-communicator
> for the whole session (from the moment it was started to the moment u
> get the bug)? It would be great if you could also add an
> ethereal/tcpdump dump file ... that'd be halpful
>
> Thanks for ur patience
> Emil
>
> Aashish Sharma wrote:
> > Hi Emil,
> >
> > I am part of the Sip Development list and had a query regarding
your
> > great work; the sip-communicator. I am developing an integrated
> software
> > using its VoIP and IM capabilities.
> >
> > I am having a problem which I am not sure of. I am running
> > sip-comm on Windows Xp platform and have the Windows performance
> pack of
> > JMF installed. The problem is that when you call the
> sip-comunicator it
> > works fine and sets up the media path etc etc. But when you are
> calling
> > from a sip-communicator to any other SIP enabled device, the device
> > would ring but as soon as your answer the call, the caller
> > sip-communicator flags off an Error message saying "Failed to
> > acknowledge call!". The details are shown as:
> >
> > net.java.sip.communicator.sip.CommunicationsException: Failed to
> > acknowledge call!
> > at
> >
>
net.java.sip.communicator.sip.CallProcessing.processInviteOK(CallProcessing.java:224)
> > at
> >
>
net.java.sip.communicator.sip.SipManager.processResponse(SipManager.java:1580)
> > at gov.nist.javax.sip.SipProviderImpl.run(Unknown Source)
> > at java.lang.Thread.run(Unknown Source)
> > Caused by: javax.sip.SipException: Cold not create message channel
> > at gov.nist.javax.sip.stack.DialogImpl.sendAck(Unknown Source)
> > at
> >
>
net.java.sip.communicator.sip.CallProcessing.processInviteOK(CallProcessing.java:219)
> > ... 3 more
> >
> > The connection thus cannot be established and there are no media
> channels.
> > Are you also getting the same problem or am i doing something
> wrong.?
> > Please respond with your comments.
> >
> > Thanks,
> > Aashish
> >
> >
>
------------------------------------------------------------------------
> > Do you Yahoo!?
> > Friends. Fun. Try the all-new Yahoo! Messenger
> >
>
>
------------------------------------------------------------------------
> Do you Yahoo!?
> Friends. Fun. Try the all-new Yahoo! Messenger
>

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

------------------------------------------------------------------------
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger

---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!