dtrobert Posted July 27, 2009 Share Posted July 27, 2009 Hi, I just upgraded JasperReports from 2.0.5 to 3.5.2. When I compile my templates, I get this stack trace 2009-07-27 16:09:37,944|ERROR|http-80-Processor22[FetchReportCategoriesAction] There was an error fetching all categoriesjava.lang.IllegalArgumentException: When using array of Objects as the value of SCHEMA_SOURCE property , no two Schemas should share the same targetNamespace. at org.apache.xerces.impl.xs.XMLSchemaLoader.processJAXPSchemaSource(Unknown Source) at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source) at org.apache.xerces.impl.xs.XMLSchemaValidator.findSchemaGrammar(Unknown Source) I have hundreds of templates but even if I remove all but one (any one), the same error is shown. (No error when I remove them all of course). Here is this basic templateCode:<?xml version="1.0" encoding="UTF-8" ?><!-- Created with iReport - A designer for JasperReports --><!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd"><jasperReport name="_AlertDetails" columnCount="1" printOrder="Vertical" orientation="Landscape" pageWidth="2000" pageHeight="30" columnWidth="2000" columnSpacing="0" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" whenNoDataType="NoPages" isTitleNewPage="false" isSummaryNewPage="false"> <property name="ireport.scriptlethandling" value="0" /> <property name="ireport.encoding" value="UTF-8" /> <import value="java.util.*" /> <import value="net.sf.jasperreports.engine.*" /> <import value="net.sf.jasperreports.engine.data.*" /> <parameter name="clarusdb" isForPrompting="true" class="java.sql.Connection"/> <parameter name="reportsPath" isForPrompting="true" class="java.lang.String"/> <group name="Calls" > <groupExpression><![CDATA[]]></groupExpression> <groupHeader> <band height="30" isSplitAllowed="true" > <subreport isUsingCache="true"> <reportElement mode="Transparent" x="0" y="0" width="2000" height="30" key="subreport" isRemoveLineWhenBlank="true"/> <subreportParameter name="clarusdb"> <subreportParameterExpression><![CDATA[$P{clarusdb}]]></subreportParameterExpression> </subreportParameter> <subreportParameter name="reportsPath"> <subreportParameterExpression><![CDATA[$P{reportsPath}]]></subreportParameterExpression> </subreportParameter> <connectionExpression><![CDATA[$P{clarusdb}]]></connectionExpression> <subreportExpression class="java.lang.String"><![CDATA[$P{reportsPath} + "templates/compiled/AlertDetailsMaster.jasper"]]></subreportExpression> </subreport> </band> </groupHeader> <groupFooter> <band height="0" isSplitAllowed="true" > </band> </groupFooter> </group> <background> <band height="0" isSplitAllowed="true" > </band> </background> <title> <band height="0" isSplitAllowed="true" > </band> </title> <pageHeader> <band height="0" isSplitAllowed="true" > </band> </pageHeader> <columnHeader> <band height="0" isSplitAllowed="true" > </band> </columnHeader> <detail> <band height="0" isSplitAllowed="true" > </band> </detail> <columnFooter> <band height="0" isSplitAllowed="true" > </band> </columnFooter> <pageFooter> <band height="0" isSplitAllowed="true" > </band> </pageFooter> <summary> <band height="0" isSplitAllowed="true" > </band> </summary></jasperReport> Link to comment Share on other sites More sharing options...
dtrobert Posted August 5, 2009 Author Share Posted August 5, 2009 Found the problem was me running an older version of xerces. Using the one packaged with jasper reports dist resolved it. Link to comment Share on other sites More sharing options...
mtassinari Posted August 24, 2009 Share Posted August 24, 2009 Could you please tell us how you solved the problem? We're facing it right now and have no idea of how to solve it. Link to comment Share on other sites More sharing options...
dtrobert Posted August 24, 2009 Author Share Posted August 24, 2009 To be more specific, I upgrade my xerces.jar file to use the one included in the JasperReports distribution. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now