现预览JaspserReport报表:
try {
JasperDesign design = null;
design = JRXmlLoader.load(new FileInputStream(UserConfig
.getReportFolder() + "product/ReportProduct.jrxml"));
JasperReport report = JasperCompileManager
.compileReport(design);
HashMap<String, Object> map = new HashMap<String, Object>();
map.put("Selected", selectedProduct.getProductId());
map.put("TitleName", ReportParameter.getTitleName());
map.put("WebSite", ReportParameter.getWebSite());
map.put("Logo", UserConfig.getResourceFolder() + "logo.jpg");
map.put("SUBREPORT_DIR", UserConfig.getReportFolder()
+ "product/");
JasperPrint jasperPrint = JasperFillManager.fillReport(report,
map, BasicDbTool.getConnection());
JasperViewer.viewReport(jasperPrint, false);
} catch (FileNotFoundException e1) {
e1.printStackTrace();
} catch (JRException e1) {
e1.printStackTrace();
} catch (SQLException e1) {
e1.printStackTrace();
}
出现Overriding bean definition异常, 请大虾们过目。
信息: Overriding bean definition for bean 'subtitleWidth': replacing [Generic bean: class [org.springframework.beans.factory.config.FieldRetrievingFactoryBean]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] with [Generic bean: class [org.springframework.beans.factory.config.FieldRetrievingFactoryBean]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null]
十一月 01, 2013 9:58:29 下午 org.springframework.beans.factory.xml.XmlBeanFactory registerBeanDefinition
信息: Overriding bean definition for bean 'subtitleBounds': replacing [Generic bean: class [org.springframework.beans.factory.config.FieldRetrievingFactoryBean]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] with [Generic bean: class [org.springframework.beans.factory.config.FieldRetrievingFactoryBean]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null]
十一月 01, 2013 9:58:29 下午 org.springframework.beans.factory.xml.XmlBeanFactory registerBeanDefinition
信息: Overriding bean definition for bean 'subtitleFrame': replacing [Generic bean: class [org.springframework.beans.factory.config.FieldRetrievingFactoryBean]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] with [Generic bean: class [org.springframework.beans.factory.config.FieldRetrievingFactoryBean]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null]
十一月 01, 2013 9:58:29 下午 org.springframework.beans.factory.xml.XmlBeanFactory registerBeanDefinition
信息: Overriding bean definition for bean 'subtitleMargin': replacing [Generic bean: class [org.springframework.beans.factory.config.FieldRetrievingFactoryBean]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] with [Generic bean: class [org.springframework.beans.factory.config.FieldRetrievingFactoryBean]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null]
十一月 01, 2013 9:58:29 下午 org.springframework.beans.factory.xml.XmlBeanFactory registerBeanDefinition
信息: Overriding bean definition for bean 'subtitlePadding': replacing [Generic bean: class [org.springframework.beans.factory.config.FieldRetrievingFactoryBean]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] with [Generic bean: class [org.springframework.beans.factory.config.FieldRetrievingFactoryBean]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null]
十一月 01, 2013 9:58:29 下午 org.springframework.beans.factory.xml.XmlBeanFactory registerBeanDefinition
信息: Overriding bean definition for bean 'subtitleText': replacing [Generic bean: class [org.springframework.beans.factory.config.FieldRetrievingFactoryBean]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] with [Generic bean: class [org.springframework.beans.factory.config.FieldRetrievingFactoryBean]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null]
十一月 01, 2013 9:58:29 下午 org.springframework.beans.factory.xml.XmlBeanFactory registerBeanDefinition
信息: Overriding bean definition for bean 'subtitleTextAlignment': replacing [Generic bean: class [org.springframework.beans.factory.config.FieldRetrievingFactoryBean]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] with [Generic bean: class [org.springframework.beans.factory.config.FieldRetrievingFactoryBean]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null]
十一月 01, 2013 9:58:29 下午 org.springframework.beans.factory.xml.XmlBeanFactory registerBeanDefinition
信息: Overriding bean definition for bean 'subtitleMaximumLinesToDisplay': replacing [Generic bean: class [org.springframework.beans.factory.config.FieldRetrievingFactoryBean]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] with [Generic bean: class [org.springframework.beans.factory.config.FieldRetrievingFactoryBean]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null]
十一月 01, 2013 9:58:29 下午 org.springframework.beans.factory.xml.XmlBeanFactory registerBeanDefinition
信息: Overriding bean definition for bean 'subtitleTooltipText': replacing [Generic bean: class [org.springframework.beans.factory.config.FieldRetrievingFactoryBean]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] with [Generic bean: class [org.springframework.beans.factory.config.FieldRetrievingFactoryBean]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null]
十一月 01, 2013 9:58:29 下午 org.springframework.beans.factory.xml.XmlBeanFactory registerBeanDefinition
......

JasperReport 异常