Jump to content

JR upgrade and now stack trace


dtrobert

Recommended Posts

 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 categories

java.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 template

Code:
<?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

  • 2 weeks later...
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

  • 3 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...