Jump to content
Changes to the Jaspersoft community edition download ×

EJBQL connection not working and no error messages


fmcypriano

Recommended Posts

I've seem a few posts talking about EJBQL connections. None of them have answer. (IMO) This subject is complete ignored for (at-least) non-commercial users.

 

So, lets try solve this problem.

 

I create a directory called iReport classpath and inside put my META-INF/persistence.xml, configure the classpath of iReport to point to "iReport classpath", create one EJBQL connection and click on Test button and I get this error:

 

"No Persistence provider for EntityManager named VCModelPU"

 

So I figured out iReport can't find my provider which is Hibernate EntityManger. Then I put the jars of hibernate entity manager in iReport classpath:

 

hibernate-entitymanager-3.3.1.GAlibejb3-persistence.jar
hibernate-entitymanager-3.3.1.GAlibhibernate-annotations.jar
hibernate-entitymanager-3.3.1.GAlibhibernate-commons-annotations.jar
hibernate-entitymanager-3.3.1.GAlibhibernate-validator.jar
hibernate-entitymanager-3.3.1.GAlibjboss-archive-browsing.jar
hibernate-entitymanager-3.3.1.GAhibernate-entitymanager.jar

 

After this I restart iReport and try to test again the EJBQL connection and don't get any messages, success nor error messages appears. Seems like the button is ignored.

 

I'm trying to see the iReport log, but I don't find this. Anyone knows how can I activate a detailed log? I need to see the exceptions.

Link to comment
Share on other sites

  • Replies 20
  • Created
  • Last Reply

Top Posters In This Topic

This is my persistence.xml:

 

Code:
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:«»xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:«»schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
<persistence-unit name="VCModelPU" transaction-type="RESOURCE_LOCAL">
<provider>org.hibernate.ejb.HibernatePersistence</provider>

<class>visualcontrol.model.entity.CliFor</class>
<class>visualcontrol.model.entity.Cliente</class>
<class>visualcontrol.model.entity.CondicaoPagamento</class>
<class>visualcontrol.model.entity.Cor</class>
<class>visualcontrol.model.entity.DeclaracaoImportacao</class>
<class>visualcontrol.model.entity.Estoque</class>
<class>visualcontrol.model.entity.EstoqueProgramado</class>
<class>visualcontrol.model.entity.EstoqueProjetado</class>
<class>visualcontrol.model.entity.Familia</class>
<class>visualcontrol.model.entity.Fornecedor</class>
<class>visualcontrol.model.entity.Kardex</class>
<class>visualcontrol.model.entity.LocalCobranca</class>
<class>visualcontrol.model.entity.Loja</class>
<class>visualcontrol.model.entity.Natureza</class>
<class>visualcontrol.model.entity.PedidoCompra</class>
<class>visualcontrol.model.entity.PedidoVenda</class>
<class>visualcontrol.model.entity.PedidoVendaItem</class>
<class>visualcontrol.model.entity.Produto</class>
<class>visualcontrol.model.entity.Transportadora</class>
<class>visualcontrol.model.entity.UF</class>
<class>visualcontrol.model.entity.Usuario</class>
<class>visualcontrol.model.entity.Vendedor</class>

<properties>
<property name="hibernate.connection.username" value="***"/>
<property name="hibernate.connection.driver_class" value="org.firebirdsql.jdbc.FBDriver"/>
<property name="hibernate.connection.password" value="***"/>
<property name="hibernate.connection.url" value="jdbc:firebirdsql://localhost:3050/D:DataBaseERP_VCONTROL_LIEX.FDB"/>
<property name="hibernate.cache.provider_class" value="org.hibernate.cache.NoCacheProvider"/>
<property name="hibernate.dialect" value="org.hibernate.dialect.FirebirdDialect"/>
</properties>
</persistence-unit>
</persistence>

Post edited by: fmcypriano, at: 2008/02/15 11:47

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Hi fmcypriano,

 

if you use iReport 2.0.4, start iReport using iReport.bat, so you can see exceptions on the console.

 

With NetBeans the exceptions are dumped in the netbeans log file.

 

Looking at the code, if you don't get any message testing the connection, it is because a Throwable exception is thrown. This is normally caused by a NoShuchMethod exception or something of really nasty like that.

 

Finally when using Hibernate with the NetBeans plugin, you have to pay attention on what connection manager you are using, since some connection managers try to look for the driver class in the system classpath, and they will finish to don't find it in NetBeans (since they skip the iR dynamic classloader, the only one able to find the drivers).

 

I'll do some tests, hoping that can help, but an Hibernate expert would be really appreciated to help me with that :-)

 

Thanks

 

giulio

Link to comment
Share on other sites

Hi fmcypriano,

 

It looks like Hibernate changed a lot from the time I did the iReport integration.

 

This is how you can help me to see how make all to work:

I need a simple (very simple) application using Hibernate with annotations (and/or Hibernate EntityManager).

 

Can you provide me something like that? It would help a lot!

 

Thanks

 

Giulio

Link to comment
Share on other sites

I have updated hibernate3.jar under ireport/lib to be version 3.2.4 sp1. And I also put more jars of hibernat as following.

hibernate-entitymanager.jar

hibernate-annotation.jar

hibernate-ejb3-persistece.jar

hibernate-metadata.jar

 

When I opened ireport using bin/ireport.bat and tried to test ejbql connection, I got the following exception in the console.

 

C:Program FilesJasperSoftiReport-2.0.4>iReport.bat

Exception occurred during event dispatching:

java.lang.AbstractMethodError: org.hibernate.ejb.HibernatePersistence.createEnti

tyManagerFactory(Ljava/lang/String;Ljava/util/Map; )Ljavax/persistence/EntityMana

gerFactory;

at javax.persistence.Persistence.createEntityManagerFactory(Persistence.

java:83)

at it.businesslogic.ireport.connection.EJBQLConnection.getEntityManager(

EJBQLConnection.java:130)

at it.businesslogic.ireport.connection.EJBQLConnection$1.run(EJBQLConnec

tion.java:178)

at java.awt.event.InvocationEvent.dispatch(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

at java.awt.Dialog$1.run(Unknown Source)

at java.awt.Dialog$3.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.awt.Dialog.show(Unknown Source)

at java.awt.Component.show(Unknown Source)

at java.awt.Component.setVisible(Unknown Source)

at java.awt.Window.setVisible(Unknown Source)

at java.awt.Dialog.setVisible(Unknown Source)

Post edited by: junejava, at: 2008/02/19 20:04

Link to comment
Share on other sites

Hi Giulio,

 

I have updated ireport/lib/jpa.jar to ejb3-persistence.jar, jpa api come with hibernate. And I also update all hibernate lib in ireport/lib to be latest version but I still got the same exception.

The following is my hibernate lib version.

Hibernate Core 3.2.6.ga

Hibernate Annotations 3.3.0 GA

Hibernate EntityManager 3.3.1 GA

Hibernate Validator 3.0.0 GA

 

However, I m not sure if it is related to hibernate lib version because I use the same lib jars and run the reports on JBoss 4.2.0GA and they works fine.

 

June.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

After I removed hibernate-metadata.jar and hibernate-ejb3-persistence.jar from ireport/lib and tried EJB connection from ireport, I got the following exception. I think it is the same as you got. I feel that we almost solve it :cheer: :cheer:

Keep on testing.

 

javax.persistence.PersistenceException: [PersistenceUnit: pu1] class or package

not found

at org.hibernate.ejb.Ejb3Configuration.addNamedAnnotatedClasses(Ejb3Conf

iguration.java:1125)

at org.hibernate.ejb.Ejb3Configuration.addClassesToSessionFactory(Ejb3Co

nfiguration.java:905)

at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:

792)

at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:

186)

at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:

246)

at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(Hib

ernatePersistence.java:120)

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(EJBQLConnec

tion.java:178)

Link to comment
Share on other sites

I solved the problem about classes in my project could not found in ireport by put jar files of my project to ireport/lib and then ireport can find the classes.

 

After that I got another problem with is about hibernate cache. What I have to do is edit persistence.xml by enable cache and add cache provider class as following:

 

<persistence>

<persistence-unit name="pu1">

<provider>org.hibernate.ejb.HibernatePersistence</provider>

<class>Person</class>

<properties>

<property name="hibernate.cache.use_second_level_cache" value="true" />

<property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>

<property name="hibernate.connection.driver_class" value="com.mysql.jdbc.Driver" />

<property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/test1" />

<property name="hibernate.connection.username" value="root" />

<property name="hibernate.connection.password" value="root" />

 

</properties>

</persistence-unit>

</persistence>

 

