Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android2 - remove references to java.beans (issue #1) #2

Open
wants to merge 2 commits into
base: android2
Choose a base branch
from

Conversation

mrsutherland
Copy link

This should resolve #1 by replacing the java.beans.Introspector references with com.googlecode.openbeans.Introspector. I added the openbeans jar to lib/redist folder and included it in the build_repackaged.xml file.

@ghost
Copy link

ghost commented Oct 4, 2013

hi, i am using the jars provided in the libs folder, but i still get the error java.lang.NoClassDefFoundError: java.beans.Introspector . Where could i get the jar that has this replaced ? Please help. Thank you

@ghost
Copy link

ghost commented Oct 4, 2013

the stack trace if you could please help me out as to what to do:

java.lang.NoClassDefFoundError: java.beans.Introspector
at ae.com.sun.xml.bind.v2.model.impl.GetterSetterPropertySeed.camelize(GetterSetterPropertySeed.java:106)
at ae.com.sun.xml.bind.v2.model.impl.GetterSetterPropertySeed.getName(GetterSetterPropertySeed.java:98)
at ae.com.sun.xml.bind.v2.model.impl.GetterSetterPropertySeed.getName(GetterSetterPropertySeed.java:89)
at ae.com.sun.xml.bind.v2.model.impl.GetterSetterPropertySeed.hasAnnotation(GetterSetterPropertySeed.java:84)
at ae.com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl$RuntimePropertySeed.hasAnnotation(RuntimeClassInfoImpl.java:326)
at ae.com.sun.xml.bind.v2.model.impl.PropertyInfoImpl.(PropertyInfoImpl.java:121)
at ae.com.sun.xml.bind.v2.model.impl.ERPropertyInfoImpl.(ERPropertyInfoImpl.java:57)
at ae.com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl.(ElementPropertyInfoImpl.java:101)
at ae.com.sun.xml.bind.v2.model.impl.RuntimeElementPropertyInfoImpl.(RuntimeElementPropertyInfoImpl.java:63)
at ae.com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.createElementProperty(RuntimeClassInfoImpl.java:176)
at ae.com.sun.xml.bind.v2.model.impl.ClassInfoImpl.addProperty(ClassInfoImpl.java:883)
at ae.com.sun.xml.bind.v2.model.impl.ClassInfoImpl.findGetterSetterProperties(ClassInfoImpl.java:1008)
at ae.com.sun.xml.bind.v2.model.impl.ClassInfoImpl.getProperties(ClassInfoImpl.java:314)
at ae.com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.getProperties(RuntimeClassInfoImpl.java:187)
at ae.com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:248)
at ae.com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:105)
at ae.com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:86)
at ae.com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:214)
at ae.com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:100)
at ae.com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:86)
at ae.com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:320)
at ae.com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:335)
at ae.com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:461)
at ae.com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:299)
at ae.com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:142)
at ae.com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1164)
at ae.com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:146)

@ghost
Copy link

ghost commented Oct 5, 2013

Sir, i managed to get the class with reference to openbeans, but then this source code doesnot contain files to certain references such as:

com.sun.xml.bind.v2.schemagen.xmlschema.TypeHost, and many others in the same package. Where do i get these files from?

@mrsutherland
Copy link
Author

I'm glad you got it working, I don't use the com.sun.xml.bind.v2.schemagen.xmlschema package in my code for Android. Are you using JAXB to generate a schema within Android?

@ghost
Copy link

ghost commented Oct 9, 2013

This package contains to references to other classes that are not present in the package :(. I even tried removing the package, but it looked like this package was also referenced from other classes also, so i could not remove the package either. I am using jaxb to parse xmls that i receive as responses from webservice. It is easier converting xml to POJO using jaxb. By the way sir, where do i put the jaxb jar for android with the classes present in them, incase any one else might need it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant