[sip-comm-dev] issue creating sip account; getting Nullpointer exception


#1

I am getting the following exception when I press the "Next" button in
"Account Registration Wizard" for sip. I tried with the stable binary
version.

I am using java 1.4 sdk and java runtime as

java version "1.6.0_01"
Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)

It would be helpfull to explore more about sip communicator.

Thanks,
Ram

Exception

     [java] 13:44:03.218 FINE: impl.shutdown.ShutdownTimeout.start()
Starting th
e ShutdownTimeout service.
     [java] Exception occurred during event dispatching:
     [java] java.lang.NullPointerException
     [java] at
net.java.sip.communicator.plugin.sipaccregwizz.SIPAccRegWizzA
ctivator.getSIPProtocolProviderFactory(SIPAccRegWizzActivator.java:76)
     [java] at
net.java.sip.communicator.plugin.sipaccregwizz.FirstWizardPag
e.isExistingAccount(FirstWizardPage.java:408)
     [java] at
net.java.sip.communicator.plugin.sipaccregwizz.FirstWizardPag
e.pageNext(FirstWizardPage.java:250)
     [java] at
net.java.sip.communicator.impl.gui.customcontrols.wizard.Wiza
rdController.nextButtonPressed(WizardController.java:73)
     [java] at
net.java.sip.communicator.impl.gui.customcontrols.wizard.Wiza
rdController.actionPerformed(WizardController.java:50)
     [java] at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton
.java:1786)
     [java] at
javax.swing.AbstractButton$ForwardActionEvents.actionPerforme
d(AbstractButton.java:1839)
     [java] at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultBut
tonModel.java:420)
     [java] at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.
java:258)
     [java] at
javax.swing.plaf.basic.BasicButtonListener$ReleasedAction.act
ionPerformed(BasicButtonListener.java:301)
     [java] at
javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1
530)
     [java] at
javax.swing.JComponent.processKeyBinding(JComponent.java:2438
)
     [java] at
javax.swing.JComponent.processKeyBindings(JComponent.java:247
3)
     [java] at
javax.swing.JComponent.processKeyEvent(JComponent.java:2401)
     [java] at java.awt.Component.processEvent(Component.java:4909)
     [java] at java.awt.Container.processEvent(Container.java:1569)
     [java] at
java.awt.Component.dispatchEventImpl(Component.java:3615)
     [java] at
java.awt.Container.dispatchEventImpl(Container.java:1627)
     [java] at java.awt.Component.dispatchEvent(Component.java:3477)
     [java] at
java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusMa
nager.java:1713)
     [java] at
java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Default
KeyboardFocusManager.java:627)
     [java] at
java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Defa
ultKeyboardFocusManager.java:831)
     [java] at
java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Defa
ultKeyboardFocusManager.java:741)
     [java] at
java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKey
boardFocusManager.java:592)
     [java] at
java.awt.Component.dispatchEventImpl(Component.java:3506)
     [java] at
java.awt.Container.dispatchEventImpl(Container.java:1627)
     [java] at java.awt.Window.dispatchEventImpl(Window.java:1606)
     [java] at java.awt.Component.dispatchEvent(Component.java:3477)
     [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:480)
     [java] at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDi
spatchThread.java:201)
     [java] at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDisp
atchThread.java:151)
     [java] at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDisp
atchThread.java:141)
     [java] at java.awt.Dialog$1.run(Dialog.java:542)
     [java] at java.awt.Dialog$3.run(Dialog.java:569)
     [java] at java.security.AccessController.doPrivileged(Native
Method)
     [java] at java.awt.Dialog.show(Dialog.java:567)
     [java] at java.awt.Component.show(Component.java:1133)
     [java] at java.awt.Component.setVisible(Component.java:1088)
     [java] at
net.java.sip.communicator.impl.gui.customcontrols.SIPCommDial
og.setVisible(SIPCommDialog.java:192)
     [java] at
