Java.util.ConcurrentModificationException

37 views
Skip to first unread message

Tim

unread,
Aug 30, 2013, 1:18:51 PM8/30/13
to javaap...@googlegroups.com
Hi,

     I am working on an app which continually takes lat/lon points off the network and plots them on google earth using JAK.  After receiving and plotting ~50 points
I get a ConcurrentModificationException thrown when the following line is executed:    glm.kml.marshal(new File(fileName))....which is in the mapDraw file called
out in the stack trace. After that it is all library calls in the stack trace.

   Here is the stack trace from the exception:   


 Exception in thread "main" java.util.ConcurrentModificationException

at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)

at java.util.AbstractList$Itr.next(AbstractList.java:343)

at com.sun.xml.bind.v2.runtime.reflect.Lister$CollectionLister$1.next(Lister.java:288)

at com.sun.xml.bind.v2.runtime.property.ArrayReferenceNodeProperty.serializeListBody(ArrayReferenceNodeProperty.java:107)

at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:159)

at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:361)

at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:352)

at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:352)

at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsSoleContent(XMLSerializer.java:593)

at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeRoot(ClassBeanInfoImpl.java:342)

at com.sun.xml.bind.v2.runtime.property.SingleReferenceNodeProperty.serializeBody(SingleReferenceNodeProperty.java:115)

at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:361)

at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsSoleContent(XMLSerializer.java:593)

at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeRoot(ClassBeanInfoImpl.java:342)

at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsRoot(XMLSerializer.java:494)

at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:323)

at com.sun.xml.bind.v2.runtime.MarshallerImpl.marshal(MarshallerImpl.java:251)

at javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:75)

at de.micromata.opengis.kml.v_2_2_0.Kml.marshal(Kml.java:683)

at de.micromata.opengis.kml.v_2_2_0.Kml.marshal(Kml.java:759)

at mapDraw.main(mapDraw.java:75)  

   I understand what the exception is but since it seems to be coming from calls in the JAK files I'm wondering if maybe we are asking too much
of JAK (Not using it as it was intended...ie...constant place mark creation) or if this is a know bug which was fixed in a later revision or what...
Any help would be very appreciated.  Thanks in advance.

  tim 
Reply all
Reply to author
Forward
0 new messages