users@jersey.java.net

Absent Code attribute in method that is not native...

From: Scott Glass <scott.glass_at_gmail.com>
Date: Thu, 15 Jul 2010 11:37:03 -0400

Ah never mind, I figured it out. The class loader once again got in the
way.
Once I tweaked that, it started working.

Thanks anyway.

Scott



On 7/14/10 11:56 AM, "Scott Glass" <scott.glass_at_gmail.com> wrote:

> Here we go again. I'm getting this message when I try to create the Client
> object in my code...
>
> <BEGIN SNIPPET>
>
> ClientConfig config = new DefaultClientConfig();
>
> config.getProperties().put(
> ClientConfig.PROPERTY_FOLLOW_REDIRECTS, true);
>
> config.getProperties().put(
> ClientConfig.PROPERTY_BUFFER_RESPONSE_ENTITY_ON_EXCEPTION, true);
>
> myClient = Client.create(config); // Throws the exception here (Line: 146
> in the message below)
>
> <END SNIPPET>
>
> java.lang.ClassFormatError: Absent Code attribute in method that is not
> native or abstract in class file javax/xml/stream/XMLInputFactory
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClassCond(Unknown Source)
> at java.lang.ClassLoader.defineClass(Unknown Source)
> at java.security.SecureClassLoader.defineClass(Unknown Source)
> at java.net.URLClassLoader.defineClass(Unknown Source)
> at java.net.URLClassLoader.access$000(Unknown Source)
> at java.net.URLClassLoader$1.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(Unknown Source)
> at com.bmc.arsys.pluginsvr.plugins.e.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.lang.Class.getDeclaredMethods0(Native Method)
> at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
> at java.lang.Class.getDeclaredMethods(Unknown Source)
> at
> com.sun.jersey.core.reflection.MethodList.getAllDeclaredMethods(MethodList.j
> ava:67)
> at com.sun.jersey.core.reflection.MethodList.<init>(MethodList.java:61)
> at
> com.sun.jersey.core.spi.component.ComponentConstructor.getPostConstructMetho
> d(ComponentConstructor.java:123)
> at
> com.sun.jersey.core.spi.component.ComponentConstructor.<init>(ComponentConst
> ructor.java:117)
> at
> com.sun.jersey.core.spi.component.ProviderFactory.__getComponentProvider(Pro
> viderFactory.java:162)
> at
> com.sun.jersey.core.spi.component.ProviderFactory.getComponentProvider(Provi
> derFactory.java:134)
> at
> com.sun.jersey.core.spi.component.ProviderServices.getComponent(ProviderServ
> ices.java:253)
> at
> com.sun.jersey.core.spi.component.ProviderServices.getProvidersAndServices(P
> roviderServices.java:202)
> at
> com.sun.jersey.core.spi.factory.InjectableProviderFactory.configure(Injectab
> leProviderFactory.java:103)
> at com.sun.jersey.api.client.Client.<init>(Client.java:224)
> at com.sun.jersey.api.client.Client.<init>(Client.java:158)
> at com.sun.jersey.api.client.Client.create(Client.java:573)
> at
> com.sungard.cto.arsystem.plugin.SunGardUpdateService.createEntry(SunGardUpda
> teService.java:146)
>
> Any ideas?
>
> Thanks,
> Scott
>
>
>