Jump to content
  • java.util.ConcurrentModificationException when "Searching Data Adapters"


    kees.kuip
    Assigned User chicuslavic
    CategoryBug report
    PriorityNormal
    ReproducibilityN/A
    ResolutionFixed
    SeverityMinor
    StatusResolved
    Versionv6.5.1

    This is for version 6.5.1 but I cannot choose that version in the 'Version' dropdown!

     

     

    After starting eclipse I get a popup "Problem Occured" with the message:

     

    An internal error occurred during: "Searching Data Adapters".

    java.util.ConcurrentModificationException

     

    On the commandline I see a lot of exceptions (63!) of JasperReports BEFORE the ConcurrentModificationException:

     

    com.ctc.wstx.exc.WstxParsingException: Received event DTD, instead of START_ELEMENT or END_ELEMENT.

    at [row,col {unknown-source}]: [2,21]

    at com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:614)

    at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:487)

    at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:472)

    at com.ctc.wstx.sr.BasicStreamReader.nextTag(BasicStreamReader.java:1180)

    at com.jaspersoft.studio.data.storage.FileDataAdapterStorage.readXML(FileDataAdapterStorage.java:247)

    at com.jaspersoft.studio.data.storage.FileDataAdapterStorage.readDataADapter(FileDataAdapterStorage.java:262)

    at com.jaspersoft.studio.data.storage.FileDataAdapterStorage.readDataADapter(FileDataAdapterStorage.java:313)

    at com.jaspersoft.studio.data.storage.FileDataAdapterStorage.checkFile(FileDataAdapterStorage.java:230)

    at com.jaspersoft.studio.data.storage.FileDataAdapterStorage.access$0(FileDataAdapterStorage.java:225)

    at com.jaspersoft.studio.data.storage.FileDataAdapterStorage$ResourceVisitor.visit(FileDataAdapterStorage.java:69)

    at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:85)

    at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82)

    at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:86)

    at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:86)

    at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:86)

    at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:86)

    at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:127)

    at org.eclipse.core.internal.resources.Resource.accept(Resource.java:95)

    at org.eclipse.core.internal.resources.Resource.accept(Resource.java:52)

    at com.jaspersoft.studio.data.storage.FileDataAdapterStorage$1.runInWorkspace(FileDataAdapterStorage.java:90)

    at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)

    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

     



    User Feedback

    Recommended Comments

    Changed Resolution from Open to Fixed

    Changed Status from New to Resolved

    Changed Assigned User from - to @chicuslavic


    This is probably a corrupted data adapter file. I changed verbosity to INFO log level, instead of always writing it to console.
    Link to comment
    Share on other sites

    I was using jasperstudio as a plugin in eclipse in a project with thousends of java and xml files.

    My guess is that it finds some xmlfile (not a data adapter file) and decides that it is 'corrupt'.

     

    But a ConcurrentModificationException is something that must be avoided. We often make a copy of a List (or array) before iterating it.

     

    I'm now using jasper studio standalone because the plugin took too much performance. And in it's project are only the reportfiles

    that I linked from the real project.

    Link to comment
    Share on other sites


×
×
  • Create New...