net.java.sip.communicator.impl.gui.customcontrols.wizard.Wiza
rd.showDialog(Wizard.java:162)
     [java] at
net.java.sip.communicator.impl.gui.main.login.LoginManager.sh
owAccountRegistrationWizard(LoginManager.java:193)
     [java] at
net.java.sip.communicator.impl.gui.main.login.LoginManager.ru
nLogin(LoginManager.java:170)
     [java] at
net.java.sip.communicator.impl.gui.main.WelcomeWindow$RunLogi
n.run(WelcomeWindow.java:176)
     [java] at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:
189)
     [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:478)
     [java] at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDi
spatchThread.java:201)
     [java] at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDisp
atchThread.java:151)
     [java] at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.j
ava:145)
     [java] at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.j
ava:137)
     [java] at
java.awt.EventDispatchThread.run(EventDispatchThread.java:100
)

···

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


#2

Ramasamy wrote:

I am getting the following exception when I press the "Next" button in
"Account Registration Wizard" for sip. I tried with the stable binary
version.

What do you mean with "stable binary" ? Can you provide the whole log from $HOME/.sip-communicator/sip-communicator0.log

···

I am using java 1.4 sdk and java runtime as

java version "1.6.0_01"
Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)

It would be helpfull to explore more about sip communicator.

Thanks,
Ram

Exception

     [java] 13:44:03.218 FINE: impl.shutdown.ShutdownTimeout.start()
Starting th
e ShutdownTimeout service.
     [java] Exception occurred during event dispatching:
     [java] java.lang.NullPointerException
     [java] at
net.java.sip.communicator.plugin.sipaccregwizz.SIPAccRegWizzA
ctivator.getSIPProtocolProviderFactory(SIPAccRegWizzActivator.java:76)
     [java] at
net.java.sip.communicator.plugin.sipaccregwizz.FirstWizardPag
e.isExistingAccount(FirstWizardPage.java:408)
     [java] at
net.java.sip.communicator.plugin.sipaccregwizz.FirstWizardPag
e.pageNext(FirstWizardPage.java:250)
     [java] at
net.java.sip.communicator.impl.gui.customcontrols.wizard.Wiza
rdController.nextButtonPressed(WizardController.java:73)
     [java] at
net.java.sip.communicator.impl.gui.customcontrols.wizard.Wiza
rdController.actionPerformed(WizardController.java:50)
     [java] at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton
.java:1786)
     [java] at
javax.swing.AbstractButton$ForwardActionEvents.actionPerforme
d(AbstractButton.java:1839)
     [java] at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultBut
tonModel.java:420)
     [java] at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.
java:258)
     [java] at
javax.swing.plaf.basic.BasicButtonListener$ReleasedAction.act
ionPerformed(BasicButtonListener.java:301)
     [java] at
javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1
530)
     [java] at
javax.swing.JComponent.processKeyBinding(JComponent.java:2438
)
     [java] at
javax.swing.JComponent.processKeyBindings(JComponent.java:247
3)
     [java] at
javax.swing.JComponent.processKeyEvent(JComponent.java:2401)
     [java] at java.awt.Component.processEvent(Component.java:4909)
     [java] at java.awt.Container.processEvent(Container.java:1569)
     [java] at
java.awt.Component.dispatchEventImpl(Component.java:3615)
     [java] at
java.awt.Container.dispatchEventImpl(Container.java:1627)
     [java] at java.awt.Component.dispatchEvent(Component.java:3477)
     [java] at
java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusMa
nager.java:1713)
     [java] at
java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Default
KeyboardFocusManager.java:627)
     [java] at
java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Defa
ultKeyboardFocusManager.java:831)
     [java] at
java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Defa
ultKeyboardFocusManager.java:741)
     [java] at
java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKey
boardFocusManager.java:592)
     [java] at
java.awt.Component.dispatchEventImpl(Component.java:3506)
     [java] at
