[sip-comm-dev] "java.lang.LinkageError"-HELP ME


#1

HI,ALL.
i want to use google calendar api,and add those jar into SIP-Communicator's
lib.I have write a interface and impl .when i test this interface ,it is all
right,can respond the right message.But when i test the function in SC(I
have already add the google calendar lib,and the interface and impl.),i got
a terrible erro,i do not meet this erro before.
Do any one meet this?please give me some suggestion.

The erro log is below:
SEVERE: util.UtilActivator.uncaughtException().58 An uncaught exception
occurred in thread=Thread[Thread-17,5,main] and message was: loader
constraint violation: loader (instance of
org/apache/felix/framework/searchpolicy/ContentClassLoader) previously
initiated loading for a different type with name
"com/google/gdata/data/DateTime"
java.lang.LinkageError: loader constraint violation: loader (instance of
org/apache/felix/framework/searchpolicy/ContentClassLoader) previously
initiated loading for a different type with name
"com/google/gdata/data/DateTime"
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at
org.apache.felix.framework.searchpolicy.ContentClassLoader.findClass(ContentClassLoader.java:162)
at
org.apache.felix.framework.searchpolicy.ContentClassLoader.loadClassFromModule(ContentClassLoader.java:51)
at
org.apache.felix.framework.searchpolicy.ContentLoaderImpl.getClass(ContentLoaderImpl.java:121)
at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClassOrResource(R4SearchPolicyCore.java:397)
at
org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4SearchPolicyCore.java:175)
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)
at
net.java.sip.communicator.impl.protocol.sip.CalendarAccessServiceImpl.getCurrentRichPresenceValues(CalendarAccessServiceImpl.java:251)
at
net.java.sip.communicator.impl.protocol.sip.CalendarAccessServiceImpl$startCalendarServiceThread.run(CalendarAccessServiceImpl.java:548)

ยทยทยท

--
Thanks!
Dong Fengyu