[sip-comm-dev] call recording problem


#1

Hey folks,

I have just tried the latest version of call recording and got the
following exception. Anyone has an idea as to what may be causing this?

Cheers,
Emil

···

09:20:14.509 SEVERE: util.UtilActivator.uncaughtException().77 An uncaught exception occurred in thread=Thread[AWT-EventQueue-0,6,main] and message was: format
java.lang.IllegalArgumentException: format
  at net.java.sip.communicator.impl.neomedia.RecorderImpl.getContentDescriptor(RecorderImpl.java:109)
  at net.java.sip.communicator.impl.neomedia.RecorderImpl.<init>(RecorderImpl.java:86)
  at net.java.sip.communicator.impl.neomedia.MediaServiceImpl.createRecorder(MediaServiceImpl.java:580)
  at net.java.sip.communicator.service.protocol.media.MediaAwareCall.createRecorder(MediaAwareCall.java:573)
  at net.java.sip.communicator.service.protocol.media.AbstractOperationSetBasicTelephony.createRecorder(AbstractOperationSetBasicTelephony.java:155)
  at net.java.sip.communicator.impl.gui.main.call.RecordButton.getRecorder(RecordButton.java:270)
  at net.java.sip.communicator.impl.gui.main.call.RecordButton.isSupportedFormat(RecordButton.java:313)
  at net.java.sip.communicator.impl.gui.main.call.RecordButton.createDefaultFilename(RecordButton.java:232)
  at net.java.sip.communicator.impl.gui.main.call.RecordButton.startRecording(RecordButton.java:340)
  at net.java.sip.communicator.impl.gui.main.call.RecordButton.actionPerformed(RecordButton.java:177)
  at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)
  at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)
  at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
  at javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:269)
  at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
  at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
  at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
  at java.awt.Component.processMouseEvent(Component.java:5602)
  at javax.swing.JComponent.processMouseEvent(JComponent.java:3129)
  at java.awt.Component.processEvent(Component.java:5367)
  at java.awt.Container.processEvent(Container.java:2010)
  at java.awt.Component.dispatchEventImpl(Component.java:4068)
  at java.awt.Container.dispatchEventImpl(Container.java:2068)
  at java.awt.Component.dispatchEvent(Component.java:3903)
  at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
  at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)
  at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
  at java.awt.Container.dispatchEventImpl(Container.java:2054)
  at java.awt.Window.dispatchEventImpl(Window.java:1801)
  at java.awt.Component.dispatchEvent(Component.java:3903)
  at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
  at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
  at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
  at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

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


#2

На 22.08.10 09:23, Emil Ivov написа:

Hey folks,

I have just tried the latest version of call recording and got the
following exception. Anyone has an idea as to what may be causing this?

Looking at the trace I am thinking that I should have also mentioned
that this happened before I had had a chance to select a file where the
conversation would be saved.

Cheers,
Emil

···

Cheers,
Emil

