Jump to content
We've recently updated our Privacy Statement, available here ×

fmcypriano

Members
  • Posts

    26
  • Joined

  • Last visited

fmcypriano's Achievements

Explorer

Explorer (4/14)

  • First Post Rare
  • Collaborator Rare
  • Conversation Starter Rare
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. Why the wrapper classes aren't used automatically?
  2. I think it shouldn't be necessary, but I've to set manually a userdir in <iReport install folder>/etc/ireport.conf: default_options="-J-Xms256m -J-Xmx512m -J-Dfile.encoding=UTF-8 -J-Dorg.netbeans.ProxyClassLoader.level=1000 --userdir D:/Users/Felipe/.iReport/3.5.2" If it's mandatory should be documented, don't you think?
  3. Hello, I'm doing a report to test my new Hibernate connection and when I click Preview I get this, very strange, error: net.sf.jasperreports.engine.design.JRValidationException: Report design not valid : 1. java.lang.ClassNotFoundException: Will not load classes from default package (int) 2. java.lang.ClassNotFoundException: Will not load classes from default package (boolean) 3. java.lang.ClassNotFoundException: Will not load classes from default package (boolean) 4. java.lang.ClassNotFoundException: Will not load classes from default package (boolean) This errors refer to the following fields in mapping class: @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SequencePedidoVenda") @Min(0) private int id; @Transient private boolean itensWithErros; @Column(name="LANCADO_ESTOQUE") @Type(type="SimNaoChar") private boolean lancadoEstoque; @Column(name="LANCADO_ESTOQUE_PROGRAMADO") @Type(type="SimNaoChar") private boolean lancadoEstoqueProgramado;Why iReport is complaing about java.lang classes?
  4. Hello, I've just download iReport-nb-3.5.2-windows-installer.exe and installed it. When I click in Start Menu / Programs / iReport / iReport-nb-3.5.2 nothing happens, no error messages and no iReport at all. I already set the jdkhome in ireport.conf, but didn't work either. What can I do to see what's wrong? I'm using Windows Vista SP1 and JDK6_13
  5. Hi mirianoe, Solve this issue was very annoying. I never use TopLink but the main problem I had was the jar in iReport's lib directory, put all the necessary jars of TopLink in lib and update the jpa.jar (Hibernate the most recent version is called ejb3-persistence.jar).
  6. I did set some specific hibernate configurations and now everything is working too. The details about hibernate configurations isn't for this forum. Thanks all for help! :cheer:
  7. For me works as well. Using a test persistence.xml the connection was tested successfully. But when I use the actual classes of my project things don't works as expected... I've some UserType defined in package level. When runing my project inside the container hibernate uses auto detection to search the package-info.java and all the entity classes. But, inside iReport auto detection doesn't work, then I specified all the classes with <class> but I get this error: Caused by: org.hibernate.MappingException: Could not etermine type for: SimNaoChar, at table: LOCALCOB, for columns: [org.hibernate.mapping.Column(MOSTRAR_SITE)] Means hibernate can't find the package-info.java and I can't find a way to "force" him. junejava, can you test if in production environment(only JasperReports) the report, using EJBQL connection, go ok?
  8. I update this files in iReport/lib, removing the old versions: antlr-2.7.6.jar commons-collections-2.1.1.jar commons-logging-1.0.4.jar dom4j-1.6.1.jar ehcache-1.2.3 jta.jar log4j-1.2.11.jar xml-apis.jar Remove these files from Classpath and put them in iReport/lib: hibernate-annotations.jar hibernate-commons-annotations.jar hibernate-entitymanager.jar hibernate-validator.jar jboss-archive-browsing.jar javassist.jar (after an error NoClassDefFound for javaassist) Now when I test the connection I get an error telling me that the class or package of my project wasn't found. This is good, hibernate is running and not find classes that are in persistence.xml I'm still trying and will post here when I get news.
  9. I update the hibernate3.jar, asm.jar, asm-attr.jar and cglib-2.1.3.jar and like junejava change jpa.jar to ejb3-persistence.jar. I don't add files in lib that don't was there. I put this files in classpath: D:/Java/Jaybird-2.1.1JDK_1.5/jaybird-full-2.1.1.jar D:/Java/iReport classpath D:/Java/hibernate-entitymanager-3.3.1.GA/lib/hibernate-annotations.jar D:/Java/hibernate-entitymanager-3.3.1.GA/lib/hibernate-commons-annotations.jar D:/Java/hibernate-entitymanager-3.3.1.GA/hibernate-entitymanager.jar D:/Java/hibernate-entitymanager-3.3.1.GA/lib/hibernate-validator.jar D:/Java/hibernate-entitymanager-3.3.1.GA/lib/jboss-archive-browsing.jar Restart the iReport and try to test an EJBQL Connection, now I get this error: java.lang.IllegalAccessError: tried to access method org.hibernate.engine.CascadeStyle.<init>()V from class org.hibernate.engine.EJB3CascadeStyle$1 at org.hibernate.engine.EJB3CascadeStyle$1.<init>(EJB3CascadeStyle.java:24) at org.hibernate.engine.EJB3CascadeStyle.<clinit>(EJB3CascadeStyle.java:19) at org.hibernate.ejb.event.EJB3PersistEventListener.<clinit>(EJB3PersistEventListener.java:19) at org.hibernate.ejb.EventListenerConfigurator.<init>(EventListenerConfigurator.java:80) at org.hibernate.ejb.Ejb3Configuration.<init>(Ejb3Configuration.java:132) at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:119) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:51) at it.businesslogic.ireport.connection.EJBQLConnection.getEntityManager(EJBQLConnection.java:130) at it.businesslogic.ireport.connection.EJBQLConnection$1.run(EJBQLConnection.java:178) at java.awt.event.InvocationEvent.dispatch(Unknown Source) I don't know what is IllegalAccessError, so from Java Docs I get: Thrown if an application attempts to access or modify a field, or to call a method that it does not have access to. Normally, this error is caught by the compiler; this error can only occur at run time if the definition of a class has incompatibly changed. IMO we've to update more libraries.. Thanks for helping. Post edited by: fmcypriano, at: 2008/02/20 10:33
  10. Hi giulio, I'll do a simple test case to you. But I can't do now. What's the limit to submit a file here? Thanks
  11. The version of hibernate bundled with iReport 2.0.4 is the 3.0.5. But to support annotations and JPA (Hibernate Entity Manager) is necessary version 3.2.x. Is there plans to update the supported version?
  12. The version of hibernate bundled with iReport 2.0.4 is completely out of date, the version is 3.0.5. To support annotations and JPA (EntityManager) hibernate must be 3.2.x. So, there's plans to update the support? If not at least a workaround to use the new version.
  13. So, I'm still trying. Nobody is helping (hibernate forum and here) but... The hibernate3.jar in iReport/lib is out of date. I replace the file with my hibernate3.jar and now the missing method was found but the error changed to: java.lang.NoClassDefFoundError: org/hibernate/bytecode/cglib/BytecodeProviderImpl at org.hibernate.cfg.Environment.buildBytecodeProvider(Environment.java:690) at org.hibernate.cfg.Environment.buildBytecodeProvider(Environment.java:682) at org.hibernate.cfg.Environment.<clinit>(Environment.java:568) at org.hibernate.cfg.Configuration.reset(Configuration.java:174) at org.hibernate.cfg.AnnotationConfiguration.reset(AnnotationConfiguration.java:220) at org.hibernate.cfg.Configuration.<init>(Configuration.java:193) at org.hibernate.cfg.Configuration.<init>(Configuration.java:197) at org.hibernate.cfg.AnnotationConfiguration.<init>(AnnotationConfiguration.java:96) at org.hibernate.ejb.Ejb3Configuration.<clinit>(Ejb3Configuration.java:105) at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:119) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83) at com.jaspersoft.ireport.designer.connection.EJBQLConnection.getEntityManager(EJBQLConnection.java:138) at com.jaspersoft.ireport.designer.connection.EJBQLConnection$1.run(EJBQLConnection.java:188) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)Post edited by: fmcypriano, at: 2008/02/19 11:35
  14. I can't find a way to see iReport log. So I install the iReport for Netbeans to see if in IDE Log I could found the exception and it works, no solution yet but at least error messages. After I put the jars of hibernate entity manager in iReport Classpath and try to test an EJBQL connection I get this exception: java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.ejb.Ejb3Configuration at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:119) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83) at com.jaspersoft.ireport.designer.connection.EJBQLConnection.getEntityManager(EJBQLConnection.java:138) at com.jaspersoft.ireport.designer.connection.EJBQLConnection$1.run(EJBQLConnection.java:188) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) So even with the jars in classpath iReport can't find the class. Then I go to iReport Fontpath and select all the jars (listed bellow), saved fontpath and restart. Without no changes in iReport Classpath just in iReport Fontpath the exception now is: java.lang.NoSuchMethodError: org.hibernate.cfg.AnnotationConfiguration.setEntityNotFoundDelegate(Lorg/hibernate/proxy/EntityNotFoundDelegate;)V at org.hibernate.ejb.Ejb3Configuration.<init>(Ejb3Configuration.java:131) at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:119) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:83) at com.jaspersoft.ireport.designer.connection.EJBQLConnection.getEntityManager(EJBQLConnection.java:138) at com.jaspersoft.ireport.designer.connection.EJBQLConnection$1.run(EJBQLConnection.java:188) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) I don't give up. I'm trying. If anyone has any ideas please post here. My iReport Classpath: D:JavaiReport classpath D:Javahibernate-3.2hibernate3.jar D:Javahibernate-entitymanager-3.3.1.GAlibejb3-persistence.jar D:Javahibernate-entitymanager-3.3.1.GAlibhibernate-annotations.jar D:Javahibernate-entitymanager-3.3.1.GAlibhibernate-commons-annotations.jar D:Javahibernate-entitymanager-3.3.1.GAhibernate-entitymanager.jar
  15. Hello, I need to see all exceptions that iReport and his uses are throwing. iReport isn't reporting error in my connection and need to see the exception. Is there a way to active log? Log4j? How? Thanks,
×
×
  • Create New...