Issue Details (XML | Word | Printable)

Key: CONTINUUM-2163
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Maria Catherine Tan
Reporter: Maria Catherine Tan
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Continuum

Getting an Unrecognised tag: 'scmResult' error when upgrading from 1.3.1 to 1.3.2 and 1.3.3-SNAPSHOT using data management tool

Created: 01/Apr/09 10:30 PM   Updated: 22/Aug/09 05:57 AM   Resolved: 22/Aug/09 05:57 AM
Return to search
Component/s: Data Management
Affects Version/s: 1.3.2
Fix Version/s: 1.3.4

Time Tracking:
Not Specified

File Attachments: 1. XML File builds.xml (16 kB)

Issue Links:
dependent
 

Complexity: Intermediate


 Description  « Hide

Exception in thread "main" org.apache.maven.continuum.management.DataManagementException: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[673,22]
Message: Unrecognised tag: 'scmResult'
at org.apache.maven.continuum.management.JdoDataManagementTool.restoreDatabase(JdoDataManagementTool.java:231)
at org.apache.maven.continuum.management.DataManagementCli.processDatabase(DataManagementCli.java:270)
at org.apache.maven.continuum.management.DataManagementCli.main(DataManagementCli.java:170)
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[673,22]
Message: Unrecognised tag: 'scmResult'
at org.apache.maven.continuum.model.project.io.stax.ContinuumStaxReader.parseProject(ContinuumStaxReader.java:2638)
at org.apache.maven.continuum.model.project.io.stax.ContinuumStaxReader.parseProjectGroup(ContinuumStaxReader.java:2846)
at org.apache.maven.continuum.model.project.io.stax.ContinuumStaxReader.parseContinuumDatabase(ContinuumStaxReader.java:1354)
at org.apache.maven.continuum.model.project.io.stax.ContinuumStaxReader.read(ContinuumStaxReader.java:3713)
at org.apache.maven.continuum.model.project.io.stax.ContinuumStaxReader.read(ContinuumStaxReader.java:3729)
at org.apache.maven.continuum.management.JdoDataManagementTool.restoreDatabase(JdoDataManagementTool.java:227)
... 2 more

This happens because 'scmResult' field in the Project was removed starting in 1.3.2



Maria Catherine Tan made changes - 01/Apr/09 10:31 PM
Field Original Value New Value
Assignee Maria Catherine Tan [ ctan ]
Brett Porter added a comment - 22/Apr/09 03:16 AM

do you have a dataset handy for this?

I think we need to change the CLI to use a more flexible parsing that will just ignore extra elements for situations like this.


Brett Porter made changes - 22/Apr/09 03:16 AM
Fix Version/s 1.3.3 [ 15105 ]
Maria Catherine Tan added a comment - 22/Apr/09 09:56 PM

attached sample builds.xml of continuum 1.3.1


Maria Catherine Tan made changes - 22/Apr/09 09:56 PM
Attachment builds.xml [ 41556 ]
Maria Catherine Tan added a comment - 23/Apr/09 02:01 AM - edited

setting strict to false of ContinuumStaxReader.read( Reader reader, boolean strict ) used to work...wonder what changed?

I'm now getting this error:

Exception in thread "main" org.apache.maven.continuum.management.DataManagementException: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[251,27]
Message: expected XMLStreamConstants.START_ELEMENT or XMLStreamConstants.END_ELEMENT not CHARACTERS
at org.apache.maven.continuum.management.JdoDataManagementTool.restoreDatabase(JdoDataManagementTool.java:255)
at org.apache.maven.continuum.management.DataManagementCli.processDatabase(DataManagementCli.java:277)
at org.apache.maven.continuum.management.DataManagementCli.main(DataManagementCli.java:173)
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[251,27]
Message: expected XMLStreamConstants.START_ELEMENT or XMLStreamConstants.END_ELEMENT not CHARACTERS
at com.bea.xml.stream.MXParser.nextTag(MXParser.java:1220)
at org.apache.maven.continuum.model.project.io.stax.ContinuumStaxReader.parseProject(ContinuumStaxReader.java:2373)
at org.apache.maven.continuum.model.project.io.stax.ContinuumStaxReader.parseProjectGroup(ContinuumStaxReader.java:2909)
at org.apache.maven.continuum.model.project.io.stax.ContinuumStaxReader.parseContinuumDatabase(ContinuumStaxReader.java:1354)
at org.apache.maven.continuum.model.project.io.stax.ContinuumStaxReader.read(ContinuumStaxReader.java:3776)
at org.apache.maven.continuum.management.JdoDataManagementTool.restoreDatabase(JdoDataManagementTool.java:251)
... 2 more


Maria Catherine Tan made changes - 18/May/09 08:04 AM
Assignee Maria Catherine Tan [ ctan ]
Maria Catherine Tan made changes - 20/May/09 12:32 AM
Fix Version/s 1.3.3 [ 15105 ]
Fix Version/s 1.3.4 [ 15301 ]
Maria Catherine Tan added a comment - 16/Jun/09 02:34 AM

Made some changes in the CLI:
r785095 1.3.x branch
r785096 trunk

  • allow user to turn on/off strict mode by adding a command line argument -strict. default is false.

Maria Catherine Tan made changes - 16/Jun/09 02:35 AM
Assignee Maria Catherine Tan [ ctan ]
Maria Catherine Tan made changes - 16/Jun/09 02:37 AM
Link This issue depends upon MODELLO-200 [ MODELLO-200 ]
Maria Catherine Tan added a comment - 16/Jun/09 02:37 AM

Created an issue in MODELLO and submitted a patch, which will fix the error encountered when there is an unrecognized tag and strict is set to false.


Maria Catherine Tan added a comment - 22/Aug/09 05:57 AM

Fixed by upgrading modello to 1.1


Maria Catherine Tan made changes - 22/Aug/09 05:57 AM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Closed [ 6 ]