com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException

310 views
Skip to first unread message

zorro

unread,
Feb 19, 2011, 8:02:12 AM2/19/11
to Java API for KML

HelloKML.java
JavaAPIforKml.jar
JAXB2_20110115.jar
JDK1.6
windows7

help me....thanks


com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 7
counts of IllegalAnnotationExceptions
XmlElementRef points to a non-existent class.
this problem is related to the following location:
at protected de.micromata.opengis.kml.v_2_2_0.Feature
de.micromata.opengis.kml.v_2_2_0.Kml.feature
at de.micromata.opengis.kml.v_2_2_0.Kml
XmlElementRef points to a non-existent class.
this problem is related to the following location:
at protected de.micromata.opengis.kml.v_2_2_0.AbstractView
de.micromata.opengis.kml.v_2_2_0.NetworkLinkControl.abstractView
at de.micromata.opengis.kml.v_2_2_0.NetworkLinkControl
at protected de.micromata.opengis.kml.v_2_2_0.NetworkLinkControl
de.micromata.opengis.kml.v_2_2_0.Kml.networkLinkControl
at de.micromata.opengis.kml.v_2_2_0.Kml
XmlElementRef points to a non-existent class.
this problem is related to the following location:
at protected java.util.List
de.micromata.opengis.kml.v_2_2_0.Delete.feature
at de.micromata.opengis.kml.v_2_2_0.Delete
at protected java.util.List
de.micromata.opengis.kml.v_2_2_0.Update.createOrDeleteOrChange
at de.micromata.opengis.kml.v_2_2_0.Update
at protected de.micromata.opengis.kml.v_2_2_0.Update
de.micromata.opengis.kml.v_2_2_0.NetworkLinkControl.update
at de.micromata.opengis.kml.v_2_2_0.NetworkLinkControl
at protected de.micromata.opengis.kml.v_2_2_0.NetworkLinkControl
de.micromata.opengis.kml.v_2_2_0.Kml.networkLinkControl
at de.micromata.opengis.kml.v_2_2_0.Kml
XmlElementRef points to a non-existent class.
this problem is related to the following location:
at protected de.micromata.opengis.kml.v_2_2_0.AbstractView
de.micromata.opengis.kml.v_2_2_0.Feature.abstractView
at de.micromata.opengis.kml.v_2_2_0.Feature
at protected java.util.List
de.micromata.opengis.kml.v_2_2_0.Delete.feature
at de.micromata.opengis.kml.v_2_2_0.Delete
at protected java.util.List
de.micromata.opengis.kml.v_2_2_0.Update.createOrDeleteOrChange
at de.micromata.opengis.kml.v_2_2_0.Update
at protected de.micromata.opengis.kml.v_2_2_0.Update
de.micromata.opengis.kml.v_2_2_0.NetworkLinkControl.update
at de.micromata.opengis.kml.v_2_2_0.NetworkLinkControl
at protected de.micromata.opengis.kml.v_2_2_0.NetworkLinkControl
de.micromata.opengis.kml.v_2_2_0.Kml.networkLinkControl
at de.micromata.opengis.kml.v_2_2_0.Kml
XmlElementRef points to a non-existent class.
this problem is related to the following location:
at protected de.micromata.opengis.kml.v_2_2_0.TimePrimitive
de.micromata.opengis.kml.v_2_2_0.Feature.timePrimitive
at de.micromata.opengis.kml.v_2_2_0.Feature
at protected java.util.List
de.micromata.opengis.kml.v_2_2_0.Delete.feature
at de.micromata.opengis.kml.v_2_2_0.Delete
at protected java.util.List
de.micromata.opengis.kml.v_2_2_0.Update.createOrDeleteOrChange
at de.micromata.opengis.kml.v_2_2_0.Update
at protected de.micromata.opengis.kml.v_2_2_0.Update
de.micromata.opengis.kml.v_2_2_0.NetworkLinkControl.update
at de.micromata.opengis.kml.v_2_2_0.NetworkLinkControl
at protected de.micromata.opengis.kml.v_2_2_0.NetworkLinkControl
de.micromata.opengis.kml.v_2_2_0.Kml.networkLinkControl
at de.micromata.opengis.kml.v_2_2_0.Kml
XmlElementRef points to a non-existent class.
this problem is related to the following location:
at protected java.util.List
de.micromata.opengis.kml.v_2_2_0.Feature.styleSelector
at de.micromata.opengis.kml.v_2_2_0.Feature
at protected java.util.List
de.micromata.opengis.kml.v_2_2_0.Delete.feature
at de.micromata.opengis.kml.v_2_2_0.Delete
at protected java.util.List
de.micromata.opengis.kml.v_2_2_0.Update.createOrDeleteOrChange
at de.micromata.opengis.kml.v_2_2_0.Update
at protected de.micromata.opengis.kml.v_2_2_0.Update
de.micromata.opengis.kml.v_2_2_0.NetworkLinkControl.update
at de.micromata.opengis.kml.v_2_2_0.NetworkLinkControl
at protected de.micromata.opengis.kml.v_2_2_0.NetworkLinkControl
de.micromata.opengis.kml.v_2_2_0.Kml.networkLinkControl
at de.micromata.opengis.kml.v_2_2_0.Kml
XmlElementRef points to a non-existent class.
this problem is related to the following location:
at protected java.util.List
de.micromata.opengis.kml.v_2_2_0.Create.container
at de.micromata.opengis.kml.v_2_2_0.Create
at protected java.util.List
de.micromata.opengis.kml.v_2_2_0.Update.createOrDeleteOrChange
at de.micromata.opengis.kml.v_2_2_0.Update
at protected de.micromata.opengis.kml.v_2_2_0.Update
de.micromata.opengis.kml.v_2_2_0.NetworkLinkControl.update
at de.micromata.opengis.kml.v_2_2_0.NetworkLinkControl
at protected de.micromata.opengis.kml.v_2_2_0.NetworkLinkControl
de.micromata.opengis.kml.v_2_2_0.Kml.networkLinkControl
at de.micromata.opengis.kml.v_2_2_0.Kml

at com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException
$Builder.check(IllegalAnnotationsException.java:66)
at
com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:
361)
at
com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:
217)
at
com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:
76)
at
com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:
55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:210)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:381)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
at de.micromata.opengis.kml.v_2_2_0.Kml.getJaxbContext(Kml.java:631)
at de.micromata.opengis.kml.v_2_2_0.Kml.createMarshaller(Kml.java:
640)
at de.micromata.opengis.kml.v_2_2_0.Kml.marshal(Kml.java:739)
at de.micromata.jak.examples.HelloKML.main(HelloKML.java:19)
com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 7
counts of IllegalAnnotationExceptions
XmlElementRef points to a non-existent class.
this problem is related to the following location:
at protected de.micromata.opengis.kml.v_2_2_0.Feature
de.micromata.opengis.kml.v_2_2_0.Kml.feature
at de.micromata.opengis.kml.v_2_2_0.Kml
XmlElementRef points to a non-existent class.
this problem is related to the following location:
at protected de.micromata.opengis.kml.v_2_2_0.AbstractView
de.micromata.opengis.kml.v_2_2_0.NetworkLinkControl.abstractView
at de.micromata.opengis.kml.v_2_2_0.NetworkLinkControl
at protected de.micromata.opengis.kml.v_2_2_0.NetworkLinkControl
de.micromata.opengis.kml.v_2_2_0.Kml.networkLinkControl
at de.micromata.opengis.kml.v_2_2_0.Kml
XmlElementRef points to a non-existent class.
this problem is related to the following location:
at protected java.util.List
de.micromata.opengis.kml.v_2_2_0.Delete.feature
at de.micromata.opengis.kml.v_2_2_0.Delete
at protected java.util.List
de.micromata.opengis.kml.v_2_2_0.Update.createOrDeleteOrChange
at de.micromata.opengis.kml.v_2_2_0.Update
at protected de.micromata.opengis.kml.v_2_2_0.Update
de.micromata.opengis.kml.v_2_2_0.NetworkLinkControl.update
at de.micromata.opengis.kml.v_2_2_0.NetworkLinkControl
at protected de.micromata.opengis.kml.v_2_2_0.NetworkLinkControl
de.micromata.opengis.kml.v_2_2_0.Kml.networkLinkControl
at de.micromata.opengis.kml.v_2_2_0.Kml
XmlElementRef points to a non-existent class.
this problem is related to the following location:
at protected de.micromata.opengis.kml.v_2_2_0.AbstractView
de.micromata.opengis.kml.v_2_2_0.Feature.abstractView
at de.micromata.opengis.kml.v_2_2_0.Feature
at protected java.util.List
de.micromata.opengis.kml.v_2_2_0.Delete.feature
at de.micromata.opengis.kml.v_2_2_0.Delete
at protected java.util.List
de.micromata.opengis.kml.v_2_2_0.Update.createOrDeleteOrChange
at de.micromata.opengis.kml.v_2_2_0.Update
at protected de.micromata.opengis.kml.v_2_2_0.Update
de.micromata.opengis.kml.v_2_2_0.NetworkLinkControl.update
at de.micromata.opengis.kml.v_2_2_0.NetworkLinkControl
at protected de.micromata.opengis.kml.v_2_2_0.NetworkLinkControl
de.micromata.opengis.kml.v_2_2_0.Kml.networkLinkControl
at de.micromata.opengis.kml.v_2_2_0.Kml
XmlElementRef points to a non-existent class.
this problem is related to the following location:
at protected de.micromata.opengis.kml.v_2_2_0.TimePrimitive
de.micromata.opengis.kml.v_2_2_0.Feature.timePrimitive
at de.micromata.opengis.kml.v_2_2_0.Feature
at protected java.util.List
de.micromata.opengis.kml.v_2_2_0.Delete.feature
at de.micromata.opengis.kml.v_2_2_0.Delete
at protected java.util.List
de.micromata.opengis.kml.v_2_2_0.Update.createOrDeleteOrChange
at de.micromata.opengis.kml.v_2_2_0.Update
at protected de.micromata.opengis.kml.v_2_2_0.Update
de.micromata.opengis.kml.v_2_2_0.NetworkLinkControl.update
at de.micromata.opengis.kml.v_2_2_0.NetworkLinkControl
at protected de.micromata.opengis.kml.v_2_2_0.NetworkLinkControl
de.micromata.opengis.kml.v_2_2_0.Kml.networkLinkControl
at de.micromata.opengis.kml.v_2_2_0.Kml
XmlElementRef points to a non-existent class.
this problem is related to the following location:
at protected java.util.List
de.micromata.opengis.kml.v_2_2_0.Feature.styleSelector
at de.micromata.opengis.kml.v_2_2_0.Feature
at protected java.util.List
de.micromata.opengis.kml.v_2_2_0.Delete.feature
at de.micromata.opengis.kml.v_2_2_0.Delete
at protected java.util.List
de.micromata.opengis.kml.v_2_2_0.Update.createOrDeleteOrChange
at de.micromata.opengis.kml.v_2_2_0.Update
at protected de.micromata.opengis.kml.v_2_2_0.Update
de.micromata.opengis.kml.v_2_2_0.NetworkLinkControl.update
at de.micromata.opengis.kml.v_2_2_0.NetworkLinkControl
at protected de.micromata.opengis.kml.v_2_2_0.NetworkLinkControl
de.micromata.opengis.kml.v_2_2_0.Kml.networkLinkControl
at de.micromata.opengis.kml.v_2_2_0.Kml
XmlElementRef points to a non-existent class.
this problem is related to the following location:
at protected java.util.List
de.micromata.opengis.kml.v_2_2_0.Create.container
at de.micromata.opengis.kml.v_2_2_0.Create
at protected java.util.List
de.micromata.opengis.kml.v_2_2_0.Update.createOrDeleteOrChange
at de.micromata.opengis.kml.v_2_2_0.Update
at protected de.micromata.opengis.kml.v_2_2_0.Update
de.micromata.opengis.kml.v_2_2_0.NetworkLinkControl.update
at de.micromata.opengis.kml.v_2_2_0.NetworkLinkControl
at protected de.micromata.opengis.kml.v_2_2_0.NetworkLinkControl
de.micromata.opengis.kml.v_2_2_0.Kml.networkLinkControl
at de.micromata.opengis.kml.v_2_2_0.Kml