09:20:14.509 SEVERE: util.UtilActivator.uncaughtException().77 An uncaught exception occurred in thread=Thread[AWT-EventQueue-0,6,main] and message was: format
java.lang.IllegalArgumentException: format
  at net.java.sip.communicator.impl.neomedia.RecorderImpl.getContentDescriptor(RecorderImpl.java:109)
  at net.java.sip.communicator.impl.neomedia.RecorderImpl.<init>(RecorderImpl.java:86)
  at net.java.sip.communicator.impl.neomedia.MediaServiceImpl.createRecorder(MediaServiceImpl.java:580)
  at net.java.sip.communicator.service.protocol.media.MediaAwareCall.createRecorder(MediaAwareCall.java:573)
  at net.java.sip.communicator.service.protocol.media.AbstractOperationSetBasicTelephony.createRecorder(AbstractOperationSetBasicTelephony.java:155)
  at net.java.sip.communicator.impl.gui.main.call.RecordButton.getRecorder(RecordButton.java:270)
  at net.java.sip.communicator.impl.gui.main.call.RecordButton.isSupportedFormat(RecordButton.java:313)
  at net.java.sip.communicator.impl.gui.main.call.RecordButton.createDefaultFilename(RecordButton.java:232)
  at net.java.sip.communicator.impl.gui.main.call.RecordButton.startRecording(RecordButton.java:340)
  at net.java.sip.communicator.impl.gui.main.call.RecordButton.actionPerformed(RecordButton.java:177)
  at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)
  at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)
  at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
  at javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:269)
  at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
  at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
  at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
  at java.awt.Component.processMouseEvent(Component.java:5602)
  at javax.swing.JComponent.processMouseEvent(JComponent.java:3129)
  at java.awt.Component.processEvent(Component.java:5367)
  at java.awt.Container.processEvent(Container.java:2010)
  at java.awt.Component.dispatchEventImpl(Component.java:4068)
  at java.awt.Container.dispatchEventImpl(Container.java:2068)
  at java.awt.Component.dispatchEvent(Component.java:3903)
  at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
  at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)
  at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
  at java.awt.Container.dispatchEventImpl(Container.java:2054)
  at java.awt.Window.dispatchEventImpl(Window.java:1801)
  at java.awt.Component.dispatchEvent(Component.java:3903)
  at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
  at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
  at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
  at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

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

--
Emil Ivov, Ph.D. 67000 Strasbourg,
Project Lead France
SIP Communicator
emcho@sip-communicator.org PHONE: +33.1.77.62.43.30
http://sip-communicator.org FAX: +33.1.77.62.47.31

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


#3

Hi Emil,

From your exception I can tell that you have the property

net.java.sip.communicator.impl.neomedia.CALL_FORMAT set (not null),
but its value is not something that getContentDescriptor() method
recognizes. I've seen that mp2 format was removed (for some reason) as
a supported audio format, maybe you have that set as your property? I
think clearing this property should fix your problem.

Cheers,
Dmitri

···

2010/8/22 Emil Ivov <emcho@sip-communicator.org>:

Hey folks,

I have just tried the latest version of call recording and got the
following exception. Anyone has an idea as to what may be causing this?

Cheers,
Emil

09:20:14.509 SEVERE: util.UtilActivator.uncaughtException().77 An uncaught exception occurred in thread=Thread[AWT-EventQueue-0,6,main] and message was: format
java.lang.IllegalArgumentException: format
at net.java.sip.communicator.impl.neomedia.RecorderImpl.getContentDescriptor(RecorderImpl.java:109)
at net.java.sip.communicator.impl.neomedia.RecorderImpl.<init>(RecorderImpl.java:86)
at net.java.sip.communicator.impl.neomedia.MediaServiceImpl.createRecorder(MediaServiceImpl.java:580)
at net.java.sip.communicator.service.protocol.media.MediaAwareCall.createRecorder(MediaAwareCall.java:573)
at net.java.sip.communicator.service.protocol.media.AbstractOperationSetBasicTelephony.createRecorder(AbstractOperationSetBasicTelephony.java:155)
at net.java.sip.communicator.impl.gui.main.call.RecordButton.getRecorder(RecordButton.java:270)
at net.java.sip.communicator.impl.gui.main.call.RecordButton.isSupportedFormat(RecordButton.java:313)
at net.java.sip.communicator.impl.gui.main.call.RecordButton.createDefaultFilename(RecordButton.java:232)
at net.java.sip.communicator.impl.gui.main.call.RecordButton.startRecording(RecordButton.java:340)
at net.java.sip.communicator.impl.gui.main.call.RecordButton.actionPerformed(RecordButton.java:177)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:269)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
at java.awt.Component.processMouseEvent(Component.java:5602)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3129)
at java.awt.Component.processEvent(Component.java:5367)
at java.awt.Container.processEvent(Container.java:2010)
at java.awt.Component.dispatchEventImpl(Component.java:4068)
at java.awt.Container.dispatchEventImpl(Container.java:2068)
at java.awt.Component.dispatchEvent(Component.java:3903)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
at java.awt.Container.dispatchEventImpl(Container.java:2054)
at java.awt.Window.dispatchEventImpl(Window.java:1801)
at java.awt.Component.dispatchEvent(Component.java:3903)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

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

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


