Проблема заключается в следующем. Есть java-приложение, которое может запускать как десктопное приложение и как аплет. Раньше оно использовало библиотеку:
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpasyncclient</artifactId>
<version>4.0.2</version>
</dependency>
Теперь понадобилось перейти на версию 4.1.1.
Теперь при запуске приложения в виде аплета оно выкидывает исключение:
Exception on executing task: Truncated class file java.lang.ClassFormatError: Truncated class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.defineClassHelper(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.access$100(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Unknown Source)
at sun.plugin2.applet.JNLP2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at ru.kih.sin.client.core.HttpUrlRemoteClientFactory$1.call(HttpUrlRemoteClientFactory.java:37)
at ru.kih.sin.client.core.HttpUrlRemoteClientFactory$1.call(HttpUrlRemoteClientFactory.java:25)
at ru.kih.util.LazyInitialiser.get(LazyInitialiser.java:85)
at ru.kih.sin.client.core.HttpUrlRemoteClientFactory.newInstance(HttpUrlRemoteClientFactory.java:63)
at ru.kih.sin.client.core.HttpUrlRemoteClientFactory.newInstance(HttpUrlRemoteClientFactory.java:23)
at ru.kih.glue.BindingRule.newInstance(BindingRule.java:42)
at ru.kih.glue.Glue.get(Glue.java:43)
at ru.kih.sin.client.rpc.RpcBeansFactory.newInstance(RpcBeansFactory.java:62)
at ru.kih.sin.client.rpc.RpcBeansFactory.newInstance(RpcBeansFactory.java:23)
at ru.kih.glue.BindingRule.newInstance(BindingRule.java:42)
at ru.kih.glue.NewInstanceCallback.call(NewInstanceCallback.java:18)
at ru.kih.glue.NewInstanceCallback.call(NewInstanceCallback.java:9)
at ru.kih.glue.Waiter.call(Waiter.java:29)
at ru.kih.glue.WaiterCall.run(WaiterCall.java:18)
at ru.kih.glue.DelayedExecutor.execute(DelayedExecutor.java:30)
at ru.kih.glue.Instancer.register(Instancer.java:89)
at ru.kih.glue.Glue.bind(Glue.java:98)
at ru.kih.sin.client.core.ServerConnectionInitializer.init(ServerConnectionInitializer.java:29)
at ru.kih.sin.client.core.ApplicationImpl.loadInitializers(ApplicationImpl.java:99)
at ru.kih.sin.client.core.ApplicationImpl.access$100(ApplicationImpl.java:31)
at ru.kih.sin.client.core.ApplicationImpl$1.run(ApplicationImpl.java:63)
at ru.kih.sin.client.core.AbstractApplication$3.run(AbstractApplication.java:255)
at ru.kih.concurrent.task.Task.run(Task.java:53)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
В десктопной версии все работает нормально.
Подскажите в чем может быть причина?