java.awt.Container.dispatchEventImpl(Container.java:1627)
     [java] at java.awt.Window.dispatchEventImpl(Window.java:1606)
     [java] at java.awt.Component.dispatchEvent(Component.java:3477)
     [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:480)
     [java] at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDi
spatchThread.java:201)
     [java] at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDisp
atchThread.java:151)
     [java] at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDisp
atchThread.java:141)
     [java] at java.awt.Dialog$1.run(Dialog.java:542)
     [java] at java.awt.Dialog$3.run(Dialog.java:569)
     [java] at java.security.AccessController.doPrivileged(Native
Method)
     [java] at java.awt.Dialog.show(Dialog.java:567)
     [java] at java.awt.Component.show(Component.java:1133)
     [java] at java.awt.Component.setVisible(Component.java:1088)
     [java] at
net.java.sip.communicator.impl.gui.customcontrols.SIPCommDial
og.setVisible(SIPCommDialog.java:192)
     [java] at
net.java.sip.communicator.impl.gui.customcontrols.wizard.Wiza
rd.showDialog(Wizard.java:162)
     [java] at
net.java.sip.communicator.impl.gui.main.login.LoginManager.sh
owAccountRegistrationWizard(LoginManager.java:193)
     [java] at
net.java.sip.communicator.impl.gui.main.login.LoginManager.ru
nLogin(LoginManager.java:170)
     [java] at
net.java.sip.communicator.impl.gui.main.WelcomeWindow$RunLogi
n.run(WelcomeWindow.java:176)
     [java] at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:
189)
     [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:478)
     [java] at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDi
spatchThread.java:201)
     [java] at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDisp
atchThread.java:151)
     [java] at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.j
ava:145)
     [java] at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.j
ava:137)
     [java] at
java.awt.EventDispatchThread.run(EventDispatchThread.java:100
)

---------------------------------------------------------------------
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


#3

Hi,

when you run sip-communicator from the console there you can see an exception preventing sip protocol provider of loading which is cause of the later NullPointerException. It seems a bug or malformed sip-communicator.xml is the cause of this. If you deleted it will run ok. So can you send such a buggy sip-communicator.xml with which you get this exception so we can investigate what had happened.

damencho

Xia, Zhi Feng (Bruce) wrote:

···

I had this issue too with the latest release. You can walk around this by manually add a user account in sip-communicator.xml.

This issue only happens when you create the first account. Once you create one account you can create more without any problem.

Creating first contact has same exception.

Should I log a bug? How could I do that?

Thanks,
Bruce
-----Original Message-----
From: Damian Minkov [mailto:damencho@damencho.com] Sent: 2007年4月10日 22:09
To: dev@sip-communicator.dev.java.net
Subject: Re: [sip-comm-dev] issue creating sip account; getting Nullpointer exception

Ramasamy wrote:
  

I am getting the following exception when I press the "Next" button in
"Account Registration Wizard" for sip. I tried with the stable binary
version.

What do you mean with "stable binary" ? Can you provide the whole log from $HOME/.sip-communicator/sip-communicator0.log

I am using java 1.4 sdk and java runtime as

java version "1.6.0_01"
Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode, sharing)

It would be helpfull to explore more about sip communicator.

Thanks,
Ram

Exception

     [java] 13:44:03.218 FINE: impl.shutdown.ShutdownTimeout.start()
Starting th
e ShutdownTimeout service.
     [java] Exception occurred during event dispatching:
     [java] java.lang.NullPointerException
     [java] at
net.java.sip.communicator.plugin.sipaccregwizz.SIPAccRegWizzA
ctivator.getSIPProtocolProviderFactory(SIPAccRegWizzActivator.java:76)
     [java] at
net.java.sip.communicator.plugin.sipaccregwizz.FirstWizardPag
e.isExistingAccount(FirstWizardPage.java:408)
     [java] at
