[sip-comm-dev] Problems with starting the SC as an applet


#1

Hello,

I`m a student from germany and I`m writing my bachelor thesis about starting
the SIP Communicator out of the browser.
With the help of Sebastian Heib and his Mail, I have found it in the mailing
list, I was able to start it as an applet.

https://sip-communicator.dev.java.net/servlets/ReadMsg?listName=dev&msgNo=3214

(I changed the source how he described it, signed all jars and copied
everything to my xampp folder)

But there is a problem by signing just one jar file - the media.jar:
    jarsigner: unable to sign jar: java.util.zip.ZipException: invalid entry
size (expected 138 but got 89 bytes)

I tried to extract the media.jar and repackaged it with the commands:
    jar xfv media.jar
     jar cfv0 media.jar META-INF/manifest.mf *

Then I was able to sign this jar file, too.

But it doesn`t matter if I copy the unsigned or signed media.jar to the
XAMPP sc-bundles folder - everytime the same errors.

Tested with *Firefox* 3.0.3:

    When I start the SC applet I am able to add an ICQ account but when I
want to activate my SIP account following errors appear:
__________________________________________________________________________________________________________________________________________>>>>

java.lang.NullPointerException
    at
net.java.sip.communicator.plugin.sipaccregwizz.SIPAccRegWizzActivator.getSIPProtocolProviderFactory(SIPAccRegWizzActivator.java:82)
    at
net.java.sip.communicator.plugin.sipaccregwizz.FirstWizardPage.isExistingAccount(FirstWizardPage.java:650)
    at
net.java.sip.communicator.plugin.sipaccregwizz.FirstWizardPage.pageNext(FirstWizardPage.java:395)
    at
net.java.sip.communicator.impl.gui.customcontrols.wizard.WizardController.nextButtonPressed(WizardController.java:77)
    at
net.java.sip.communicator.impl.gui.customcontrols.wizard.WizardController.actionPerformed(WizardController.java:52)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at
javax.swing.plaf.basic.BasicButtonListener$Actions.actionPerformed(Unknown
Source)
    at javax.swing.SwingUtilities.notifyAction(Unknown Source)
    at javax.swing.JComponent.processKeyBinding(Unknown Source)
    at javax.swing.JComponent.processKeyBindings(Unknown Source)
    at javax.swing.JComponent.processKeyEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
    at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
    at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown
Source)
    at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown
Source)
    at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.Dialog$1.run(Unknown Source)
    at java.awt.Dialog$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Dialog.show(Unknown Source)
    at java.awt.Component.show(Unknown Source)
    at java.awt.Component.setVisible(Unknown Source)
    at java.awt.Window.setVisible(Unknown Source)
    at java.awt.Dialog.setVisible(Unknown Source)
    at
net.java.sip.communicator.impl.gui.customcontrols.SIPCommDialog.setVisible(SIPCommDialog.java:231)
    at
net.java.sip.communicator.impl.gui.customcontrols.wizard.Wizard.showDialog(Wizard.java:180)
    at
net.java.sip.communicator.impl.gui.main.menus.FileMenu.actionPerformed(FileMenu.java:179)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.AbstractButton.doClick(Unknown Source)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown
Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

<<<<______________________________________________________________________________________________________________________________________________

    The Java Console shows following errors:
__________________________________________________________________________________________________________________________________________>>>>

ERROR: Error starting
http://localhost/SIP_SC_3560/SIP%20Communicator%203560/sc-bundles/protocol-sip.jar(org.osgi.framework.BundleException:
Unresolved package in bundle 15:
package;
(&(package=net.java.sip.communicator.service.media)(version>=0.0.0)))
org.osgi.framework.BundleException: Unresolved package in bundle 15:
package;
(&(package=net.java.sip.communicator.service.media)(version>=0.0.0))
    at org.apache.felix.framework.Felix._resolveBundle(Felix.java:1650)
    at org.apache.felix.framework.Felix._startBundle(Felix.java:1517)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:1470)
    at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1065)
    at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:258)
    at java.lang.Thread.run(Unknown Source)
ERROR: Error starting
http://localhost/SIP_SC_3560/SIP%20Communicator%203560/sc-bundles/protocol-jabber.jar(org.osgi.framework.BundleException:
Unresolved package in bundle 17:
package;
(&(package=net.java.sip.communicator.service.media.event)(version>=0.0.0)))
org.osgi.framework.BundleException: Unresolved package in bundle 17:
package;
(&(package=net.java.sip.communicator.service.media.event)(version>=0.0.0))
    at org.apache.felix.framework.Felix._resolveBundle(Felix.java:1650)
    at org.apache.felix.framework.Felix._startBundle(Felix.java:1517)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:1470)
    at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1065)
    at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:258)
    at java.lang.Thread.run(Unknown Source)
04.11.2008 15:06:53 net.java.sip.communicator.util.Logger info
INFO: Stun server address(null)/port(null) not set (or invalid). Disabling
STUN.
04.11.2008 15:06:53 net.java.sip.communicator.util.Logger info
INFO: Network Address Manager ...[ STARTED ]
04.11.2008 15:06:53 net.java.sip.communicator.util.Logger info
INFO: Network Address Manager Service ...[REGISTERED]
ERROR: EventDispatcher: Error during dispatch.
(java.lang.NullPointerException)
java.lang.NullPointerException
    at
net.java.sip.communicator.plugin.branding.BrandingActivator.bundleChanged(BrandingActivator.java:48)
    at
org.apache.felix.framework.util.EventDispatcher$3.run(EventDispatcher.java:683)
    at java.security.AccessController.doPrivileged(Native Method)
    at
org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:680)
    at
org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:619)
    at
org.apache.felix.framework.util.EventDispatcher.run(EventDispatcher.java:816)
    at
org.apache.felix.framework.util.EventDispatcher.access$000(EventDispatcher.java:42)
    at
org.apache.felix.framework.util.EventDispatcher$1.run(EventDispatcher.java:94)
    at java.lang.Thread.run(Unknown Source)
ERROR: Error starting
http://localhost/SIP_SC_3560/SIP%20Communicator%203560/sc-bundles/protocol-sip-slick.jar(org.osgi.framework.BundleException:
Unresolved package in bundle 43:
package; (&(package=junit.framework)(version>=0.0.0)))
org.osgi.framework.BundleException: Unresolved package in bundle 43:
package; (&(package=junit.framework)(version>=0.0.0))
    at org.apache.felix.framework.Felix._resolveBundle(Felix.java:1650)
    at org.apache.felix.framework.Felix._startBundle(Felix.java:1517)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:1470)
    at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1065)
    at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:258)
<<<<______________________________________________________________________________________________________________________________________________

        (complete log is attached!)

Tested with *Opera*:

    Same problem, I am not able to activate my SIP account.
    The Java Console shows following errors:
__________________________________________________________________________________________________________________________________________>>>>

ERROR: Error starting
http://localhost/SIP_SC_3560/SIP%20Communicator%203560/sc-bundles/media.jar(org.osgi.framework.BundleException:
Not found:
net.java.sip.communicator.impl.media.MediaActivator)
java.lang.ClassNotFoundException:
net.java.sip.communicator.impl.media.MediaActivator
    at
org.apache.felix.framework.Felix.createBundleActivator(Felix.java:3429)
    at org.apache.felix.framework.Felix._startBundle(Felix.java:1531)
    at org.apache.felix.framework.Felix.startBundle(Felix.java:1470)
    at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1065)
    at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:258)

    .
    .
    .

Exception occurred during event dispatching:
java.lang.NoClassDefFoundError:
net/java/sip/communicator/service/media/MediaException
    at
net.java.sip.communicator.impl.protocol.sip.ProtocolProviderServiceSipImpl.initialize(ProtocolProviderServiceSipImpl.java:767)
    at
net.java.sip.communicator.impl.protocol.sip.ProtocolProviderFactorySipImpl.loadAccount(ProtocolProviderFactorySipImpl.java:196)
    at
net.java.sip.communicator.impl.protocol.sip.ProtocolProviderFactorySipImpl.installAccount(ProtocolProviderFactorySipImpl.java:131)
    at
net.java.sip.communicator.plugin.sipaccregwizz.SIPAccountRegistrationWizard.installAccount(SIPAccountRegistrationWizard.java:243)
    at
net.java.sip.communicator.plugin.sipaccregwizz.SIPAccountRegistrationWizard.finish(SIPAccountRegistrationWizard.java:175)
    at
net.java.sip.communicator.impl.gui.main.account.AccountRegSummaryPage.pageNext(AccountRegSummaryPage.java:153)
    at
net.java.sip.communicator.impl.gui.customcontrols.wizard.WizardController.nextButtonPressed(WizardController.java:77)
    at
net.java.sip.communicator.impl.gui.customcontrols.wizard.WizardController.actionPerformed(WizardController.java:52)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown
Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.Dialog$1.run(Unknown Source)
    at java.awt.Dialog$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Dialog.show(Unknown Source)
    at java.awt.Component.show(Unknown Source)
    at java.awt.Component.setVisible(Unknown Source)
    at java.awt.Window.setVisible(Unknown Source)
    at java.awt.Dialog.setVisible(Unknown Source)
    at
net.java.sip.communicator.impl.gui.customcontrols.SIPCommDialog.setVisible(SIPCommDialog.java:231)
    at
net.java.sip.communicator.impl.gui.customcontrols.wizard.Wizard.showDialog(Wizard.java:180)
    at
net.java.sip.communicator.impl.gui.main.login.LoginManager.showAccountRegistrationWizard(LoginManager.java:185)
    at
net.java.sip.communicator.impl.gui.main.login.LoginManager.runLogin(LoginManager.java:150)
    at
net.java.sip.communicator.impl.gui.UIServiceImpl$RunLoginGui.run(UIServiceImpl.java:797)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: *** Package
'net.java.sip.communicator.service.media' is imported by bundle 15 from
bundle 52, but the exported package from bundle 52 does not contain the
requested class 'net.java.sip.communicator.service.media.MediaException'.
Please verify that the class name is correct in the importing bundle 15
and/or that the exported package is correctly bundled in 52. ***
    at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4SearchPolicyCore.java:184)
    at
org.apache.felix.framework.searchpolicy.R4SearchPolicy.findClass(R4SearchPolicy.java:45)
    at
org.apache.felix.framework.searchpolicy.ContentClassLoader.loadClass(ContentClassLoader.java:75)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    ... 51 more
Caused by: java.lang.ClassNotFoundException:
net.java.sip.communicator.service.media.MediaException
    at
org.apache.felix.framework.searchpolicy.R4Wire.getClass(R4Wire.java:109)
    at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.searchImports(R4SearchPolicyCore.java:431)
    at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClassOrResource(R4SearchPolicyCore.java:392)
    at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4SearchPolicyCore.java:175)
    ... 55 more

<<<<______________________________________________________________________________________________________________________________________________

        (complete log is attached!)

I do not know where is my mistake? Do I have to sign the media.jar at all??
Any ideas??

Thank you!!

regards from Bielefeld,

Thomas Witzig

bachelor student, bachelor of engineering for telecommunication and computer
science

Email: tomwitz87@googlemail.com
ICQ: 310361119

firefox-log.txt (11.8 KB)

opera-log.txt (18.2 KB)