- java.lang.NoClassDefFoundError: Could not initialize classnet.sf.jasperreports.engine.util.JRStyledTextParser
- net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:174)
- net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:74)
- net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:56)
- net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:143)
- net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:115)
- net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:435)
- net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:271)
- saude.apresentacao.GeraRelatorioComponent.gerar(GeraRelatorioComponent.java:44)
- sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
- sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
- java.lang.reflect.Method.invoke(Unknown Source)
- org.vraptor.component.DefaultLogicMethod.execute(DefaultLogicMethod.java:61)
- org.vraptor.interceptor.ExecuteLogicInterceptor.intercept(ExecuteLogicInterceptor.java:32)
- org.vraptor.core.InterceptorsLogicFlow.execute(InterceptorsLogicFlow.java:72)
- org.vraptor.interceptor.SettingAndValidationInterceptor.intercept(SettingAndValidationInterceptor.java:130)
- org.vraptor.core.InterceptorsLogicFlow.execute(InterceptorsLogicFlow.java:72)
- org.vraptor.interceptor.InjectionInterceptor.intercept(InjectionInterceptor.java:41)
- org.vraptor.core.InterceptorsLogicFlow.execute(InterceptorsLogicFlow.java:72)
- org.vraptor.interceptor.ComponentLookupInterceptor.intercept(ComponentLookupInterceptor.java:57)
- org.vraptor.core.InterceptorsLogicFlow.execute(InterceptorsLogicFlow.java:72)
- org.vraptor.interceptor.FlashScopeInterceptor.intercept(FlashScopeInterceptor.java:22)
- org.vraptor.core.InterceptorsLogicFlow.execute(InterceptorsLogicFlow.java:72)
- org.vraptor.interceptor.RegisterAttributesInteceptor.intercept(RegisterAttributesInteceptor.java:47)
- org.vraptor.core.InterceptorsLogicFlow.execute(InterceptorsLogicFlow.java:72)
是因为.jar包不正确(版本不匹配或者是差.jar包)
下面这份是正确的。我测试过的,用的是(jasperReport4.0.2)