Jaspersoft Studio adding uuid when data adapter is changed for report

Raja

I am currently in the process of moving from iReport 4.5.1 to Jaspersoft Studio 5.5. I notice when I change the data adapter in Jaspersoft Studio it adds the uuid tag to the XML of the report.

I have different connections to different databases but I hate having to go into Notepad++ to strip out the uuid="..." out of the XML. Why I keep getting this error when I change which data adapter the report is using?

I originally looked at this issue and while it worked for one connection when I changed the connection of the report (to look from my development database to staging database) it put the uuid's back in the report. When I test the report in development I remove the uuid's and it works, when I change to test the report in staging it puts them back.

Error loading the report template


Message:
    net.sf.jasperreports.engine.JRException: org.xml.sax.SAXParseException: cvc-     complex-type.3.2.2: Attribute 'uuid' is not allowed to appear in element 'jasperReport'.
Level:
SEVERE
Stack Trace:
org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'uuid' is not allowed  to appear in element 'jasperReport'.
    net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:247)
net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:230)
net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:218)
com.jaspersoft.ireport.designer.JrxmlLoader.reloadJasperDesign(JrxmlLoader.java:87)
com.jaspersoft.ireport.designer.JrxmlVisualView.run(JrxmlVisualView.java:505)
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
cvc-complex-type.3.2.2: Attribute 'uuid' is not allowed to appear in element  'jasperReport'.
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195)
com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:131)
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:384)
com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:318)
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(XMLSchemaValidator.java:423)
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.reportSchemaError(XMLSchemaValidator.java:3188)
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.processAttributes(XMLSchemaValidator.java:2665)
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:2072)
com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:711)
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:400)
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:626)
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3104)
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:921)
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647)
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:511)
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
 com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)
org.apache.commons.digester.Digester.parse(Digester.java:1892)
net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:243)
net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:230)
net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:218)
com.jaspersoft.ireport.designer.JrxmlLoader.reloadJasperDesign(JrxmlLoader.java:87)
com.jaspersoft.ireport.designer.JrxmlVisualView.run(JrxmlVisualView.java:505)
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
mrabbi

I think the UUID attribute was introduced in JasperReports 4.6.0. Therefore in order to get rid of it, you should set the compatibility mode to use JasperReports 4.5.0. This because every new version of Jaspersoft Studio or even iReport, uses the last version available of the JR library.

In Jaspersoft Studio you can set the compatibility mode at global level via "Window > Preferences > Jaspersoft Studio", then via the combo select 4.5.0 version. This will apply settings at workspace level. However you can customize this information via the project properties or even file properties. This can be really useful in common use case where you want to use the last JR version for all your reports, but you have a specific report that you want to be "JR 4.5.0" compliant.

Hope this solves your doubts and question.

Best regards, Massimo.

P.S: Below screenshots of the configuration pages

Workspace level Settings

Project level Settings

File level Settings

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Adding values to a Report when there is no Data in query SSRS

From Dev

Displaying an ArrayList parameter with a certain format in JasperSoft Studio report

From Dev

Displaying an ArrayList parameter with a certain format in JasperSoft Studio report

From Dev

Add custom data source to Jaspersoft Studio

From Dev

Working with multiple data sources in jaspersoft studio

From Dev

Working with multiple data sources in jaspersoft studio

From Dev

Add custom data source to Jaspersoft Studio

From Dev

Class Interface's uuid and DispID are changed when migrating from Visual Studio 2010 to 2012

From Dev

Class Interface's uuid and DispID are changed when migrating from Visual Studio 2010 to 2012

From Dev

Data will not shown at Jaspersoft Studio 6.2.2 data set dialog

From Dev

Is there a way to prevent the gridview from scrolling to its top position when its adapter's data is changed?

From Dev

android adapter data changed to notify host activity

From Dev

jaspersoft studio 6.2 XML Data source ssl error

From Dev

Updating the list view when the adapter data changes, in visual-studio android sdk

From Dev

Updating textview on activity once data in adapter class is changed

From Dev

refresh listview after data has changed from custom adapter

From Dev

data is changed when inserting into database

From Dev

Jaspersoft Report using SQL Server Stored Procedure

From Dev

cannot be resolved to a Type Jaspersoft Studio

From Dev

Jaspersoft Studio Custom Component Tutorial

From Dev

Jaspersoft Studio Custom Component Tutorial

From Dev

Is there a way to combine / overwrite data when using two sources in Cognos Report Studio?

From Dev

Date format changed when printing report in c#

From Dev

Adding Data to a table with Visual Studio

From Dev

Error on adding jsreport report template in Visual Studio 2015

From Dev

Custom adapter replaces old items when adding new

From Dev

RDLC Report Data not refreshing and crashing Visual studio

From Dev

How to access the private data studio report?

From Dev

Adding and removing class to a div when checkbox changed in AngularJs

Related Related

  1. 1

    Adding values to a Report when there is no Data in query SSRS

  2. 2

    Displaying an ArrayList parameter with a certain format in JasperSoft Studio report

  3. 3

    Displaying an ArrayList parameter with a certain format in JasperSoft Studio report

  4. 4

    Add custom data source to Jaspersoft Studio

  5. 5

    Working with multiple data sources in jaspersoft studio

  6. 6

    Working with multiple data sources in jaspersoft studio

  7. 7

    Add custom data source to Jaspersoft Studio

  8. 8

    Class Interface's uuid and DispID are changed when migrating from Visual Studio 2010 to 2012

  9. 9

    Class Interface's uuid and DispID are changed when migrating from Visual Studio 2010 to 2012

  10. 10

    Data will not shown at Jaspersoft Studio 6.2.2 data set dialog

  11. 11

    Is there a way to prevent the gridview from scrolling to its top position when its adapter's data is changed?

  12. 12

    android adapter data changed to notify host activity

  13. 13

    jaspersoft studio 6.2 XML Data source ssl error

  14. 14

    Updating the list view when the adapter data changes, in visual-studio android sdk

  15. 15

    Updating textview on activity once data in adapter class is changed

  16. 16

    refresh listview after data has changed from custom adapter

  17. 17

    data is changed when inserting into database

  18. 18

    Jaspersoft Report using SQL Server Stored Procedure

  19. 19

    cannot be resolved to a Type Jaspersoft Studio

  20. 20

    Jaspersoft Studio Custom Component Tutorial

  21. 21

    Jaspersoft Studio Custom Component Tutorial

  22. 22

    Is there a way to combine / overwrite data when using two sources in Cognos Report Studio?

  23. 23

    Date format changed when printing report in c#

  24. 24

    Adding Data to a table with Visual Studio

  25. 25

    Error on adding jsreport report template in Visual Studio 2015

  26. 26

    Custom adapter replaces old items when adding new

  27. 27

    RDLC Report Data not refreshing and crashing Visual studio

  28. 28

    How to access the private data studio report?

  29. 29

    Adding and removing class to a div when checkbox changed in AngularJs

HotTag

Archive