net.java.sip.communicator.plugin.sipaccregwizz.FirstWizardPag
e.pageNext(FirstWizardPage.java:250)
     [java] at
net.java.sip.communicator.impl.gui.customcontrols.wizard.Wiza
rdController.nextButtonPressed(WizardController.java:73)
     [java] at
net.java.sip.communicator.impl.gui.customcontrols.wizard.Wiza
rdController.actionPerformed(WizardController.java:50)
     [java] at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton
.java:1786)
     [java] at
javax.swing.AbstractButton$ForwardActionEvents.actionPerforme
d(AbstractButton.java:1839)
     [java] at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultBut
tonModel.java:420)
     [java] at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.
java:258)
     [java] at
javax.swing.plaf.basic.BasicButtonListener$ReleasedAction.act
ionPerformed(BasicButtonListener.java:301)
     [java] at
javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1
530)
     [java] at
javax.swing.JComponent.processKeyBinding(JComponent.java:2438
)
     [java] at
javax.swing.JComponent.processKeyBindings(JComponent.java:247
3)
     [java] at
javax.swing.JComponent.processKeyEvent(JComponent.java:2401)
     [java] at java.awt.Component.processEvent(Component.java:4909)
     [java] at java.awt.Container.processEvent(Container.java:1569)
     [java] at
java.awt.Component.dispatchEventImpl(Component.java:3615)
     [java] at
java.awt.Container.dispatchEventImpl(Container.java:1627)
     [java] at java.awt.Component.dispatchEvent(Component.java:3477)
     [java] at
java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusMa
nager.java:1713)
     [java] at
java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Default
KeyboardFocusManager.java:627)
     [java] at
java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Defa
ultKeyboardFocusManager.java:831)
     [java] at
java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Defa
ultKeyboardFocusManager.java:741)
     [java] at
java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKey
boardFocusManager.java:592)
     [java] at
java.awt.Component.dispatchEventImpl(Component.java:3506)
     [java] at
java.awt.Container.dispatchEventImpl(Container.java:1627)
     [java] at java.awt.Window.dispatchEventImpl(Window.java:1606)
     [java] at java.awt.Component.dispatchEvent(Component.java:3477)
     [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:480)
     [java] at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDi
spatchThread.java:201)
     [java] at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDisp
atchThread.java:151)
     [java] at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDisp
atchThread.java:141)
     [java] at java.awt.Dialog$1.run(Dialog.java:542)
     [java] at java.awt.Dialog$3.run(Dialog.java:569)
     [java] at java.security.AccessController.doPrivileged(Native
Method)
     [java] at java.awt.Dialog.show(Dialog.java:567)
     [java] at java.awt.Component.show(Component.java:1133)
     [java] at java.awt.Component.setVisible(Component.java:1088)
     [java] at
net.java.sip.communicator.impl.gui.customcontrols.SIPCommDial
og.setVisible(SIPCommDialog.java:192)
     [java] at
net.java.sip.communicator.impl.gui.customcontrols.wizard.Wiza
rd.showDialog(Wizard.java:162)
     [java] at
net.java.sip.communicator.impl.gui.main.login.LoginManager.sh
owAccountRegistrationWizard(LoginManager.java:193)
     [java] at
net.java.sip.communicator.impl.gui.main.login.LoginManager.ru
nLogin(LoginManager.java:170)
     [java] at
net.java.sip.communicator.impl.gui.main.WelcomeWindow$RunLogi
n.run(WelcomeWindow.java:176)
     [java] at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:
189)
     [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:478)
     [java] at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDi
spatchThread.java:201)
     [java] at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDisp
atchThread.java:151)
     [java] at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.j
ava:145)
     [java] at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.j
ava:137)
     [java] at
java.awt.EventDispatchThread.run(EventDispatchThread.java:100
)

---------------------------------------------------------------------
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

---------------------------------------------------------------------
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