sargent240
asked on
Netbeans java
Below is an error I get when I compile the attached program I have written. I have not looked at the code for a few weeks as I had a question about a problem in the code and the advice I followed produced the error below. I get the error when I try to run the program from Netbeans. I am using Netbeans to write the program. I have absolutely no idea how to get back where I was. Before following the instructions, which I don't remember everything was working. I was simply trying to add another function. Any ideas anyone?
run:
Exception in thread "main" javax.persistence.Persiste nceExcepti on: No Persistence provider for EntityManager named null: The following providers:
oracle.toplink.essentials. Persistenc eProvider
oracle.toplink.essentials. ejb.cmp3.E ntityManag erFactoryP rovider
Returned null to createEntityManagerFactory .
at javax.persistence.Persiste nce.create EntityMana gerFactory (Persisten ce.java:15 4)
at javax.persistence.Persiste nce.create EntityMana gerFactory (Persisten ce.java:83 )
at diyjdj.DiyDjMain.initCompo nents(DiyD jMain.java :779)
at diyjdj.DiyDjMain.<init>(Di yDjMain.ja va:747)
at diyjdj.Main.main(Main.java :19)
Java Result: 1
BUILD SUCCESSFUL (total time: 1 second)
I have no idea what is going on in line 779. The source code is attached. Thanks!
diy-dj.java
run:
Exception in thread "main" javax.persistence.Persiste
oracle.toplink.essentials.
oracle.toplink.essentials.
Returned null to createEntityManagerFactory
at javax.persistence.Persiste
at javax.persistence.Persiste
at diyjdj.DiyDjMain.initCompo
at diyjdj.DiyDjMain.<init>(Di
at diyjdj.Main.main(Main.java
Java Result: 1
BUILD SUCCESSFUL (total time: 1 second)
I have no idea what is going on in line 779. The source code is attached. Thanks!
diy-dj.java
java.beans.Beans.isDesignT ime() is evaluating to false and the code at that line is specifically using an entity manager called Null. Can you see if you can set isDesignTime() to True ?
ASKER
I don't have any idea how to go about that, can you get me started?
Thanks.
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
sharonseth,
Been buried with a couple things last few days. Will be looking at our suggestion over the weekend. Thanks for the suggestion. I'll keep you posted
Been buried with a couple things last few days. Will be looking at our suggestion over the weekend. Thanks for the suggestion. I'll keep you posted
ASKER
Found the problem thanks.
ASKER