Jump to content

arjun.sharma

Members
  • Posts

    2
  • Joined

  • Last visited

  • Days Won

    1

arjun.sharma last won the day on October 11

arjun.sharma had the most liked content!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

arjun.sharma's Achievements

Newbie

Newbie (1/14)

  • Dedicated Rare
  • Conversation Starter Rare
  • One Year In
  • Week One Done
  • One Month Later

Recent Badges

1

Reputation

  1. Hi, In our Maven application, we are in the process of upgrading the JasperReports library from version 6.19.0 to 7.0.0. During this upgrade we also learned about upgrading .jrxml file templates. The jrxml file contains queryString, groupExpression, staticText, reportElement tags. Kindly suggest the best practice to upgrade the existing .jrxml files (kindly share in case any details document is available) or do we need to re-design the .jrxml template. Re-creating .jrxml template file is a cumbersome process for us as we have many such files in our application. Note: We also tried to import our existing .jrxml files in Jasper studio 7.0 and saving them to upgrade but that is not working in our application. Thanks,
  2. Hi, In our Maven application, we are in the process of upgrading the JasperReports library from version 6.19.0 to 7.0.0. During this upgrade, we encountered the following exception and are unsure what might be causing it. Caused by: net.sf.jasperreports.jackson.util.JacksonRuntimeException: com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Could not resolve type id 'chart' as a subtype of `net.sf.jasperreports.engine.JRChild`: known type ids = [] (for POJO property 'element') at [Source: (ByteArrayInputStream); line: 1000, column: 4] (through reference chain: net.sf.jasperreports.engine.design.JasperDesign["detail"]->net.sf.jasperreports.engine.design.JRDesignSection["band"]->java.util.ArrayList[0]->net.sf.jasperreports.engine.design.JRDesignBand["element"]->java.util.ArrayList[0]) at net.sf.jasperreports.jackson.util.JacksonUtil.loadXml(JacksonUtil.java:309) at net.sf.jasperreports.engine.xml.JacksonReportLoader.loadReport(JacksonReportLoader.java:66) at net.sf.jasperreports.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:165) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:149) at net.sf.jasperreports.engine.xml.JRXmlLoader.load(JRXmlLoader.java:136) at net.sf.jasperreports.engine.JasperCompileManager.compile(JasperCompileManager.java:334) at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:601) at com.pb.spectrum.platform.server.common.reporting.jasper.JasperEngine.createTemplate(JasperEngine.java:125) ... 48 common frames omitted Caused by: com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Could not resolve type id 'chart' as a subtype of `net.sf.jasperreports.engine.JRChild`: known type ids = [] (for POJO property 'element') at [Source: (ByteArrayInputStream); line: 1000, column: 4] (through reference chain: net.sf.jasperreports.engine.design.JasperDesign["detail"]->net.sf.jasperreports.engine.design.JRDesignSection["band"]->java.util.ArrayList[0]->net.sf.jasperreports.engine.design.JRDesignBand["element"]->java.util.ArrayList[0]) at com.fasterxml.jackson.databind.exc.InvalidTypeIdException.from(InvalidTypeIdException.java:43) at com.fasterxml.jackson.databind.DeserializationContext.invalidTypeIdException(DeserializationContext.java:2040) at com.fasterxml.jackson.databind.DeserializationContext.handleUnknownTypeId(DeserializationContext.java:1590) at com.fasterxml.jackson.databind.jsontype.impl.TypeDeserializerBase._handleUnknownTypeId(TypeDeserializerBase.java:298) at com.fasterxml.jackson.databind.jsontype.impl.TypeDeserializerBase._findDeserializer(TypeDeserializerBase.java:165) at com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer._deserializeTypedForId(AsPropertyTypeDeserializer.java:151) at com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer.deserializeTypedFromObject(AsPropertyTypeDeserializer.java:136) at com.fasterxml.jackson.databind.deser.AbstractDeserializer.deserializeWithType(AbstractDeserializer.java:263) at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer._deserializeFromArray(CollectionDeserializer.java:363) at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:246) at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:30) at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:129) at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:310) at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:177) at com.fasterxml.jackson.dataformat.xml.deser.WrapperHandlingDeserializer.deserialize(WrapperHandlingDeserializer.java:122) at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer._deserializeFromArray(CollectionDeserializer.java:361) at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:246) at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:30) at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:129) at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:273) at com.fasterxml.jackson.dataformat.xml.deser.WrapperHandlingDeserializer.deserialize(WrapperHandlingDeserializer.java:131) at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserializeWith(SettableBeanProperty.java:579) at com.fasterxml.jackson.databind.deser.impl.MergingSettableBeanProperty.deserializeAndSet(MergingSettableBeanProperty.java:80) at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:310) at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:177) at com.fasterxml.jackson.dataformat.xml.deser.WrapperHandlingDeserializer.deserialize(WrapperHandlingDeserializer.java:122) at com.fasterxml.jackson.dataformat.xml.deser.XmlDeserializationContext.readRootValue(XmlDeserializationContext.java:104) at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4905) at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3885) at net.sf.jasperreports.jackson.util.JacksonUtil.loadXml(JacksonUtil.java:305) ... 55 common frames omitted We have imported the .jrxml files into Jaspersoft Studio version 7.0.0 in order to upgrade them. Will simply importing and saving the .jrxml files in Jaspersoft Studio 7.0.0 suffice, or is there another solution we should consider for upgrading the .jrxml files?
×
×
  • Create New...