#4

Hey Dmirtri,

На 22.08.10 09:42, Dmitri Melnikov написа:

Hi Emil,

From your exception I can tell that you have the property

net.java.sip.communicator.impl.neomedia.CALL_FORMAT set (not null),

Correct!

but its value is not something that getContentDescriptor() method
recognizes. I've seen that mp2 format was removed (for some reason)

Oh yes, the reason for this is simply because it is not supported on all
operating systems (like Mac OS for example). It appears that this was
also why I was getting an exception I reported earlier. Lubo mentioned
that to me in a private conversation and I forgot to come back to you.
My bad.

as
a supported audio format, maybe you have that set as your property? I
think clearing this property should fix your problem.

Indeed this fixes the issue. I also added a couple of lines in
RecorderImpl to avoid seeing it again.

Thanks for the tip Dmitri!
Emil

···

Cheers,
Dmitri

2010/8/22 Emil Ivov <emcho@sip-communicator.org>:

Hey folks,

I have just tried the latest version of call recording and got the
following exception. Anyone has an idea as to what may be causing this?

Cheers,
Emil

09:20:14.509 SEVERE: util.UtilActivator.uncaughtException().77 An uncaught exception occurred in thread=Thread[AWT-EventQueue-0,6,main] and message was: format
java.lang.IllegalArgumentException: format
      at net.java.sip.communicator.impl.neomedia.RecorderImpl.getContentDescriptor(RecorderImpl.java:109)
      at net.java.sip.communicator.impl.neomedia.RecorderImpl.<init>(RecorderImpl.java:86)
      at net.java.sip.communicator.impl.neomedia.MediaServiceImpl.createRecorder(MediaServiceImpl.java:580)
      at net.java.sip.communicator.service.protocol.media.MediaAwareCall.createRecorder(MediaAwareCall.java:573)
      at net.java.sip.communicator.service.protocol.media.AbstractOperationSetBasicTelephony.createRecorder(AbstractOperationSetBasicTelephony.java:155)
      at net.java.sip.communicator.impl.gui.main.call.RecordButton.getRecorder(RecordButton.java:270)
      at net.java.sip.communicator.impl.gui.main.call.RecordButton.isSupportedFormat(RecordButton.java:313)
      at net.java.sip.communicator.impl.gui.main.call.RecordButton.createDefaultFilename(RecordButton.java:232)
      at net.java.sip.communicator.impl.gui.main.call.RecordButton.startRecording(RecordButton.java:340)
      at net.java.sip.communicator.impl.gui.main.call.RecordButton.actionPerformed(RecordButton.java:177)
      at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)
      at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)
      at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
      at javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:269)
      at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
      at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
      at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
      at java.awt.Component.processMouseEvent(Component.java:5602)
      at javax.swing.JComponent.processMouseEvent(JComponent.java:3129)
      at java.awt.Component.processEvent(Component.java:5367)
      at java.awt.Container.processEvent(Container.java:2010)
      at java.awt.Component.dispatchEventImpl(Component.java:4068)
      at java.awt.Container.dispatchEventImpl(Container.java:2068)
      at java.awt.Component.dispatchEvent(Component.java:3903)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
      at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)
      at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
      at java.awt.Container.dispatchEventImpl(Container.java:2054)
      at java.awt.Window.dispatchEventImpl(Window.java:1801)
      at java.awt.Component.dispatchEvent(Component.java:3903)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
      at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

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

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

--
Emil Ivov, Ph.D. 67000 Strasbourg,
Project Lead France
SIP Communicator
emcho@sip-communicator.org PHONE: +33.1.77.62.43.30
http://sip-communicator.org FAX: +33.1.77.62.47.31

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