at com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException
$Builder.check(IllegalAnnotationsException.java:66)
at
com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:
361)
at
com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:
217)
at
com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:
76)
at
com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:
55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:210)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:381)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
at de.micromata.opengis.kml.v_2_2_0.Kml.getJaxbContext(Kml.java:631)
at de.micromata.opengis.kml.v_2_2_0.Kml.createMarshaller(Kml.java:
640)
at de.micromata.opengis.kml.v_2_2_0.Kml.marshal(Kml.java:682)
at de.micromata.opengis.kml.v_2_2_0.Kml.marshal(Kml.java:759)
at de.micromata.jak.examples.HelloKML.main(HelloKML.java:21)

zorro

unread,
Mar 14, 2011, 12:16:26 PM3/14/11
to Java API for KML
JAK only works if all dependencies are resolved! This is mainly JAXB!
JAXB needed to be downloaded and the containing JARs put into the
classpath.
Version 2.1.xx of JAXB should be fine.

After downloading JAXB 2.1.xx (or a later version) the jar needed to
be executed with this command: java -jar JAXB2_200xxxxx.jar
or on Windows or Mac, a double-click on the jar file will execute it.

In the next step accept the license contract (if you agree) and take a
look in the jaxb-ri-200xxxxx/bin folder. From there copy these files
to you own lib folder in your JAK project:

activation.jar
jaxb-api.jar
jaxb-impl.jar
jsr173_1.0_api
(optional: the jaxb-xjc.jar, if you like to use the
XJCPluginJavaApiforKml as well)
Reply all
Reply to author
Forward
0 new messages