[sip-comm-dev] NoClassDefError for gui/main/login/ new Class


#1

Hi,
We have added a class as well as done some changes within
impl/gui/main/login
and we want to access that class from impl/protocol/sip/security

But, I am getting a
Exception in thread "EventScannerThread" java.lang.NoClassDefFoundError:
net/java/sip/communicator/impl/gui/main/login/NewIdentity

We were able to make changes to the login window, as per our proposed
authentication requirement (multi-factoring), storing them in
userCredentials, however when accessing that information in
SipSecurityManager is giving this error.

Do we need to add something to the build.xml file to handle this new files ?
It seemed to work out fine.
Or are some additional changes required for adding this to the bundles ? (I
doubt, if they are required, but i am very new to Sip-communicator)

Thanks in advance
Samir


#2

Hello Samir,

First, it is not a good thing to import stuff from media implementation
in a protocol implementation. It's better to make them available via
the media service. And generally, different implementation communicates
via service or interface.

Second, to use a class from a package in another one, you have to be sure that
this class is exported by the owning package and imported by the one which
want to use it. Impot/exports are done via manifest files.

For your case, if you look here net/java/sip/communicator/impl/protocol/sip/sip.provider.manifest.mf
you will see that the media service is already imported, so what you have to do
is to make features brought by your class available via the media service by creating
interfaces for example to access them.

Hope it will hepl
    Sympho.

Samir S a �crit :

···

Hi,
We have added a class as well as done some changes within impl/gui/main/login
and we want to access that class from impl/protocol/sip/security

But, I am getting a
Exception in thread "EventScannerThread" java.lang.NoClassDefFoundError: net/java/sip/communicator/impl/gui/main/login/NewIdentity

We were able to make changes to the login window, as per our proposed authentication requirement (multi-factoring), storing them in userCredentials, however when accessing that information in SipSecurityManager is giving this error.

Do we need to add something to the build.xml file to handle this new files ? It seemed to work out fine.
Or are some additional changes required for adding this to the bundles ? (I doubt, if they are required, but i am very new to Sip-communicator)

Thanks in advance
Samir

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


#3

Just an update to this query.
I checked and sc-bundles/swing-ui.jar does contain the newly added class
files.

I also have checked the appropriate import for the
SipSecurityManager.java....
import net.java.sip.communicator.impl.gui.main.*;
import net.java.sip.communicator.impl.gui.main.login.*;

What else could I be missing ?

Thanks
Samir

···

On 9/20/07, Samir S <samir.bot@gmail.com> wrote:

Hi,
We have added a class as well as done some changes within
impl/gui/main/login
and we want to access that class from impl/protocol/sip/security

But, I am getting a
Exception in thread "EventScannerThread" java.lang.NoClassDefFoundError:
net/java/sip/communicator/impl/gui/main/login/NewIdentity

We were able to make changes to the login window, as per our proposed
authentication requirement (multi-factoring), storing them in
userCredentials, however when accessing that information in
SipSecurityManager is giving this error.

Do we need to add something to the build.xml file to handle this new files
? It seemed to work out fine.
Or are some additional changes required for adding this to the bundles ?
(I doubt, if they are required, but i am very new to Sip-communicator)

Thanks in advance
Samir


#4

Finally I got the point, when I merged the lastest subversion-changes to my
local development branch. Somebody (I cannot find the mail at the moment)
was telling a bug with "cvs" in the build ID.

In the nighltybuildid.java from the repositiory the build id is:
    public static final String BUILD_ID="0.build.by.CVS";

actually the nightly build is done automatically, but it is checked out from
subversion, so the issue is, that it should be
  public static final String BUILD_ID="0.build.by.SVN";

did you mean that?

Cheers, Thomas

···

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


#5

Hi Thomas,

Yes, I think this is what Sympho was referring to.

Thanks for the reminder! Fixed and committed.

Cheers
Emil

Thomas Hofer wrote:

···

Finally I got the point, when I merged the lastest subversion-changes to my
local development branch. Somebody (I cannot find the mail at the moment)
was telling a bug with "cvs" in the build ID.

In the nighltybuildid.java from the repositiory the build id is:
    public static final String BUILD_ID="0.build.by.CVS";

actually the nightly build is done automatically, but it is checked out from
subversion, so the issue is, that it should be
  public static final String BUILD_ID="0.build.by.SVN";

did you mean that?

Cheers, Thomas

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