After that I got another problem about javax.jms.Message not found so I put jms.jar to ireport/lib. Finally EJBQL connection test successful!! :laugh:

Post edited by: junejava, at: 2008/02/20 13:58

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

I have tested the reports with Enterprise JBoss 4.2GA (production config) and they work fine. :)

 

By the way, I found that we not need to explicitly specify all entities in persistence.xml. IReport will automatically detect them since it successfully established EJBQL connection from the entity manager. I m not sure if it is because I export my entities as jar files and put them in ireport/lib then IReport can detect it automatically. My entities also have attributes with UserDefine types.

 

Thank you for your helps.It is really good that we finally solved this ireport and hibernate issue.

 

junejava

Link to comment
Share on other sites

  • 1 month later...

Hi,

I have same problem with toplink.

I have added toplink-essentials.jar and toplink-essentials-agent.jar in iReportlib and added META-INF folder with persistence.xml file in CLASSPATH

but message console always write:

 

javax.persistence.PersistenceException: No Persistence provider for EntityManage

r named GCPU

at javax.persistence.Persistence.createEntityManagerFactory(Persistence.

java:89)

at it.businesslogic.ireport.connection.EJBQLConnection.getEntityManager(

EJBQLConnection.java:130)

at it.businesslogic.ireport.connection.EJBQLConnection$1.run(EJBQLConnec

tion.java:178)

at java.awt.event.InvocationEvent.dispatch(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

at java.awt.Dialog$1.run(Unknown Source)

at java.awt.Dialog$3.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.awt.Dialog.show(Unknown Source)

at java.awt.Component.show(Unknown Source)

at java.awt.Component.setVisible(Unknown Source)

at java.awt.Window.setVisible(Unknown Source)

at java.awt.Dialog.setVisible(Unknown Source)

at it.businesslogic.ireport.gui.ConnectionsDialog.jButtonModifyParameter

ActionPerformed(ConnectionsDialog.java:514)

at it.businesslogic.ireport.gui.ConnectionsDialog.jTableParametersMouseC

licked(ConnectionsDialog.java:447)

at it.businesslogic.ireport.gui.ConnectionsDialog.access$100(Connections

Dialog.java:53)

at it.businesslogic.ireport.gui.ConnectionsDialog$5.mouseClicked(Connect

ionsDialog.java:196)

at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)

at java.awt.Component.processMouseEvent(Unknown Source)

at javax.swing.JComponent.processMouseEvent(Unknown Source)

at java.awt.Component.processEvent(Unknown Source)

at java.awt.Container.processEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Window.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

at java.awt.Dialog$1.run(Unknown Source)

at java.awt.Dialog$3.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.awt.Dialog.show(Unknown Source)

at java.awt.Component.show(Unknown Source)

at java.awt.Component.setVisible(Unknown Source)

at java.awt.Window.setVisible(Unknown Source)

at java.awt.Dialog.setVisible(Unknown Source)

at it.businesslogic.ireport.gui.ConnectionsDialog.setVisible(Connections

Dialog.java:623)

at it.businesslogic.ireport.gui.MainFrame.jMenuItemConnectionsActionPerf

ormed(MainFrame.java:6276)

at it.businesslogic.ireport.gui.MainFrame.access$13800(MainFrame.java:10

1)

at it.businesslogic.ireport.gui.MainFrame$175.actionPerformed(MainFrame.

java:3606)

at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

at javax.swing.AbstractButton.doClick(Unknown Source)

at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)

at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown

Source)

at java.awt.Component.processMouseEvent(Unknown Source)

at javax.swing.JComponent.processMouseEvent(Unknown Source)

at java.awt.Component.processEvent(Unknown Source)

at java.awt.Container.processEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Window.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)

 

This drive my crazy.....

 

Thanks.

Link to comment
Share on other sites

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).

Link to comment
Share on other sites

  • 4 months later...

I did IT!  in Ireport 3.0.0  ( iReport 3.1 ignore all extra jars from lib dir :( )

1. I copy all jars from my project lib directory including hibernate files.. to "C:Program FilesJasperSoftiReport-3.0.0lib"

2. remove jpa.jar from "C:Program FilesJasperSoftiReport-3.0.0lib"

3. I zip my entity files and copy it as jar file to -> "C:Program FilesJasperSoftiReport-3.0.0lib"

because casspath menu not see it.. it's only can find persistens.xml..

that's it.. test button pass successful.

 

Link to comment
Share on other sites

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