Hallo,
habe mal folgendes gemacht aber irgendwie stimmt da was net!
Code:
public void jasper() throws Exception {
try {
java.sql.Connection conn = null;
java.util.Map map = null;
JRViewer viewer = new JRViewer(JasperFillManager.fillReport("lieferschein.jasper", map, conn));
billi.add(viewer);
}
catch (Exception e) {
e.printStackTrace();
}
}
Fehler:
java.io.InvalidClassException: net.sf.jasperreports.engine.base.JRBaseReport; local class incompatible: stream classdesc serialVersionUID = 607, local class serialVersionUID = 10000
at java.i
bjectStreamClass.initNonProxy(ObjectStreamClass.java:519)
at java.i
bjectInputStream.readNonProxyDesc(ObjectInputStream.java:1546)
at java.i
bjectInputStream.readClassDesc(ObjectInputStream.java:1460)
at java.i
bjectInputStream.readNonProxyDesc(ObjectInputStream.java:1546)
at java.i
bjectInputStream.readClassDesc(ObjectInputStream.java:1460)
at java.i
bjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
at java.i
bjectInputStream.readObject0(ObjectInputStream.java:1299)
at java.i
bjectInputStream.readObject(ObjectInputStream.java:339)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:85)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:161)
at ecobill.module.base.ui.DeliveryOrderUI.jasper(DeliveryOrderUI.java:71)
at ecobill.module.base.ui.DeliveryOrderUI.afterPropertiesSet(DeliveryOrderUI.java:114)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:962)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:354)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:176)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:105)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:916)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:727)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:336)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:277)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:312)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:80)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:65)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:56)
at Start.main(Start.java:29)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)
NESTED BY :
java.io.InvalidClassException: net.sf.jasperreports.engine.base.JRBaseReport; local class incompatible: stream classdesc serialVersionUID = 607, local class serialVersionUID = 10000
at java.i
bjectStreamClass.initNonProxy(ObjectStreamClass.java:519)
at java.i
bjectInputStream.readNonProxyDesc(ObjectInputStream.java:1546)
at java.i
bjectInputStream.readClassDesc(ObjectInputStream.java:1460)
at java.i
bjectInputStream.readNonProxyDesc(ObjectInputStream.java:1546)
at java.i
bjectInputStream.readClassDesc(ObjectInputStream.java:1460)
at java.i
bjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
at java.i
bjectInputStream.readObject0(ObjectInputStream.java:1299)
at java.i
bjectInputStream.readObject(ObjectInputStream.java:339)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:85)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:161)
at ecobill.module.base.ui.DeliveryOrderUI.jasper(DeliveryOrderUI.java:71)
at ecobill.module.base.ui.DeliveryOrderUI.afterPropertiesSet(DeliveryOrderUI.java:114)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:962)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:354)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:176)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:105)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:916)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:727)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:336)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:277)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:312)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:80)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:65)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:56)
at Start.main(Start.java:29)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)
NESTED BY :
net.sf.jasperreports.engine.JRException: Error loading object from file : lieferschein.jasper
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:89)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:161)
at ecobill.module.base.ui.DeliveryOrderUI.jasper(DeliveryOrderUI.java:71)
at ecobill.module.base.ui.DeliveryOrderUI.afterPropertiesSet(DeliveryOrderUI.java:114)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:962)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:354)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:176)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:105)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:916)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:727)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:336)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:277)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:312)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:80)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:65)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:56)
at Start.main(Start.java:29)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)
Caused by: java.io.InvalidClassException: net.sf.jasperreports.engine.base.JRBaseReport; local class incompatible: stream classdesc serialVersionUID = 607, local class serialVersionUID = 10000
at java.i
bjectStreamClass.initNonProxy(ObjectStreamClass.java:519)
at java.i
bjectInputStream.readNonProxyDesc(ObjectInputStream.java:1546)
at java.i
bjectInputStream.readClassDesc(ObjectInputStream.java:1460)
at java.i
bjectInputStream.readNonProxyDesc(ObjectInputStream.java:1546)
at java.i
bjectInputStream.readClassDesc(ObjectInputStream.java:1460)
at java.i
bjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
at java.i
bjectInputStream.readObject0(ObjectInputStream.java:1299)
at java.i
bjectInputStream.readObject(ObjectInputStream.java:339)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:85)
... 25 more
Fehler ENDE!
billi ist mein Panel!
kannst du mir weiterhelfen?
wie muss so eine map und connection aussehen! Find da nirgends was dazu! Danke